(MIN_LEADING_BYTE): Changed to -0x200.
[chise/xemacs-chise.git-] / src / ChangeLog
1 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * mule-charset.c (Vcharset_china3_jef): Renamed from
4         `Vcharset_japanese_jef_china3'.
5         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
6         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
7         `{MIN|MAX}_CHAR_JEF_CHINA3'..
8         (syms_of_mule_charset): Rename `china3-jef' from
9         `japanese-jef-china3'.
10         (complex_vars_of_mule_charset): Likewise; rename
11         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
12
13         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
14         `LEADING_BYTE_JEF_CHINA3'.
15         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
16         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
17
18 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
19
20         * mule-charset.c (encode_builtin_char_1): Comment out special code
21         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
22
23         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
24         (MAX_CHAR_MOJIKYO_0): Comment out.
25         (MIN_CHAR_CBETA): Changed to 0x00E20000.
26         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
27         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
28         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
29
30 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
31
32         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
33         (Qideograph_cbeta): New variable.
34         (encode_builtin_char_1): Comment out special code for
35         coded-charset `mojikyo' and `japanese-jef-china3'.
36         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
37         (complex_vars_of_mule_charset): Add new coded-charset
38         `ideograph-cbeta'.
39
40         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
41         (MIN_CHAR_CBETA): New macro.
42         (MAX_CHAR_CBETA): New macro.
43
44 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
45
46         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
47         (LEADING_BYTE_JEF_CHINA3): New macro.
48         (MIN_CHAR_JEF_CHINA3): New macro.
49         (MAX_CHAR_JEF_CHINA3): Likewise.
50         (DECODE_CHAR): Fixed.
51
52 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
53
54         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
55         (Qjapanese_jef_china3): New variable.
56         (encode_builtin_char_1): Support `japanese-jef-china3'.
57         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
58         (complex_vars_of_mule_charset): Add new coded-charset
59         `japanese-jef-china3'.
60
61 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
62
63         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
64         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
65         94^4, 96^3, 96^4, 128^n and 256^n set.
66         (put_char_table): Use `XCHARSET_CELL_RANGE'.
67         (map_char_table): Likewise.
68
69 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
70
71         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
72         UTF-2000.
73
74 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
75
76         * chartab.h (get_char_id_table): New inline function.
77
78         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
79         function.
80
81 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
82
83         * chartab.h (decode_char_table_range): New prototype in XEmacs
84         UTF-2000.
85         (put_char_id_table): New inline function in XEmacs UTF-2000.
86
87         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
88         function.
89         (decode_char_table_range): Delete static declaration in XEmacs
90         UTF-2000.
91
92 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
93
94         * chartab.c (put_char_id_table): Use `put_char_table'.
95
96 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
97
98         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
99         (map_over_uint16_byte_table): Likewise.
100         (map_over_byte_table): Likewise.
101         (map_char_table): Modify for `map_over_uint8_byte_table',
102         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
103         UTF-2000.
104
105 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
106
107         * chartab.c (struct map_char_table_for_charset_arg): New
108         structure.
109         (map_char_table_for_charset_fun): New function.
110         (map_char_table): Use `map_char_table' for encoding_table of
111         `range->charset'.
112
113 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
114
115         * chartab.c (map_char_table): Check a character is found in
116         range->charset instead of non default value is defined in
117         char-table when range is CHARTAB_RANGE_ROW.
118
119 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
120
121         * chartab.c (map_char_id_table): Deleted.
122         (Fmap_char_attribute): Use `map_char_table' instead of
123         `map_char_id_table'.
124
125 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
126
127         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
128         UTF-2000.
129         (update_syntax_table): Deleted in XEmacs UTF-2000.
130
131         * syntax.c (find_defun_start): Use `syntax_table' instead of
132         `mirror_syntax_table' in XEmacs UTF-2000.
133         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
134         UTF-2000.
135         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
136         XEmacs UTF-2000.
137         (Fmatching_paren): Likewise.
138         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
139         in XEmacs UTF-2000.
140         (find_start_of_comment): Likewise.
141         (find_end_of_comment): Likewise.
142         (Fforward_comment): Likewise.
143         (scan_lists): Likewise.
144         (char_quoted): Likewise.
145         (Fbackward_prefix_chars): Likewise.
146         (scan_sexps_forward): Likewise.
147         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
148         (update_syntax_table): Likewise.
149
150         * search.c (skip_chars): Use `syntax_table' instead of
151         `mirror_syntax_table' in XEmacs UTF-2000.
152         (wordify): Likewise.
153         (Freplace_match): Likewise.
154
155         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
156         `mirror_syntax_table' in XEmacs UTF-2000.
157         (WORDCHAR_P_UNSAFE): Likewise.
158         (re_match_2_internal): Likewise.
159
160         * font-lock.c (find_context): Use `buf->syntax_table' instead of
161         `buf->mirror_syntax_table' in XEmacs UTF-2000.
162
163         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
164         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
165
166         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
167         XEmacs UTF-2000.
168
169         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
170         UTF-2000.
171         (print_char_table): Print `default_value' in XEmacs UTF-2000.
172         (char_table_description): Delete `mirror_table' in XEmacs
173         UTF-2000.
174         (fill_char_table): Don't call `update_syntax_table' in XEmacs
175         UTF-2000.
176         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
177         (Fcopy_char_table): Likewise.
178         (put_char_table): Don't call `update_syntax_table' in XEmacs
179         UTF-2000.
180
181         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
182         `buf->mirror_syntax_table' in XEmacs UTF-2000.
183         (casify_region_internal): Likewise.
184
185         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
186
187         * buffer.c (common_init_complex_vars_of_buffer): Don't use
188         `mirror_syntax_table' in XEmacs UTF-2000.
189
190         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
191         `buf->mirror_syntax_table' in XEmacs UTF-2000.
192         (Fexpand_abbrev): Likewise.
193
194 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
195
196         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
197
198 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
199
200         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
201         (map_over_uint16_byte_table): Likewise.
202         (map_over_byte_table): Likewise.
203         (get_char_id_table): Refer `cit->default_value'.
204         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
205         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
206         of character-id ranges.
207         (mark_char_table): Mark `ct->default_value'.
208         (char_table_description): Add `default_value'.
209         (fill_char_table): Use `default_value'.
210         (decode_char_table_range): Decode `nil' as
211         `CHARTAB_RANGE_DEFAULT'.
212         (get_char_id_table): Refer `cit->default_value'.
213         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
214         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
215         temporary hack; check value of char-table is bound or not.
216         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
217
218         * chartab.h (struct Lisp_Char_Table): Add new member
219         `default_value' in XEmacs UTF-2000.
220         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
221         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
222         UTF-2000.
223
224 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
225
226         * chartab.h (Lisp_Char_ID_Table): Deleted.
227
228         * chartab.c (char_table_description): Fix typo.
229         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
230         `Lisp_Char_ID_Table'.
231
232 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
233
234         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
235         `CHAR_ID_TABLE_P'.
236
237         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
238         `CHAR_ID_TABLE_P'.
239
240         * chartab.h (XCHAR_ID_TABLE): Deleted.
241         (XSETCHAR_ID_TABLE): Deleted.
242         (CHAR_ID_TABLE_P): Deleted.
243
244         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
245         `CHAR_ID_TABLE_P'.
246         (Fget_composite_char): Likewise.
247         (put_char_table): Likewise.
248         (add_char_attribute_alist_mapper): Fixed.
249         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
250         `CHAR_ID_TABLE_P'.
251         (Fget_char_attribute): Likewise.
252         (Fget_char_attribute): Likewise.
253         (Fmap_char_attribute): Likewise.
254
255         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
256         `CHAR_ID_TABLE_P'.
257         (encode_char_1): Likewise.
258
259 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
260
261         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
262         `XCHAR_ID_TABLE'.
263
264         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
265         instead of `XCHAR_ID_TABLE'.
266         (remove_char_ccs): Likewise.
267
268         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
269         `XCHAR_ID_TABLE'.
270         (Fget_composite_char): Likewise.
271         (Fchar_variants): Likewise.
272         (put_char_table): Likewise.
273         (add_char_attribute_alist_mapper): Likewise.
274         (Fchar_attribute_alist): Likewise.
275         (Fget_char_attribute): Likewise.
276         (Fput_char_attribute): Likewise.
277         (Fmap_char_attribute): Likewise.
278         (Fmap_char_attribute): Likewise.
279
280         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
281         `XCHAR_ID_TABLE'.
282         (encode_char_1): Likewise.
283
284 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
285
286         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
287         `Lisp_Char_ID_Table'.
288         (mark_char_id_table): Deleted.
289         (print_char_id_table): Likewise.
290         (char_id_table_equal): Likewise.
291         (char_id_table_hash): Likewise.
292         (char_id_table_description): Likewise.
293         (char_id_table): Likewise.
294         (make_char_id_table): Use `Fmake_char_table' and
295         `fill_char_table'.
296         (get_char_id_table): Use `Lisp_Char_Table' instead of
297         `Lisp_Char_ID_Table'.
298         (put_char_id_table): Likewise.
299         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
300         `XCHAR_ID_TABLE'.
301         (Fremove_char_attribute): Likewise.
302         (syms_of_chartab): Don't define type `char-id-table'.
303
304         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
305         (char_id_table): Likewise.
306         (GC_CHAR_ID_TABLE_P): Likewise.
307         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
308         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
309         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
310         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
311         (get_char_id_table): Use `Lisp_Char_Table' instead of
312         `Lisp_Char_ID_Table'.
313         (put_char_id_table_0): Likewise.
314         (put_char_id_table): Likewise.
315
316 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
317
318         * chartab.h: Lisp_Byte_Table related codes are moved from
319         chartab.h.
320
321         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
322
323 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
324
325         * chartab.h: Don't include "chartab.h".
326         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
327         (Lisp_Char_ID_Table): Likewise.
328         (char_id_table): Likewise.
329         (XCHAR_ID_TABLE): Likewise.
330         (XSETCHAR_ID_TABLE): Likewise.
331         (CHAR_ID_TABLE_P): Likewise.
332         (GC_CHAR_ID_TABLE_P): Likewise.
333         (get_char_id_table): Likewise.
334
335         * char-ucs.h: Include "chartab.h".
336         (struct Lisp_Char_ID_Table): Moved to chartab.h.
337         (Lisp_Char_ID_Table): Likewise.
338         (char_id_table): Likewise.
339         (XCHAR_ID_TABLE): Likewise.
340         (XSETCHAR_ID_TABLE): Likewise.
341         (CHAR_ID_TABLE_P): Likewise.
342         (GC_CHAR_ID_TABLE_P): Likewise.
343         (get_char_id_table): Likewise.
344
345 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
346
347         * chartab.c (copy_uint8_byte_table): New function.
348         (copy_uint16_byte_table): New function.
349         (copy_byte_table): New function.
350         (map_over_uint8_byte_table): Modify to avoid huge numbers of
351         characters to call.
352         (map_over_uint16_byte_table): Likewise.
353         (map_over_byte_table): Likewise.
354         (get_byte_table): Move prototype to chartab.h.
355         (put_byte_table): Likewise.
356         (put_char_id_table_0): Moved to chartab.h.
357         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
358         (char_table_entry_equal): Likewise.
359         (char_table_entry_hash): Likewise.
360         (char_table_entry_description): Likewise.
361         (char_table_entry): Likewise.
362         (make_char_table_entry): Likewise.
363         (copy_char_table_entry): Likewise.
364         (get_non_ascii_char_table_value): Likewise.
365         (map_over_charset_ascii): Likewise.
366         (map_over_charset_control_1): Likewise.
367         (map_over_charset_row): Likewise.
368         (map_over_other_charset): Likewise.
369         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
370         (print_char_table): Likewise.
371         (char_table_equal): Likewise.
372         (char_table_hash): Likewise.
373         (char_table_description): Likewise.
374         (fill_char_table): Likewise.
375         (Fcopy_char_table): Likewise.
376         (get_char_table): Likewise.
377         (Fget_range_char_table): Likewise.
378         (put_char_table): Likewise.
379         (map_char_table): Likewise.
380         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
381         UTF-2000.
382
383 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
384
385         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
386         `Vauto_fill_chars' in XEmacs UTF-2000.
387
388         * chartab.h (get_byte_table): New prototype [moved from
389         chartab.c].
390         (put_byte_table): Likewise [moved from chartab.c].
391         (put_char_id_table_0): New inline function [moved from chartab.c].
392         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
393         (Lisp_Char_Table_Entry): Likewise.
394         (char_table_entry): Likewise.
395         (XCHAR_TABLE_ENTRY): Likewise.
396         (XSETCHAR_TABLE_ENTRY): Likewise.
397         (CHAR_TABLE_ENTRYP): Likewise.
398         (CHECK_CHAR_TABLE_ENTRY): Likewise.
399         (NUM_ASCII_CHARS): Likewise.
400         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
401         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
402
403 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
404
405         * chartab.c (get_char_id_table): Change interface.
406         (put_char_id_table_0): New function.
407         (put_char_id_table): Change interface; new implementation.
408         (Fget_composite_char): Modify for interface change of
409         `get_char_id_table'.
410         (Fchar_variants): Likewise.
411         (add_char_attribute_alist_mapper): Likewise.
412         (Fchar_attribute_alist): Likewise.
413         (Fget_char_attribute): Likewise.
414         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
415         as same as character as the first argument like `put-char-table';
416         modify for interface change of `put_char_id_table'.
417         (Fremove_char_attribute): Modify for interface change of
418         `put_char_id_table'.
419
420 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
421
422         * text-coding.c: Sync up with XEmacs 21.2.41.
423         (COMPOSE_ADD_CHAR): Modify for interface change of
424         `get_char_id_table'.
425
426         * mule-charset.c (put_char_ccs_code_point): Modify for interface
427         change of `put_char_id_table'.
428         (remove_char_ccs): Likewise.
429
430         * chartab.h (put_char_id_table): Change interface.
431
432         * char-ucs.h (get_char_id_table): Change interface.
433         (charset_code_point): Modify for interface change of
434         `get_char_id_table'.
435         (encode_char_1): Likewise.
436
437 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
438
439         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
440         argument `ccs'.
441         (map_over_uint16_byte_table): Likewise.
442         (map_over_byte_table): Likewise.
443         (map_char_id_table): Add new argument `range' like
444         `map_char_table'.
445         (Fmap_char_attribute): Add new argument `range' like
446         `Fmap_char_table'.
447
448 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
449
450         * chartab.c (map_over_uint8_byte_table): Change interface of
451         mapping function to use struct chartab_range instead of Emchar.
452         (map_over_uint16_byte_table): Likewise.
453         (map_over_byte_table): Likewise.
454         (map_char_id_table): Likewise.
455         (struct slow_map_char_id_table_arg): Deleted.
456         (slow_map_char_id_table_fun): Deleted.
457         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
458         function `slow_map_char_table_fun' instead of struct
459         `slow_map_char_id_table_arg' and function
460         `slow_map_char_id_table_fun'.
461
462 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
463
464         * mule-charset.c: Move char-it-table related codes to chartab.c.
465         (Vutf_2000_version): Moved to chartab.c.
466         (Fdefine_char): Likewise.
467         (Ffind_char): Likewise.
468         (syms_of_mule_charset): Move types `uint8-byte-table',
469         `uint16-byte-table', `byte-table' and `char-id-table' to
470         chartab.c; move functions `char_attribute_list,
471         `find_char_attribute_table, `char_attribute_alist,
472         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
473         `map_char_attribute, `define_char, `find_char, `char_variants and
474         `get_composite_char to chartab.c; move symbols `=>ucs',
475         `->decomposition', `compat', `isolated', `initial', `medial',
476         `final', `vertical', `noBreak', `fraction', `super', `sub',
477         `circle', `square', `wide', `narrow', `small' and `font' to
478         chartab.c.
479         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
480         setting codes for `Vcharacter_composition_table' and
481         `Vcharacter_variant_table' to chartab.c.
482         (complex_vars_of_mule_charset): Move setting code for
483         `Vchar_attribute_hash_table' to chartab.c.
484
485         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
486         (make_char_id_table): New prototype.
487         (put_char_id_table): Likewise.
488         (Fget_char_attribute): Likewise.
489
490         * chartab.c: Move char-id-table related code from mule-charset.c.
491         (Vutf_2000_version): Moved from mule-charset.c.
492
493         * char-ucs.h (Qucs): New external variable.
494         (put_char_ccs_code_point): New prototype.
495         (remove_char_ccs): Likewise.
496
497 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
498
499         * mule-charset.c (Vcharset_ucs_jis): New variable.
500         (Qucs_jis): Likewise.
501         (syms_of_mule_charset): Add new symbol `ucs-jis'.
502         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
503
504         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
505
506 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
507
508         * mule-charset.c (map_over_uint8_byte_table): New function.
509         (map_over_uint16_byte_table): Likewise.
510         (map_over_byte_table): Likewise.
511         (map_char_id_table): Likewise.
512         (slow_map_char_id_table_fun): Likewise.
513         (Fmap_char_attribute): Likewise.
514         (syms_of_mule_charset): Add new function `map-char-attribute'.
515
516 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
517
518         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
519         (syms_of_mule_charset): Add new function `find-char'.
520
521 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
522
523         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
524         XEmacs UTF-2000.
525         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
526         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
527         XEmacs UTF-2000.
528         (complex_vars_of_mule_charset): Add new coded-charset
529         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
530         `ideograph-gt-pj-*'.
531
532         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
533
534 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
535
536         * mule-charset.c (encode_builtin_char_1): Purge codes about
537         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
538         {MIN|MAX}_CHAR_HEBREW.
539         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
540         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
541
542         * char-ucs.h (MIN_CHAR_GREEK): Purged.
543         (MAX_CHAR_GREEK): Purged.
544         (MIN_CHAR_CYRILLIC): Purged.
545         (MAX_CHAR_CYRILLIC): Purged.
546         (MIN_CHAR_HEBREW): Commented out.
547         (MAX_CHAR_HEBREW): Likewise.
548
549 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
550
551         * mule-charset.c (Qto_ucs): New variable.
552         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
553         (Fdefine_char): Likewise.
554         (syms_of_mule_charset): Add new symbol `=>ucs'.
555
556 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
557
558         * mule-charset.c (Fdecode_char): Fixed.
559
560 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
561
562         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
563         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
564         "tcvn5712-1".
565
566 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
567
568         * mule-charset.c (Vcharset_ucs_big5): New variable.
569         (Qucs_big5): Likewise.
570         (syms_of_mule_charset): Add new symbol `ucs-big5'.
571         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
572
573         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
574
575 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
576
577         * mule-charset.c (decode_builtin_char): Check Big5 code range
578         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
579
580 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
581
582         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
583         (Qchinese_gb12345): Likewise.
584         (Fdecode_builtin_char): Fixed.
585         (syms_of_mule_charset): Add `chinese-gb12345'.
586         (complex_vars_of_mule_charset): Add coded-charset
587         `chinese-gb12345'.
588
589         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
590         (LEADING_BYTE_CHINESE_GB12345): New macro.
591
592 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
593
594         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
595         and `latin-viscii-upper' for `latin-viscii'.
596
597 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
598
599         * mule-charset.c (Fdecode_builtin_char): Comment out
600         regularization code for ISO-IR GR representation.
601
602 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
603
604         * mule-charset.c (decode_builtin_char): New function; renamed from
605         `make_builtin_char'; return -1 instead of signal.
606         (Fdecode_builtin_char): Use `decode_builtin_char'.
607
608         * char-ucs.h (decode_builtin_char): New prototype; renamed from
609         `make_builtin_char'.
610         (DECODE_CHAR): Use `decode_builtin_char' instead of
611         `make_builtin_char'; use mapping table of `chinese-big5' for
612         `chinese-big5-{1,2}'.
613
614 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
615
616         * text-coding.c (char_encode_big5): New function.
617         (char_finish_big5): Likewise.
618         (reset_encoding_stream): Use `char_encode_big5' and
619         `char_finish_big5' for CODESYS_BIG5.
620         (mule_encode): Don't use `encode_coding_big5'.
621         (encode_coding_big5): Deleted.
622
623 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
624
625         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
626         0x81- in XEmacs UTF-2000.
627         (detect_coding_big5): Likewise.
628
629 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
630
631         * mule-charset.c (Fdefine_char): Don't use a CCS property to
632         generate character-id if the CCS property does not have
633         corresponding predefined character.
634         (make_builtin_char): Return -1 if corresponding predefined
635         character is not found.
636         (Fdecode_char): Return nil if corresponding character is not
637         found.
638         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
639         don't map to builtin ucs space.
640
641 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
642
643         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
644         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
645
646 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
647
648         * mule-charset.c (Vcharset_ideograph_gt): New variable.
649         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
650         (Qideograph_gt): Likewise.
651         (Qideograph_gt_pj_{1..11}): Likewise.
652         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
653         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
654         `ideograph-gt-pj-11'.
655         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
656         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
657         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
658
659         * char-ucs.h (LEADING_BYTE_GT): New macro.
660         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
661         (MIN_CHAR_GT): Likewise.
662         (MAX_CHAR_GT): Likewise.
663
664 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
665
666         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
667         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
668
669         * doprnt.c (unsigned_int_converters): Add `c'.
670         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
671
672         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
673         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
674         `MIN_CHAR_MOJIKYO'.
675         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
676         (MAX_CHAR_MOJIKYO_0): New macro.
677         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
678
679 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
680
681         * mule-charset.c (Fdefine_char): Delete cemented out code.
682         (encode_builtin_char_1): Modify for new allocation of builtin
683         Mojikyo characters.
684
685         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
686
687 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
688
689         * mule-charset.c (Vcharset_ucs_cns): New variable.
690         (Qucs_cns): New variable.
691         (syms_of_mule_charset): Add new symbol `ucs-cns'.
692         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
693
694 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
695
696         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
697
698 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
699
700         * search.c (search_buffer): Make `charset_base_code' as
701         character-id >> 6 to eliminate the corresponding last byte in
702         UTF-8 representation [I'm not sure it is right thing].
703         (boyer_moore): Likewise.
704
705 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
706
707         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
708         representation in MULE.
709
710 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
711
712         * text-coding.c (Fmake_coding_system): Use
713         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
714         `EXTERNAL_PROPERTY_LIST_LOOP'.
715
716 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
717
718         * text-coding.c (decode_output_utf8_partial_char): New function.
719         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
720
721 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
722
723         * text-coding.c (decode_coding_utf8): Output original byte
724         sequence if it is broken; change order of conditions.
725
726         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
727         of conditions.
728
729         * mb-multibyte.h (BYTE_ASCII_P):
730         Use bit ops for char-signedness safety.
731         (BYTE_C0_P): Use bit ops for char-signedness safety.
732         (BYTE_C1_P): Use bit ops for char-signedness safety.
733
734         * character.h: (XCHAR_OR_CHAR_INT):
735         Always use inline function.
736         Remove redundant type checking assert() - XINT will abort quite
737         nicely.
738
739 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
740
741         * text-coding.c: (Fencode_shift_jis_char):
742         (Fencode_big5_char):
743         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
744         Replace 0 with '\0' when working with bytes.
745         Replace initial "(" with "\(" in docstrings.
746
747         (Fmake_coding_system):
748         When type is ccl and value is vector, register it with a proper
749         symbol.  And checks whether the given ccl program is valid.
750         (mule_decode): When calling ccl_driver, if src indicates
751         NULL pointer, set an empty string instead.
752         (mule_encode): Likewise.
753
754         (detect_eol_type):
755         (detect_coding_sjis):
756         (decode_coding_sjis):
757         (detect_coding_big5):
758         (decode_coding_big5):
759         (detect_coding_ucs4):
760         (decode_coding_ucs4):
761         (detect_coding_utf8):
762         (decode_coding_utf8):
763         (detect_coding_iso2022):
764         (decode_coding_iso2022):
765         (decode_coding_no_conversion):
766         (mule_decode):
767         Make all detecting and decoding functions take an Extbyte * arg.
768         (text_encode_generic):
769         (encode_coding_big5):
770         (encode_coding_no_conversion):
771         (mule_encode):
772         Make all encoding functions take a Bufbyte * arg.
773         Use size_t instead of unsigned int for memory sizes.
774         Only cast to unsigned char whenever dereferencing Extbyte *.
775
776         (struct lrecord_description fcd_description_1): Use countof.
777         (complex_vars_of_file_coding):
778         Use countof instead of sizeof.
779         Use CHECK_NATNUM instead of CHECK_INT.
780
781 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
782
783         * mule-charset.c (Fget_char_attribute): Add new optional argument
784         `default-value'.
785         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
786         (remove_char_ccs): Likewise.
787
788 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
789
790         * text-coding.c (char_encode_shift_jis): New implementation in
791         UTF-2000.
792         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
793         ...)'.
794
795         * mule-charset.c (Vcharset_chinese_big5): New variable in
796         UTF-2000.
797         (Qchinese_big5): New variable in UTF-2000.
798         (BIG5_SAME_ROW): New macro in UTF-2000.
799         (make_builtin_char): Use builtin characters of
800         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
801         characters of `Vcharset_chinese_big5'.
802         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
803         (complex_vars_of_mule_charset): Add new coded-charset
804         `chinese-big5' in UTF-2000.
805
806         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
807         (Vcharset_chinese_big5): New external variable declaration.
808         (Vcharset_japanese_jisx0208_1990): Likewise.
809
810 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
811
812         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
813         function.
814         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
815
816 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
817
818         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
819         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
820         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
821         `mojikyo-pj-*'.
822
823 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
824
825         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
826
827 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
828
829         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
830         to 0.17.
831
832 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
833
834         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
835         for `CHARSET_BY_ATTRIBUTES'.
836         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
837         `CHARSET_BY_ATTRIBUTES'.
838
839         * text-coding.c (struct decoding_stream): Rename member `CH' to
840         `CPOS'.
841         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
842         (decode_coding_sjis): Likewise.
843         (decode_coding_big5): Likewise.
844         (decode_coding_ucs4): Likewise.
845         (decode_coding_utf8): Likewise.
846         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
847         `CHARSET_BY_ATTRIBUTES'.
848         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
849         `str->counter'; decode 3, 4 bytes sets.
850         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
851         sets.
852         (decode_coding_no_conversion): Use `str->cpos' instead of
853         `str->ch'.
854
855         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
856         (Qmojikyo_2022_1): New variable.
857         (make_charset): Don't use `CHARSET_TYPE_*'.
858         (range_charset_code_point): Support coded-charset
859         `mojikyo-2022-1'.
860         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
861         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
862         `CHARSET_BY_ATTRIBUTES'.
863         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
864         `CHARSET_BY_ATTRIBUTES'.
865         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
866         (complex_vars_of_mule_charset): Add new coded-charset
867         `mojikyo-2022-1'.
868
869         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
870         interface; changed to inline function.
871
872         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
873         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
874         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
875         (CHARSET_TYPE_94): Deleted.
876         (CHARSET_TYPE_94X94): Deleted.
877         (CHARSET_TYPE_96): Deleted.
878         (CHARSET_TYPE_96X96): Deleted.
879         (CHARSET_TYPE_128): Deleted.
880         (CHARSET_TYPE_128X128): Deleted.
881         (CHARSET_TYPE_256): Deleted.
882         (CHARSET_TYPE_256X256): Deleted.
883         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
884         to inline function.
885         (DECODE_MOJIKYO_2022): New inline function.
886         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
887         `Vcharset_mojikyo_2022_1'.
888
889 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
890
891         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
892         instead of `EQ'.
893         (put_byte_table): Likewise.
894         (char_id_table_equal): Use `get_byte_table' [new implementation].
895
896 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
897
898         * mule-charset.c: Include <limits.h> in UTF-2000.
899         (BT_UINT8_MIN): New macro in UTF-2000.
900         (BT_UINT8_MAX): New macro in UTF-2000.
901         (BT_UINT8_t): New macro in UTF-2000.
902         (BT_UINT8_nil): New macro in UTF-2000.
903         (BT_UINT8_unbound): New macro in UTF-2000.
904         (INT_UINT8_P): New inline function in UTF-2000.
905         (UINT8_VALUE_P): New inline function in UTF-2000.
906         (UINT8_ENCODE): New inline function in UTF-2000.
907         (UINT8_DECODE): New inline function in UTF-2000.
908         (mark_uint8_byte_table): New function in UTF-2000.
909         (print_uint8_byte_table): New function in UTF-2000.
910         (uint8_byte_table_equal): New function in UTF-2000.
911         (uint8_byte_table_hash): New function in UTF-2000.
912         (make_uint8_byte_table): New function in UTF-2000.
913         (uint8_byte_table_same_value_p): New function in UTF-2000.
914         (BT_UINT16_MIN): New macro in UTF-2000.
915         (BT_UINT16_MAX): New macro in UTF-2000.
916         (BT_UINT16_t): New macro in UTF-2000.
917         (BT_UINT16_nil): New macro in UTF-2000.
918         (BT_UINT16_unbound): New macro in UTF-2000.
919         (INT_UINT16_P): New inline function in UTF-2000.
920         (UINT16_VALUE_P): New inline function in UTF-2000.
921         (UINT16_ENCODE): New inline function in UTF-2000.
922         (UINT16_DECODE): New inline function in UTF-2000.
923         (UINT8_TO_UINT16): New inline function in UTF-2000.
924         (mark_uint16_byte_table): New function in UTF-2000.
925         (print_uint16_byte_table): New function in UTF-2000.
926         (uint16_byte_table_equal): New function in UTF-2000.
927         (uint16_byte_table_hash): New function in UTF-2000.
928         (make_uint16_byte_table): New function in UTF-2000.
929         (uint16_byte_table_same_value_p): New function in UTF-2000.
930         (print_byte_table): New function in UTF-2000.
931         (byte-table): Use `print_byte_table' as printer.
932         (make_byte_table): Delete second argument `older'.
933         (byte_table_same_value_p): New function in UTF-2000.
934         (copy_byte_table): Deleted.
935         (get_byte_table): New function in UTF-2000.
936         (put_byte_table): New function in UTF-2000.
937         (print_char_id_table): New function in UTF-2000.
938         (char-id-table): Use `print_char_id_table' as printer.
939         (make_char_id_table): Delete second argument `older'.
940         (get_char_id_table): Use `get_byte_table [new implementation].
941         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
942         implementation].
943         (Ffind_char_attribute_table): New function in UTF-2000.
944         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
945         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
946         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
947         (syms_of_mule_charset): Add new function
948         `find-char-attribute-table' in UTF-2000.
949
950         * lrecord.h (enum lrecord_type): Add
951         `lrecord_type_uint16_byte_table' and
952         `lrecord_type_uint8_byte_table'.
953
954         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
955         (Lisp_Uint8_Byte_Table): New type.
956         (XUINT8_BYTE_TABLE): New macro.
957         (XSETUINT8_BYTE_TABLE): New macro.
958         (UINT8_BYTE_TABLE_P): New macro.
959         (GC_UINT8_BYTE_TABLE_P): New macro.
960         (struct Lisp_Uint16_Byte_Table): New structure.
961         (Lisp_Uint16_Byte_Table): New type.
962         (XUINT16_BYTE_TABLE): New macro.
963         (XSETUINT16_BYTE_TABLE): New macro.
964         (UINT16_BYTE_TABLE_P): New macro.
965         (GC_UINT16_BYTE_TABLE_P): New macro.
966
967 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
968
969         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
970         (Vcharacter_ideographic_strokes_table): Deleted.
971         (Vcharacter_total_strokes_table): Deleted.
972         (Vcharacter_morohashi_daikanwa_table): Deleted.
973         (Vcharacter_decomposition_table): Deleted.
974         (Qname): Deleted because it is duplicated.
975         (Qideographic_radical): Deleted.
976         (Qideographic_strokes): Deleted.
977         (Qtotal_strokes): Deleted.
978         (Qmorohashi_daikanwa): Deleted.
979         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
980         `ideographic-radical', `ideographic-strokes', `total-strokes',
981         `morohashi-daikanwa' and `->decomposition'.
982         (Fget_char_attribute): Likewise.
983         (Fput_char_attribute): Likewise; use `make-vector' instead of
984         `make_older_vector' for `->decomposition' value.
985         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
986         `ideograph-daikanwa'.
987         (syms_of_mule_charset): Delete builtin symbols `name',
988         `ideographic-radical', `ideographic-strokes', `total-strokes' and
989         `morohashi-daikanwa'.
990         (vars_of_mule_charset): Don't setup
991         `Vcharacter_ideographic_radical_table',
992         `Vcharacter_ideographic_strokes_table',
993         `Vcharacter_total_strokes_table',
994         `Vcharacter_morohashi_daikanwa_table' and
995         `Vcharacter_decomposition_table'.
996
997 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
998
999         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
1000         `make_older_vector', `make_vector_newer_1' and
1001         `make_vector_newer'.
1002
1003         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
1004         `make_older_vector' and `make_vector_newer'.
1005
1006         * config.h.in (HAVE_GGC): New macro.
1007
1008 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1009
1010         * mule-charset.c (struct char_attribute_list_closure): New
1011         structure in UTF-2000.
1012         (add_char_attribute_to_list_mapper): New function in UTF-2000.
1013         (Fchar_attribute_list): Likewise.
1014         (Fset_charset_mapping_table): Use `make_vector_newer'.
1015         (Fdecode_builtin_char): New function in UTF-2000.
1016         (syms_of_mule_charset): Add new function `char-attribute-list' and
1017         `decode-builtin-char' in UTF-2000.
1018
1019         * lisp.h (make_vector_newer): New prototype.
1020
1021         * alloc.c (make_vector_newer_1): New function.
1022         (make_vector_newer): New function.
1023
1024 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1025
1026         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
1027         50100)'.
1028
1029 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1030
1031         * mule-charset.c (Vchar_attribute_hash_table): New variable.
1032         (Vcharacter_attribute_table): Deleted.
1033         (Vcharacter_name_table): Deleted.
1034         (put_char_attribute): Deleted.
1035         (remove_char_attribute): Deleted.
1036         (struct char_attribute_alist_closure): New structure.
1037         (add_char_attribute_alist_mapper): New function.
1038         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
1039         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
1040         (Fget_char_attribute): Likewise.
1041         (Fput_char_attribute): Likewise.
1042         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
1043         of `remove_char_attribute'.
1044         (Fdefine_char): Return character.
1045         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
1046         and `Vcharacter_name_table'.
1047         (complex_vars_of_mule_charset): Likewise
1048         `Vchar_attribute_hash_table'.
1049
1050 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1051
1052         * character.h (CHARC_CHARSET): New macro.
1053         (CHARC_CHARSET_ID): New macro.
1054         (CHARC_CODE_POINT): New macro.
1055         (CHARC_COLUMNS): New macro.
1056         (CHARC_TO_CHAR): New inline function.
1057         (CHARC_EQ): New inline function.
1058         (CHARC_ASCII_EQ): New inline function.
1059         (CHARC_IS_SPACE): New inline function.
1060         (ASCII_TO_CHARC): New inline function.
1061
1062         * char-ucs.h (encode_char_2): Deleted.
1063         (ENCODE_CHAR): Use `encode_char_1' again.
1064         (breakup_char_1): Likewise.
1065         (CHAR_TO_CHARC): New inline function.
1066
1067         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
1068
1069 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1070
1071         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
1072         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
1073         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
1074         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
1075         (create_string_text_block): Use `CHARC_ASCII_EQ' and
1076         `CHARC_IS_SPACE'.
1077         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
1078
1079         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
1080         `CHARC_CODE_POINT'.
1081         (x_output_display_block): Use `CHARC_CHARSET' and
1082         `CHARC_ASCII_EQ'.
1083
1084         * redisplay-tty.c (tty_output_display_block): Use
1085         `CHARC_ASCII_EQ'.
1086         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
1087
1088         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
1089
1090         * insdel.c (find_charsets_in_charc_string): Use
1091         `CHARC_CHARSET_ID'.
1092         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
1093         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
1094         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
1095         (convert_charc_string_into_malloced_string): Likewise.
1096
1097 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1098
1099         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
1100         instead of <Emchar_dynarr *> for buf; use
1101         `convert_bufbyte_string_into_charc_dynarr' instead of
1102         `convert_bufbyte_string_into_emchar_dynarr'; use
1103         `find_charsets_in_charc_string' instead of
1104         `find_charsets_in_emchar_string'.
1105
1106         * redisplay.h:
1107         - Include "character.h".
1108         (struct rune): New member `cglyph'; delete member `chr'.
1109
1110         * redisplay.c (redisplay_text_width_charc_string): New function;
1111         delete `redisplay_text_width_emchar_string'.
1112         (rtw_charc_dynarr): New variable; renamed from
1113         `rtw_emchar_dynarr'.
1114         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
1115         `rtw_emchar_dynarr'; use
1116         `convert_bufbyte_string_into_charc_dynarr' instead of
1117         `convert_bufbyte_string_into_emchar_dynarr'; use
1118         `redisplay_text_width_charc_string' instead of
1119         `redisplay_text_width_emchar_string'.
1120         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
1121         instead of `rtw_emchar_dynarr'; use
1122         `convert_bufbyte_string_into_charc_dynarr' instead of
1123         `convert_bufbyte_string_into_emchar_dynarr'.
1124         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
1125         `redisplay_text_width_charc_string' instead of
1126         `redisplay_text_width_emchar_string'.
1127         (create_text_block): Modify for <struct rune> change.
1128         (generate_formatted_string_db): Likewise.
1129         (create_string_text_block): Likewise.
1130         (pixel_to_glyph_translation): Likewise.
1131
1132         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
1133         instead of <const Emchar *>.
1134         (x_text_width): Likewise.
1135         (x_output_display_block): Use <Charc_dynarr *> instead
1136         <Emchar_dynarr *>; modify for <structure rune> change.
1137         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
1138         *>.
1139
1140         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
1141         <const Emchar *>; use `charc_string_displayed_columns' instead of
1142         `emchar_string_displayed_columns'.
1143         (tty_output_display_block): Use <Charc_dynarr *> instead of
1144         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
1145         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
1146         (tty_output_charc_dynarr_dynarr): New variable; renamed from
1147         `tty_output_emchar_dynarr_dynarr'.
1148         (tty_output_charc_dynarr): New function; delete
1149         `tty_output_charc_dynarr'.
1150
1151         * redisplay-output.c (compare_runes): Modify for `struct rune'.
1152         (redisplay_output_layout): Use <Charc_dynarr *> instead of
1153         <Emchar_dynarr *> for buf; use
1154         `convert_bufbyte_string_into_charc_dynarr' instead of
1155         `convert_bufbyte_string_into_emchar_dynarr'.
1156
1157         * frame.c (title_string_charc_dynarr): New variable; renamed from
1158         `title_string_emchar_dynarr'.
1159         (generate_title_string): Use `title_string_charc_dynarr' instead
1160         of `title_string_emchar_dynarr'; use
1161         `convert_charc_string_into_malloced_string' instead of
1162         `convert_emchar_string_into_malloced_string'.
1163         (init_frame): Use `title_string_charc_dynarr' instead of
1164         `title_string_emchar_dynarr'.
1165
1166         * console.h:
1167         - Include "character.h".
1168         (struct console_methods): Use <const Charc *> instead of <const
1169         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
1170         <Emchar_dynarr *> in output_string_method.
1171
1172         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
1173         <Emchar_dynarr *>.
1174
1175         * console-stream.c (stream_text_width): Use <const Charc *>
1176         instead of <const Emchar *>.
1177
1178         * character.h (Charc_dynarr): New type.
1179
1180         * char-ucs.h (structure Charc): New structure; define new type
1181         `Charc'.
1182
1183         * char-lb.h (DECODE_CHAR): New inline function.
1184         (encode_char_1): New inline function.
1185         (ENCODE_CHAR): New macro.
1186         (structure Charc): New structure; define new type `Charc'.
1187
1188         * char-1byte.h (Vcharset_control_1): New macro.
1189         (Vcharset_latin_iso8859_1): New macro.
1190         (DECODE_CHAR): New inline function.
1191         (encode_char_1): New inline function.
1192         (ENCODE_CHAR): New macro.
1193         (structure Charc): New structure; define new type `Charc'.
1194
1195         * insdel.c (find_charsets_in_charc_string): New function; delete
1196         `find_charsets_in_emchar_string'.
1197         (charc_string_displayed_columns): New function; delete
1198         `emchar_string_displayed_columns'.
1199         (convert_bufbyte_string_into_charc_dynarr): New function; delete
1200         `convert_bufbyte_string_into_emchar_dynarr'.
1201         (convert_charc_string_into_bufbyte_dynarr): New function; delete
1202         `convert_charc_string_into_bufbyte_dynarr'.
1203         (convert_charc_string_into_malloced_string): New function; delete
1204         `convert_charc_string_into_malloced_string'.
1205
1206         * buffer.h (find_charsets_in_charc_string): New prototype; delete
1207         `find_charsets_in_emchar_string'.
1208         (charc_string_displayed_columns): New prototype; delete
1209         `emchar_string_displayed_columns'.
1210         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
1211         `convert_charc_string_into_bufbyte_dynarr'.
1212         (convert_charc_string_into_malloced_string): New prototype; delete
1213         `convert_charc_string_into_malloced_string'.
1214
1215 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1216
1217         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
1218
1219 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1220
1221         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
1222
1223         * char-ucs.h: Use <short> for <Charset_ID>.
1224
1225         * mule-charset.h, char-1byte.h: Use <unsigned char> for
1226         <Charset_ID>.
1227
1228 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1229
1230         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1231         to 0.16.
1232
1233 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1234
1235         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
1236         variable.
1237         (Qmorohashi_daikanwa): New variable.
1238         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
1239         for `morohashi-daikanwa' attribute.
1240         (Fget_char_attribute): Likewise.
1241         (Fput_char_attribute): Likewise.
1242         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
1243         has the same value of `ideograph-daikanwa'.
1244         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
1245         (vars_of_mule_charset): Setup
1246         `Vcharacter_morohashi_daikanwa_table'.
1247
1248 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1249
1250         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
1251         attributes.
1252         (add_charset_to_list_mapper): Add `key' instead of
1253         `XCHARSET_NAME (value)' to return aliases.
1254
1255 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1256
1257         * mule-charset.c (Vcharacter_ideographic_radical_table): New
1258         variable.
1259         (Vcharacter_ideographic_strokes_table): New variable.
1260         (Qideographic_radical): New variable.
1261         (Qideographic_strokes): New variable.
1262         (Fchar_attribute_alist): Use
1263         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
1264         attribute; use `Vcharacter_ideographic_strokes_table' for
1265         `ideographic-strokes' attribute.
1266         (Fget_char_attribute): Likewise.
1267         (Fput_char_attribute): Likewise.
1268         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
1269         `ideographic-strokes'.
1270         (vars_of_mule_charset): Setup
1271         `Vcharacter_ideographic_radical_table' and
1272         `Vcharacter_ideographic_strokes_table'.
1273
1274 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1275
1276         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
1277         (Qtotal_strokes): New variable.
1278         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
1279         `total-strokes' attribute.
1280         (Fget_char_attribute): Likewise.
1281         (Fput_char_attribute): Likewise.
1282         (syms_of_mule_charset): Add new symbol `total-strokes'.
1283         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
1284
1285 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1286
1287         * mule-charset.c (Vcharacter_decomposition_table): New variable.
1288         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
1289         are found.
1290         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
1291         `->decomposition' attribute.
1292         (Fput_char_attribute): Likewise.
1293         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
1294
1295 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1296
1297         * mule-charset.c (decoding_table_check_elements): New function.
1298         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
1299
1300 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1301
1302         * mule-charset.c (Fset_charset_mapping_table): Use
1303         `put_char_ccs_code_point'.
1304
1305 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1306
1307         * mule-charset.c (decoding_table_put_char): New inline function.
1308         (put_char_ccs_code_point): Use `decoding_table_put_char'.
1309
1310 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1311
1312         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
1313         (XCHARSET_BYTE_SIZE): New macro.
1314         (decoding_table_remove_char): New inline function.
1315         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
1316         `decoding_table_remove_char'.
1317         (remove_char_ccs): Use `decoding_table_remove_char'.
1318         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
1319
1320 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1321
1322         * mule-charset.c (Vcharacter_name_table): New variable.
1323         (Qname): New variable.
1324         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
1325         attribute.
1326         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
1327         `Vcharacter_name_table' for `name' attribute.
1328         (Fremove_char_attribute): Use function `remove_char_ccs'.
1329         (put_char_ccs_code_point): New function.
1330         (remove_char_ccs): New function.
1331         (syms_of_mule_charset): Add new symbol `name'.
1332         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
1333
1334 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1335
1336         * mule-charset.c (make_byte_table): Add new argument `older'.
1337         (make_char_id_table): Likewise.
1338         (copy_char_id_table): Comment out because it is not used.
1339         (put_char_id_table): Modify for `make_byte_table'.
1340         (Fput_char_attribute): Make encoding_table as older object;
1341         inherit older bit of `Vcharacter_composition_table'.
1342         (mark_charset): Don't mark `cs->encoding_table'.
1343         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
1344         normal object; make `Vcharacter_composition_table' as an older
1345         object; delete staticpro for `Vcharacter_composition_table'; make
1346         `Vcharacter_variant_table' as a normal object.
1347
1348         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
1349         (mark_object): Don't check older object in UTF-2000.
1350
1351         * lrecord.h (struct lrecord_header): Add new member `older' in
1352         UTF-2000.
1353         (set_lheader_implementation): Setup `SLI_header->older' in
1354         UTF-2000.
1355         (set_lheader_older_implementation): New macro in UTF-2000.
1356         (OLDER_RECORD_P): New macro in UTF-2000.
1357         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
1358         (alloc_older_lcrecord): New prototype in UTF-2000.
1359         (alloc_older_lcrecord_type): New macro in UTF-2000.
1360
1361 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1362
1363         * mule-charset.c (byte_table_description): Use
1364         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
1365         (char_id_table_description): Delete bogus `, 1'.
1366         (Fget_char_attribute): Refer encoding_table of each coded-charset
1367         to get value of coded-charset attribute of a character.
1368         (Fput_char_attribute): Use `make_older_vector' instead of
1369         `make_vector'; use encoding_table of each coded-charset to store
1370         value of coded-charset attribute of a character.
1371         (Fremove_char_attribute): Use encoding_table of each coded-charset
1372         to store value of coded-charset attribute of a character.
1373         (mark_charset): Mark `cs->encoding_table'; don't mark
1374         `cs->decoding_table'.
1375         (charset_description): Add description of new member
1376         `encoding_table'.
1377         (make_charset): Initialize `encoding_table'.
1378
1379         * char-ucs.h (struct Lisp_Charset): Add new member
1380         `encoding_table'.
1381         (CHARSET_ENCODING_TABLE): New macro.
1382         (XCHARSET_ENCODING_TABLE): New macro.
1383         (charset_code_point): New implementation.
1384         (encode_char_1): Likewise.
1385
1386         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
1387         (disksave_object_finalization_1): Call finalizers of
1388         `all_older_lcrecords' in UTF-2000.
1389         (make_older_vector): New function in UTF-2000.
1390         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
1391         UTF-2000.
1392
1393         * lisp.h (make_older_vector): New prototype in UTF-2000.
1394
1395 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1396
1397         * lrecord.h (enum lrecord_type): Rename
1398         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
1399
1400         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
1401         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
1402         `get_char_code_table'.
1403
1404         * mule-charset.c (mark_char_id_table): Renamed from
1405         `mark_char_code_table'.
1406         (char_id_table_equal): Renamed from `char_code_table_equal'.
1407         (char_id_table_hash): Renamed from `char_code_table_hash'.
1408         (make_char_id_table): Renamed from `make_char_code_table'.
1409         (copy_char_id_table): Renamed from `copy_char_code_table'.
1410         (get_char_id_table): Renamed from `get_char_code_table'.
1411         (put_char_id_table): Renamed from `put_char_code_table'.
1412         (to_char_id): Renamed from `to_char_code'.
1413
1414         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
1415         `Lisp_Char_Code_Table'.
1416         (char_id_table): Renamed from `char_code_table'.
1417         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
1418         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
1419         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
1420         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
1421         (get_char_id_table): Renamed from `get_char_code_table'.
1422
1423 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1424
1425         * lrecord.h (enum lrecord_type): Rename
1426         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
1427
1428         * mule-charset.c (mark_byte_table): Renamed from
1429         `mark_char_byte_table'.
1430         (byte_table_equal): Renamed from `char_byte_table_equal'.
1431         (byte_table_hash): Renamed from `byte_table_hash'.
1432         (make_byte_table): Renamed from `make_byte_table'.
1433         (copy_byte_table): Renamed from `copy_char_byte_table'.
1434
1435         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
1436         `Lisp_Char_Byte_Table'.
1437         (byte_table): Renamed from `char_byte_table'.
1438         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
1439         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
1440         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
1441         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
1442
1443 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1444
1445         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
1446         (dfc_convert_to_internal_format): Likewise.
1447         
1448         * text-coding.c (Fcoding_system_canonical_name_p): New function.
1449         * text-coding.c (Fcoding_system_alias_p): New function.
1450         * text-coding.c (Fcoding_system_aliasee): New function.
1451         * text-coding.c (append_suffix_to_symbol): New function.
1452         * text-coding.c (dangling_coding_system_alias_p): New function.
1453         * text-coding.c (Ffind_coding_system):
1454         * text-coding.c (Fcopy_coding_system):
1455         * text-coding.c (encode_coding_no_conversion):
1456         * text-coding.c (syms_of_file_coding):
1457         * text-coding.c (vars_of_file_coding):
1458         Rewrite coding system alias code.
1459         Allow nested aliases, like symbolic links.
1460         Allow redefinition of coding system aliases.
1461         Prevent existence of dangling coding system aliases.
1462         Eliminate convert_to_external_format.
1463         Eliminate convert_to_internal_format.
1464         
1465         * text-coding.c: Change enum eol_type to eol_type_t.
1466
1467 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1468
1469         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
1470         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
1471
1472         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
1473         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
1474
1475 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1476
1477         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
1478         `ideograph-daikanwa'.
1479
1480         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
1481         (Vcharset_ucs_bmp): Likewise.
1482         (Vcharset_mojikyo): Add new extern variable definition.
1483         (Vcharset_latin_iso8859_2): Deleted because it is not used.
1484         (Vcharset_latin_iso8859_3): Likewise.
1485         (Vcharset_latin_iso8859_4): Likewise.
1486         (Vcharset_latin_iso8859_9): Likewise.
1487         (Vcharset_latin_viscii_lower): Likewise.
1488         (Vcharset_latin_viscii_upper): Likewise.
1489         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
1490         `mojikyo' code-point is used to decode.
1491         (encode_char_2): New function [to convert `mojikyo' code-point to
1492         Mojikyo font encoding].
1493         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
1494         (breakup_char_1): Likewise.
1495         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
1496
1497 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1498
1499         * text-coding.c (Fmake_coding_system): Add document about
1500         `disable-composition' property.
1501
1502 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1503
1504         * text-coding.c (Qdisable_composition): New variable; delete
1505         `Qcomposite'.
1506         (Fmake_coding_system): Add new property `disable-composite';
1507         delete property `composite'.
1508         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
1509         instead of `!CODING_SYSTEM_COMPOSITE'.
1510         (syms_of_file_coding): Add new symbol `disable-composition';
1511         delete symbol `composite'.
1512
1513         * file-coding.h (struct Lisp_Coding_System): Add
1514         `disable_composition'; delete `enable_composition'.
1515         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
1516         `CODING_SYSTEM_COMPOSITE'.
1517         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
1518         `XCODING_SYSTEM_COMPOSITE'.
1519
1520 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1521
1522         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1523         to 0.15.
1524
1525 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1526
1527         * text-coding.c (Qcomposite): New variable.
1528         (Fmake_coding_system): Add new property `composite'.
1529         (struct decoding_stream): Add `combined_char_count',
1530         `combined_chars' and `combining_table' in UTF-2000.
1531         (COMPOSE_FLUSH_CHARS): New macro.
1532         (COMPOSE_ADD_CHAR): New macro.
1533         (reset_decoding_stream): Reset `str->combined_char_count' and
1534         `str->combining_table' in UTF-2000.
1535         (decode_coding_iso2022): Modify for character-decomposition.
1536         (syms_of_file_coding): Add new symbol `composite'.
1537
1538 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1539
1540         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
1541         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
1542         of `Vcharacter_composition_table' if `->decomposition' property
1543         has only 1 element.
1544         (Qlatin_tcvn5712): New variable.
1545         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
1546         (complex_vars_of_mule_charset): Add new coded-charset
1547         `latin-tcvn5712'.
1548
1549         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
1550
1551 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1552
1553         * file-coding.h (struct Lisp_Coding_System): Add
1554         `enable_composition'.
1555         (CODING_SYSTEM_COMPOSITE): New macro.
1556         (XCODING_SYSTEM_COMPOSITE): New macro.
1557
1558 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
1559
1560         * mule-canna.c (c2mu): Fix problem with UTF-2000.
1561
1562 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
1563
1564         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
1565         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
1566
1567 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
1568
1569         * mule-charset.c (Vcharset_mojikyo): New variable.
1570         (Fdefine_char): Don't use coded-charset which does not have
1571         non-builtin character range to allocate character-id.
1572         (Qmojikyo): New variable.
1573         (syms_of_mule_charset): Add new symbol `mojikyo'.
1574         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
1575
1576         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
1577         (LEADING_BYTE_MOJIKYO): New macro.
1578         (MIN_CHAR_MOJIKYO): New macro.
1579         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
1580         (MAX_CHAR_MOJIKYO): New macro.
1581
1582 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
1583
1584         * mule-charset.c (remove_char_attribute): Fixed.
1585
1586 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
1587
1588         * mule-charset.c (remove_char_attribute): New function.
1589         (Fremove_char_attribute): New function.
1590         (encode_builtin_char_1): Comment out builtin-support for
1591         greek-iso8859-7 and cyrillic-iso8859-5.
1592         (Fdecode_char): Check `code' is an integer.
1593         (syms_of_mule_charset): Add `remove-char-attribute'.
1594         (MIN_CHAR_GREEK): Deleted.
1595         (MAX_CHAR_GREEK): Likewise.
1596         (MIN_CHAR_CYRILLIC): Likewise.
1597         (MAX_CHAR_CYRILLIC): Likewise.
1598         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
1599         MAX_CHAR_GREEK for `greek-iso8859-7'.
1600
1601         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
1602         (MAX_CHAR_GREEK): Likewise.
1603         (MIN_CHAR_CYRILLIC): Likewise.
1604         (MAX_CHAR_CYRILLIC): Likewise.
1605
1606 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
1607
1608         * mule-charset.c (Fdefine_char): Fix problem when new code-point
1609         format is used without `ucs' property.
1610         (Fdecode_char): Fix problem with GR representation.
1611         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
1612         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
1613
1614 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
1615
1616         * mule-charset.c (make_builtin_char): New function.
1617         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
1618         (Fset_charset_mapping_table): Modify for new representation of
1619         code-point.
1620         (Fdecode_char): New function.
1621         (syms_of_mule_charset): Add new builtin function `decode-char' in
1622         UTF-2000.
1623
1624         * char-ucs.h (make_builtin_char): New prototype.
1625         (DECODE_CHAR): New inline function.
1626         (MAKE_CHAR): Use `DECODE_CHAR'.
1627
1628 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
1629
1630         * text-coding.c (parse_charset_conversion_specs): Use
1631         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
1632         `XCHARSET_TYPE'.
1633         (iso2022_designate): Likewise.
1634
1635         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
1636         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
1637
1638         * mule-charset.c (Vcharset_ucs): New variable.
1639         (print_charset): Change design; use `CHARSET_CHARS' and
1640         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
1641         (make_charset): Change signature to specify `chars' and
1642         `dimension' instead of `type'.
1643         (range_charset_code_point): Modify for 256^n-set.
1644         (encode_builtin_char_1): Encode as `ucs' in default.
1645         (Fmake_charset): Modify for `make_charset'.
1646         (Fmake_reverse_direction_charset): Likewise.
1647         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
1648         UTF-2000.
1649         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
1650         for `make_charset'.
1651
1652         * char-ucs.h (Vcharset_ucs): New variable.
1653         (LEADING_BYTE_UCS): New macro.
1654         (struct Lisp_Charset): Delete `type'; change type of `dimension'
1655         and `chars' to `unsigned short' from `unsigned int'.
1656         (CHARSET_TYPE): Deleted.
1657         (XCHARSET_TYPE): Deleted.
1658
1659 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
1660
1661         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
1662
1663         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
1664         (ENCODE_CHAR): New macro.
1665
1666 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
1667
1668         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1669         to 0.14 (Kawachi-Katakami).
1670
1671 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
1672
1673         * text-coding.c (char_encode_shift_jis): Modify for
1674         `charset_code_point'.
1675         (char_encode_iso2022): Likewise.
1676
1677         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
1678         (integer) instead of list of <Lisp_Object>s (integers) as the
1679         format of code-point of a coded-charset.
1680         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
1681         (encode_builtin_char_1): New function; delete
1682         `split_builtin_char'.
1683         (charset_code_point): Return <int> instead of <Lisp_Object>.
1684         (Fsplit_char): Don't use `SPLIT_CHAR'.
1685
1686         * char-ucs.h (encode_builtin_char_1): New prototype; delete
1687         prototype for `split_builtin_char'.
1688         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
1689         (charset_code_point): Likewise.
1690         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
1691         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
1692
1693 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
1694
1695         * mule-charset.c (complex_vars_of_mule_charset): Don't define
1696         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
1697
1698 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
1699
1700         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
1701
1702         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
1703         (MAX_CHAR_OBS_94x94): Deleted.
1704
1705 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
1706
1707         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
1708
1709         * char-ucs.h (MAX_CHAR_BMP): New macro.
1710
1711 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
1712
1713         * text-coding.c: Sync with r21-2-24.
1714
1715 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
1716
1717         * file-coding.c: Modify for UTF-2000.
1718
1719 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
1720
1721         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1722         to 0.13 (Takaida).
1723
1724 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
1725
1726         * mule-charset.c (split_builtin_char): Delete builtin support for
1727         `katakana-jisx0201'.
1728         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
1729         BMP area in builtin representation.
1730
1731         * char-ucs.h (MAKE_CHAR): Delete builtin support for
1732         `Vcharset_katakana_jisx0201'.
1733
1734 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
1735
1736         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
1737         (Qisolated): New variable.
1738         (Qinitial): New variable.
1739         (Qmedial): New variable.
1740         (Qfinal): New variable.
1741         (Qvertical): New variable.
1742         (Qsmall): New variable.
1743         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
1744         `Qvertical' and `Qsmall'.
1745         (Qmojikyo_pj_[1 .. 21]): New variable.
1746         (syms_of_mule_charset): Add new symbols `isolated', `initial',
1747         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
1748         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
1749         .. 21]'.
1750
1751 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
1752
1753         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
1754         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
1755         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
1756
1757 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
1758
1759         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
1760         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
1761         BMP.
1762         (Qjapanese_jisx0208_1990): New variable.
1763         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
1764         (complex_vars_of_mule_charset): Add new coded-charset
1765         `japanese-jisx0208-1990'.
1766
1767         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
1768         (MIN_CHAR_JIS_X0208_1990): New macro.
1769         (MAX_CHAR_JIS_X0208_1990): New macro.
1770
1771 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1772
1773         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
1774         coded-charset is not found.
1775
1776 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1777
1778         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
1779         (Fdefine_char): Use `Fmake_char'.
1780
1781 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1782
1783         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
1784         (Vcharset_hiragana_jisx0208): Deleted.
1785         (Vcharset_katakana_jisx0208): Deleted.
1786         (Qideograph_daikanwa): New variable.
1787         (Qhiragana_jisx0208): Deleted.
1788         (Qkatakana_jisx0208): Deleted.
1789         (split_builtin_char): Split `ideograph-daikanwa'.
1790         (Fsplit_char): New implementation for UTF-2000.
1791         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
1792         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
1793         (complex_vars_of_mule_charset): Add new coded-charset
1794         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
1795         `katakana-jisx0208'.
1796
1797         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
1798         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
1799         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
1800         (MIN_CHAR_DAIKANWA): New macro.
1801         (MAX_CHAR_DAIKANWA): New macro.
1802
1803 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1804
1805         * data.c (Fstring_to_number): Don't recognize floating point if
1806         base is not 10.
1807
1808 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1809
1810         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
1811
1812 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1813
1814         * mule-charset.c (Qsquare): New variable.
1815         (to_char_code): Add `Qsquare'.
1816         (syms_of_mule_charset): Add new symbol `square'.
1817
1818 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1819
1820         * mule-charset.c (Qcircle): New variable.
1821         (to_char_code): Add `Qcircle'.
1822         (syms_of_mule_charset): Add new symbol `circle'.
1823
1824 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1825
1826         * mule-charset.c (Qfont): New variable.
1827         (to_char_code): Add `Qfont'.
1828         (syms_of_mule_charset): Add new symbol `font'.
1829
1830 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1831
1832         * mule-charset.c (Qsub): New variable.
1833         (to_char_code): Add `Qsub'.
1834         (syms_of_mule_charset): Add new symbol `sub'.
1835
1836 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1837
1838         * mule-charset.c (Fput_char_attribute): Convert each element of
1839         VALUE to GL position if ATTRIBUTE is a GR-set,
1840
1841 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1842
1843         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
1844         coded-charset is a GR-set.
1845
1846 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1847
1848         * mule-charset.c (Fput_char_attribute): Check each element of
1849         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
1850
1851 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1852
1853         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
1854         UTF-2000.
1855         (Qethiopic_ucs): New variable in UTF-2000.
1856         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
1857         (complex_vars_of_mule_charset): Add new coded-charset
1858         `ethiopic-ucs' in UTF-2000.
1859
1860         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
1861         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
1862         9)'.
1863         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
1864         10)'.
1865         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
1866
1867 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
1868
1869         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
1870         `ascii'.
1871
1872 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1873
1874         * mule-charset.c (Vcharacter_variant_table): New variable.
1875         (Q_ucs): New variable.
1876         (Fchar_variants): New function.
1877         (Fput_char_attribute): Register `->ucs' value to
1878         `Vcharacter_variant_table'.
1879         (syms_of_mule_charset): Add new function `char-variants' and new
1880         symbol `->ucs'.
1881         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
1882
1883 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1884
1885         * mule-charset.c (get_char_code_table): Allow negative character
1886         code.
1887         (put_char_code_table): Likewise.
1888         (Vcharacter_composition_table): New variable.
1889         (Q_decomposition): New variable.
1890         (Qwide): New variable.
1891         (Qnarrow): New variable.
1892         (Qcompat): New variable.
1893         (QnoBreak): New variable.
1894         (Qsuper): New variable.
1895         (Qfraction): New variable.
1896         (to_char_code): New function.
1897         (Fget_composite_char): New function.
1898         (Fput_char_attribute): Register `->decomposition' value to
1899         `Vcharacter_composition_table'.
1900         (syms_of_mule_charset): Add new function `get-composite-char', new
1901         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
1902         `super' and `fraction'.
1903         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
1904
1905 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1906
1907         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
1908         character; copy the return value.
1909
1910 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
1911
1912         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
1913
1914         * mule-charset.c (range_charset_code_point): Must use make_int.
1915         (split_builtin_char): New function.
1916
1917 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
1918
1919         * mule-charset.c (char_byte_table): Change name from
1920         "char-code-table" to "char-byte-table".
1921         (mark_char_code_table): New function.
1922         (char_code_table_equal): New function.
1923         (char_code_table_hash): New function.
1924         (char_code_table_description): New constant.
1925         (char_code_table): New type.
1926         (make_char_code_table): New function.
1927         (copy_char_code_table): New function.
1928         (get_char_code_table): Modify for `char_code_table' type.
1929         (put_char_code_table): Likewise.
1930         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
1931         (Kashiwara).
1932
1933         * char-ucs.h (char_code_table): New type.
1934         (XCHAR_CODE_TABLE): New macro.
1935         (XSETCHAR_CODE_TABLE): New macro.
1936         (CHAR_CODE_TABLE_P): New macro.
1937         (GC_CHAR_CODE_TABLE_P): New macro.
1938         (struct Lisp_Char_Code_Table): New structure.
1939
1940 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
1941
1942         * mule-charset.c (Fmake_charset): Setup byte_offset for
1943         {94|96}^n-set.
1944
1945 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1946
1947         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
1948         character.
1949
1950 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
1951
1952         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
1953         is found.
1954
1955 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
1956
1957         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
1958         charset, it is regarded as a charset.
1959         (put_char_attribute): New function in UTF-2000.
1960         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
1961         charset, mapping-table of the charset is modified.
1962         (Fdefine_char): New function in UTF-2000.
1963         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
1964         `Fput_char_attribute'.
1965         (syms_of_mule_charset): Add new function `define-char' and new
1966         symbol `ucs' in UTF-2000.
1967         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
1968
1969 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
1970
1971         * mule-charset.c (Fcharset_name): Define `byte_offset' in
1972         non-UTF-2000 configuration.
1973
1974 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
1975
1976         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
1977         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
1978
1979         * mule-charset.c (mark_charset): `cs->encoding_table' has been
1980         deleted.
1981         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
1982         (Fset_charset_mapping_table): Likewise.
1983
1984         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
1985         (CHARSET_ENCODING_TABLE): Delete.
1986         (XCHARSET_ENCODING_TABLE): Delete.
1987         (charset_code_point): New interface.
1988
1989 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
1990
1991         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
1992         instead of `charset_get_byte1' and `charset_get_byte2'.
1993
1994         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
1995         (charset_get_byte2): Deleted.
1996
1997 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
1998
1999         * char-ucs.h (SPLIT_CHAR): New inline function.
2000         (breakup_char_1): Use `SPLIT_CHAR'.
2001
2002         * mule-charset.c (range_charset_code_point): New function.
2003         (charset_code_point): New function.
2004
2005         * char-ucs.h (range_charset_code_point): New interface.
2006         (breakup_char_1): Use `range_charset_code_point'.
2007
2008 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2009
2010         * mule-charset.c (Fmake_charset): Delete unused local variable
2011         `code_offset'.
2012
2013         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
2014         (breakup_char_1): Find a charset and code-point in
2015         `Vcharacter_attribute_table'.
2016
2017 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2018
2019         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2020         to 0.10 (Yao).
2021
2022 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
2023
2024         * mule-charset.c (Vcharacter_attribute_table): New variable.
2025         (Fchar_attribute_alist): New function.
2026         (Fget_char_attribute): New function.
2027         (Fput_char_attribute): New function.
2028         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
2029         too.
2030         (syms_of_mule_charset): Add new function `char-attribute-alist',
2031         `get-char-attribute' and `put-char-attribute'.
2032         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
2033
2034 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
2035
2036         * mule-charset.c (Fmake_charset): Just use
2037         `get_unallocated_leading_byte'.
2038
2039         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
2040         sets; don't use final-byte based number for private sets.
2041
2042 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2043
2044         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
2045         integer.
2046
2047 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2048
2049         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2050         to 0.9.
2051
2052 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2053
2054         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
2055         of `CHAR_LEADING_BYTE' in UTF-2000.
2056
2057         * insdel.c (find_charsets_in_bufbyte_string): Use
2058         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2059         (find_charsets_in_emchar_string): Likewise.
2060
2061         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
2062         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2063
2064         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
2065         (CHAR_CHARSET_ID): New macro.
2066
2067 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2068
2069         * chartab.c (get_char_table): Don't use type `Charset_ID' for
2070         charset-id - MIN_LEADING_BYTE.
2071         (put_char_table): Likewise.
2072
2073 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2074
2075         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
2076         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
2077         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
2078         (CHARSET_ID_OFFSET): New macro.
2079         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
2080         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
2081         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
2082         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2083         4).
2084         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2085         5).
2086         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
2087         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
2088         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
2089         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
2090         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
2091
2092 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2093
2094         * mule-charset.c (next_allocated_leading_byte): New variable in
2095         UTF-2000.
2096         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
2097         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
2098         (get_unallocated_leading_byte): Simply use
2099         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
2100         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
2101         UTF-2000.
2102
2103         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
2104         (MAX_LEADING_BYTE_PRIVATE): New macro.
2105         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
2106         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
2107
2108 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2109
2110         * mule-charset.c (Fmake_charset): Allocate final-byte based
2111         charset-id for 94-set, 96-set and 94x94-set.
2112
2113 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2114
2115         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
2116         ambiguous `else'.
2117         (Fmake_charset): Likewise.
2118         (complex_vars_of_mule_charset): Modify the font registry of
2119         `ucs-bmp' not to match `Ethiopic-Unicode'.
2120
2121 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2122
2123         * mule-charset.c (complex_vars_of_mule_charset): Add font
2124         registory of `ucs-bmp'.
2125
2126 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2127
2128         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
2129         coded-charsets in `default-coded-charset-priority-list' when
2130         breaking up a character.
2131
2132         * mule-charset.c (Vcharset_latin_viscii): New variable.
2133         (Qlatin_viscii): New variable.
2134         (make_charset): Don't use `decoding_table'.
2135         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
2136         byte_offset.
2137         (Fset_charset_mapping_table): New implementation.
2138         (syms_of_mule_charset): Add new symbol `latin-viscii'.
2139         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
2140         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
2141         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
2142         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
2143         charset `latin_viscii'.
2144
2145         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
2146         (CHARSET_TYPE_94X94): Change to 1 from 2.
2147         (CHARSET_TYPE_96): Change to 2 from 1.
2148         (CHARSET_TYPE_128): New macro.
2149         (CHARSET_TYPE_128X128): Change to 5 from 4.
2150         (CHARSET_TYPE_256): New macro.
2151         (CHARSET_TYPE_256X256): Change to 7 from 5.
2152         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
2153
2154 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2155
2156         * text-coding.c (char_encode_shift_jis): Refer
2157         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
2158         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
2159
2160         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
2161         (char_byte_table_equal): New function in UTF-2000.
2162         (char_byte_table_hash): New function in UTF-2000.
2163         (char_byte_table_description): New constant in UTF-2000.
2164         (char_byte_table): New type in UTF-2000.
2165         (make_char_byte_table): New function in UTF-2000.
2166         (copy_char_byte_table): New function in UTF-2000.
2167         (make_char_code_table): New macro in UTF-2000.
2168         (get_char_code_table): New function in UTF-2000.
2169         (put_char_code_table): New function in UTF-2000.
2170         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2171         (charset_description): Add setting in UTF-2000.
2172         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
2173         `CHARSET_TO_BYTE1_TABLE(cs)'.
2174         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
2175         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
2176         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
2177         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
2178         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
2179         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
2180         `CHARSET_TO_BYTE2_TABLE(cs)'.
2181
2182         * char-ucs.h (char_byte_table): New type.
2183         (XCHAR_BYTE_TABLE): New macro.
2184         (XSETCHAR_BYTE_TABLE): New macro.
2185         (CHAR_BYTE_TABLE_P): New macro.
2186         (GC_CHAR_BYTE_TABLE_P): New macro.
2187         (struct Lisp_Char_Byte_Table): New structure.
2188         (get_char_code_table): New interface.
2189         (Emchar_to_byte_table): Deleted.
2190         (get_byte_from_character_table): Deleted.
2191         (struct Lisp_Charset): Add `encoding_table'; delete
2192         `to_byte1_table' and `to_byte2_table'.
2193         (CHARSET_ENCODING_TABLE): New macro.
2194         (CHARSET_TO_BYTE1_TABLE): Deleted.
2195         (CHARSET_TO_BYTE2_TABLE): Deleted.
2196         (XCHARSET_ENCODING_TABLE): New macro.
2197         (XCHARSET_TO_BYTE1_TABLE): Deleted.
2198         (XCHARSET_TO_BYTE2_TABLE): Deleted.
2199
2200 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
2201
2202         * mule-charset.c (syms_of_mule_charset): Delete charset alias
2203         `vietnamese-viscii-*'.
2204
2205 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
2206
2207         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
2208         (Qvietnamese_viscii_upper): New variable.
2209         (Fdefine_charset_alias): New function.
2210         (syms_of_mule_charset): Add new function `define-charset-alias'.
2211         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
2212         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
2213         `latin-viscii-*'.
2214
2215 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
2216
2217         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
2218         (MAX_CHAR_OBS_94x94): New macro.
2219         (breakup_char_1): Support obsolete XEmacs-UCS private code space
2220         for 94x94 sets.
2221
2222         * mule-charset.c (put_byte_from_character_table): Change unit size
2223         from 128 to 256.
2224         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
2225         not defined.
2226         (Fmake_reverse_direction_charset): Modify dummy argument of
2227         `make_charset' for non-UTF-2000 environment.
2228
2229 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2230
2231         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
2232
2233         * mule-charset.c (destroy_byte_from_character_table): New macro.
2234         (latin_jisx0201_to_ucs): Deleted.
2235         (latin_iso8859_2_to_ucs): Deleted.
2236         (latin_iso8859_3_to_ucs): Deleted.
2237         (latin_iso8859_4_to_ucs): Deleted.
2238         (latin_iso8859_9_to_ucs): Deleted.
2239         (latin_viscii_lower_to_ucs): Deleted.
2240         (latin_viscii_upper_to_ucs): Deleted.
2241         (mark_charset): Mark `cs->decoding_table'.
2242         (Fcharset_mapping_table): Fix DOC-string.
2243         (Fset_charset_mapping_table): New function.
2244         (syms_of_mule_charset): Add nwe function
2245         `set-charset-mapping-table'.
2246         (complex_vars_of_mule_charset): Don't setup and use
2247         `latin_*_to_ucs'.
2248
2249 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2250
2251         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
2252         charset.
2253
2254 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2255
2256         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
2257         (Vcharset_katakana_jisx0208): New variable.
2258         (Qhiragana_jisx0208): New variable.
2259         (Qkatakana_jisx0208): New variable.
2260         (make_charset): Add new argument `byte_offset'.
2261         (charset_get_byte1): Modify for new coded-charset definition; use
2262         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
2263         `XCHARSET_BYTE_OFFSET'.
2264         (Fmake_charset): Modify for `make_charset'.
2265         (Fmake_reverse_direction_charset): Likewise.
2266         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
2267         `katakana-jisx0208'.
2268         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
2269         `.'  in font registry of charset `katakana-jisx0201',
2270         `latin-jisx0201', `vietnamese-viscii-lower' and
2271         `vietnamese-viscii-upper'; modify DOC-string of charset
2272         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
2273         registry of charset `japanese-jisx0208' not to use font for JIS
2274         X0208:1990; add new charset `hiragana-jisx0208' and
2275         `katakana-jisx0208'.
2276
2277         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
2278         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
2279         (struct Lisp_Charset): Add `byte_offset'.
2280         (CHARSET_BYTE_OFFSET): New macro.
2281         (XCHARSET_UCS_MIN): New macro.
2282         (XCHARSET_UCS_MAX): New macro.
2283         (XCHARSET_CODE_OFFSET): New macro.
2284         (XCHARSET_BYTE_OFFSET): New macro.
2285         (MIN_CHAR_HIRAGANA): New macro.
2286         (MAX_CHAR_HIRAGANA): New macro.
2287         (MIN_CHAR_KATAKANA): New macro.
2288         (MAX_CHAR_KATAKANA): New macro.
2289         (MAKE_CHAR): Modify for new coded-charset definition; use
2290         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
2291         `XCHARSET_BYTE_OFFSET'.
2292
2293 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2294
2295         * mule-charset.c (CHAR96): Deleted.
2296         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
2297         <Lisp_Object>.
2298         (latin_iso8859_2_to_ucs): Likewise.
2299         (latin_iso8859_3_to_ucs): Likewise.
2300         (latin_iso8859_4_to_ucs): Likewise.
2301         (latin_iso8859_9_to_ucs): Likewise.
2302         (latin_viscii_lower_to_ucs): Likewise.
2303         (latin_viscii_upper_to_ucs): Likewise.
2304         (latin_tcvn5712_to_ucs): Commented out.
2305         (make_charset): Change type of argument `decoding_table' from
2306         <Emchar*> to <Lisp_Object> [vector of characters].
2307         (Fmake_charset): Modify for `make_charset'.
2308         (Fmake_reverse_direction_charset): Likewise.
2309         (Fcharset_mapping_table): New function in UTF-2000.
2310         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
2311         UTF-2000.
2312         (complex_vars_of_mule_charset): Modify for type change of
2313         `*_to_ucs'; modify for `make_charset'.
2314
2315         * char-ucs.h (struct Lisp_Charset): Change type of
2316         `decoding_table' from <Emchar*> to <Lisp_Object>.
2317         (MAKE_CHAR): Modify for new specification of `decoding_table'.
2318
2319 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
2320
2321         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
2322         error with non-UTF-2000-Mule.
2323
2324 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
2325
2326         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
2327         in lisp again].
2328         (Vcharset_chinese_cns11643_4): Likewise.
2329         (Vcharset_chinese_cns11643_5): Likewise.
2330         (Vcharset_chinese_cns11643_6): Likewise.
2331         (Vcharset_chinese_cns11643_7): Likewise.
2332         (Qchinese_cns11643_3): Likewise.
2333         (Qchinese_cns11643_4): Likewise.
2334         (Qchinese_cns11643_5): Likewise.
2335         (Qchinese_cns11643_6): Likewise.
2336         (Qchinese_cns11643_7): Likewise.
2337         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
2338         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
2339         and `chinese-cns11643-7' to lisp/mule/chinese.el.
2340         (complex_vars_of_mule_charset): Likewise.
2341
2342 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2343
2344         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
2345         96-set.
2346         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
2347         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
2348
2349 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
2350
2351         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
2352         0xFF60.
2353         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
2354         (breakup_char_1): Likewise.
2355
2356         * text-coding.c (char_encode_iso2022): Keep designated charsets if
2357         one of them includes the specified character.
2358
2359 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
2360
2361         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
2362
2363 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
2364
2365         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
2366
2367 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
2368
2369         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
2370         definition for non-UTF-2000 Mule.
2371         (latin_iso8859_3_to_ucs): Likewise.
2372         (latin_iso8859_4_to_ucs): Likewise.
2373         (latin_iso8859_9_to_ucs): Likewise.
2374         (latin_jisx0201_to_ucs): Likewise.
2375         (MIN_CHAR_THAI): Likewise.
2376         (MAX_CHAR_THAI): Likewise.
2377         (MIN_CHAR_GREEK): Likewise.
2378         (MAX_CHAR_GREEK): Likewise.
2379         (MIN_CHAR_HEBREW): Likewise.
2380         (MAX_CHAR_HEBREW): Likewise.
2381         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
2382         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
2383         (MIN_CHAR_CYRILLIC): Likewise.
2384         (MAX_CHAR_CYRILLIC): Likewise.
2385
2386 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
2387
2388         * char-ucs.h (breakup_char_1): Use
2389         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
2390         thai-tis620 and katakana-jisx0201 area.
2391
2392 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2393
2394         * char-ucs.h (breakup_char_1): Use
2395         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
2396         area.
2397
2398         * text-coding.c (reset_encoding_stream): Fixed.
2399         (char_encode_ucs4): Delete `& 255'.
2400
2401         * char-ucs.h (breakup_char_1): Use
2402         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
2403
2404 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2405
2406         * file-coding.c (Fmake_coding_system): Don't set up
2407         `codesys->fixed.size'.
2408         (encode_coding_no_conversion): Don't refer
2409         `str->codesys->fixed.size'.
2410
2411 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2412
2413         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
2414         (latin_a_char_to_byte1): Deleted.
2415         (latin_a_char_to_byte2): Deleted.
2416
2417 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2418
2419         * mule-charset.c (make_charset): Add new argument `ucs_min',
2420         `ucs_max' and `code_offset'.
2421         (charset_get_byte1): New implementation [delete specific charset
2422         depended implementations].
2423         (Fmake_charset): Modify for `make_charset'.
2424         (Fmake_reverse_direction_charset): Likewise.
2425         (complex_vars_of_mule_charset): Likewise.
2426
2427         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
2428         `code_offset'.
2429         (CHARSET_UCS_MIN): New macro.
2430         (CHARSET_UCS_MAX): New macro.
2431         (CHARSET_CODE_OFFSET): New macro.
2432         (MAKE_CHAR): Delete charset depended definitions [except
2433         katakana-jisx0201].
2434
2435 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
2436
2437         * char-ucs.h (breakup_char_1): Use
2438         `Vdefault_coded_charset_priority_list' for C0-Controls,
2439         Basic-Latin, C1-Controls and Latin-1-Supplement area.
2440
2441 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2442
2443         * char-ucs.h (charset_get_byte1): New function.
2444         (XCHARSET_GET_BYTE1): Deleted.
2445         (charset_get_byte2): New function.
2446         (XCHARSET_GET_BYTE2): Deleted.
2447         (Vdefault_coded_charset_priority_list): New external variable.
2448         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
2449         `Vdefault_preferred_coded_charset_list'.
2450
2451         * mule-charset.c (charset_get_byte1): New function.
2452         (charset_get_byte2): New function.
2453         (Vdefault_coded_charset_priority_list): New variable.
2454         (vars_of_mule_charset): Add new variable
2455         `default-coded-charset-priority-list'.
2456
2457 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2458
2459         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
2460         (XCHARSET_GET_BYTE2): New inline function.
2461         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
2462         `XCHARSET_GET_BYTE2'.
2463
2464 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2465
2466         * mule-charset.c (make_charset): Initialize
2467         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
2468         NULL if table is not defined.
2469
2470 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2471
2472         * text-coding.c (char_encode_shift_jis): Use
2473         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
2474         `ucs_to_latin_jisx0201'.
2475
2476         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
2477         (ucs_to_latin_iso8859_2): Deleted.
2478         (ucs_to_latin_iso8859_3): Deleted.
2479         (ucs_to_latin_iso8859_4): Deleted.
2480         (ucs_to_latin_iso8859_9): Deleted.
2481         (ucs_to_latin_viscii_lower): Deleted.
2482         (ucs_to_latin_viscii_upper): Deleted.
2483         (ucs_to_latin_tcvn5712): Deleted.
2484         (make_charset): Add new argument `decoding_table'; set up
2485         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
2486         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
2487         `decoding_table' is defined in UTF-2000.
2488         (Fmake_charset): Modify for `make_charset'.
2489         (Fmake_reverse_direction_charset): Likewise.
2490         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
2491         and `GENERATE_96_SET'.
2492
2493         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
2494         (ucs_to_latin_jisx0201): Deleted.
2495         (latin_iso8859_2_to_ucs): Deleted.
2496         (ucs_to_latin_iso8859_2): Deleted.
2497         (latin_iso8859_3_to_ucs): Deleted.
2498         (ucs_to_latin_iso8859_3): Deleted.
2499         (latin_iso8859_4_to_ucs): Deleted.
2500         (ucs_to_latin_iso8859_4): Deleted.
2501         (latin_iso8859_9_to_ucs): Deleted.
2502         (ucs_to_latin_iso8859_9): Deleted.
2503         (latin_viscii_lower_to_ucs): Deleted.
2504         (ucs_to_latin_viscii_lower): Deleted.
2505         (latin_viscii_upper_to_ucs): Deleted.
2506         (ucs_to_latin_viscii_upper): Deleted.
2507         (struct Lisp_Charset): Renamed `encoding_table' to
2508         `to_byte1_table'; add `to_byte2_table'.
2509         (CHARSET_DECODING_TABLE): New macro.
2510         (CHARSET_TO_BYTE1_TABLE): New macro.
2511         (CHARSET_TO_BYTE2_TABLE): New macro.
2512         (XCHARSET_DECODING_TABLE): New macro.
2513         (XCHARSET_TO_BYTE1_TABLE): New macro.
2514         (XCHARSET_TO_BYTE2_TABLE): New macro.
2515         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
2516         tables.
2517         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
2518         don't use `ucs_to_*' tables.
2519
2520 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2521
2522         * text-coding.c (Fmake_coding_system): Don't set up
2523         `codesys->fixed.size'.
2524         (encode_coding_no_conversion): Use `if' instead of `switch'.
2525
2526         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
2527
2528 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2529
2530         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
2531         (Fmake_charset): Modify for `make_charset'.
2532         (Fmake_reverse_direction_charset): Likewise.
2533         (complex_vars_of_mule_charset): Likewise.
2534
2535 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2536
2537         * text-coding.c (char_encode_shift_jis): Use table
2538         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
2539
2540 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2541
2542         * text-coding.c (text_encode_generic): Use `if' instead of
2543         `switch'.
2544         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
2545         decode JIS-Latin.
2546
2547 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2548
2549         * text-coding.c (encode_coding_sjis): Deleted.
2550         (char_encode_shift_jis): New function.
2551         (char_finish_shift_jis): New function.
2552         (reset_encoding_stream): Set up `encode_char' and `finish' for
2553         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
2554         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
2555         (char_encode_utf8): Treat `eol_type'.
2556
2557 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2558
2559         * file-coding.c (decode_coding_iso2022): Use
2560         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
2561
2562 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2563
2564         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2565         to 0.7 (Hirano).
2566
2567 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2568
2569         * char-lb.h (CHAR_COLUMNS): New macro.
2570
2571 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2572
2573         * text-coding.c (char_encode_ucs4): New function.
2574         (char_finish_ucs4): New function.
2575         (encode_coding_ucs4): Deleted.
2576         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
2577         (text_encode_generic): Delete local variable `charset' and `half'.
2578         (ucs_to_mule_table): Deleted.
2579         (mule_to_ucs_table): Deleted.
2580         (Fset_ucs_char): Deleted.
2581         (ucs_to_char): Deleted.
2582         (Fucs_char): Deleted.
2583         (Fset_char_ucs): Deleted.
2584         (Fchar_ucs): Deleted.
2585         (decode_ucs4): Deleted.
2586         (mule_char_to_ucs4): Deleted.
2587         (encode_ucs4): Deleted.
2588         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
2589         (decode_coding_utf8): Likewise.
2590         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
2591         (char_encode_iso2022): Fixed.
2592         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
2593         `Fset_char_ucs' and `Fchar_ucs'.
2594         (complex_vars_of_file_coding): Don't initialize
2595         `ucs_to_mule_table'.
2596
2597         * objects-tty.c (tty_initialize_font_instance): Don't use
2598         `XCHARSET_COLUMNS'.
2599
2600         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
2601         UTF-2000.
2602
2603         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
2604         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
2605
2606         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
2607         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
2608         (emchar_string_displayed_columns): Likewise.
2609
2610         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
2611         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
2612         (string_column_at_point): Likewise.
2613         (Fmove_to_column): Likewise.
2614
2615         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
2616         `encoding_table' and `decoding_table'.
2617         (CHARSET_REP_BYTES): Deleted.
2618         (XCHARSET_REP_BYTES): Deleted.
2619         (XCHARSET_COLUMNS): Deleted.
2620         (CHAR_COLUMNS): New macro.
2621         (lookup_composite_char): Deleted unconditionally.
2622         (composite_char_string): Likewise.
2623
2624 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2625
2626         * char-ucs.h (Emchar_to_byte_table): New type.
2627         (get_byte_from_character_table): New function interface.
2628         (Vcharset_latin_jisx0201): New variable.
2629         (latin_jisx0201_to_ucs): New variable.
2630         (ucs_to_latin_jisx0201): New variable.
2631         (Vcharset_latin_iso8859_2): New variable.
2632         (latin_iso8859_2_to_ucs): New variable.
2633         (ucs_to_latin_iso8859_2): New variable.
2634         (Vcharset_latin_iso8859_3): New variable.
2635         (latin_iso8859_3_to_ucs): New variable.
2636         (ucs_to_latin_iso8859_3): New variable.
2637         (Vcharset_latin_iso8859_4): New variable.
2638         (latin_iso8859_4_to_ucs): New variable.
2639         (ucs_to_latin_iso8859_4): New variable.
2640         (Vcharset_latin_iso8859_9): New variable.
2641         (latin_iso8859_9_to_ucs): New variable.
2642         (ucs_to_latin_iso8859_9): New variable.
2643         (Vcharset_latin_viscii_lower): New variable.
2644         (latin_viscii_lower_to_ucs): New variable.
2645         (ucs_to_latin_viscii_lower): New variable.
2646         (Vcharset_latin_viscii_upper): New variable.
2647         (latin_viscii_upper_to_ucs): New variable.
2648         (ucs_to_latin_viscii_upper): New variable.
2649         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
2650         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
2651         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
2652         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
2653         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
2654         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
2655         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
2656         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
2657         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
2658         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
2659
2660         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
2661         (Vcharset_latin_viscii_upper): New variable.
2662         (make_byte_from_character_table): New function.
2663         (put_byte_from_character_table): New function.
2664         (get_byte_from_character_table): New function.
2665         (CHAR96): New macro.
2666         (ucs_to_latin_jisx0201): New variable.
2667         (latin_jisx0201_to_ucs): New variable.
2668         (ucs_to_latin_iso8859_2): New variable.
2669         (latin_iso8859_2_to_ucs): New variable.
2670         (ucs_to_latin_iso8859_3): New variable.
2671         (latin_iso8859_3_to_ucs): New variable.
2672         (ucs_to_latin_iso8859_4): New variable.
2673         (latin_iso8859_4_to_ucs): New variable.
2674         (ucs_to_latin_iso8859_9): New variable.
2675         (latin_iso8859_9_to_ucs): New variable.
2676         (ucs_to_latin_viscii_lower): New variable.
2677         (latin_viscii_lower_to_ucs): New variable.
2678         (ucs_to_latin_viscii_upper): New variable.
2679         (latin_viscii_upper_to_ucs): New variable.
2680         (ucs_to_latin_tcvn5712): New variable.
2681         (latin_tcvn5712_to_ucs): New variable.
2682         (Qlatin_viscii_lower): New variable.
2683         (Qlatin_viscii_upper): New variable.
2684         (syms_of_mule_charset): Set up new symbol
2685         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
2686         (complex_vars_of_mule_charset): Set up new charset
2687         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
2688         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
2689         `ucs_to_<CHARSET>' tables.
2690
2691 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
2692
2693         * text-coding.c: New file.
2694
2695 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
2696
2697         * mule-charset.c (Fmake_char): Fix problem of 256-set.
2698
2699         * char-ucs.h (Vcharset_ucs_bmp): New variable.
2700         (MAKE_CHAR): Modify for `ucs-bmp'.
2701         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
2702         non-MULE characters of BMP.
2703
2704 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
2705
2706         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2707         to 0.6.
2708
2709 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2710
2711         * lstream.h:
2712         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
2713         - Include character.h for `CHAR_ASCII_P'.
2714
2715         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
2716
2717         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
2718         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
2719
2720         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
2721         (BYTE_C0_P): Likewise.
2722         (BYTE_C1_P): Likewise.
2723         (Lstream_get_emchar_1): Likewise.
2724         (Lstream_fput_emchar): Likewise.
2725         (Lstream_funget_emchar): Likewise.
2726         (copy_internal_to_external): Likewise.
2727         (copy_external_to_internal): Likewise.
2728
2729         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
2730         (BYTE_C0_P): Likewise.
2731         (BYTE_C1_P): Likewise.
2732         (Lstream_get_emchar_1): Likewise.
2733         (Lstream_fput_emchar): Likewise.
2734         (Lstream_funget_emchar): Likewise.
2735         (copy_internal_to_external): Likewise.
2736         (copy_external_to_internal): Likewise.
2737
2738         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
2739         (REP_BYTES_BY_FIRST_BYTE): Likewise.
2740
2741         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
2742         (BYTE_ASCII_P): Moved to mb-1byte.h.
2743
2744 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2745
2746         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
2747
2748         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
2749         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
2750         (VALID_CHARPTR_P): Moved to mb-*byte.h.
2751         (VALIDATE_CHARPTR_BACKWARD): Likewise.
2752         (VALIDATE_CHARPTR_FORWARD): Likewise.
2753         (simple_charptr_emchar): Moved to mb-multibyte.h.
2754         (simple_set_charptr_emchar): Likewise.
2755         (simple_charptr_copy_char): Likewise.
2756         (non_ascii_charptr_emchar): Likewise.
2757         (non_ascii_set_charptr_emchar): Likewise.
2758         (non_ascii_charptr_copy_char): Likewise.
2759         (charptr_emchar): Moved to mb-*byte.h.
2760         (set_charptr_emchar): Likewise.
2761         (charptr_copy_char): Likewise.
2762
2763         * mb-1byte.h, mb-multibyte.h: New files.
2764
2765 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2766
2767         * mb-utf-8.h (MULTIBYTE): New macro.
2768         (MAX_EMCHAR_LEN): Moved from buffer.h.
2769         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
2770
2771         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
2772
2773         * mb-lb.h, multibyte.h: New files.
2774
2775         * char-1byte.h (Charset_ID): Moved from buffer.h.
2776         (MIN_LEADING_BYTE): Likewise.
2777         (LEADING_BYTE_ASCII): Likewise.
2778         (NUM_LEADING_BYTES): Likewise.
2779         (CHARSETP): Likewise.
2780         (CHARSET_BY_LEADING_BYTE): Likewise.
2781         (XCHARSET_LEADING_BYTE): Likewise.
2782         (XCHARSET_GRAPHIC): Likewise.
2783         (XCHARSET_COLUMNS): Likewise.
2784         (XCHARSET_DIMENSION): Likewise.
2785         (CHAR_CHARSET): Likewise.
2786         (CHAR_LEADING_BYTE): Likewise.
2787         (BREAKUP_CHAR): Likewise.
2788         (Vcharset_ascii): Likewise.
2789
2790         * buffer.h: Include multibyte.h unconditionally.
2791         (VALID_CHARPTR_P): Moved to multibyte.h.
2792         (ASSERT_VALID_CHARPTR): Likewise.
2793         (REAL_INC_CHARPTR): Likewise.
2794         (REAL_INC_CHARBYTIND): Likewise.
2795         (REAL_DEC_CHARPTR): Likewise.
2796         (INC_CHARPTR): Likewise.
2797         (INC_CHARBYTIND): Likewise.
2798         (DEC_CHARPTR): Likewise.
2799         (VALIDATE_CHARPTR_BACKWARD): Likewise.
2800         (VALIDATE_CHARPTR_FORWARD): Likewise.
2801         (charptr_n_addr): Likewise.
2802         (MAX_EMCHAR_LEN): Moved to mb-*.h.
2803         (simple_charptr_emchar): Moved to multibyte.h.
2804         (simple_set_charptr_emchar): Likewise.
2805         (simple_charptr_copy_char): Likewise.
2806         (non_ascii_charptr_emchar): Likewise.
2807         (non_ascii_set_charptr_emchar): Likewise.
2808         (non_ascii_charptr_copy_char): Likewise.
2809         (charptr_emchar): Likewise.
2810         (set_charptr_emchar): Likewise.
2811         (charptr_copy_char): Likewise.
2812         (charptr_emchar_n): Likewise.
2813         (Charset_ID): Moved to char-1byte.h.
2814         (Vcharset_ascii): Likewise.
2815         (CHAR_CHARSET): Likewise.
2816         (CHAR_LEADING_BYTE): Likewise.
2817         (LEADING_BYTE_ASCII): Likewise.
2818         (NUM_LEADING_BYTES): Likewise.
2819         (MIN_LEADING_BYTE): Likewise.
2820         (CHARSETP): Likewise.
2821         (CHARSET_BY_LEADING_BYTE): Likewise.
2822         (XCHARSET_LEADING_BYTE): Likewise.
2823         (XCHARSET_GRAPHIC): Likewise.
2824         (XCHARSET_COLUMNS): Likewise.
2825         (XCHARSET_DIMENSION): Likewise.
2826         (BREAKUP_CHAR): Likewise.
2827
2828 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2829
2830         * character.h: Add document about interface for characters.
2831
2832         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
2833         (MAKE_CHAR): Delete comment about
2834         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
2835         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
2836         (BREAKUP_CHAR): Modify name of arguments.
2837         (CHAR_CHARSET): Modify name of argument.
2838
2839         * buffer.h: Delete document about Emchar accessors.
2840
2841 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2842
2843         * character.h (CHAR_INTP): Moved from buffer.h
2844         (CHAR_OR_CHAR_INTP): Likewise.
2845         (XCHAR_OR_CHAR_INT): Likewise.
2846         (CHECK_CHAR_COERCE_INT): Likewise.
2847
2848         * buffer.h (CHAR_INTP): Moved to character.h
2849         (CHAR_OR_CHAR_INTP): Likewise.
2850         (XCHAR_OR_CHAR_INT): Likewise.
2851         (CHECK_CHAR_COERCE_INT): Likewise.
2852
2853 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2854
2855         * character.h:
2856         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
2857         - Include char-1byte.h, char-lb.h or char-ucs.h.
2858
2859         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
2860
2861         * buffer.h: Include character unconditionally.
2862         (valid_char_p): Moved to char-*.h.
2863         (non_ascii_valid_char_p): Moved to char-lb.h.
2864
2865         * char-1byte.h, char-lb.h, char-ucs.h: New files.
2866
2867 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2868
2869         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
2870         in UTF-2000 because it is not ported yet and not to use
2871         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
2872         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
2873         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
2874
2875         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
2876         (CHAR_ASCII_P): Moved from character.h.
2877
2878         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
2879         (CHAR_ASCII_P): Likewise.
2880         (CHAR_FIELD1_MASK): Deleted.
2881         (CHAR_FIELD2_MASK): Deleted.
2882         (CHAR_FIELD3_MASK): Deleted.
2883         (MAX_CHAR_BASIC_LATIN): New macro.
2884         (CHAR_FIELD1): Deleted.
2885         (CHAR_FIELD2_INTERNAL): Deleted.
2886         (CHAR_FIELD3_INTERNAL): Deleted.
2887         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
2888         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
2889         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
2890         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
2891         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
2892         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
2893         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
2894         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
2895         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
2896         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
2897         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
2898         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
2899         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
2900         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
2901         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
2902         (MIN_CHAR_COMPOSITION): Deleted.
2903         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
2904         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
2905
2906 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
2907
2908         * buffer.h: Include mb-utf-8.h in UTF-2000.
2909
2910         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
2911
2912         * mb-utf-8.h: New file.
2913
2914 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
2915
2916         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
2917         instead of `int'.
2918
2919         * mule-charset.h, buffer.h (Charset_ID): New type.
2920
2921 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
2922
2923         * mule-canna.c (c2mu): Use `MAKE_CHAR',
2924         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
2925         instead of `MULE_CHAR_PRIVATE_OFFSET',
2926         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
2927         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
2928         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
2929
2930         * character.h (Vcharset_japanese_jisx0212): New variable
2931         definition.
2932
2933 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
2934
2935         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
2936         (charset_by_attributes): Delete array about direction.
2937         (latin_a_char_to_charset): New variable in UTF-2000.
2938         (latin_a_char_to_byte1): New variable in UTF-2000.
2939         (latin_a_char_to_byte2): New variable in UTF-2000.
2940         (Qucs_bmp): New variable.
2941         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
2942         `Bufbyte'.
2943         (next_allocated_2_byte_leading_byte): Likewise.
2944         (non_ascii_set_charptr_emchar): Likewise.
2945         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
2946         `CHARSET_TYPE_256X256' in UTF-2000; modify for
2947         `charset_by_attributes'.
2948         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
2949         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
2950         and `CHARSET_BY_LEADING_BYTE'.
2951         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
2952         `utf-2000-version' to `vars_of_mule_charset'.
2953         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
2954         define `leading-code-private-11' in UTF-2000; move setting of
2955         `utf-2000-version' from `syms_of_mule_charset'.
2956         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
2957         UTF-2000.
2958
2959         * character.h (Charset_ID): New type.
2960         (LEADING_BYTE_UCS_BMP): New macro.
2961         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
2962         (CHARSET_ID_OFFSET_94): New macro.
2963         (MIN_CHARSET_ID_PRIVATE_94): New macro.
2964         (MAX_CHARSET_ID_PRIVATE_94): New macro.
2965         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
2966         final-byte.
2967         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
2968         (LEADING_BYTE_LATIN_JISX0201): Likewise.
2969         (CHARSET_ID_OFFSET_96): New macro.
2970         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
2971         CHARSET_ID_OFFSET_96 and final-byte.
2972         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
2973         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
2974         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
2975         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
2976         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
2977         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
2978         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
2979         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
2980         (LEADING_BYTE_THAI_TIS620): Likewise.
2981         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
2982         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
2983         (CHARSET_ID_OFFSET_94x94): New macro.
2984         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
2985         CHARSET_ID_OFFSET_94x94 and final-byte.
2986         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
2987         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
2988         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
2989         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
2990         (LEADING_BYTE_CHINESE_GB2312): Likewise.
2991         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
2992         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
2993         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
2994         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
2995         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
2996         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
2997         (CHARSET_TYPE_128X128): New macro.
2998         (CHARSET_TYPE_256X256): New macro.
2999         (XCHARSET_PRIVATE_P): Delete unconditionally.
3000         (charset_by_attributes): Delete array about direction.
3001         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
3002         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
3003         (MIN_CHAR_94): New macro.
3004         (MAX_CHAR_94): New macro.
3005         (MIN_CHAR_96): New macro.
3006         (MAX_CHAR_96): New macro.
3007         (MIN_CHAR_94x94): New macro.
3008         (MAX_CHAR_94x94): New macro.
3009         (MIN_CHAR_96x96): New macro.
3010         (MAX_CHAR_96x96): New macro.
3011         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
3012         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3013         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
3014         - 32)'.
3015         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
3016         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
3017         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
3018         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
3019         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
3020         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
3021         `XCHARSET_LEADING_BYTE' to make code-point.
3022         (latin_a_char_to_charset): New variable.
3023         (latin_a_char_to_byte1): New variable.
3024         (latin_a_char_to_byte2): New variable.
3025         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
3026         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
3027         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
3028
3029         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
3030         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
3031         (find_charsets_in_emchar_string): Likewise.
3032         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
3033
3034         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
3035         `int'.
3036         (decode_coding_iso2022): Likewise.
3037
3038         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
3039         of `unsigned char'.
3040
3041         * redisplay.c (redisplay_text_width_emchar_string): Use
3042         `Charset_ID' instead of `unsigned char'.
3043         (redisplay_frame_text_width_string): Likewise.
3044
3045         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
3046         `unsigned char'.
3047
3048         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
3049         instead of `unsigned char'.
3050         (face_cachel_charset_font_metric_info): Likewise.
3051
3052         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
3053         (get_non_ascii_char_table_value): Likewise.
3054         (get_char_table): Likewise.
3055         (put_char_table): Likewise.
3056         (map_over_other_charset): Likewise.
3057         (map_char_table): Likewise.
3058
3059         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
3060         instead of `unsigned char'.
3061
3062 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
3063
3064         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
3065         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
3066
3067         * mule-charset.c (leading_code_private_11): Don't define in
3068         UTF-2000.
3069
3070         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
3071         in UTF-2000 because it is not ported yet and not to use
3072         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
3073
3074 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
3075
3076         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
3077
3078 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3079
3080         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
3081         in UTF-2000.
3082
3083         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
3084         of unsigned char to store leading-byte.
3085
3086         * chartab.c (get_non_ascii_char_table_value): Don't use
3087         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
3088
3089         * file-coding.c (encode_coding_big5): Delete bogus implementation
3090         in UTF2000.
3091
3092         * character.h (LEADING_BYTE_*): Delete definition for
3093         non-UTF-2000.
3094         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
3095         (LEADING_BYTE_PREFIX_P): Deleted.
3096         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
3097         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
3098         (BUFBYTE_LEADING_BYTE_P): Deleted.
3099         (CHARSET_PRIVATE_P): Deleted unconditionally.
3100         (rep_bytes_by_first_byte): Deleted unconditionally.
3101         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
3102         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
3103         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3104         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
3105         (CHAR_FIELD2): Deleted.
3106         (CHAR_FIELD3): Deleted.
3107         (MAKE_CHAR): Delete definition for non-UTF-2000.
3108         (BREAKUP_CHAR_1_UNSAFE): Deleted.
3109         (breakup_char_1): New implementation.
3110         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
3111         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
3112
3113 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3114
3115         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
3116         condition.
3117
3118 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3119
3120         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
3121         (CHARSET_PRIVATE_P): Likewise.
3122         (XCHARSET_PRIVATE_P): Likewise.
3123         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
3124
3125         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
3126         UTF2000.
3127         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
3128
3129 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3130
3131         * character.h (LEADING_BYTE_*): Changed in UTF2000.
3132         (NUM_LEADING_BYTES): Changed from 128 to 256.
3133         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3134         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
3135         UTF2000.
3136         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3137
3138         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
3139         UTF2000.
3140         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
3141         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
3142         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
3143         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
3144         (Qchinese_cns11643_3): New variable in UTF2000.
3145         (Qchinese_cns11643_4): New variable in UTF2000.
3146         (Qchinese_cns11643_5): New variable in UTF2000.
3147         (Qchinese_cns11643_6): New variable in UTF2000.
3148         (Qchinese_cns11643_7): New variable in UTF2000.
3149         (syms_of_mule_charset): Define `chinese-cns11643-3',
3150         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3151         and `chinese-cns11643-7' in UTF2000.
3152         (vars_of_mule_charset): Initialize
3153         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
3154         + 1 in UTF2000.
3155         (complex_vars_of_mule_charset): Setup charset
3156         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
3157         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
3158
3159 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3160
3161         * mule-charset.c: Move setting for `leading-code-private-11' from
3162         `syms_of_mule_charset' to `vars_of_mule_charset'.
3163
3164 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3165
3166         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
3167         and `NUM_LEADING_BYTES' in assert.
3168
3169 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3170
3171         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
3172         instead of 128.
3173         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
3174         `NUM_LEADING_BYTES' instead of 128.
3175
3176 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3177
3178         * mule-charset.h (charset_by_leading_byte): Use
3179         `NUM_LEADING_BYTES' instead of 128.
3180         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
3181
3182         * mule-charset.c (charset_by_leading_byte): Use
3183         `NUM_LEADING_BYTES' instead of 128.
3184         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
3185
3186         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
3187         128.
3188
3189 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
3190
3191         * mule-charset.c (syms_of_mule_charset): Update to
3192         0.4 (Shin-Imamiya).
3193
3194 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
3195
3196         * file-coding.c (encode_coding_sjis): New implementation for
3197         UTF2000.  (decode_coding_sjis): Ditto.
3198
3199 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3200
3201         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
3202         Don't define in UTF2000.
3203
3204         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
3205         defined.
3206
3207         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
3208         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
3209         MULE.
3210
3211 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3212
3213         * config.h.in (CHAR_IS_UCS4): New macro.
3214
3215         * mule-charset.c (rep_bytes_by_first_byte): Modify for
3216         conventional MULE representation.
3217         (syms_of_mule_charset): Update to 0.3 (Imamiya).
3218
3219         * mule-charset.h: Reverted to original.
3220
3221         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
3222         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
3223         "mule-charset.h" if CHAR_IS_UCS4 is defined.
3224
3225         * character.h: New file.
3226
3227         * file-coding.c (Fmake_coding_system): Set 1 to
3228         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
3229         defined.
3230         (encode_coding_no_conversion): New implementation for UTF2000.
3231
3232         * file-coding.h (struct Lisp_Coding_System): Add new member
3233         `fixed.size'.
3234
3235 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
3236
3237         * file-coding.c (decode_coding_iso2022): Code-point arguments of
3238         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
3239         (encode_coding_iso2022): New implementation for UTF2000.
3240
3241 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3242
3243         * mule-canna.c (c2mu): New implementation for UTF2000.
3244         (m2c): Likewise.
3245
3246 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3247
3248         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
3249
3250 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3251
3252         * file-coding.c (reset_encoding_stream): Set 0 to
3253         `str->iso2022.current_char_boundary' in UTF2000.
3254         (encode_utf8): Don't define in UTF2000.
3255         (encode_coding_utf8): New implementation for UTF-8 representation
3256         of UTF2000.
3257         (complex_vars_of_file_coding): Define coding-system `utf-8'.
3258
3259 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3260
3261         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
3262
3263         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
3264         UTF2000.
3265         (REP_BYTES_BY_FIRST_BYTE): Likewise.
3266
3267         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
3268
3269         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
3270         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
3271         as UTF-8 in UTF2000.
3272         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
3273         (non_ascii_valid_char_p): Don't define in UTF2000.
3274         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
3275         (Lstream_get_emchar_1): Likewise.
3276         (utf-2000-version): New variable in UTF2000.
3277
3278         * lread.c (read_escape): Add new reader `u'.
3279
3280         * insdel.c (three_to_one_table): Don't define in UTF2000.
3281         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
3282         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
3283         UTF2000.
3284         (bytind_to_bufpos_func): Likewise.
3285         (buffer_mule_signal_inserted_region): Likewise.
3286         (vars_of_insdel): Don't initialize `three_to_one_table'.
3287         (init_buffer_text): Use `buf->text->mule_size' instead of
3288         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
3289         UTF2000.
3290
3291         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
3292         UTF-8 representation in UTF2000.
3293         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
3294         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
3295         (decode_coding_iso2022): Don't define local variable `lb' in
3296         UTF2000; don't use LEADING_BYTE in UTF2000; use
3297         `DECODE_ADD_UCS_CHAR' in UTF2000.
3298         (convert_to_external_format): Decode as UTF-8 in UTF2000.
3299
3300         * config.h.in (UTF2000): New macro.
3301
3302         * buffer.h (struct buffer_text): Add new member `mule_size' and
3303         don't add `mule_shifter' and `mule_three_p' in UTF2000.
3304         (valid_char_p): Return always 1 in UTF2000.
3305         (MAX_EMCHAR_LEN): 6 in UTF2000.
3306         (three_to_one_table): Don't define in UTF2000.
3307         (real_bufpos_to_bytind): Modify for UTF-8 representation in
3308         UTF2000.
3309         (real_bytind_to_bufpos): Likewise.
3310
3311         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
3312
3313 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3314
3315         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
3316         representation change.
3317         (Vutf_2000_version): New variable.
3318         (leading_code_private_11): New variable.
3319         (syms_of_mule_charset): Add new variables `utf-2000-version' and
3320         `leading-code-private-11'.
3321
3322         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
3323         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
3324         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
3325         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
3326         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
3327         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
3328         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
3329         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
3330         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
3331         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
3332         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
3333         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
3334         (MIN_CHAR_GREEK): New macro.
3335         (MAX_CHAR_GREEK): New macro.
3336         (MIN_CHAR_CYRILLIC): New macro.
3337         (MAX_CHAR_CYRILLIC): New macro.
3338         (MIN_CHAR_HEBREW): New macro.
3339         (MAX_CHAR_HEBREW): New macro.
3340         (MIN_CHAR_THAI): New macro.
3341         (MAX_CHAR_THAI): New macro.
3342         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
3343         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
3344         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
3345         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
3346         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
3347         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
3348         (CHAR_FIELD2): New inline function.
3349         (CHAR_FIELD3): New inline function.
3350         (MULE_CHAR_PRIVATE_OFFSET): New macro.
3351         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
3352         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
3353         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
3354         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
3355         (MIN_CHAR_COMPOSITION): Likewise.
3356         (CHAR_LEADING_BYTE): Modified for character representation change.
3357         (MAKE_CHAR): Likewise.
3358
3359         * lisp.h (Vcharset_latin_iso8859_1): New variable.
3360         (Vcharset_greek_iso8859_7): Likewise.
3361         (Vcharset_cyrillic_iso8859_5): Likewise.
3362         (Vcharset_hebrew_iso8859_8): Likewise.
3363         (Vcharset_thai_tis620): Likewise.
3364         (Vcharset_katakana_jisx0201): Likewise.
3365
3366 2001-01-17  Martin Buchholz <martin@xemacs.org>
3367
3368         * XEmacs 21.2.41 "Polyhymnia" is released.
3369
3370 2001-01-16  Didier Verna  <didier@xemacs.org>
3371
3372         * glyphs.c (image_instantiate): don't use fallbacks when
3373         instantiating a face's background pixmap by inheritance.
3374
3375 2001-01-14  Mike Sperber <mike@xemacs.org>
3376
3377         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
3378         Conditionalize accordingly.
3379
3380 2001-01-16  Martin Buchholz  <martin@xemacs.org>
3381
3382         * dumper.c (pdump_file_get): Fix a compiler warning.
3383
3384 2001-01-15  Martin Buchholz  <martin@xemacs.org>
3385
3386         Make Purify happy when pdumping.
3387         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
3388         iniitalizing all bits of new lisp object memory.
3389         * symbols.c (Fmake_local_variable): Likewise.
3390         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
3391         * symbols.c (Fdefvaralias): Likewise.
3392         * mule-charset.c (vars_of_mule_charset): Likewise.
3393
3394 2001-01-15  Martin Buchholz  <martin@xemacs.org>
3395         Add the `-nd' flag when running pre-dump operations under the debugger.
3396         * .dbxrc (run-temacs): Add `-nd'.
3397         * .dbxrc (update-elc): Likewise.
3398         * .dbxrc (dump-temacs): Likewise.
3399         * .gdbinit (run-temacs): Likewise.
3400         * .gdbinit (check-temacs): Likewise.
3401         * .gdbinit (update-elc): Likewise.
3402         * .gdbinit (dump-temacs): Likewise.
3403
3404 2001-01-14  Martin Buchholz  <martin@xemacs.org>
3405
3406         Allow building 64-bit executables on AIX with GNU malloc, e.g.
3407         export OBJECT_MODE=64
3408         configure --pdump --use-union-type=no
3409         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
3410         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
3411
3412         * miscplay.c (sndcnv8U_2mono):
3413         Avoid two uses of `++' in the same expression.
3414         Suppresses a GCC warning.
3415
3416 2001-01-13  Martin Buchholz  <martin@xemacs.org>
3417
3418         Make sure future compilers don't miscompile alloc.c.
3419         * alloc.c:
3420         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
3421         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
3422
3423 2001-01-12  Martin Buchholz  <martin@xemacs.org>
3424
3425         * dumper.c: A little post-pdump-rename comment fixup.
3426
3427 2001-01-09  Jerry James  <james@eecs.ku.edu>
3428
3429         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
3430
3431 2001-01-13  Martin Buchholz  <martin@xemacs.org>
3432
3433         * *.[ch]: Globally rename symbols using the following `pdump-rename'
3434         script:
3435         #!/bin/sh
3436         replace_symbol () {
3437           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
3438         }
3439
3440         replace_symbol pdump_wire_lists pdump_weak_object_chains
3441         replace_symbol pdump_wire_list dump_add_weak_object_chain
3442
3443         replace_symbol pdump_wires pdump_root_objects
3444         replace_symbol pdump_wire dump_add_root_object
3445
3446         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
3447         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
3448
3449         replace_symbol dumpstructinfos pdump_root_struct_ptrs
3450         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
3451         replace_symbol dumpstructinfo pdump_root_struct_ptr
3452         replace_symbol dumpstruct dump_add_root_struct_ptr
3453
3454         replace_symbol dumpopaque dump_add_opaque
3455         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
3456         replace_symbol dumpopaqueinfos pdump_opaques
3457         replace_symbol dumpopaqueinfo pdump_opaque
3458
3459         replace_symbol nb_structdump nb_root_struct_ptrs
3460         replace_symbol nb_opaquedump nb_opaques
3461
3462         replace_symbol align_table pdump_align_table
3463         replace_symbol dump_header pdump_header
3464
3465         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
3466         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
3467
3468
3469 2001-01-12  Martin Buchholz  <martin@xemacs.org>
3470
3471         * s/aix4.h: Keep the C for AIX compiler from overaggressively
3472         optimizing bytecount_to_charcount().
3473
3474 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
3475
3476         * config.h.in:
3477         (HAVE_DLFCN_H): Removed.
3478         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
3479
3480 2001-01-06  Martin Buchholz  <martin@xemacs.org>
3481
3482         Portable dumper maintainability improvements.
3483         * alloc.c (staticpro):
3484         * alloc.c (staticpro_nodump):
3485         * alloc.c (garbage_collect_1):
3486         * alloc.c (reinit_alloc_once_early):
3487         * alloc.c (init_alloc_once_early):
3488         * alloc.c: Move dumper functions to alloc.c.
3489         * dumper.c (pdump_backtrace):
3490         * dumper.c (pdump_dump_structs):
3491         * dumper.c (pdump_dump_opaques):
3492         * dumper.c (pdump_dump_rtables):
3493         * dumper.c (pdump_dump_wired):
3494         * dumper.c (pdump):
3495         * dumper.c (pdump_load_check):
3496         * dumper.c (pdump_load_finish):
3497         * dumper.c (pdump_file_unmap):
3498         * dumper.c (pdump_file_get):
3499         * dumper.c (pdump_resource_free):
3500         * dumper.c (pdump_resource_get):
3501         * dumper.c (pdump_file_free):
3502         * dumper.c (pdump_file_try):
3503         * dumper.c (pdump_load):
3504         Remove fixed size limits on staticpro(), staticpro_nodump(),
3505         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
3506         Remove custom code for dumping lrecord_implementations_table - use
3507         dumpopaque instead.
3508         Remove (most of the) custom code for dumping staticpros - dump it
3509         like any other dynarr.
3510
3511         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
3512         * dumper.c: Moved functions from alloc.c.
3513         * alloc.c (dumpstruct): Moved to dumper.c.
3514         * alloc.c (dumpopaque): Likewise.
3515         * alloc.c (pdump_wire): Likewise.
3516         * alloc.c (pdump_wire_list): Likewise.
3517
3518         * lisp.h (Dynarr_sizeof): New.
3519         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
3520         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
3521         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
3522
3523         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
3524         * lisp.h (dumpopaque): ditto.
3525         * lisp.h (pdump_wire): ditto.
3526         * lisp.h (pdump_wire_list): ditto.
3527
3528 2001-01-09  Martin Buchholz  <martin@xemacs.org>
3529
3530         * make-src-depend (PrintPatternDeps):
3531         Use `sort' to make output independent of perl version.
3532
3533 2001-01-08  Martin Buchholz  <martin@xemacs.org>
3534
3535         Port to Netbsd 1.5.
3536         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
3537         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
3538
3539 2001-01-03  Didier Verna  <didier@xemacs.org>
3540
3541         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
3542         that `focus_frame' is alive before thinking of calling
3543         `redisplay_redraw_cursor' on it.
3544
3545 2001-01-08  Martin Buchholz <martin@xemacs.org>
3546
3547         * XEmacs 21.2.40 is released.
3548
3549 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
3550
3551         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
3552
3553 2001-01-06  Martin Buchholz  <martin@xemacs.org>
3554
3555         * alloc.c (dbg_valmask): Make const.
3556         * alloc.c (dbg_typemask): Make const.
3557         * alloc.c (dbg_USE_UNION_TYPE): Make const.
3558         * alloc.c (dbg_valbits): Make const.
3559         * alloc.c (dbg_gctypebits): Make const.
3560
3561 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
3562
3563         * redisplay-x.c (x_bevel_area):
3564         redisplay.h (struct rune):
3565         Typo fixes in comments.
3566
3567 2001-01-05  Andy Piper  <andy@xemacs.org>
3568
3569         * glyphs-x.c (x_redisplay_widget): use size changed for offset
3570         adjustment.
3571
3572         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
3573
3574 2001-01-05  Martin Buchholz  <martin@xemacs.org>
3575
3576         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
3577
3578         * mule-ccl.c (stack_idx_of_map_multiple):
3579         Non const global data must not be initialized!
3580         Found by MIYASHITA Hisashi.
3581
3582 2001-01-02  Andy Piper  <andy@xemacs.org>
3583
3584         * frame.c (change_frame_size): make sure frame size is always
3585         marked as changed.
3586
3587         * glyphs.c (image_instance_layout): minor code reuse.
3588
3589         * window.c (Fcurrent_window_configuration): revert previous
3590         change.
3591
3592 2001-01-02  Martin Buchholz  <martin@xemacs.org>
3593
3594         * glyphs.h:
3595         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
3596
3597 2000-12-31  Andy Piper  <andy@xemacs.org>
3598
3599         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
3600         when widget gets unmapped.
3601
3602         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
3603         function. Make sure widgets losing focus don't just drop it.
3604         (handle_focus_event_1): record the widget with focus.
3605
3606 2000-12-31  Andy Piper  <andy@xemacs.org>
3607
3608         * window.c (allocate_window): use
3609         make_image_instance_cache_hash_table.
3610         (make_dummy_parent): ditto.
3611         (Fset_window_configuration): ditto.
3612
3613         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
3614
3615         * glyphs.c (process_image_string_instantiator): use
3616         INSTANTIATOR_TYPE.
3617         (get_image_instantiator_governing_domain): ditto.
3618         (normalize_image_instantiator): ditto.
3619         (instantiate_image_instantiator): ditto.
3620         (make_image_instance_1): ditto.
3621         (image_instantiate): ditto. Key on glyph *and* instantiator type.
3622         (instantiator_eq_equal): new function for use with instance hash
3623         tables.
3624         (instantiator_eq_hash): ditto.
3625         (make_image_instance_cache_hash_table): create a suitable hash
3626         table for storing image instances.
3627
3628         * elhash.h (hash_table_weakness): new internal weakness type
3629         HASH_TABLE_KEY_CAR_VALUE_WEAK.
3630         declare new functions.
3631
3632         * elhash.c (finish_marking_weak_hash_tables): introduce yet
3633         another weakness type for glyphs.
3634         (make_standard_lisp_hash_table): new function split out from
3635         make_general_lisp_hash_table.
3636         (make_lisp_hash_table): call make_standard_lisp_hash_table.
3637         (hash_table_instantiate): ditto.
3638         (Fmake_hash_table): ditto.
3639
3640 2000-12-31  Martin Buchholz <martin@xemacs.org>
3641
3642         * XEmacs 21.2.39 is released.
3643
3644 2000-12-29  Andy Piper  <andy@xemacs.org>
3645
3646         * menubar.c (menubar_visible_p_changed): signal the frame changed.
3647
3648         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
3649         the frame has changed so that we pick up geometry changes such as
3650         menubar visibility.
3651
3652 2000-12-28  Andy Piper  <andy@xemacs.org>
3653
3654         * lastfile.c (my_ebss): make a char array so we can pad the
3655         bss. Fixes cygwin unexec.
3656
3657         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
3658
3659 2000-12-26  Andy Piper  <andy@xemacs.org>
3660
3661         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
3662         comments and try and be more precise about a non-/SIGIO world.
3663         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
3664         SIGIO.
3665
3666         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
3667         we don't normalize to zero width or height.
3668
3669 2000-12-24  Andy Piper  <andy@xemacs.org>
3670
3671         * Makefile.in.in (ldflags): add -mwindows when appropriate.
3672
3673 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
3674
3675         * s/sco5.h: SCO 5 has pty support.
3676
3677 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
3678
3679         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
3680         input-method-xlib.c contains whole contents of input-method-xfs.c,
3681         so we can use input-method-xlib.c's code for USE_XFONTSET
3682         using #ifdefs.
3683         * input-method-xfs.c: removed.
3684
3685 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
3686
3687         * file-coding.h (enum coding_category_type): reorder enumerators to
3688         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
3689         (now one greater than largest real coding_category_type enumerator).
3690         * file-coding.c (coding_category_symbol, coding_category_by_priority,
3691         coding_category_system, fcd_descriptihon_1, decode_coding_category,
3692         Fcoding_category_list, Fset_coding_priority_list,
3693         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
3694         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
3695
3696 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
3697
3698         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
3699         * redisplay-output.c (redisplay_output_window): Clear top of window
3700         when face is changed.
3701         * redisplay-x.c (x_redraw_exposed_window): Call
3702         redisplay_clear_top_of_window.
3703         * redisplay.h: Publish redisplay_clear_top_of_window.
3704
3705 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
3706
3707         * buffer.c (Fkill_buffer): Map over all devices.
3708         * window.c (window_loop): Remove UNSHOW_BUFFER code.
3709         (list_windows): New function.
3710         (list_all_windows): Ditto.
3711         (Freplace_buffer_in_windows): Use them.
3712
3713 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
3714
3715         * database.c (berkdb_subtype): Recognize new subtype `queue'.
3716         (Fopen_database): Use `db_create' instead of `db_open'.
3717         (syms_of_database): Initialize Qqueue.
3718
3719 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
3720
3721         * buffer.c (common_init_complex_vars_of_buffer): Initialize
3722         buffer_local_face_property.
3723         * buffer.h (struct buffer): New member buffer_local_face_property.
3724         * window.c (Fset_window_buffer):  Mark window's face as changed
3725         when buffer has buffer local face.
3726         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
3727         * objects.c (color_after_change): Set buffer_local_face_property
3728         when locale of face specifier is buffer.
3729         * objects.c (font_after_change): Ditto.
3730         * objects.c (face_boolean_after_change): Ditto.
3731         * glyphs.c (image_after_change): Ditto.
3732
3733 2000-12-09  Dan Holmsand  <dan@eyebee.com>
3734
3735         * nt.c (mswindows_fstat): Report file permissions, volume serial
3736         number, etc. Code adapted from FSF Emacs 20.7.
3737
3738 2000-12-09  Dan Holmsand  <dan@eyebee.com>
3739
3740         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
3741         of stat when we don't have symbolic links, to make sure
3742         mswindows_stat is called on mswindows.
3743
3744 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
3745
3746         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
3747
3748 2000-12-12  Martin Buchholz  <martin@xemacs.org>
3749
3750         * doprnt.c (emacs_doprnt_1): More printing fixes.
3751         Make printing of numbers compatible with libc and FSF Emacs.
3752         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
3753         Use the system printf to do most of the hard work of formatting,
3754         instead of doprnt_1().
3755         Calculate memory to allocate for format string.
3756         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
3757         (doprnt_1): Cleaner code and documentation.
3758
3759 2000-12-01  Jerry James  <james@eecs.ukans.edu>
3760
3761         * Makefile.in.in: Use the loop variable to install headers.
3762
3763 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
3764
3765         * window.c (Fsplit_window): Don't invalidate face cache.
3766
3767 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
3768
3769         * minibuf.c (Fall_completions): Undo the previous change
3770         which removed checking elements start with space.
3771
3772 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
3773
3774         * mule-canna.c: Didier suppression.
3775
3776 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
3777
3778         * mule-canna.c: rename static unsigned char buf[] to key_buffer
3779         (warning suppression).  Add English comment translations.
3780
3781 2000-12-05  Martin Buchholz  <martin@xemacs.org>
3782
3783         * unexelfsgi.c (unexec): Better test for mmap failure.
3784
3785 2000-12-05  Martin Buchholz <martin@xemacs.org>
3786
3787         * XEmacs 21.2.38 is released.
3788
3789 2000-12-05  Martin Buchholz  <martin@xemacs.org>
3790
3791         * redisplay.c (bar-cursor): Make a user variable.
3792
3793         * symsinit.h: Add init_postgresql_from_environment.
3794
3795 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
3796
3797         * regex.c: Convert to clean C.
3798
3799 2000-12-05  Dan Holmsand  <dan@eyebee.com>
3800
3801         * realpath.c:
3802         Don't #include sysfile.h. Revert to duplicating PATH_MAX
3803         initialization.
3804         (sys_readlink): renamed to system_readlink to avoid conflict with
3805         the other sys_readlink.
3806
3807 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
3808
3809         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
3810
3811 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
3812
3813         * postgresql.c (init_postgresql_from_environment): new function.
3814         (vars_of_postgresql): Move code initializing Lisp variables out and
3815         into init_postgresql_from_environment.
3816         emacs.c (main_1): Call init_postgresql_from_environment if and only
3817         if running a dumped XEmacs.
3818
3819 2000-08-31  Dan Holmsand  <dan@eyebee.com>
3820
3821         * buffer.c: Make find-file-compare-truenames default to true on
3822         windows.
3823
3824         * realpath.c (win32_abs_start):
3825         (cygwin_readlink):
3826         (win32_readlink): New functions.
3827         (xrealpath): Return really real filenames on windows.
3828
3829         * fileio.c (Ffile_truename): Make file-truename work on windows.
3830
3831 2000-11-29  Didier Verna  <didier@xemacs.org>
3832
3833         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
3834         * faces.c (update_face_cachel_data): use it.
3835         * faces.c (add_face_cachel): use it. Complete background pixmap
3836         frobbing in face cache if `update_face_cachel_data' has not done so.
3837
3838 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
3839
3840         * search.c (string_match_1): Don't set last_thing_searched
3841         when search failed.
3842
3843 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
3844
3845         * buffer.c: Include casetab.h
3846         (common_init_complex_vars_of_buffer): Use new case-table object.
3847         * buffer.h: Include casetab.h
3848         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
3849         (DOWNCASE_TABLE_OF): Ditto.
3850         * bufslots.h: Remove char-tables and add case-table.
3851         * casetab.c: Include casetab.h
3852         (CASE_TABLE_P): Removed.
3853         (mark_case_table): New function.
3854         (allocate_case_table): New function.
3855         (Fcase_table_p): Use new case-table.
3856         (case_table_char): New function.
3857         (Fget_case_table): Ditto.
3858         (Fput_case_table): Ditto.
3859         (Fput_case_table_pair): Ditto.
3860         (Fcopy_case_table): Ditto.
3861         (Fcurrent_case_table): Return case-table.
3862         (Fstandard_case_table): Return case-table.
3863         (Fset_case_table): Fix doc-string.
3864         (set_case_table): Use case-table
3865         (syms_of_casetab): DEFSUBR new functions.
3866         (complex_vars_of_casetab): Set up standard case-table.
3867         * casetab.h: New file.
3868         * editfns.c: Include casetab.h
3869         (Fcompare_buffer_substrings): Use case-table.
3870         * inline.c: Include casetab.h
3871         * lisp.h: Remove bogus extern.
3872         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
3873         * search.c: Include casetab.h
3874         (TRANSLATE_ASCII): Removed.
3875         (TRANSLATE): Unconditionally translate character.
3876         (looking_at_1): Use case-table.
3877         (string_match_1): Ditto.
3878         (fast_string_match): Ditto.
3879         (search_command): Ditto.
3880         (search_buffer): Separate boyer_moore.  Check whether
3881         boyer_moore is poosible.
3882         (simple_search): New function.
3883         (boyer_moore): Separated from search_buffer. Translate char.
3884
3885 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
3886
3887         * regex.c (RE_TR_ASCII): Removed.
3888         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
3889         (PATFETCH): Call PATFETCH_RAW.
3890         (PATFETCH_RAW): Fetch Emchar.
3891         (PATUNFETCH): Decrement charptr.
3892         (GET_BUFFER_SPACE): Rename b to buf_end.
3893         (BUF_PUSH): Ditto.
3894         (BUF_PUSH_2): Ditto.
3895         (BUF_PUSH_3): Ditto.
3896         (EXTEND_BUFFER): Ditto.
3897         (SET_LIST_BIT): Ditto.
3898         (regex_compile): Ditto.  Translate non ASCII char.
3899         (compile_range): Ditto.
3900         (re_search_2): Ditto.
3901         (re_match_2_internal): Compare Emchar.
3902         (bcmp_translate): Ditto.
3903
3904 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
3905
3906         * lisp.h (basic char/int typedefs):  comment improvement.
3907
3908 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
3909
3910         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
3911         unstomp inhibit_site_lisp.  Improve comments.
3912
3913 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
3914
3915         * mule-charset.c (Fcharset_property):  improve type checking, comments.
3916
3917 2000-11-28  Andy Piper  <andy@xemacs.org>
3918
3919         * redisplay-output.c (redisplay_output_subwindow): make sure we do
3920         clipped display for windows in the gutter also.
3921         (redisplay_display_boxes_in_window_p): change semantics of return
3922         codes to be more intuitive.
3923
3924         * gutter.h: declare display_boxes_in_gutter_p.
3925
3926         * gutter.c (display_boxes_in_gutter_p): new function for
3927         redisplay.
3928
3929 2000-11-22  Andy Piper  <andy@xemacs.org>
3930
3931         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
3932         autodetect domain.
3933
3934 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
3935
3936         * callproc.c (Fold_call_process_internal):
3937         * gpm.c (Freceive_gpm_event):
3938         (tty_get_foreign_selection): Might be just warning supression.
3939         * fileio.c (Fwrite_region_internal):
3940         (Fset_visited_file_modtime):
3941         * keymap.c (event_matches_key_specifier_p):
3942         Initialize GCPROed variable.
3943
3944         * menubar-x.c (command_builder_find_menu_accelerator):
3945         Initialize before use.
3946
3947 2000-11-23  Andy Piper  <andy@xemacs.org>
3948
3949         * unexcw.c (unexec): make the resulting executable executable.
3950
3951 2000-11-21  Martin Buchholz  <martin@xemacs.org>
3952
3953         * doc.c (get_doc_string):
3954         Use size_t, not int, for result of XSTRING_LENGTH.
3955
3956         * cmds.c (Fdelete_char):
3957         * cmds.c (Fpoint_at_eol):
3958         * cmds.c (Fself_insert_command):
3959         Use EMACS_INT, not int, for result of XINT.
3960         Someday, someone will want to insert more than 2**31 identical characters.
3961
3962         * cmds.c (Fdelete_char):
3963         * cmds.c (Fdelete_backward_char):
3964         * syntax.c (Fforward_word):
3965         * syntax.c (Fforward_comment):
3966         Make COUNT argument optional, for consistency with forward-char et al.
3967
3968 2000-11-22  Martin Buchholz  <martin@xemacs.org>
3969
3970         * lisp.h:
3971         * print.c (long_to_string):
3972         Return a useful value: the pointer at end of data written.
3973
3974         * doprnt.c:
3975         Use `static const char * const' for constant strings.
3976         (union printf_arg): Delete `i', `ui' members.
3977         (get_doprnt_args):
3978         (emacs_doprnt_1):
3979         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
3980         Do all printf-ing via the `l' specifier.
3981         Use EMACS_INT instead of int.
3982         Optimize.
3983
3984 2000-11-20  Didier Verna  <didier@xemacs.org>
3985
3986         * faces.c (update_face_cachel_data): don't frob the background
3987         pixmap when the window is being created. The face is needed but
3988         does not exist yet.
3989
3990 2000-11-20  Andy Piper  <andy@xemacs.org>
3991
3992         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
3993         messing with a debug environment.
3994
3995 2000-11-20  Martin Buchholz  <martin@xemacs.org>
3996
3997         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
3998
3999 2000-11-20  Martin Buchholz  <martin@xemacs.org>
4000
4001         * casetab.c (Fcase_table_p): Fix compile error and crash.
4002
4003 2000-11-18  Philip Aston  <philipa@mail.com>
4004
4005         * s/cygwin32.h: Cygwin has SVR4-like pty support.
4006
4007 2000-11-18  Martin Buchholz  <martin@xemacs.org>
4008
4009         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
4010         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
4011
4012 2000-11-17  Martin Buchholz  <martin@xemacs.org>
4013
4014         * config.h.in: Define HAVE_ELF_H if elf.h exists.
4015         * unexelf.c: Use HAVE_ELF_H.
4016         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
4017         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
4018         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
4019         Greg Harrington <greg_harrington@hotmail.com> provided a machine
4020         for testing.
4021         So this is an unexelfsgi.c from a different line of development.
4022
4023 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
4024
4025         * regex.c (RE_TR_ASCII): New function.
4026         (RE_TRANSLATE): Call it.
4027
4028 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
4029
4030         * buffer.h (TRT_TABLE_OF): Remove assert.
4031         (IN_TRT_TABLE_DOMAIN): Removed.
4032
4033 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
4034
4035         * free-hook.c (log_gcpro):
4036         (show_gcprohist): Add support for GCPRO5.
4037
4038 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
4039
4040         * emacs.c (main_1): Improve -sd error message when --pdump=no.
4041
4042 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
4043
4044         * symeval.h: Declare flush_all_buffer_local_cache.
4045
4046         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
4047         (flush_buffer_local_cache): Added.
4048         (flush_all_buffer_local_cache): Added.
4049
4050         * lrecord.h: Remove unused XD_LO_RESET_NIL.
4051
4052         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
4053         (pdump_dump_data): Ditto.
4054         (pdump_reloc_one): Ditto.
4055         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
4056         before dumping.
4057
4058
4059 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
4060
4061         * buffer.c: Remove if 0'ed entry.
4062         * buffer.h: Rewrite TRT to use char-table.
4063         * bufslots.h: Remove mirror tables.
4064         * casetab.c: Remove mirror tables.
4065         (CASE_TABLE_P): New macro.
4066         (Fcase_table_p): Element of a case table is string or char-table.
4067         (make_mirror_trt_table): Removed.
4068         (set_case_table): Setup char-table from strings for backward
4069         compatibility.
4070         * dired.c (Fdirectory_files):
4071         * dired-msw.c: (mswindows_get_files):
4072         * lisp.h: Change prototype of re_pattern_buffer.
4073         * regex.c: (RE_TRANSLATE): New macro.
4074         (TRANSLATE_P): Ditto.
4075         Change translate to type RE_TRANSLATE_TYPE.
4076         * regex.h: Define RE_TRANSLATE_TYPE
4077         * search.c (TRANSLATE): New macro.
4078         (TRANSLATE_ASCII): New macro.
4079         Translate table is changed to Lisp_Object.
4080         (signal_failure): Inhibit return.
4081
4082 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
4083
4084         * device-msw.c:
4085         * eldap.c:
4086         * event-Xt.c:
4087         * event-stream.c:
4088         * print.c:
4089         Do UNGCPRO before return.
4090
4091 2000-11-14  Martin Buchholz <martin@xemacs.org>
4092
4093         * XEmacs 21.2.37 is released.
4094
4095 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
4096
4097         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
4098         Add comments about discarded return value.
4099
4100 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
4101
4102         * callint.c:
4103         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
4104
4105 2000-10-27  Andy Piper  <andy@xemacs.org>
4106
4107         * gutter.c (Fset_default_gutter_position): default left and right
4108         gutters to visible.
4109         (calculate_gutter_size): calculate resonable heuristic for left
4110         and right gutter sizes.
4111         (specifier_vars_of_gutter): change left and right gutter sizes to
4112         autodetect.
4113         (calculate_gutter_size_from_display_lines): new function.
4114         (output_gutter): check for resizing on left and right gutters.
4115         (clear_gutter): don't special case top and left gutters.
4116         (specifier_vars_of_gutter): use new signature for
4117         set_specifier_caching.
4118
4119         * glyphs-x.c (x_redisplay_widget): spelling fix.
4120         * glyphs.c (specifier_vars_of_glyphs):
4121         * menubar.c (specifier_vars_of_menubar):
4122         * redisplay.c (specifier_vars_of_redisplay):
4123         * toolbar.c (specifier_vars_of_toolbar):
4124         * window.c (specifier_vars_of_window):
4125         * scrollbar.c (specifier_vars_of_scrollbar):
4126         (complex_vars_of_scrollbar): use new signature for
4127         set_specifier_caching.
4128
4129         * specifier.c (set_specifier_caching): include recompute flag.
4130         (recompute_one_cached_specifier_in_window): always recompute if
4131         flag set.
4132         (recompute_one_cached_specifier_in_frame): ditto.
4133
4134         * specifier.h (struct specifier_caching): add recompute flag.
4135
4136 2000-10-24  Andy Piper  <andy@xemacs.org>
4137
4138         * unexcw.c (copy_executable_and_dump_data_section): add new
4139         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
4140         5.0 happy.
4141
4142 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
4143
4144         * console-x.h (x_device): New member modifier_release_time.
4145         * event-Xt.c (x_handle_sticky_modifiers):
4146         Bound interval modifier keys are sticky.
4147         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
4148         * events.h: extern it.
4149
4150 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
4151
4152         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
4153
4154 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
4155
4156         * event-stream.c (execute_command_event): Preserve current_events
4157         and the like when event is misc-user-event.
4158         Inhibit quit during the call to maybe_echo_keys.
4159
4160 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
4161
4162         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
4163         symlink when buffer is killed.
4164         (inhibit_clash_detection): New variable.
4165
4166 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
4167
4168         * console.c (Fset_input_method): Trigger redisplay on tty.
4169
4170 2000-11-07  Martin Buchholz  <martin@xemacs.org>
4171
4172         * process.c (Fprocess_status): Revert to previous behavior:
4173         (process-status "nosuchprocess") ==> nil
4174
4175 2000-11-06  Martin Buchholz  <martin@xemacs.org>
4176
4177         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
4178         Work around another GCC 2.95.2 optimizer bug.
4179
4180 2000-11-02  Martin Buchholz  <martin@xemacs.org>
4181
4182         * process.c (Fget_process): Use LIST_LOOP_2.
4183         (kill_buffer_processes): Use LIST_LOOP_2.
4184
4185         * minibuf.c (Fall_completions):
4186         Delete old non-functional code for FSF fourth argument.
4187
4188         * frame.c (frame_matches_frame_spec):
4189         Renamed from `frame_matches_frametype'.  Update all callers.
4190         (device_matches_device_spec):
4191         Renamed from 'device_matches_console_spec'.  Update all callers.
4192
4193         * doc.c (Fsubstitute_command_keys):
4194         Remove buffer overflow crash.  Small code cleanups.
4195
4196         * casetab.c (check_case_table): Simpler code.
4197
4198         * window.c (Freplace_buffer_in_windows):
4199         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
4200         (and similar implementation) as Fdelete_windows_on.
4201         Update all callers.
4202
4203         * alloc.c (Fmake_list):
4204         * alloc.c (make_vector):
4205         * alloc.c (Fmake_vector):
4206         * alloc.c (make_bit_vector):
4207         * alloc.c (Fmake_bit_vector):
4208         * alloc.c (Fbit_vector):
4209         * alloc.c (Fmake_string):
4210         * alloc.c (Fpurecopy):
4211         * alloc.c (Fmemory_limit):
4212         * buffer.c:
4213         * buffer.c (Fget_buffer):
4214         * buffer.c (Fkill_buffer):
4215         * buffer.c (complex_vars_of_buffer):
4216         * bytecode.c (Fcompiled_function_stack_depth):
4217         * callint.c (Fprefix_numeric_value):
4218         * event-stream.c:
4219         * event-stream.c (Fread_key_sequence):
4220         * casetab.c:
4221         * casetab.c (Fcase_table_p):
4222         * casetab.c (check_case_table):
4223         * casetab.c (Fset_case_table):
4224         * casetab.c (Fset_standard_case_table):
4225         * chartab.c:
4226         * chartab.c (Fchar_table_type):
4227         * chartab.c (Freset_char_table):
4228         * chartab.c (Fget_char_table):
4229         * chartab.c (Fget_range_char_table):
4230         * chartab.c (Fput_char_table):
4231         * chartab.c (Fmap_char_table):
4232         * chartab.c (Fcategory_table_p):
4233         * chartab.c (Fcheck_category_at):
4234         * chartab.c (Fchar_in_category_p):
4235         * chartab.c (Fcategory_table):
4236         * chartab.c (Fcopy_category_table):
4237         * chartab.c (Fset_category_table):
4238         * chartab.c (Fcategory_designator_p):
4239         * chartab.c (Fcategory_table_value_p):
4240         * cmds.c (Fdelete_char):
4241         * cmds.c (Fdelete_backward_char):
4242         * cmds.c (Fself_insert_command):
4243         * cmds.c (Fself_insert_internal):
4244         * console.c (Fvalid_console_type_p):
4245         * console.c (Fcdfw_console):
4246         * console.c (Fconsole_type):
4247         * console.c (Fconsole_name):
4248         * console.c (Fconsole_device_list):
4249         * console.c (Fconsole_on_window_system_p):
4250         * data.c:
4251         * data.c (Feq):
4252         * data.c (Fold_eq):
4253         * data.c (Fsubr_interactive):
4254         * data.c (Fchar_to_int):
4255         * data.c (Fint_to_char):
4256         * data.c (Fsetcar):
4257         * data.c (Fsetcdr):
4258         * data.c (Fnumber_to_string):
4259         * data.c (Fstring_to_number):
4260         * data.c (Frem):
4261         * database.c (mark_database):
4262         * database.c (finalize_database):
4263         * database.c (Fdatabase_live_p):
4264         * database.c (Fdatabasep):
4265         * device-x.c (Fx_get_resource):
4266         * device.c (Fdfw_device):
4267         * dired.c:
4268         * dired.c (Ffile_name_completion):
4269         * dired.c (Ffile_name_all_completions):
4270         * dired.c (Fuser_name_completion):
4271         * dired.c (Fuser_name_completion_1):
4272         * dired.c (Fuser_name_all_completions):
4273         * doc.c (Fdocumentation):
4274         * doc.c (Fdocumentation_property):
4275         * doc.c (Fsubstitute_command_keys):
4276         * editfns.c:
4277         * editfns.c (Fchar_to_string):
4278         * editfns.c (Fstring_to_char):
4279         * editfns.c (Ftemp_directory):
4280         * editfns.c (Finsert_char):
4281         * editfns.c (Fbuffer_substring_no_properties):
4282         * editfns.c (Fnarrow_to_region):
4283         * editfns.c (Fchar_equal):
4284         * editfns.c (Fchar_Equal):
4285         * editfns.c (Ftranspose_regions):
4286         * emacs.c (Fdump_emacs):
4287         * eval.c (Fthrow):
4288         * eval.c (Fcommand_execute):
4289         * eval.c (Fautoload):
4290         * eval.c (Fbacktrace):
4291         * eval.c (Fbacktrace_frame):
4292         * events.c:
4293         * events.c (Fcopy_event):
4294         * events.c (Fcharacter_to_event):
4295         * events.c (Fevent_button):
4296         * events.c (Fevent_process):
4297         * extents.c:
4298         * extents.c (Fnext_extent_change):
4299         * extents.c (Fextent_property):
4300         * faces.c (Ffacep):
4301         * faces.c (Fmake_face):
4302         * file-coding.c:
4303         * file-coding.c (Fencode_shift_jis_char):
4304         * file-coding.c (Fencode_big5_char):
4305         * fileio.c (Ffile_name_directory):
4306         * fileio.c (Ffile_name_nondirectory):
4307         * fileio.c (Ffile_name_as_directory):
4308         * fileio.c (Fdirectory_file_name):
4309         * fileio.c (Ffile_truename):
4310         * fileio.c (Fsubstitute_in_file_name):
4311         * fileio.c (Ffile_modes):
4312         * fileio.c (Fset_file_modes):
4313         * fileio.c (Fset_default_file_modes):
4314         * fileio.c (Fverify_visited_file_modtime):
4315         * floatfns.c (Facos):
4316         * floatfns.c (Fasin):
4317         * floatfns.c (Fatan):
4318         * floatfns.c (Fcos):
4319         * floatfns.c (Fsin):
4320         * floatfns.c (Ftan):
4321         * floatfns.c (Fbessel_j0):
4322         * floatfns.c (Fbessel_j1):
4323         * floatfns.c (Fbessel_jn):
4324         * floatfns.c (Fbessel_y0):
4325         * floatfns.c (Fbessel_y1):
4326         * floatfns.c (Fbessel_yn):
4327         * floatfns.c (Ferf):
4328         * floatfns.c (Ferfc):
4329         * floatfns.c (Flog_gamma):
4330         * floatfns.c (Fexp):
4331         * floatfns.c (Fexpt):
4332         * floatfns.c (Flog):
4333         * floatfns.c (Flog10):
4334         * floatfns.c (Fsqrt):
4335         * floatfns.c (Fcube_root):
4336         * floatfns.c (Facosh):
4337         * floatfns.c (Fasinh):
4338         * floatfns.c (Fatanh):
4339         * floatfns.c (Fcosh):
4340         * floatfns.c (Fsinh):
4341         * floatfns.c (Ftanh):
4342         * floatfns.c (Fabs):
4343         * floatfns.c (Ffloat):
4344         * floatfns.c (Flogb):
4345         * floatfns.c (Fceiling):
4346         * floatfns.c (Ffloor):
4347         * floatfns.c (Fround):
4348         * floatfns.c (Ftruncate):
4349         * floatfns.c (Ffceiling):
4350         * floatfns.c (Fffloor):
4351         * floatfns.c (Ffround):
4352         * floatfns.c (Fftruncate):
4353         * fns.c (Fstring_equal):
4354         * fns.c (Fstring_lessp):
4355         * fns.c (concat2):
4356         * fns.c (concat3):
4357         * fns.c (vconcat2):
4358         * fns.c (vconcat3):
4359         * fns.c (Fsubstring):
4360         * fns.c (Fassoc):
4361         * fns.c (Fold_assoc):
4362         * fns.c (assoc_no_quit):
4363         * fns.c (Fassq):
4364         * fns.c (Fold_assq):
4365         * fns.c (assq_no_quit):
4366         * fns.c (Frassoc):
4367         * fns.c (Fold_rassoc):
4368         * fns.c (Frassq):
4369         * fns.c (Fold_rassq):
4370         * fns.c (rassq_no_quit):
4371         * fns.c (Fremassoc):
4372         * fns.c (remassoc_no_quit):
4373         * fns.c (Fremassq):
4374         * fns.c (remassq_no_quit):
4375         * fns.c (Fremrassoc):
4376         * fns.c (Fremrassq):
4377         * fns.c (remrassq_no_quit):
4378         * fns.c (Fsort):
4379         * fns.c (Fplist_get):
4380         * fns.c (Fplist_put):
4381         * fns.c (Fplist_remprop):
4382         * fns.c (Fplist_member):
4383         * fns.c (Flax_plist_get):
4384         * fns.c (Flax_plist_put):
4385         * fns.c (Flax_plist_remprop):
4386         * fns.c (Flax_plist_member):
4387         * fns.c (Fequal):
4388         * fns.c (Fold_equal):
4389         * fns.c (Frequire):
4390         * fns.c (Fbase64_encode_region):
4391         * fns.c (Fbase64_encode_string):
4392         * fns.c (Fbase64_decode_region):
4393         * frame.c:
4394         * frame.c (frame_matches_frame_spec):
4395         * frame.c (device_matches_device_spec):
4396         * frame.c (next_frame):
4397         * frame.c (previous_frame):
4398         * frame.c (Fnext_frame):
4399         * frame.c (Fprevious_frame):
4400         * frame.c (Fframe_property):
4401         * frame.c (Fset_frame_height):
4402         * frame.c (Fset_frame_size):
4403         * frame.h:
4404         * glyphs.c:
4405         * glyphs.c (if):
4406         * glyphs.c (decode_error_behavior_flag):
4407         * glyphs.c (Fmake_image_instance):
4408         * indent.c (Findent_to):
4409         * intl.c (Fignore_defer_gettext):
4410         * keymap.c (Fkeymapp):
4411         * keymap.c (Flookup_key):
4412         * lread.c:
4413         * lread.c (Fload_internal):
4414         * lread.c (Feval_buffer):
4415         * lread.c (Feval_region):
4416         * macros.c (Fexecute_kbd_macro):
4417         * marker.c (set_marker_internal):
4418         * marker.c (Fset_marker):
4419         * marker.c (set_marker_restricted):
4420         * marker.c (Fcopy_marker):
4421         * marker.c (noseeum_copy_marker):
4422         * menubar.c:
4423         * menubar.c (Fpopup_menu):
4424         * minibuf.c:
4425         * mule-charset.c (Fcharset_name):
4426         * mule-charset.c (Fchar_charset):
4427         * mule-charset.c (Fchar_octet):
4428         * mule-charset.c (Fsplit_char):
4429         * mule-wnnfns.c (Fwnn_open):
4430         * mule-wnnfns.c (Fwnn_dict_comment):
4431         * mule-wnnfns.c (Fwnn_quit_henkan):
4432         * mule-wnnfns.c (Fwnn_word_toroku):
4433         * mule-wnnfns.c (Fwnn_word_sakujo):
4434         * mule-wnnfns.c (Fwnn_word_use):
4435         * mule-wnnfns.c (Fwnn_hindo_set):
4436         * objects.c:
4437         * objects.c (Fmake_color_instance):
4438         * objects.c (Fmake_font_instance):
4439         * print.c (Fwrite_char):
4440         * process.c:
4441         * process.c (mark_process):
4442         * process.c (print_process):
4443         * process.c (get_process_from_usid):
4444         * process.c (Fprocessp):
4445         * process.c (Fprocess_live_p):
4446         * process.c (Fget_process):
4447         * process.c (Fget_buffer_process):
4448         * process.c (get_process):
4449         * process.c (Fprocess_id):
4450         * process.c (Fprocess_name):
4451         * process.c (Fprocess_command):
4452         * process.c (init_process_io_handles):
4453         * process.c (start_process_unwind):
4454         * process.c (Fstart_process_internal):
4455         * process.c (Fopen_multicast_group_internal):
4456         * process.c (Fset_process_window_size):
4457         * process.c (read_process_output):
4458         * process.c (send_process):
4459         * process.c (Fprocess_tty_name):
4460         * process.c (Fset_process_buffer):
4461         * process.c (Fprocess_buffer):
4462         * process.c (Fprocess_mark):
4463         * process.c (set_process_filter):
4464         * process.c (Fset_process_filter):
4465         * process.c (Fprocess_filter):
4466         * process.c (Fprocess_send_region):
4467         * process.c (Fprocess_send_string):
4468         * process.c (exec_sentinel):
4469         * process.c (Fset_process_sentinel):
4470         * process.c (Fprocess_sentinel):
4471         * process.c (status_notify):
4472         * process.c (Fprocess_status):
4473         * process.c (Fprocess_exit_status):
4474         * process.c (process_send_signal):
4475         * process.c (Fprocess_send_eof):
4476         * process.c (deactivate_process):
4477         * process.c (remove_process):
4478         * process.c (Fdelete_process):
4479         * process.c (kill_buffer_processes):
4480         * process.c (Fprocess_kill_without_query):
4481         * process.c (Fprocess_kill_without_query_p):
4482         * rangetab.c:
4483         * rangetab.c (Fget_range_table):
4484         * rangetab.c (Fput_range_table):
4485         * rangetab.c (Fremove_range_table):
4486         * rangetab.c (Fclear_range_table):
4487         * search.c:
4488         * search.c (Fskip_chars_forward):
4489         * search.c (Fskip_chars_backward):
4490         * search.c (Fskip_syntax_forward):
4491         * search.c (Fskip_syntax_backward):
4492         * search.c (search_command):
4493         * search.c (Freplace_match):
4494         * search.c (Fregexp_quote):
4495         * select.c (Fown_selection_internal):
4496         * select.c (Fselection_owner_p):
4497         * select.c (Fselection_exists_p):
4498         * select.c (Fget_selection_internal):
4499         * specifier.c:
4500         * symbols.c:
4501         * symbols.c (Fintern):
4502         * symbols.c (Fintern_soft):
4503         * symbols.c (Funintern):
4504         * symbols.c (Fapropos_internal):
4505         * symbols.c (Fset_default):
4506         * syntax.c:
4507         * syntax.c (Fsyntax_table_p):
4508         * syntax.c (Fcopy_syntax_table):
4509         * syntax.c (Fset_syntax_table):
4510         * syntax.c (Fchar_syntax):
4511         * syntax.c (syntax_match):
4512         * syntax.c (Fmatching_paren):
4513         * syntax.c (Fforward_word):
4514         * syntax.c (scan_lists):
4515         * syntax.c (Fscan_lists):
4516         * syntax.c (Fscan_sexps):
4517         * syntax.c (Fparse_partial_sexp):
4518         * toolbar.c (Fcheck_toolbar_button_syntax):
4519         * tooltalk.doc:
4520         * window.c:
4521         * window.c (Fwindowp):
4522         * window.c (Fwindow_live_p):
4523         * window.c (Fwindow_point):
4524         * window.c (Fdelete_window):
4525         * window.c (Fnext_window):
4526         * window.c (Fprevious_window):
4527         * window.c (Fother_window):
4528         * window.c (window_loop):
4529         * window.c (Fget_lru_window):
4530         * window.c (Fsplit_window):
4531         * window.c (Fenlarge_window):
4532         * window.c (Fenlarge_window_pixels):
4533         * window.c (Fshrink_window):
4534         * window.c (Fshrink_window_pixels):
4535         * window.c (change_window_height):
4536         * window.c (Fwindow_configuration_p):
4537         * window.c (Fcurrent_window_configuration):
4538         * window.h:
4539         * casefiddle.c (casify_object):
4540         * casefiddle.c (Fupcase):
4541         * casefiddle.c (Fdowncase):
4542         * casefiddle.c (Fcapitalize):
4543         * casefiddle.c (Fupcase_initials):
4544         * casefiddle.c (casify_region_internal):
4545         * casefiddle.c (casify_region):
4546         * casefiddle.c (Fupcase_region):
4547         * casefiddle.c (Fdowncase_region):
4548         * casefiddle.c (Fcapitalize_region):
4549         * casefiddle.c (Fupcase_initials_region):
4550         * casefiddle.c (Fupcase_word):
4551         * casefiddle.c (Fdowncase_word):
4552         * casefiddle.c (Fcapitalize_word):
4553         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
4554         Replace 0 with '\0' when working with bytes.
4555         Replace initial "(" with "\(" in docstrings.
4556
4557 2000-11-01  Martin Buchholz  <martin@xemacs.org>
4558
4559         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
4560
4561         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
4562
4563 2000-10-31  Martin Buchholz  <martin@xemacs.org>
4564
4565         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
4566
4567 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
4568
4569         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
4570         correctly.
4571
4572 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
4573
4574         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
4575         (inhibit_auto_save_session): New variable.
4576         (vars_of_fileio): Declare and initialize them.
4577         * fileio.c (Fdo_auto_save): Don't create session file if
4578         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
4579
4580 2000-10-31  Martin Buchholz  <martin@xemacs.org>
4581
4582         * sgiplay.c (play_internal): C++ compilability.
4583         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
4584         * callproc.c (Fold_call_process_internal):
4585         Remove unused vars `env', `first'.
4586         * scrollbar.c (update_scrollbar_instance):
4587         #### unused var `current_window'.
4588         * redisplay-tty.c: Put currently unused vars insert_mode_on,
4589         etc. within #ifdef NOT_YET.
4590         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
4591         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
4592         * specifier.c (specifier_instance):
4593         #### unused var `tag'.
4594         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
4595
4596 2000-10-27  Martin Buchholz  <martin@xemacs.org>
4597
4598         * fns.c (Fbutlast):
4599         * fns.c (list_sort):
4600         * fns.c (Ffillarray):
4601         * fns.c (bytecode_nconc2):
4602         * fns.c (Fnconc):
4603         * fns.c (mapcar1):
4604         * fns.c (Fmapconcat):
4605         Be pedantically 64-bit correct.  For the time when someone will
4606         want to have a list with length > 2**32.
4607
4608         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
4609         Work around MIPSpro compiler bug.
4610
4611         * process-unix.c (unix_kill_child_process): Add snarky comment.
4612         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
4613
4614         * config.h.in: Oops, _getpt ==> _getpty
4615
4616 2000-10-26  Martin Buchholz  <martin@xemacs.org>
4617
4618         * config.h.in:
4619         * regex.c:
4620         Use void*, not char*, as return type of alloca().
4621
4622         * alloc.c (free_marker): Side effect inside assert expression!
4623
4624 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
4625
4626         * mule-charset.c (Fset_charset_ccl_program): To check
4627         if the given ccl program is valid, use setup_ccl_program()
4628         instead of CHECK_VECTOR().
4629         (Fmake_charset): Likewise.
4630
4631 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
4632
4633         * faces.c (get_extent_fragment_face_cache_index):
4634         Fix cachel.merged_faces memory leak.
4635
4636 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
4637
4638         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
4639         Reset MSB of octets obtained by DECODE_SJIS
4640         because of the incompatibility with Emacs.
4641         (ccl_driver)<CCL_ENCODE_SJIS>:
4642         Set MSB of octets before passing them to
4643         ENCODE_SJIS because of the incompatibility
4644         with Emacs.
4645
4646 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
4647
4648         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
4649         (DECLARE_LRECORD): Undo the last change.
4650         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
4651
4652 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
4653
4654         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
4655         the implementation to lrecord_implementations_table.
4656
4657 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
4658
4659         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
4660         initial value of `lrecord_type_##c_name' and
4661         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
4662         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
4663         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
4664         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
4665         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
4666
4667 2000-10-17  Martin Buchholz  <martin@xemacs.org>
4668
4669         * miscplay.c (sndcnv8S_2mono):
4670         (sndcnv2monounsigned):
4671         (sndcnvULaw_2linear):
4672         (sndcnv16swap):
4673         Remove implementation-defined behavior.
4674
4675 2000-10-12  Martin Buchholz  <martin@xemacs.org>
4676
4677         * input-method-xlib.c: Warning suppression.
4678
4679 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
4680
4681         * mule-ccl.c: Sync up with Emacs 21.0.90.
4682         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
4683         Do nothing.
4684         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
4685         Likewise.
4686         (ccl_driver[WriteMultibyteChar2]): Bug fix.
4687         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
4688         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
4689         leading char belongs to official 2-dimensional charset.
4690         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
4691         write the given character as is.  Otherwise,
4692         if it is a multibyte char, convert it by
4693         non_ascii_set_charptr_emchar, then write it.
4694         (CCL_WRITE_STRING): Likewise.
4695         (ccl_get_compiled_code): New function.
4696         (setup_ccl_program): When ccl_prog is invalid,
4697         return -1.
4698         (Fregister_code_conversion_map): New function.
4699         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
4700
4701         * mule-ccl.h: Sync up with Emacs 21.0.90.
4702         (Fregister_ccl_program): export it.
4703
4704         * redisplay-msw.c (separate_textual_runs):
4705         If ccl program is not valid, don't do ccl conversion.
4706
4707         * redisplay-x.c (separate_textual_runs): Ditto.
4708
4709         * file-coding.c (Fmake_coding_system):
4710         When type is ccl and value is vector, register it
4711         with a proper symbol.  And checks whether the
4712         given ccl program is valid.
4713         (mule_decode): When calling ccl_driver, if src indicates
4714         NULL pointer, set an empty string instead.
4715         (mule_encode): Likewise.
4716
4717 2000-10-11  Martin Buchholz  <martin@xemacs.org>
4718
4719         The following large batch of changes gets us back to a state of
4720         C++ compilability.  Extbyte is now a char, which means that
4721         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
4722
4723         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
4724
4725         * sound.c (Fplay_sound): Type correctness.
4726
4727         * select-x.c (hack_motif_clipboard_selection): Type correctness.
4728         (x_get_window_property): Type correctness.
4729         (receive_incremental_selection): unsigned char ==> Extbyte
4730         (selection_data_to_lisp_data): unsigned char ==> Extbyte
4731         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
4732         (Fx_store_cutbuffer_internal): Type correctness.
4733
4734         * process-unix.c (try_to_initialize_subtty): Type correctness.
4735
4736         * objects-x.c (x_print_color_instance): Type correctness.
4737         (x_print_font_instance): Type correctness.
4738         (x_list_fonts): SExtbyte ==> Extbyte.
4739         (valid_x_font_name_p): SExtbyte ==> Extbyte.
4740         (x_find_charset_font): SExtbyte ==> Extbyte.
4741         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
4742         (truename_via_XListFonts): SExtbyte ==> Extbyte.
4743         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
4744         Use bufbyte_strcmp.
4745
4746         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
4747         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
4748         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
4749         (BYTE_C0_P): Use bit ops for char-signedness safety.
4750         (BYTE_C1_P): Use bit ops for char-signedness safety.
4751         (CHARSET_BY_LEADING_BYTE):
4752         (CHARSET_BY_ATTRIBUTES):
4753         Always use inline function.
4754         Use type_checking_assert.
4755         Hide chlook.
4756
4757         * mule-charset.c (non_ascii_charptr_copy_char):
4758         Modify to work with both ASCII and non-ASCII characters.
4759         Improve docs and variable names.
4760         Replace over-clever fall-through switch with a simple loop.
4761         (Lstream_get_emchar_1):
4762         Replace over-clever fall-through switch with a simple loop.
4763
4764         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
4765         Warning suppression.
4766
4767         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
4768         the return value of Lstream_getc, which could be EOF as well.
4769
4770         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
4771
4772         * lisp.h: Make Extbyte a char, not unsigned char, so that external
4773         APIs can be used on Extbytes without casts.  Risky!
4774         (SExtbyte): Remove.
4775         (UExtbyte): Remove.
4776
4777         * input-method-xlib.c (XIM_init_device):
4778         Use Xlib.h instead of IntrinsicP.h.
4779         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
4780         which will break in X11R7.
4781         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
4782         to call XRegisterIMInstantiateCallback with correct types.
4783
4784         * gui-x.c (button_item_to_widget_value): Type correctness.
4785
4786         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
4787
4788         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
4789         (xbm_instantiate_1): Type correctness.
4790         (BUILD_GLYPH_INST):  Type correctness.
4791
4792         * fileio.c (Fsubstitute_in_file_name): Type correctness.
4793
4794         * file-coding.c:
4795         (decode_coding_sjis):
4796         (decode_coding_big5):
4797         (decode_coding_ucs4):
4798         (decode_coding_utf8):
4799         (decode_coding_iso2022):
4800         (decode_coding_no_conversion):
4801         Make all decoding functions take an Extbyte * arg.
4802         (encode_coding_sjis):
4803         (encode_coding_big5):
4804         (encode_coding_ucs4):
4805         (encode_coding_utf8):
4806         (encode_coding_iso2022):
4807         (encode_coding_no_conversion):
4808         Make all encoding functions take a Bufbyte * arg.
4809         Use size_t instead of unsigned int for memory sizes.
4810         Only cast to unsigned char whenever dereferencing Extbyte *.
4811
4812         * doc.c (unparesseuxify_doc_string): Type correctness.
4813
4814         * console-x.c (split_up_display_spec):
4815         Rewrite without using details of internal string representation.
4816         (x_semi_canonicalize_device_connection): Type correctness.
4817
4818         * config.h.in:
4819         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
4820         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
4821         (HAVE_XFREE386): Removed.
4822
4823         * buffer.h (DEC_CHARPTR): `const' correctness.
4824         (bufbyte_strcmp): New.
4825         (bufbyte_memcmp): New.
4826
4827         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
4828
4829         * buffer.h (XCHAR_OR_CHAR_INT):
4830         Always use inline function.
4831         Remove redundant type checking assert() - XINT will abort quite nicely.
4832
4833 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
4834
4835         * search.c (Freplace_match): Set newtext to an empty string.
4836
4837 2000-10-10  Martin Buchholz  <martin@xemacs.org>
4838
4839         * s/decosf1-3.h: Remove #include of stropts.h
4840         * s/ptx.h: Remove #include of stropts.h
4841         * s/usg5-4.h: Remove #include of stropts.h
4842         * sysproc.h:
4843         * config.h.in:
4844         Use stropts.h, not sys/stropts.h.
4845         Use strtio.h, not sys/strtio.h.
4846
4847 2000-10-04  Martin Buchholz <martin@xemacs.org>
4848
4849         * XEmacs 21.2.36 is released.
4850
4851 2000-09-21  Andy Piper  <andy@xemacs.org>
4852
4853         * glyphs-x.c (x_redisplay_widget): make sure non-structural
4854         changes still involve copying the widget tree.
4855         (update_widget_face): make sure a change is register in the widget
4856         tree. Call update_tab_widget_face appropriately.
4857         (update_tab_widget_face): ditto.
4858         (x_tab_control_redisplay): make sure non-structural changes still
4859         involve copying the widget tree.
4860
4861 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
4862
4863         * lread.c (locate_file): Check the path element is non-nil.
4864
4865 2000-10-02  Martin Buchholz  <martin@xemacs.org>
4866
4867         * lisp.h: Warning suppression for SCO compilers.
4868
4869         * redisplay-tty.c (reset_tty_modes): Fix crash.
4870         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
4871
4872 2000-09-27  Martin Buchholz  <martin@xemacs.org>
4873
4874         Big signal/process handling overhaul.  Bugs fixed:
4875         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
4876         M-x comint-kill-subjob should work for both values nil and t of
4877         process-connection-type. It was broken on most platforms.
4878         Testing on Irix and Cygwin still needed.  Other plaforms tested.
4879         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
4880         * process-unix.c: Signal/Process handling overhaul.
4881         (pty_name): make 64 bytes, as `expect' does, for paranoia.
4882         (allocate_pty): Use all available modern methods of allocating
4883         ptys, falling back to old style BSD allocation as a last resort.
4884         Use allegedly more secure Unix98 pty allocation by default.
4885         (allocate_pty_the_old_fashioned_way): New. the last resort.
4886         (unix_create_process): Push ptem, ldterm, ttcompat where
4887         available.  Autoconfiscate.
4888         (try_to_initialize_subtty): New.
4889         (unix_kill_child_process): Proper signal handling for ptys on most
4890         platforms, using special knowledge of AIX, BSD, etc...
4891         (unix_create_process): Always disconnect_controlling_terminal() for
4892         subprocesses, whether using ptys or not.
4893         * process.h: Remove old getpt-dependent PTY code.
4894         * process.c (Fprocess_send_signal): New, obvious generic function.
4895         (decode_signal): New.
4896         (Finterrupt_process):
4897         (Fkill_process):
4898         (Fquit_process):
4899         (Fstop_process):
4900         (Fcontinue_process):
4901         (Fsignal_process): Use decode_signal.
4902         (process_send_signal):
4903         Many docstring corrections.
4904         Allow any signal to be sent to a process object.
4905         * config.h.in: Add symbols for big signal/process overhaul.
4906         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
4907         * sysproc.h: Include process-related headers, where available:
4908         sys/stropts.h sys/strtio.h pty.h libutil.h
4909         * s/irix4-0.h:
4910         * s/irix5-0.h:
4911         * s/cygwin32.h:
4912         * s/gnu.h:
4913         * s/linux.h:
4914         * s/hpux.h:
4915         * s/aix3-1.h:
4916         Remove old S&M pty stuff.
4917         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
4918         * systty.h: Simplify cpp hackery, improve comments.
4919         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
4920
4921         * editfns.c (Fformat_time_string):
4922         Be a little more paranoid with the return value of ctime.
4923
4924         * fileio.c (check_executable):
4925         (check_writable):
4926         Use symbolic constants X_OK, W_OK.
4927
4928         * console-x.c (split_up_display_spec): Fix a warning.
4929
4930 2000-10-02  Martin Buchholz  <martin@xemacs.org>
4931
4932         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
4933         * ntproc.c (sys_spawnve): make_string ==> build_string
4934         Small clarity improvements.
4935
4936 2000-09-30  Martin Buchholz  <martin@xemacs.org>
4937
4938         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
4939
4940         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
4941
4942         * config.h.in (HAVE_STRCASECMP): Remove.
4943
4944 2000-09-29  Martin Buchholz  <martin@xemacs.org>
4945
4946         * redisplay-output.c (redisplay_output_pixmap):
4947         Cleaner and possibly more 64-bit correct code.
4948
4949 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
4950
4951         * dumper.c (pdump_load_finish): move restoration of
4952         `noninteractive1' to emacs.c (main_1).
4953         * emacs.c (main_1): protect LISP-visible command-line flags
4954         from pdump_load().
4955
4956 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
4957
4958         * Makefile.in.in (versionclean):  Use EXE_TARGET and
4959         DUMP_TARGET instead of literal program names.
4960
4961 2000-09-20  Martin Buchholz  <martin@xemacs.org>
4962
4963         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
4964
4965 2000-09-19  Martin Buchholz  <martin@xemacs.org>
4966
4967         * *: Spelling mega-patch
4968
4969 2000-09-19  Martin Buchholz  <martin@xemacs.org>
4970
4971         * fns.c (bad_bad_turtle):
4972         Delete "Eek!" comment, since we fixed the bug to which it refers.
4973
4974 2000-09-16  Martin Buchholz  <martin@xemacs.org>
4975
4976         * alloca.c: Replace REGISTER with register.
4977
4978 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
4979
4980         * file-coding.c (ucs_to_char): Use countof.
4981
4982 2000-09-16  Martin Buchholz  <martin@xemacs.org>
4983
4984         * file-coding.c: (ucs_to_char):
4985         (complex_vars_of_file_coding):
4986         Use countof instead of sizeof.
4987         Use CHECK_NATNUM instead of CHECK_INT.
4988
4989         * sysdep.c (strcasecmp): Remove.
4990         * device-x.c (ascii_strcasecmp): New.
4991         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
4992         Avoid using non-standard non-portable strcasecmp.
4993
4994 2000-09-16  Martin Buchholz  <martin@xemacs.org>
4995
4996         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
4997         * font-lock.c: remove reference to emacsfns.h.
4998         * search.c: small doc improvement.
4999         * event-Xt.c: correct file names in comments.
5000         * console-x.h Correct file names in comments.
5001         * frame.c: Correct file names in comments.
5002         * event-stream.c: remove Energize from comments.
5003
5004 2000-09-15  Martin Buchholz  <martin@xemacs.org>
5005
5006         * symeval.h (DEFERROR_STANDARD):
5007         (DEFERROR):
5008         (DEFSYMBOL):
5009         (DEFSYMBOL_NO_DUMP):
5010         (DEFSYMBOL_MULTIWORD_PREDICATE):
5011         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
5012         (DEFKEYWORD):
5013         The construct &##name is not sensible C.
5014         Fixes compilation errors with Unixware native compiler.
5015
5016 2000-09-14  Martin Buchholz  <martin@xemacs.org>
5017
5018         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
5019         (next_frame_internal): Removed.  We now just have next_frame.
5020         (next_frame):
5021         Write a simpler and cleaner one-pass algorithm.
5022         Remove called_from_delete_device arg and #ifdefed-out code.
5023         (previous_frame):
5024         Renamed from prev_frame.  Update callers.
5025         Cleaned up to have an analogous implementation to next_frame.
5026         (other_visible_frames_internal): Remove the
5027         called_from_delete_device bogus arg, and hence, remove this
5028         function.  Just use other_visible_frames().
5029
5030         * window.c (Fnext_window):
5031         Prettify docstring.
5032         Since next_frame() is guaranteed to return a frame, remove check
5033         for nil inserted in previous patch.
5034         (Fprevious_window):
5035         Prettify docstring.
5036         Make code look more like Fnext_window.
5037         (window_loop):
5038         Respect the `console' arg when iterating through windows.
5039         Fixes bug: (get-buffer-window buffer t device) not respecting
5040         the `device' arg.
5041         This function needs more work, as others have pointed out.
5042
5043         * frame.h: Rename prev_frame to previous_frame.
5044         device_matches_console_spec no longer takes a `frame' arg.
5045
5046         * s/gnu.h:
5047         * s/linux.h:
5048         * s/hpux.h:
5049         Use EMACS_BLOCK_SIGNAL instead of sigblock.
5050         From "Golubev I. N." <gin@mo.msk.ru>.
5051
5052         * make-src-depend: Fix typo.
5053
5054 2000-09-13  Martin Buchholz  <martin@xemacs.org>
5055
5056         * window.c (Fnext_window):
5057         next_frame() might return nil, not a frame.
5058         Fixes this crash:
5059         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
5060
5061         * frame.c (next_frame_internal):
5062         We've passed a frame if we've passed its device.
5063         Fixes this crash:
5064         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
5065 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
5066
5067 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
5068
5069         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
5070         Allow option to suppress accelerators in menu/dialog items.
5071         (populate_or_checksum_helper): Pass dialog title through above.
5072
5073 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
5074
5075         * event-msw.c (mswindows_key_to_emacs_keysym):
5076         Add "pause" key, fix "menu" key.
5077
5078 2000-09-09  Martin Buchholz  <martin@xemacs.org>
5079
5080         * eval.c (reinit_vars_of_eval):
5081         Increase max_lisp_eval_depth to 1000,
5082         required for thai-xtis.el to byte-compile under some circumstances.
5083
5084 2000-09-04  Martin Buchholz  <martin@xemacs.org>
5085
5086         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
5087         From Kenichi Handa.
5088
5089 2000-09-01  Martin Buchholz  <martin@xemacs.org>
5090
5091         * make-src-depend: Make the generated Makefiles smaller.
5092
5093         * s/hpux.h (SETUP_SLAVE_PTY):
5094         Provide a %d in the format string for the errno argument.
5095
5096         * editfns.c (Ftemp_directory):
5097         Warning fix.
5098         Avoid buffer overrun on very long file name.
5099
5100         * input-method-xlib.c (XIM_init_device):
5101         6th parameter of XRegisterIMInstantiateCallback has different
5102         pointer types on different OSes, so simply cast to (void *).
5103
5104         * unexhp9k800.c: Warning fixes.  Fiddly changes.
5105
5106         * sysdll.c (dll_open):
5107         shl_load will hang hard if passed a NULL filename.
5108         Simply return NULL for compatibility with dlopen.
5109         * sysdll.c: Conform to XEmacs coding standards.
5110
5111         * sysdep.c (get_pty_max_bytes):
5112         Support pty input lines longer than 512 bytes on HP-UX 10.20.
5113
5114 2000-08-31  Martin Buchholz  <martin@xemacs.org>
5115
5116         * tooltalk.c: Add #include <syssignal.h>
5117
5118 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
5119
5120         * s/hpux.h: Don't use undefined function sigunblock().
5121
5122 2000-08-31  Martin Buchholz  <martin@xemacs.org>
5123
5124         * config.h.in: Add HAVE_BALLOON_HELP.
5125         * emacs.c: Use HAVE_BALLOON_HELP.
5126         * Makefile.in.in (x_objs):
5127         Make Balloon Help conditional on finding shape.h.
5128
5129 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
5130
5131         * syntax.c (regex_emacs_buffer_p): New variable.
5132         * syntax.h (regex_emacs_buffer_p): extern.
5133         * search.c (looking_at_1):
5134         (string_match_1):
5135         (fast_string_match):
5136         (search_buffer): Set regex_emacs_buffer_p.
5137         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
5138         when before_dot, at_dot, after_dot.
5139
5140 2000-08-23  Andy Piper  <andy@xemacs.org>
5141
5142         * gui-x.c (popup_selection_callback): Only set action_occurred
5143         when we really have an image instance.
5144         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
5145
5146 2000-08-23  Andy Piper  <andy@xemacs.org>
5147
5148         * gui-msw.c (mswindows_handle_gui_wm_command): set
5149         action_occurred.
5150         * gui-x.c (popup_selection_callback): ditto.
5151
5152         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
5153         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
5154         (struct Lisp_Image_Instance): add action_occurred flag.
5155
5156         * glyphs.c (redisplay_subwindow): use action_occurred flag.
5157         (image_instance_changed): ditto.
5158         (reset_frame_subwindow_instance_cache): only unmap windows - do
5159         not remove them from the cache also.
5160
5161         * glyphs-widget.c (tab_control_update): better debug.
5162         (progress_gauge_update): ditto.
5163         (layout_update): ditto.
5164         (layout_instantiate): ditto.
5165         (tab_control_order_only_changed): cope with null pending items.
5166
5167         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
5168         debug. Force selection of an item when an action occurred. Cope
5169         with null pending_items.
5170         (mswindows_progress_gauge_redisplay): better debug.
5171         * glyphs-x.c (x_tab_control_redisplay): ditto.
5172
5173         * redisplay.c (redisplay_frame): reset the frame cache if the
5174         frame is garbaged.
5175
5176         * window.c (Fset_window_configuration): potentially re-enable
5177         frame cache reset.
5178         (window_unmap_subwindows): need to finalize instances here since
5179         it is only used in mark_window_as_deleted.
5180
5181 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
5182
5183         * nas.c (SndOpenDataForReading):
5184         nas.c (WaveOpenDataForReading):
5185         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
5186         Somehow escaped from the 2000-08-14 patch.
5187
5188 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5189
5190         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
5191         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
5192
5193 2000-08-21  Andy Piper  <andy@xemacs.org>
5194
5195         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
5196         window if it is not already displayed.
5197
5198         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
5199         it is not already displayed.
5200
5201         * window.c (Fset_window_configuration): don't reset the frame
5202         cache.
5203
5204         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
5205         instances from the frame cache if we are actually finalizing them.
5206         (reset_frame_subwindow_instance_cache): reset frame cache only
5207         after unmapping everything.
5208         (map_subwindow): set displayed flag after mapping.
5209
5210 2000-08-21  Martin Buchholz  <martin@xemacs.org>
5211
5212         * data.c (indirect_function):
5213         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
5214
5215         * eval.c (function_argcount):
5216         Use original function when signaling errors.
5217
5218 2000-08-18  Andy Piper  <andy@xemacs.org>
5219
5220         * frame.c (delete_frame_internal): use new
5221         free_frame_subwindow_instances name.
5222
5223         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
5224         (add_tab_item): make return type correct.
5225         (mswindows_tab_control_instantiate): assert index of tab.
5226         (mswindows_tab_control_redisplay): Re-code to use
5227         gui_item_equal_sans_selected and gui_item_list_find_selected.
5228
5229         * glyphs-widget.c (tab_control_update): Correct comment.
5230
5231         * window.c (window_unmap_subwindows): use new
5232         unmap_subwindow_instance_cache_mapper.
5233         (window_unmap_subwindows_cache_mapper): deleted.
5234         (Fset_window_configuration): comparisons should now be with
5235         EQ. Preserve the subwindow instance cache across configuration
5236         changes.
5237         (allocate_window): ditto.
5238         (make_dummy_parent): ditto.
5239
5240         * glyphs.c (free_frame_subwindow_instances): rename from
5241         free_frame_subwindow_instance_cache. finalize all instances rather
5242         than just those in the display cache.
5243         (finalize_all_subwindow_instances): walk windows unmapping and
5244         finalizing subwindows.
5245         (unmap_subwindow_instance_cache_mapper): moved from
5246         window.c. Allow finalization as well as unmapping.
5247
5248         * gui.c (gui_item_list_find_selected): new function.
5249
5250         * gui.h (gui_item_list_find_selected): declare.
5251
5252         * glyphs-x.c (x_tab_control_redisplay): pick tab
5253         explicitly. Re-code to use gui_item_equal_sans_selected and
5254         gui_item_list_find_selected.
5255
5256         * glyphs-x.h: add lwlib-utils.h
5257
5258         * buffer.c (Frecord_buffer): undo previous change.
5259
5260 2000-08-09  Vin Shelton  <acs@xemacs.org>
5261
5262         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
5263         possible.  Create temporary files more securely.  The patch was
5264         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
5265         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
5266         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
5267         for details.
5268
5269 2000-08-07  Ben Wing  <ben@xemacs.org>
5270
5271         * getloadavg.c: remove duplicate (and windows-breaking)
5272         includes of fcntl.h and sys/file.h.
5273
5274         * nt.c: remove duplicate getloadavg() definition.
5275
5276         * sysdll.h (Qdll_filename_encoding): add missing stand-in
5277         encodings.
5278
5279 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
5280
5281         * eval.c (function_argcount): If function needs to be autoloaded
5282         actually use the loaded definition.
5283         GCPRO function.
5284
5285 2000-08-05  Ben Wing  <ben@xemacs.org>
5286
5287         * getloadavg.c: add prototype for getloadavg().  remove
5288         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
5289         of the code).  remove duplicate header includes.
5290
5291         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
5292
5293         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
5294         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
5295         useful load average.
5296
5297         * alloc.c (reinit_alloc_once_early): removed references to
5298         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
5299         the lisp vars are the only things referencing the malloc_sbrk_*
5300         vars, and they were already if 0'd out.  these vars only exist
5301         in the older malloc.c, which is basically unused, and they're
5302         only for informational purposes.
5303
5304         * m\*.h: removed useless VIRT_ADDR_VARIES.
5305
5306         * m\powerpc.h: removed stray NO_ARG_ARRAY.
5307
5308 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
5309
5310         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
5311         color if the image is a mono pixmap.
5312
5313 2000-07-30  Ben Wing  <ben@xemacs.org>
5314
5315         * Makefile.in.in (release):
5316         Remove stray @.
5317
5318         * buffer.c (directory_is_current_directory):
5319         * dired-msw.c (mswindows_get_files):
5320         * dired.c:
5321         * dired.c (Fdirectory_files):
5322         * dired.c (file_name_completion_stat):
5323         * dired.c (Ffile_attributes):
5324         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
5325         preprocessor tricks, to avoid problems on some machines
5326         (e.g. SCO).
5327
5328         * callproc.c (egetenv): GC docs.
5329
5330         * console-msw.h:
5331         * console-msw.h (struct mswindows_dialog_id):
5332         * lrecord.h (lrecord_type):
5333         New object for use with MSW dialogs.
5334
5335         * console.h (struct console_methods):
5336         New enable/disable frame methods, for proper modal dialogs.
5337
5338         * device-msw.c (msprinter_default_printer): Fix to follow
5339         proper Mule conventions.
5340
5341         * device-msw.c:
5342         * device-msw.c (signal_open_printer_error):
5343         * device-msw.c (msprinter_init_device):
5344         * device-msw.c (ensure_not_printing):
5345         * device-msw.c (plist_get_margin):
5346         * device-msw.c (Fmsprinter_select_settings):
5347         * device-msw.c (finalize_devmode):
5348         * device-msw.c (Fmsprinter_settings_despecialize):
5349         * device-msw.c (signal_enum_priner_error):
5350         * extents.c (decode_extent):
5351         * extents.c (decode_map_extents_flags):
5352         * extents.c (decode_extent_at_flag):
5353         * extents.c (Fextent_at):
5354         * extents.c (Fextents_at):
5355         * extents.c (symbol_to_glyph_layout):
5356         [[[[2]]]] Use structured errors.
5357
5358         * dialog-msw.c:
5359         * dialog-msw.c (mswindows_is_dialog_msg):
5360         * dialog-msw.c (mark_mswindows_dialog_id):
5361         * dialog-msw.c (dialog_proc):
5362         * dialog-msw.c (handle_question_dialog_box):
5363         * dialog-msw.c (syms_of_dialog_mswindows):
5364         Define new object to clean up marking; use it as a dialog identifier.
5365         Call new delete-dialog-box-hook.
5366
5367         * dialog-x.c (dbox_selection_callback):
5368         * dialog-x.c (dbox_descriptor_to_widget_value):
5369         * dialog-x.c (x_make_dialog_box_internal):
5370         Call new delete-dialog-box-hook.
5371         Return an id.
5372
5373         * dialog.c:
5374         * dialog.c (syms_of_dialog):
5375         * dialog.c (vars_of_dialog):
5376         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
5377
5378         * eval.c:
5379         * eval.c (signal_call_debugger):
5380         when noninteractive, output stack traces on the console instead
5381         of in a (never-seen) buffer.
5382
5383         * eval.c (signal_type_error):
5384         * eval.c (invalid_argument_2):
5385         * lisp.h:
5386         new funs for use w/structured errors.
5387
5388         * event-Xt.c:
5389         * event-Xt.c (x_to_emacs_keysym):
5390         * event-Xt.c (describe_event):
5391         * event-Xt.c (emacs_Xt_event_handler):
5392         * event-Xt.c (vars_of_event_Xt):
5393         * event-msw.c:
5394         * event-msw.c (mswindows_wnd_proc):
5395         * event-msw.c (vars_of_event_mswindows):
5396         rename {x,mswindows}-debug-events to debug-{}-events for
5397         consistency with other debug-foo variables.
5398
5399         * event-stream.c:
5400         document next-event more clearly.
5401
5402         * fileio.c (Ffile_name_directory):
5403         * fileio.c (Ffile_name_nondirectory):
5404         * fileio.c (Funhandled_file_name_directory):
5405         * fileio.c (file_name_as_directory):
5406         * fileio.c (Ffile_name_as_directory):
5407         * fileio.c (directory_file_name):
5408         * fileio.c (Fdirectory_file_name):
5409         * fileio.c (Fmake_temp_name):
5410         * fileio.c (Ffile_truename):
5411         * fileio.c (Fsubstitute_in_file_name):
5412         * fileio.c (expand_and_dir_to_file):
5413         * fileio.c (barf_or_query_if_file_exists):
5414         * fileio.c (check_executable):
5415         * fileio.c (Ffile_exists_p):
5416         * fileio.c (Ffile_writable_p):
5417         * fileio.c (Ffile_directory_p):
5418         * fileio.c (Ffile_regular_p):
5419         * fileio.c (Ffile_modes):
5420         * fileio.c (Ffile_newer_than_file_p):
5421         * fileio.c (Fverify_visited_file_modtime):
5422         * fileio.c (Fset_visited_file_modtime):
5423         * fileio.c (auto_save_1):
5424         (1). (2).
5425         fix up gcpro's.
5426
5427         * frame-msw.c:
5428         * frame-msw.c (mswindows_init_frame_1):
5429         * frame-msw.c (mswindows_enable_frame):
5430         * frame-msw.c (error_frame_unsizable):
5431         * frame-msw.c (msprinter_init_frame_1):
5432         * frame-msw.c (msprinter_init_frame_3):
5433         * frame-msw.c (console_type_create_frame_mswindows):
5434         (2).
5435         implement new enable/disable frame methods.
5436
5437         * frame-x.c:
5438         * frame-x.c (x_enable_frame):
5439         * frame-x.c (console_type_create_frame_x):
5440         implement new enable/disable frame methods.
5441
5442         * frame.c:
5443         * frame.c (Fdisable_frame):
5444         * frame.c (syms_of_frame):
5445         * frame.h (struct frame):
5446         implement new enable/disable frame methods/functions.
5447
5448         * general-slots.h:
5449         add initial-focus.
5450
5451         * glyphs-msw.c (mswindows_widget_instantiate):
5452         comment that initial-focus should be implemented.
5453
5454         * glyphs-widget.c:
5455         * glyphs-widget.c (check_valid_instantiator):
5456         * glyphs-widget.c (check_valid_orientation):
5457         * glyphs-widget.c (check_valid_tab_orientation):
5458         * glyphs-widget.c (check_valid_justification):
5459         * glyphs-widget.c (check_valid_border):
5460         * glyphs-widget.c (check_valid_callback):
5461         * glyphs-widget.c (check_valid_int_or_function):
5462         * glyphs-widget.c (check_valid_string_or_vector):
5463         * glyphs-widget.c (check_valid_item_list_1):
5464         * glyphs-widget.c (widget_validate):
5465         * glyphs-widget.c (combo_box_validate):
5466         * glyphs-widget.c (widget_instantiate):
5467         * glyphs-widget.c (syms_of_glyphs_widget):
5468         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
5469         * glyphs-widget.c (image_instantiator_combo_box):
5470         * glyphs-widget.c (image_instantiator_scrollbar):
5471         * glyphs-widget.c (image_instantiator_tab_control):
5472         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
5473         (2).
5474         support (unimplemented) keyword initial-focus.
5475         reindent long macros.
5476
5477         * glyphs-x.c (x_redisplay_widget):
5478         * glyphs-x.c (x_button_instantiate):
5479         * glyphs-x.c (x_button_redisplay):
5480         * glyphs-x.c (x_progress_gauge_instantiate):
5481         * glyphs-x.c (x_edit_field_instantiate):
5482         * glyphs-x.c (x_combo_box_instantiate):
5483         * glyphs-x.c (x_tab_control_instantiate):
5484         * glyphs-x.c (x_label_instantiate):
5485         * gui-x.c:
5486         * gui-x.c (button_item_to_widget_value):
5487         * gui-x.c (gui_items_to_widget_values_1):
5488         * gui-x.c (gui_item_children_to_widget_values):
5489         * gui-x.c (gui_items_to_widget_values):
5490         * gui-x.h:
5491         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
5492         add new flag to gui-parsing routines to indicate whether
5493         accelerator specs should be supported.
5494
5495         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
5496
5497         * glyphs.h (struct Lisp_Image_Instance):
5498         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
5499         add initial-focus flag.
5500
5501         * gui.c:
5502         * gui.c (syms_of_gui):
5503         * gui.c (vars_of_gui):
5504         clean up menu-no-selection-hook.
5505
5506         * gui.h:
5507         support delete-dialog-box-hook.
5508
5509         * lread.c (Fload_internal):
5510         * lread.c (locate_file_in_directory_mapper):
5511         (1).
5512
5513         * lrecord.h:
5514         * lrecord.h (struct toolbar_button):
5515         * lrecord.h (syms_of_toolbar):
5516         document how to create a new object.
5517
5518         * menubar-msw.c (mswindows_char_is_accelerator):
5519         may be called on frames w/o menus.
5520
5521         * menubar.c (vars_of_menubar):
5522         clean up :filter docs.
5523
5524         * nt.c (readdir):
5525         * ntproc.c:
5526         (1).
5527
5528         * process-nt.c:
5529         * process-nt.c (validate_signal_number):
5530         * process-nt.c (signal_cannot_launch):
5531         * process-nt.c (nt_create_process):
5532         * process-nt.c (nt_send_process):
5533         * process-nt.c (nt_kill_child_process):
5534         * process-nt.c (nt_open_network_stream):
5535         * process-nt.c (syms_of_process_nt):
5536         (2).
5537         delete quote-handling.  call new lisp code that does it better.
5538
5539         * process-unix.c (connect_to_file_descriptor):
5540         * process-unix.c (allocate_pty):
5541         * process-unix.c (unix_send_process):
5542         * process-unix.c (unix_kill_child_process):
5543         * process-unix.c (unix_open_network_stream):
5544         * process-unix.c (unix_open_multicast_group):
5545         (1). (2).
5546
5547         * process.c:
5548         * process.c (Fstart_process_internal):
5549         (2).  need to canonicalize process path even if absolute.
5550
5551         * select-msw.c (symbol_to_ms_cf):
5552         * select-msw.c (ms_cf_to_symbol):
5553         * select-msw.c (cf_is_autofreed):
5554         * select-msw.c (mswindows_destroy_selection):
5555         * select.c:
5556         * select.c (syms_of_select):
5557         * select.h:
5558         support dibv5, fix bugs. (from Mike Alexander)
5559
5560         * select.c (Fget_selection_internal):
5561         * select.c (select_convert_out):
5562
5563         * sysdep.c:
5564         * sysdep.c (xemacs_stat):
5565         renamed.
5566
5567         * sysdep.c (mkdir):
5568         * sysdep.c (rmdir):
5569         but keep original stat() here because we provide encapsulation
5570         around these funs.
5571
5572         * sysfile.h:
5573         * sysfile.h (fstat):
5574         remove stat garbage.
5575
5576         * syswindows.h:
5577         fix X/MSW conflict.
5578         don't include tchar.h.  it's inappropriate because it makes
5579         compile-time distinctions when we want runtime distinctions.
5580         (we provide our own tchar replacements)
5581
5582         * toolbar.c:
5583         use default object printer for toolbar-button.
5584
5585         * unexcw.c:
5586         make sure we don't encapsulate.
5587
5588         * window.c (vars_of_window):
5589         emphasize that temp-buffer-show-hook is obsolete.
5590
5591 2000-08-05  Martin Buchholz  <martin@xemacs.org>
5592
5593         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
5594         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
5595
5596         * events.c (Fevent_timestamp_lessp):
5597         Not 64-bit clean.  Use EMACS_INT, not int.
5598
5599 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
5600
5601         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
5602         unsigned int and changed the last enum to
5603         lrecord_type_last_built_in_type.
5604         (lrecord_implementations_table): changed prototype to know how
5605         long the array is supposed to be.
5606         (lrecord_type_count): new unsigned int to keep track of the
5607         current number of lisp lrecord types.
5608         (DEFINE_EXTERNAL_LRECORD):
5609         (DECLARE_EXTERNAL_LRECORD): Added these two for external
5610         dynamic-modules to declare new lisp types. They are the same
5611         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
5612         int for each new type, and increment lrecord_type_count by 1.
5613
5614         * alloc.c (lrecord_implementations_table): Changed to reference
5615         lrecord_type_last_built_in_type for the size of the array.
5616         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
5617
5618 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
5619
5620         * glyphs.h (check_valid_item_list): Renamed from
5621         check_valid_item_list_1.
5622
5623 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
5624
5625         * select.c (Qselect_coerce): New.
5626         * select.c (Vselection_coercion_alist): New.
5627         * select.c (syms_of_select): Declare.
5628         * select.c (get-selection-internal): Use it.
5629         Use the new select-coerce functionality.
5630
5631         * select.c (select_coerce): New.
5632         * select.h (select_coerce): Declare.
5633         New function to coerce one type of data into another.
5634
5635 2000-08-03  Martin Buchholz  <martin@xemacs.org>
5636
5637         * callproc.c (Fcall_process_internal):
5638         (Fcall_process_internal):
5639         * process-unix.c (unix_create_process):
5640         Save and restore the value of errno, so that error messages are accurate.
5641
5642 2000-08-01  Martin Buchholz  <martin@xemacs.org>
5643
5644         * elhash.c (print_hash_table):
5645         Fix printing of hash tables to also use `key-and-value' instead of `t'.
5646         Prettify docstrings and indentation.
5647
5648 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
5649
5650         * window.c (Fwindow_pixel_edges): Subtract frame border and
5651         gutter size.
5652
5653 2000-07-31  Andy Piper  <andy@xemacs.org>
5654
5655         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
5656         will acknowledge the change.
5657
5658         * glyphs.h: declare tab_control_order_only_changed.
5659
5660         * glyphs-x.c (x_tab_control_redisplay): use
5661         tab_control_order_only_changed.
5662
5663         * glyphs-widget.c (tab_control_order_only_changed): new function.
5664
5665         * glyphs-msw.c (mswindows_tab_control_redisplay): use
5666         tab_control_order_only_changed.
5667
5668         * gui.c (gui_item_equal_sans_selected): new function.
5669         (gui_item_equal): use it.
5670
5671         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
5672         :properties in favor of :items..
5673
5674         * glyphs-widget.c (check_valid_item_list): rename from
5675         check_valid_item_list_1.
5676         (check_valid_item_list_1): renamed.
5677         (combo_box_validate): deprecate :properties in favor of :items.
5678         (widget_instantiate): ditto.
5679         (tab_control_update): ditto.
5680         (image_instantiator_combo_box): ditto.
5681         (image_instantiator_tree_view): ditto.
5682         (image_instantiator_tab_control): ditto.
5683         (layout_post_instantiate): remove dead code.
5684
5685         * print.c (debug_print_no_newline): only write to debugger if in
5686         WIN32_NATIVE.
5687
5688         * elhash.c (Fmake_hash_table): update doc string.
5689
5690         * event-msw.c (mswindows_wnd_proc): don't allow processing of
5691         messages whilst in GC. This at least stops XEmacs crashing but has
5692         the potential for wierd behaviour.
5693
5694 2000-07-31  Martin Buchholz  <martin@xemacs.org>
5695
5696         * config.h.in:
5697         Make existence of s&m files optional.
5698
5699         * s/bsd386.h: Remove HAVE_GETLOADAVG.
5700         * s/freebsd.h: Remove HAVE_GETLOADAVG.
5701         * s/gnu.h: Remove HAVE_GETLOADAVG.
5702         * s/netbsd.h: Remove HAVE_GETLOADAVG.
5703         * s/sol2.h: Remove HAVE_GETLOADAVG.
5704         * lisp.h: Remove getloadavg() declaration.
5705         * fns.c:
5706         Include <sys/loadavg.h> if available.
5707         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
5708         * config.h.in:  Group together getloadavg()-related macros.
5709         Use only configure-time tests to detect getloadavg().
5710
5711 2000-07-30  Martin Buchholz  <martin@xemacs.org>
5712
5713         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
5714
5715 2000-07-25  Andy Piper  <andy@xemacs.org>
5716
5717         * syswindows.h: add tchar.h for native builds.
5718
5719         * frame.c (syms_of_frame): remove set-glyph-image.
5720
5721         * general-slots.h: add Qset_glyph_image.
5722
5723         * glyphs-widget.c (layout_update): add domain arg to
5724         set-glyph-image.
5725         (syms_of_glyphs_widget): remove set-glyph-image.
5726
5727 2000-07-23  Ben Wing  <ben@xemacs.org>
5728
5729         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
5730         Vpopup_frame_list.
5731
5732 2000-07-22  Andy Piper  <andy@xemacs.org>
5733
5734         * symsinit.h: add syms_of_win32().
5735
5736         * gui-msw.c (syms_of_gui_mswindows): remove
5737         Fmswindows_shell_execute.
5738         (Fmswindows_shell_execute): moved to win32.c.
5739
5740         * emacs.c (main_1): add syms_of_win32 ().
5741
5742         * win32.c (init_potentially_nonexistent_functions): rewrite in
5743         compiler-friendly terms.
5744         (Fmswindows_shell_execute): move here from gui-msw.c.
5745         (syms_of_win32): new.
5746
5747         * device-msw.c (Fmswindows_printer_list): clean up args to
5748         EnumPrinters.
5749         Don't include tchar under cygwin or mingw.
5750         (msprinter_default_printer): make cygwin-friendly.
5751
5752 2000-07-21  Andy Piper  <andy@xemacs.org>
5753
5754         * glyphs-widget.c (image_instantiator_tree_view): use tab
5755         control's update function.
5756         (layout_property): new function. Retrieve items.
5757
5758         * glyphs-msw.c (mswindows_tree_view_redisplay): new
5759         function. Re-populate the tree view from the pending items.
5760
5761         * glyphs.c (instantiate_image_instantiator): Make sure the domain
5762         is designated the parent if the domain is an image instance. This
5763         is needed so that dirtiness can be cascade up the hierarchy and
5764         thus for layout children to be redisplayed correctly.
5765         (allocate_image_instance): rename glyph -> parent.
5766
5767         * redisplay.h: change redisplay_output_layout signature.
5768
5769         * redisplay-msw.c (mswindows_output_display_block): use domain
5770         arg.
5771
5772         * redisplay-x.c (x_output_display_block): use domain arg.
5773
5774 2000-07-10  Andy Piper  <andy@xemacs.org>
5775
5776         * window.c (Fset_window_configuration): add comment.
5777
5778         * redisplay-output.c (compare_runes):
5779         (redisplay_output_subwindow): redisplay rather than update subwindow.
5780         (redisplay_output_layout): ditto.
5781
5782         * redisplay-msw.c (mswindows_frame_output_end):
5783         (mswindows_frame_output_end): make defer window pos optional.
5784
5785         * lisp.h: add Flast.
5786
5787         * glyphs.h (struct image_instantiator_methods): add dest_mask top
5788         normalize method. Change update method to be for changed
5789         instantiators. Add redisplay method. Change signature of layout
5790         method.
5791         (struct Lisp_Image_Instance): add instantiator.
5792         (IMAGE_INSTANCE_INSTANTIATOR): new.
5793         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
5794         (XIMAGE_INSTANCE_INSTANTIATOR): new.
5795         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
5796
5797         * glyphs.c:
5798         (find_instantiator_differences): new function.
5799         (Fset_instantiator_property): new convenience function.
5800         (check_image_instance_structure): strictly check for vector
5801         instantiators.
5802         (normalize_image_instantiator): make non-static.
5803         (instantiate_image_instantiator): pass on dest_mask and use new
5804         signatures for image_instance_layout and friends.
5805         (mark_image_instance): mark the instantiator. Mark the subwindow
5806         face not the widget face.
5807         (image_instance_equal): add instantiator.
5808         (image_instance_hash): ditto.
5809         (allocate_image_instance): ditto.
5810         (Fset_image_instance_property): removed.
5811         (Fimage_instance_file_name): ditto.
5812         (Fcolorize_image_instance): ditto.
5813         (image_instance_layout): add offsets to be set.
5814         (update_image_instance): new function. update an image instance
5815         from its changed instantiator.
5816         (inherit_normalize): add dest_mask.
5817         (xbm_normalize): ditto.
5818         (xface_normalize): ditto.
5819         (xpm_normalize): ditto.
5820         (text_update): set_property -> update.
5821         (image_instantiate): use the glyph identity as a hash key, not the
5822         instantiator.
5823         (glyph_width): use new image_instance_layout signature.
5824         (glyph_ascent): ditto.
5825         (glyph_descent): ditto.
5826         (glyph_height): ditto.
5827         (glyph_query_geometry): ressurrect.
5828         (glyph_layout): ditto.
5829         (redisplay_subwindow): update -> redisplay.
5830         (syms_of_glyphs): add Fset_instantiator_property.
5831         (image_instantiator_format_create): set_property -> update.
5832
5833         * glyphs-x.c:
5834         (autodetect_normalize): add dest_maks to signature.
5835         (x_redisplay_subwindow): update -> redisplay.
5836         (x_redisplay_widget): ditto.
5837         (x_button_redisplay): ditto.
5838         (x_progress_gauge_redisplay): ditto.
5839         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
5840         stacking order.
5841         (console_type_create_glyphs_x): update -> redisplay.
5842         (image_instantiator_format_create_glyphs_x): ditto.
5843
5844         * glyphs-widget.c:
5845         (check_valid_instantiator): disallow glyphs in the instantiator,
5846         they must now be vectors.
5847         (check_valid_instantiator_list): ditto.
5848         (glyph_instantiator_to_glyph): use internal symbol rather than
5849         intern.
5850         (widget_update): renamed from widget_set_property. Call cascaded
5851         update methods.
5852         (redisplay_widget): renamed from update_widget.
5853         (widget_layout): image_instance_layout now takes position as well
5854         as size.
5855         (widget_normalize): ditto.
5856         (widget_instantiate): ditto.
5857         (tab_control_query_geometry) ditto.:
5858         (tab_control_update): renamed from tab_control_set_property.
5859         (progress_gauge_update): set_property -> update.
5860         (layout_normalize): rewrite so that child instantiators are
5861         normalized also.
5862         (layout_update): new function. Create glyphs from the normalized
5863         children and cope with any other layout keywords. We do not
5864         instantiate children here that will be take care of by
5865         redisplay_output_layout.
5866         (layout_instantiate): call layout_update and not much else.
5867         (layout_post_instantiate): not sure whether this is needed
5868         anymore.
5869         (layout_query_geometry): query glyph geometry rather than
5870         image_instance geometry.
5871         (layout_layout): set offsets from pass in parameters. Use glyph
5872         geometry and layout functions rather than image instance ones.
5873         (native_layout_layout): ditto.
5874         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
5875         (image_instantiator_widget): set_property -> update.
5876         (image_instantiator_buttons): ditto.
5877         (image_instantiator_progress_guage): ditto.
5878         (image_instantiator_tab_control): ditto.
5879         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
5880         (image_instantiator_layout): add update method.
5881
5882         * glyphs-msw.c (bmp_normalize):
5883         (mswindows_resource_normalize): add dest_mask so that it can be
5884         proprogated by layout_normalize.
5885         (begin_defer_window_pos): make optional because it may not be the
5886         right thing to do and it introduces differences with X.
5887         (mswindows_unmap_subwindow): ditto.
5888         (mswindows_map_subwindow): ditto.
5889         (mswindows_redisplay_subwindow): renamed from
5890         mswindows_update_subwindow.
5891         (mswindows_redisplay_widget): ditto.
5892         (mswindows_button_redisplay): renamed from
5893         mswindows_button_update. Update is now what the instantiation
5894         function does for a changed instantiator.
5895         (mswindows_progress_gauge_instantiate): set the progress value
5896         here if appropriate.
5897         (mswindows_tab_control_redisplay): cope with re-ordering of the
5898         members of the tab widget by simply selecting the new top
5899         widget. This makes things appear ok if you click on a tab.
5900         (mswindows_combo_box_instantiate): image_instance_layout now takes
5901         position as well as size.
5902         (mswindows_progress_gauge_redisplay): renamed from
5903         mswindows_progress_gauge_update.
5904         (console_type_create_glyphs_mswindows): fix update -> redisplay.
5905         (image_instantiator_format_create_glyphs_mswindows): ditto.
5906
5907         * glyphs-eimage.c (jpeg_normalize):
5908         (gif_normalize):
5909         (png_normalize):
5910         (tiff_normalize): add dest_mask so that it can be proprogated by
5911         layout_normalize.
5912
5913         * elhash.c:
5914         (print_hash_table):
5915         (hash_table_weakness_validate):
5916         (decode_hash_table_weakness):
5917         (Fhash_table_weakness):
5918         (Fhash_table_type):
5919         (syms_of_elhash): use Ben's naming scheme for hashtable types..
5920
5921         * console.h (struct console_methods): move update_* to
5922         redisplay_*.
5923
5924 2000-07-20  Ben Wing  <ben@xemacs.org>
5925
5926         * *.[ch] (XSETOBJ): remove unused middle argument.
5927         lisp-disunion.h: correct wrap_object() to one argument.
5928
5929 2000-07-15  Ben Wing  <ben@xemacs.org>
5930
5931         * s/cygwin32.h:
5932         * s/cygwin32.h (CYGWIN_CONV_PATH):
5933         Add missing logb prototype for v1.1.
5934         Use post-b20 names and alias to pre-b20 names when pre-b20.
5935
5936         * s/windowsnt.h: [5].
5937
5938 2000-07-15  Ben Wing  <ben@xemacs.org>
5939
5940         * Makefile.in.in (x_objs):
5941         * Makefile.in.in (sheap_objs):
5942         * Makefile.in.in (objs):
5943         added win32.o, cosmetic cleanups.
5944
5945         * alloc.c (Fmake_byte_code):
5946         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
5947         etc. macros which declare their own args now.
5948
5949         * alloc.c (syms_of_alloc):
5950         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
5951
5952         * buffer.c:
5953         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
5954
5955         * buffer.c (Fget_file_buffer):
5956         Fixed GCPRO problem.
5957
5958         * buffer.c (get_truename_buffer):
5959         Fixed comment about GC checking.
5960
5961         * buffer.c (syms_of_buffer):
5962         Undeclared those dedicated frame funs.
5963         [2].
5964
5965         * buffer.h:
5966         Define convenience macros for internal/external conversions.
5967         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
5968         and Qenvironment_variable_encoding for cleaner code.
5969
5970         * bufslots.h:
5971         Remove dedicated-frame; in lisp.
5972
5973         * bytecode.c (funcall_compiled_function):
5974         [1].
5975
5976         * bytecode.c (syms_of_bytecode):
5977         [2].
5978
5979         * console-msw.c:
5980         * console-msw.c (mswindows_show_console): Rewrote.
5981
5982         * console-msw.c (Fmswindows_debugging_output): New.
5983         Sends to OutputDebugString (special MSWin debugger interface).
5984
5985         * console-msw.c (Fmswindows_message_box):
5986         Fixed stupid bugs so it works when called from kill-emacs.
5987
5988         * console-msw.c (syms_of_console_mswindows):
5989         Declare Fmswindows_debugging_output.
5990
5991         * console-msw.h:
5992         New MSWin prototypes.
5993
5994         * console-msw.h (struct mswindows_frame):
5995         New entry last-click-mods for improved button-modifier support.
5996
5997         * console-msw.h (FRAME_MSWINDOWS_POPUP):
5998         New struct entry `popup' with corresponding accessor.
5999
6000         * console-x.c:
6001         * console-x.c (split_up_display_spec):
6002         * console-x.c (get_display_arg_connection):
6003         * console-x.c (x_semi_canonicalize_console_connection):
6004         * console-x.c (x_canonicalize_device_connection):
6005         [[[6]]]: Change char to more specific type.
6006         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
6007
6008         * console-x.c (x_semi_canonicalize_console_connection):
6009         * console-x.c (x_canonicalize_device_connection):
6010         [[[9]]]: Fix up error signalling to use new structured error system.
6011
6012         * console-x.h:
6013         [[[4]]]: Define codesys aliases:
6014         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
6015         Qx_color_name_encoding, Qx_display_name_encoding.
6016
6017         * console.h (struct console_methods):
6018         New method make_dialog_box_internal supersedes older
6019         popup_dialog_box method.
6020
6021         * data.c:
6022         Define many new errors, part of new structured errors.
6023
6024         * data.c (init_errors_once_early):
6025         * data.c (syms_of_data):
6026         [2].
6027
6028         * device-msw.c (mswindows_init_device):
6029         [[[5]]]: Cleanup to support NT 3.51.
6030
6031         * device-msw.c (decode_devmode): Cleanup.
6032
6033         * device-msw.c (mswindows_handle_print_setup_dialog_box):
6034         * device-msw.c (mswindows_handle_print_dialog_box):
6035         * device-msw.c (mswindows_handle_page_setup_dialog_box):
6036         * device-msw.c (syms_of_device_mswindows):
6037         Delete the dialog box primitives recently introduced by Kirill and
6038         instead interface to general dialog box interface.
6039
6040         * device-x.c:
6041         * device-x.c (compute_x_app_name):
6042         * device-x.c (x_init_device):
6043         * device-x.c (Fx_valid_keysym_name_p):
6044         * device-x.c (Fx_set_font_path):
6045         [6].
6046         [7].
6047
6048         * device.h (wrap_device): New.
6049         First of its kind; meant to replace XSETDEVICE.
6050
6051         * dialog-msw.c: Many file-dialog symbols.
6052
6053         * dialog-msw.c (mswindows_register_popup_frame): New.
6054         * dialog-msw.c (mswindows_is_dialog_msg): New.
6055         For supporting kbd traversal in dialog boxes.
6056
6057         * dialog-msw.c (dialog_proc):
6058         Support hitting ESC in dialogs.
6059
6060         * dialog-msw.c (struct):
6061         Common dialog box errors.
6062
6063         * dialog-msw.c (handle_file_dialog_box): New.
6064         Add file dialog code.
6065
6066         * dialog-msw.c (handle_question_dialog_box):
6067         Redo existing code to support new question dialog syntax.
6068
6069         * dialog-msw.c (console_type_create_dialog_mswindows):
6070         We support new dialog console method.
6071
6072         * dialog-msw.c (syms_of_dialog_mswindows):
6073         * dialog-msw.c (vars_of_dialog_mswindows):
6074         New file dialog symbols, vars.
6075
6076         * dialog-x.c:
6077         * dialog-x.c (maybe_run_dbox_text_callback):
6078         * dialog-x.c (dbox_descriptor_to_widget_value):
6079         * dialog-x.c (x_make_dialog_box_internal):
6080         * dialog-x.c (console_type_create_dialog_x):
6081         Mule-ize entire file.
6082         Redo to support question dialog syntax.
6083         [6].
6084
6085         * dialog.c:
6086         * dialog.c (Fmake_dialog_box_internal):
6087         * dialog.c (syms_of_dialog):
6088         Kill old popup-dialog-box, replace with new primitive.
6089         Just call device method or signal error.
6090
6091         * eldap.c (Fldap_open):
6092         * eldap.c (Fldap_search_basic):
6093         * eldap.c (Fldap_add):
6094         * eldap.c (Fldap_modify):
6095         [1].
6096         [7].
6097
6098         * emacs.c:
6099         * emacs.c (make_arg_list_1):
6100         * emacs.c (make_arg_list):
6101         Mule-ize call to dll_init().
6102         [6].
6103         [8].
6104
6105         * emacs.c (make_argc_argv):
6106         * emacs.c (free_argc_argv):
6107         * emacs.c (init_cmdargs):
6108         * emacs.c (main_1):
6109         * emacs.c (Fkill_emacs):
6110         * emacs.c (Fdump_emacs):
6111         Update comments about what can be used in syms_* etc.
6112         Call init_win32() when necessary.
6113         Fix up MS Win dialog box in kill-buffer to actually work right.
6114         [7].
6115
6116         * eval.c:
6117         * eval.c (For):
6118         * eval.c (Fand):
6119         * eval.c (Fprogn):
6120         * eval.c (Fprog1):
6121         * eval.c (Fprog2):
6122         * eval.c (FletX):
6123         * eval.c (Flet):
6124         * eval.c (condition_case_3):
6125         * eval.c (Feval):
6126         * eval.c (function_argcount):
6127         * eval.c (funcall_lambda):
6128         [1].
6129
6130         * eval.c (type_error): New.
6131         * eval.c (maybe_type_error): New.
6132         * eval.c (continuable_type_error): New.
6133         * eval.c (maybe_continuable_type_error): New.
6134         * eval.c (type_error_with_frob): New.
6135         * eval.c (maybe_type_error_with_frob): New.
6136         * eval.c (continuable_type_error_with_frob): New.
6137         * eval.c (maybe_continuable_type_error_with_frob): New.
6138         New functions for use with structured errors.
6139
6140         * event-Xt.c:
6141         * event-Xt.c (x_event_to_emacs_event):
6142         Buttons are now modifiers too.
6143
6144         * event-Xt.c (emacs_Xt_current_event_timestamp):
6145         Implement new event method.
6146         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
6147
6148         * event-msw.c:
6149         * event-msw.c (ntpipe_shove_writer): [5].
6150         * event-msw.c (mswindows_enqueue_mouse_button_event):
6151         * event-msw.c (mswindows_drain_windows_queue):
6152         * event-msw.c (mswindows_wnd_proc): [7].
6153         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
6154         * event-msw.c (mswindows_modifier_state):
6155         Throughout: support new button modifiers.
6156
6157         * event-msw.c (emacs_mswindows_current_event_timestamp):
6158         Implement new event method.
6159         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
6160
6161         * event-stream.c:
6162         * event-stream.c (event_stream_current_event_timestamp): New.
6163         * event-stream.c (maybe_kbd_translate): New functionality.
6164         * event-stream.c (vars_of_event_stream):
6165         Document new kbd-translate-table functionality.
6166
6167         * event-stream.c (Fcurrent_event_timestamp): New.
6168         New primitive for use in fabricated events.
6169         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
6170
6171         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
6172
6173         * events.c:
6174         * events.c (Fmake_event):
6175         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
6176         [1].
6177         [9].
6178
6179         * events.c (format_event_object): fix gcc warnings.
6180
6181         * events.c (Fevent_timestamp): Document new primitives.
6182
6183         * events.c (TIMESTAMP_HALFSPACE): New.
6184
6185         * events.c (Fevent_timestamp_lessp): New.  New primitive for
6186         comparing timestamps correctly (half-space algorithm).
6187
6188         * events.c (Fevent_modifier_bits): Doc fix.
6189
6190         * events.c (Fevent_modifiers): Major doc addition.
6191         * events.c (event_x_y_pixel_internal): Typo fix.
6192         * events.c (syms_of_events): Declare new primitives.
6193
6194         * events.h:
6195         Update long comment for button modifiers, timestamps.
6196
6197         * events.h (struct event_stream):
6198         New current_event_timestamp method.
6199
6200         * extents.c:
6201         * extents.c (extent_in_region_p):
6202         * extents.c (decode_extent):
6203         * extents.c (Fset_extent_parent):
6204         * extents.c (decode_map_extents_flags):
6205         Fix gcc warnings.
6206         [9].
6207
6208         * extents.c (struct extent_at_arg):
6209         * extents.c (decode_extent_at_flag):
6210         * extents.c (extent_at_mapper):
6211         * extents.c (extent_at_bytind):
6212         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
6213         * extents.c (Fextents_at): New primitive. [9].
6214         * extents.c (symbol_to_glyph_layout): [9].
6215         Support new primitive `extents-at'.
6216
6217
6218         * extents.c (get_text_property_bytind):
6219         extent_at_bytind has another arg.
6220         [9].
6221
6222         * extents.c (syms_of_extents): New primitive.
6223
6224         * file-coding.c (Fmake_coding_system): [1].
6225         * file-coding.c (subsidiary_coding_system): fix gcc warning
6226         * file-coding.c (syms_of_file_coding): [2].
6227
6228         * fileio.c (Fexpand_file_name):
6229         * fileio.c (Fsysnetunam):
6230         * fileio.c (Ffile_exists_p):
6231         * fileio.c (Ffile_executable_p):
6232         * fileio.c (Fverify_visited_file_modtime):
6233         Clean up GCPROing.
6234
6235         * fileio.c (syms_of_fileio): [2].
6236
6237         * filelock.c (lock_file_1):
6238         * filelock.c (current_lock_owner):
6239         * filelock.c (lock_if_free):
6240         * filelock.c (lock_file):
6241         * filelock.c (unlock_file):
6242         Clean up GCPROing.
6243
6244         * fns.c (concat): Fix gcc warning.
6245
6246         * fns.c (Fmember):
6247         * fns.c (Fold_member):
6248         * fns.c (Fmemq):
6249         * fns.c (Fold_memq):
6250         * fns.c (memq_no_quit):
6251         * fns.c (Fassoc):
6252         * fns.c (Fold_assoc):
6253         * fns.c (Fassq):
6254         * fns.c (Fold_assq):
6255         * fns.c (assq_no_quit):
6256         * fns.c (Frassoc):
6257         * fns.c (Fold_rassoc):
6258         * fns.c (Frassq):
6259         * fns.c (Fold_rassq):
6260         * fns.c (rassq_no_quit):
6261         * fns.c (Fdelete):
6262         * fns.c (Fold_delete):
6263         * fns.c (Fdelq):
6264         * fns.c (Fold_delq):
6265         * fns.c (delq_no_quit):
6266         * fns.c (Fremassoc):
6267         * fns.c (Fremassq):
6268         * fns.c (remassq_no_quit):
6269         * fns.c (Fremrassoc):
6270         * fns.c (Fremrassq):
6271         * fns.c (remrassq_no_quit):
6272         * fns.c (Freverse):
6273         * fns.c (mapcar1):
6274         [1].
6275
6276         * frame-msw.c (mswindows_init_frame_1):
6277         * frame-msw.c (mswindows_delete_frame):
6278         Register popups with dialog code so keyboard traversing works.
6279
6280         * frame-tty.c (tty_raise_frame_no_select): [1].
6281
6282         * frame-x.c:
6283         * frame-x.c (x_set_frame_text_value):
6284         * frame-x.c (x_set_frame_properties):
6285         * frame-x.c (x_create_widgets):
6286         [7].
6287
6288         * frame.c:
6289         * frame.c (Fmouse_pixel_position): Minor doc fixes.
6290
6291         * frame.h (wrap_frame): New.
6292         Macro like wrap_device.
6293
6294         * general.c:
6295         * general.c (SYMBOL):
6296         * general.c (syms_of_general):
6297         Major reorg.  This is now just a wrapper and symbols themselves
6298         are listed in general-slots.h.
6299
6300         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
6301         * glyphs-msw.c (mswindows_resource_instantiate): [5].
6302
6303         * glyphs-msw.c (mswindows_native_layout_instantiate):
6304         Add DS_CONTROL so keyboard traversal will work.
6305
6306         * glyphs-widget.c:
6307         * glyphs-widget.c (syms_of_glyphs_widget):
6308         Move some symbols to general-slots.h.
6309
6310         * glyphs-x.c:
6311         * glyphs-x.c (xbm_instantiate_1):
6312         * glyphs-x.c (x_xbm_instantiate):
6313         * glyphs-x.c (x_xface_instantiate):
6314         * glyphs-x.c (autodetect_instantiate):
6315         * glyphs-x.c (cursor_font_instantiate):
6316         * glyphs-x.c (x_update_widget):
6317         * glyphs-x.c (x_widget_instantiate):
6318         * glyphs.c (bitmap_to_lisp_data):
6319         * glyphs.c (pixmap_to_lisp_data):
6320         [7].
6321
6322         * glyphs.c (syms_of_glyphs):
6323         [2].
6324
6325         * gui-x.c:
6326         * gui-x.c (print_widget_value):
6327         * gui-x.c (menu_separator_style_and_to_external):
6328         * gui-x.c (add_accel_and_to_external):
6329         * gui-x.c (button_item_to_widget_value):
6330         * gui-x.c (gui_items_to_widget_values_1):
6331         * gui-x.c (gui_items_to_widget_values):
6332         * gui-x.c (syms_of_gui_x):
6333         * gui-x.c (vars_of_gui_x):
6334         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
6335         [9].
6336
6337         * gui-x.h:
6338         Muleize, prototype changes matching gui-x.c.
6339
6340         * gui.c:
6341         * gui.c (separator_string_p):
6342         * gui.c (gui_item_add_keyval_pair):
6343         * gui.c (make_gui_item_from_keywords_internal):
6344         * gui.c (signal_too_long_error):
6345         * gui.c (parse_gui_item_tree_item):
6346         * gui.c (syms_of_gui):
6347         * gui.c (vars_of_gui):
6348         * gui.h:
6349         menu-no-selection-hook moved here (used by MSWin).
6350         Move some symbols to general-slots.h.
6351         [6].
6352         [9].
6353
6354         * insdel.c (get_buffer_pos_char):
6355         * insdel.c (get_buffer_range_char):
6356         Add GC comments.
6357
6358         * keymap.c (keymap_lookup_directly):
6359         * keymap.c (keymap_store):
6360         * keymap.c (ensure_meta_prefix_char_keymapp):
6361         * keymap.c (describe_map):
6362         * keymap.h:
6363         Support new button modifiers.
6364
6365         * lisp-disunion.h (wrap_object):
6366         * lisp-disunion.h (XSETOBJ):
6367         Rename make_obj to wrap_object.
6368
6369         * lisp-union.h:
6370         * lisp-union.h (make_int):
6371         * lisp-union.h (make_char):
6372         Support wrap_object.
6373
6374         * lisp.h:
6375         * lisp.h (LIST_LOOP):
6376         * lisp.h (EXTERNAL_LIST_LOOP):
6377         * lisp.h (LIST_LOOP_2):
6378         * lisp.h (EXTERNAL_LIST_LOOP_1):
6379         * lisp.h (EXTERNAL_LIST_LOOP_2):
6380         * lisp.h (EXTERNAL_LIST_LOOP_3):
6381         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
6382         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
6383         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
6384         * lisp.h (EXTERNAL_ALIST_LOOP_5):
6385         * lisp.h (EXTERNAL_ALIST_LOOP_6):
6386         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
6387         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
6388         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
6389         * lisp.h (struct Lisp_Symbol):
6390         * lisp.h (maybe_continuable_error_with_frob):
6391         Fix up section comments.
6392         Add new types for char to indicate usage.
6393         Delete symbols auto-generated from general-slots.h.
6394         Add prototypes for structured error functions.
6395         Add long comments describing looping macros and change interface
6396         so that lvalues are automatically declared.
6397         Add NO_DECLARE macro in case callers want to declare lvalues
6398         themselves.
6399
6400         * lread.c (read_syntax_error):
6401         * lread.c (continuable_read_syntax_error):
6402         * lread.c (read_structure):
6403         * lread.c (sequence_reader):
6404         * lread.c (read_list_conser):
6405         * lread.c (read_compiled_function):
6406         Rename syntax_error and continuable_syntax_error to avoid clash
6407         with same-named structured error functions.
6408
6409         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
6410         * menubar-msw.c (populate_menu_add_item):
6411         * menubar-msw.c (populate_or_checksum_helper):
6412         [5].
6413         [9].
6414
6415         * menubar-x.c:
6416         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
6417         Mule-ize whole file.
6418
6419         * menubar.c (Fnormalize_menu_item_name): Add optimization.
6420
6421         * mule-charset.c (Fmake_charset):
6422         * mule-wnnfns.c (Fwnn_set_param):
6423         [1].
6424
6425         * ntproc.c (create_child):
6426         * ntproc.c (Fwin32_set_current_locale):
6427         Add comments portending doom.
6428
6429         * objects-msw.c:
6430         * objects-msw.c (old_font_enum_callback_2):
6431         * objects-msw.c (font_enum_callback_1):
6432         * objects-msw.c (mswindows_enumerate_fonts):
6433         [5].
6434
6435         * objects-x.c:
6436         * objects-x.c (allocate_nearest_color):
6437         * objects-x.c (x_parse_nearest_color):
6438         * objects-x.c (x_initialize_color_instance):
6439         * objects-x.c (x_print_color_instance):
6440         * objects-x.c (x_finalize_color_instance):
6441         * objects-x.c (x_valid_color_name_p):
6442         * objects-x.c (x_initialize_font_instance):
6443         * objects-x.c (x_print_font_instance):
6444         * objects-x.c (valid_x_font_name_p):
6445         * objects-x.c (truename_via_FONT_prop):
6446         * objects-x.c (truename_via_random_props):
6447         * objects-x.c (truename_via_XListFonts):
6448         * objects-x.c (x_font_truename):
6449         * objects-x.c (x_font_instance_truename):
6450         * objects-x.c (x_font_instance_properties):
6451         * objects-x.c (x_list_fonts):
6452         * objects-x.c (x_find_charset_font):
6453         Mule-ize entire file.
6454         [7].
6455
6456         * objects-x.h:
6457         Mule-verify.
6458
6459         * print.c:
6460         * print.c (std_handle_out_external):
6461         * print.c (debug_print_no_newline):
6462         * print.c (syms_of_print):
6463         Output to all debugger kinds in debug-print.
6464         Fix console-output code under MSWin to actually work.
6465
6466         * process-nt.c (send_signal):
6467         * process-nt.c (nt_create_process):
6468         Use newer Unicode macros.
6469
6470         * process-unix.c (unix_create_process):
6471         * process-unix.c (unix_canonicalize_host_name):
6472         * process-unix.c (unix_open_network_stream):
6473         [7].
6474
6475         * scrollbar-x.c:
6476         Mule-verify.
6477
6478         * search.c (syms_of_search):
6479         [2].
6480
6481         * select-msw.c (mswindows_destroy_selection):
6482         Use LIST_LOOP_2.
6483
6484         * select-x.c (symbol_to_x_atom):
6485         [7].
6486
6487         * select.c (syms_of_select):
6488         [2].
6489
6490         * sound.c (Fplay_sound_file):
6491         [7].
6492
6493         * specifier.c:
6494         * specifier.c (decode_specifier_type):
6495         * specifier.c (Fvalid_specifier_locale_type_p):
6496         * specifier.c (check_valid_locale_or_locale_type):
6497         * specifier.c (decode_locale):
6498         * specifier.c (decode_locale_type):
6499         * specifier.c (decode_locale_list):
6500         * specifier.c (check_valid_domain):
6501         * specifier.c (decode_specifier_tag_set):
6502         * specifier.c (Fcanonicalize_tag_set):
6503         * specifier.c (Fdefine_specifier_tag):
6504         * specifier.c (Fspecifier_tag_predicate):
6505         * specifier.c (check_valid_inst_list):
6506         * specifier.c (check_valid_spec_list):
6507         * specifier.c (decode_how_to_add_specification):
6508         * specifier.c (check_modifiable_specifier):
6509         * specifier.c (specifier_add_spec):
6510         * specifier.c (boolean_validate):
6511         * specifier.c (display_table_validate):
6512         [9].
6513
6514         * specifier.c (syms_of_specifier):
6515         Move some symbols to general-slots.h.
6516         [2].
6517
6518         * symbols.c:
6519         * symbols.c (Fmapatoms):
6520         * symbols.c (Fapropos_internal):
6521         Add GCPROs.
6522
6523         * symbols.c (set_default_buffer_slot_variable):
6524         * symbols.c (set_default_console_slot_variable):
6525         [1].
6526
6527         * symbols.c (defsymbol_massage_name_1):
6528         * symbols.c (defkeyword_massage_name):
6529         * symbols.c (deferror_1):
6530         * symbols.c (deferror):
6531         * symbols.c (deferror_massage_name_and_message):
6532         * symeval.h:
6533         * symeval.h (DEFSYMBOL):
6534         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
6535
6536         * symbols.c (syms_of_symbols):
6537         [2].
6538
6539         * symsinit.h:
6540         * symsinit.h (init_win32): New.
6541         Also new is syms_of_dialog_mswindows.
6542
6543         * syswindows.h:
6544         Add new Unicode macros, missing Cygwin wide-char functions,
6545         convenience conversion macros for Qmswindows_tstr, macros for
6546         encapsulating required MSWin <-> Cygwin filename conversions,
6547         prototype for dynamically-extracted (not in NT 3.51) functions.
6548
6549         * toolbar-x.c:
6550         Mule-verify.
6551
6552         * tooltalk.c (Fadd_tooltalk_message_arg):
6553         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
6554         * tooltalk.c (Fadd_tooltalk_pattern_arg):
6555         [7].
6556
6557         * tooltalk.c (syms_of_tooltalk):
6558         [2].
6559
6560         * unexnt.c:
6561         * unexnt.c (unexec):
6562         Fix up headers, declaration of unexec() to be more standard.
6563
6564 2000-07-20  Martin Buchholz  <martin@xemacs.org>
6565
6566         * offix.h: Revert change to guard macros - they're used in offix.c!
6567
6568 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6569
6570         * lisp.h: Defsubred Fdelete.
6571
6572         * console-msw.h:  (msprinter_default_printer): Added.
6573
6574         * console-msw.c (msprinter_canonicalize_console_connection):
6575         (msprinter_canonicalize_device_connection): Added.
6576
6577         * device-msw.c (msprinter_default_printer):
6578         (Fmswingows_get_default_printer):
6579         (signal_enum_priner_error):
6580         (Fmswingows_printer_list): Added.
6581
6582 2000-07-19  Martin Buchholz <martin@xemacs.org>
6583
6584         * XEmacs 21.2.35 is released.
6585
6586 2000-07-19  Martin Buchholz  <martin@xemacs.org>
6587
6588         * select-x.c (x_handle_selection_request):
6589         Text selected in xemacs and pasted into xterm failed to appear.
6590         Spelling fixes and cosmetic changes.
6591
6592 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6593
6594         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
6595         XEmacs frame (fix for doubling chars in dialog boxes).
6596
6597 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
6598
6599         * select.c (select_convert_in, select_convert_out):
6600         Don't call intern() every time.
6601
6602         * select.c (Qselect_convert_in, Qselect_convert_out): New.
6603         * select.c (vars_of_select): Initialise them.
6604
6605 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
6606
6607         * select.c (selection-coercible-types): New.
6608
6609         * select.c (own-selection-internal):
6610         * select.c (get-selection-internal):
6611         MULE bug fix - these should default to COMPOUND_TEXT and not
6612         STRING for MULE. I think.
6613
6614         * select.c (select_convert_out): Use selection-coercible-types
6615         to find types that we can attempt to perform coercions on.
6616
6617 2000-07-18  Martin Buchholz  <martin@xemacs.org>
6618
6619         * mule-wnnfns.c:
6620         * mule-canna.c:
6621         Add coding: cookie to identify encoding.
6622
6623         * mule-canna.c (CANNA_mode_keys): make static.
6624         Use proper prototypes, even for functions of no arguments.
6625         Remove external prototype for Fding().
6626
6627         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
6628
6629         * select.c (syms_of_select): Add missing DEFSUBR.
6630
6631 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
6632
6633         * select.c (get_selection_internal, own_selection_internal):
6634         Make the type default to STRING, rather than placing a nil type
6635         into Vselection_alist.
6636
6637 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
6638
6639         * gpmevent.c (tty_selection_exists_p):
6640         * gpmevent.c (tty_own_selection):
6641         Updated parameter lists.
6642
6643 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
6644
6645         * select.h (selection-alist): Removed declaration.
6646
6647         * select.h (get_local_selection):
6648         * select.c (get_local_selection):
6649         Made static.
6650
6651         * select.h (convert_selection): Removed declaration.
6652         * select.c (convert_selection): Removed.
6653         This function belongs in Lisp.
6654
6655         * select.h (select_convert_in): Declare.
6656         * select.h (select_convert_out): Declare.
6657         * select.c (select_convert_in): New.
6658         * select.c (select_convert_out): New.
6659         New conversion functions for other files to call.
6660
6661         * select.h (select_notify_buffer_kill): Declare.
6662         * select.c (select_notify_buffer_kill): New.
6663         New functions that get called from kill-buffer.
6664
6665         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
6666         X-specific lisp code.
6667
6668         * select.h: Declare some of the lisp-visible functions for
6669         external use.
6670
6671         * select.c (clean_local_selection_data): Removed. This was
6672         a disgusting function, and previously should have been in
6673         select-x.c in any case. The functionality is now provided
6674         in select-convert-from-integer (select.el).
6675
6676         * select.c (available-selection-types): Fixed stupidity where
6677         INTEGER and ATOM got added twice. Also add STRING when we see an
6678         extent.
6679
6680         * select.c (get-selection-internal): Removed symbol stripping. No
6681         longer causes conversion when data comes from the internal cache.
6682
6683         * select.c (syms_of_select): Added new functions.
6684
6685         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
6686         error checking - previously this called abort!
6687
6688         * select-x.c (x_own_selection): Changed comment.
6689
6690         * select-x.c (x_handle_selection_request): Use select_convert_out.
6691         Don't mess with selection-alist; it's an internal variable of select.c.
6692
6693         * select-x.c (x_get_foreign_selection): Use select_convert_in.
6694
6695         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
6696         rather than messing with selection-alist.
6697
6698         * select-msw.c (mswindows_get_foreign_selection):
6699         Use TO_INTERNAL_FORMAT rather than hacking.
6700
6701 2000-07-14  Martin Buchholz  <martin@xemacs.org>
6702
6703         * process-unix.c (unix_open_multicast_group):
6704         (unix_open_multicast_group): Remove useless casts.
6705
6706 2000-07-13  Martin Buchholz  <martin@xemacs.org>
6707
6708         * sound.c (Fplay_sound): Fix `unused variable' warning.
6709
6710         * emacs.c (main): Use correct type for _environ on SCO5.
6711
6712 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
6713
6714         * console.h (own_selection_method):
6715         * console.h (selection_exists_p_method):
6716         * console.h (available_selection_types_method): New.
6717         * console.h (register_selection_data_type_method): New.
6718         * console.h (selection_data_type_name): New.
6719
6720         * console-msw.h (mswindows_destroy_selection): Declare it.  New
6721         function & alist to track GlobalAlloc()'d handles that need
6722         releasing when the clipboard data gets replaced or emptied.
6723
6724         * event-msw.c (mswindows_wnd_proc): Call it.
6725
6726         * lisp.h, general.c (Qappend): New symbol representing a
6727         `how-to-add' mode.
6728
6729         * select.c (own-selection-internal):
6730         * select.c (selection-exists-p):
6731         * select.c (available-selection-types): New.
6732         * select.c (register-selection-data-type): New.
6733         * select.c (selection-data-type-name): New.  New functions to deal
6734         with device-specific selection data formats.
6735         * select.c (selection-converter-out-alist): Renamed.
6736         * select.c (selection-converter-in-alist): New.
6737         * select.c (selection-appender-alist): New.  Added new alists.
6738         * select.c (syms_of_select, vars_of_select): Added new symbols &
6739         variables.
6740         * select.c (get_local_selection): Split.
6741         * select.c: Removed spurious type checking - selections may now be
6742         of any type, not just strings.
6743         * select.c (own-selection-internal):
6744
6745         * select.h, select.c (convert_selection): New. Created
6746         convert_selection() function based on get_local_selection().
6747         * select.h, select.c (QCF_*): New symbols representing mswindows
6748         clipboard formats.
6749         * select.h, select.c (Qreplace_all, Qreplace_existing): New
6750         symbols representing `how-to-add' modes.
6751
6752         * select-msw.c (x_sym_p): New.
6753         * select-msw.c (symbol_to_ms_cf): New.
6754         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
6755         symbols & clipboard formats. Can also handle string names.
6756         * select-msw.c (mswindows_own_selection):
6757         * select-msw.c (mswindows_selection_exists_p):
6758         Added `data-type' parameter. Use it.
6759         * select-msw.c (mswindows_available_selection_types): New.
6760         * select-msw.c (mswindows_register_selection_data_type): New.
6761         * select-msw.c (mswindows_selection_data_type_name): New.
6762         * select-msw.c (mswindows_own_selection):
6763         * select-msw.c (mswindows_get_foreign_selection):
6764         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
6765         * select-msw.c (console_create_select_mswindows): Added new methods.
6766         * select-msw.c (mswindows_destroy_selection): New.
6767         * select-msw.c (Vhandle_alist): New list.
6768         * select-msw.c (mswindows_own_selection):
6769
6770         * select-x.c (x_own_selection):
6771         * select-x.c (x_selection_exists_p):
6772         * select-x.c: Added some comments about maybe using new
6773         functionality.
6774         * select-x.c (x_own_selection):
6775
6776         * specifier.c: Remove definition of Qappend (now in general.c)
6777         * specifier.c (syms_of_specifier): Remove Qappend.
6778
6779 2000-07-12  Martin Buchholz  <martin@xemacs.org>
6780
6781         * config.h.in: Add socklen_t.
6782
6783         * s/decosf4-0.h: No special compiler flags needed or desired.
6784         In particular, undefine _BSD for DEC OSF 4.0.
6785
6786 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6787
6788         * redisplay-msw.c (msprinter_frame_output_end): Added.
6789         (console_type_create_redisplay_mswindows): Referred the above.
6790
6791         * frame.c (setup_frame_without_minibuffer): Do not create a
6792         default minibuffer frame on a printer device.
6793
6794         * frame-msw.c (apply_dc_geometry): Added.
6795         (msprinter_start_page):
6796         (msprinter_init_frame_3):
6797         (msprinter_eject_page): Use it.
6798
6799         * console-msw.h (struct msprinter_frame): Added pix_left and top,
6800         and removed residual duplex and orientation properties.
6801
6802 2000-07-11  Martin Buchholz  <martin@xemacs.org>
6803
6804         * eval.c (function_argcount): Work around a DEC CC compiler bug.
6805
6806         * unexalpha.c: Remove system prototypes from C sources!
6807
6808 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
6809
6810         * eval.c: Remove references to M-x edit-options in DEFUNs for
6811         `defvar' and `defconst'.
6812
6813 2000-07-09  Martin Buchholz  <martin@xemacs.org>
6814
6815         * config.h.in: Remove SMART_INCLUDE hackery.
6816
6817         PostgreSQL hacking:
6818         * config.h.in: Don't use SMART_INCLUDE.
6819
6820         * postgresql.h: Include libpq-fe.h here.  Fix typo.
6821         * inline.c: Simply #include "postgresql.h"
6822         * postgresql.c:
6823         - Don't use SMART_INCLUDE
6824         - Use simply "const".
6825         - Use standard doc string conventions.
6826         - Use correct type for result of PQstatus.
6827
6828 2000-07-09  Martin Buchholz  <martin@xemacs.org>
6829
6830         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
6831
6832         C++ compilation changes.
6833         * config.h.in (EXTERN_C): Define.
6834         * config.h.in (not): This is also a C++ keyword.
6835         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
6836         * cm.c: Use EXTERN_C.
6837         * redisplay-tty.c: Use EXTERN_C.
6838         * sysdep.c: Use EXTERN_C.  Remove Gould support.
6839
6840 2000-07-09  Martin Buchholz  <martin@xemacs.org>
6841
6842         * general.c: Remove duplicate definition for Qfunction.
6843
6844 2000-07-08  Ben Wing  <ben@xemacs.org>
6845
6846         * device-msw.c (msprinter_init_device):
6847         * device-msw.c (sync_printer_with_devmode):
6848         * device-msw.c (handle_devmode_changes):
6849         * device-msw.c (print_dialog_worker):
6850         * device-msw.c (Fmsprinter_apply_settings):
6851         * device-msw.c (hash_devmode):
6852         * device-msw.c (Fmsprinter_settings_despecialize):
6853         use Qmswindows_tstr, not Qctext.
6854
6855         * vm-limit.c (check_memory_limits):
6856         avoid infinite loop printing warning messages.
6857
6858 2000-07-05  Craig Lanning  <lanning@scra.org>
6859
6860         * Makefile.in.in: Add support for including the Windows resources
6861         when building with the cygwin and mingw targets.
6862
6863         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
6864         not set or not correct.
6865         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
6866         (init_initial_directory): Don't try to use $PWD on the
6867         WIN32_NATIVE target.
6868
6869         * s\cygwin32.h:
6870         [[Add -mwindows to eliminate console window.]] not required --ben
6871         (HAVE_NATIVE_SOUND): removed; now handled by configure.
6872         (MAIL_USE_POP): removed; now handled by configure.
6873
6874         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
6875         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
6876         (HAVE_NATIVE_SOUND): removed; now handled by configure.
6877         (MAIL_USE_POP): removed; now handled by configure.
6878         (ENCAPSULATE_STAT): from Dan Holmsand, added.
6879         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
6880         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
6881         constant string.
6882         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
6883         up from <winsock.h> via systime.h.
6884         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
6885         (getpagesize): from Dan Holmsand, added.
6886         Added #endif which was left dangling by Ben's mega patch; added
6887         comment to help prevent this in the future.
6888
6889         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
6890
6891 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6892
6893         * console-msw.h (struct mswindows_device): Removed unnecessary
6894         cached device geometry values.
6895         Added update_tick and an accessor macro.
6896         (Lisp_Devmode): Added lrecord declaration.
6897         (struct msprinter_device): Contain devmode as a Lisp object.
6898         Added mswindows_get_selected_frame_hwnd();
6899
6900         * console.h (struct console_methods): Indentation nitpicking.
6901
6902         * device-msw.c (mswindows_init_device): Do not initialize geometry
6903         cache. Initialize update tick.
6904         (mswindows_device_system_metrics): Ask the device for its geometry.
6905         (global_free_2_maybe):
6906         (devmode_to_hglobal):
6907         (handle_printer_changes):
6908         (ensure_not_printing):
6909         (print_dialog_worker):
6910         (Fmsprinter_print_setup_dialog):
6911         (Fmsprinter_print_dialog):
6912         (plist_get_margin):
6913         (plist_set_margin):
6914         (Fmsprinter_page_setup_dialog): Added functions.
6915         (sync_printer_with_devmode):
6916         (handle_devmode_changes):
6917         (Fmsprinter_get_settings):
6918         (Fmsprinter_select_settings):
6919         (Fmsprinter_apply_settings):
6920         (allocate_devmode):
6921         (Fmsprinter_settings_copy):
6922         (Fmsprinter_settings_despecialize):
6923         (print_devmode):
6924         (finalize_devmode):
6925         (equal_devmode):
6926         (hash_devmode): Added functions
6927         (syms_of_device_mswindows): Init devmode lrecord class.
6928
6929         * device.h: Added an exfun for find-device.
6930
6931         * event-msw.c (mswindows_wnd_proc): Do not update the cached
6932         geometry; although, recreate the device compatible DC.
6933
6934         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
6935         (msprinter_init_frame_3):
6936         (msprinter_frame_property):
6937         (msprinter_internal_frame_property_p):
6938         (msprinter_frame_properties):
6939         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
6940         print job properties (will move to device settings).
6941
6942         * lisp.h: Added symbols.
6943
6944         * general.c (syms_of_general): Declared them.
6945
6946         * hash.c (string_hash): Added.
6947
6948         * lrecord.h (lrecord_type): Added devmode lrecord type.
6949
6950 2000-07-02  Mike Sperber <mike@xemacs.org>
6951
6952         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
6953         FreeBSD 4.0.
6954
6955 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
6956
6957         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
6958         integer.
6959
6960 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
6961
6962         * data.c (Fstring_to_number): Don't recognize floating point if
6963         base is not 10.
6964
6965 2000-06-22  Martin Buchholz  <martin@xemacs.org>
6966
6967         * glyphs-widget.c (tab_control_query_geometry):
6968         (widget_query_geometry):
6969         (button_query_geometry):
6970         * glyphs.c (text_query_geometry):
6971         Enforce type correctness.
6972
6973 2000-06-18  Martin Buchholz  <martin@xemacs.org>
6974
6975         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
6976         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
6977
6978 2000-06-17  Martin Buchholz  <martin@xemacs.org>
6979
6980         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
6981         conflicts with gcc's fixincluded version of FOO.h.
6982
6983         * glyphs.h (image_instance_geometry): Remove trailing `,'
6984
6985 2000-06-08  Mike Alexander  <mta@arbortext.com>
6986
6987         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
6988         (shove_thread): Don't write the same output twice
6989         (make_ntpipe_output_stream): Increase priority of shove thread
6990         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
6991         chance to run
6992         (ntpipe_shove_closer): Don't delete the pipe until we're done with
6993         it.
6994
6995 2000-06-12  Ben Wing  <ben@xemacs.org>
6996
6997         * s\mingw32.h (sigset):
6998         * s\windowsnt.h (sigset):
6999         rename msw_ to mswindows_ for consistency with general convention.
7000
7001 2000-06-12  Ben Wing  <ben@xemacs.org>
7002
7003         * console-msw.c:
7004         * console-msw.c (mswindows_get_console_hwnd):
7005         * console-msw.c (mswindows_ensure_console_allocated):
7006         * console-msw.c (mswindows_hide_console):
7007         * console-msw.c (mswindows_show_console):
7008         * console-msw.c (mswindows_ensure_console_buffered):
7009         * console-msw.c (mswindows_output_console_string):
7010         * console-msw.c (mswindows_windows9x_p):
7011         * console-msw.h:
7012         * device-msw.c (mswindows_get_workspace_coords):
7013         * device-msw.c (mswindows_device_system_metrics):
7014         * dialog-msw.c (mswindows_popup_dialog_box):
7015         * event-msw.c (mswindows_wnd_proc):
7016         * frame-msw.c (mswindows_size_frame_internal):
7017         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
7018         * menubar-msw.c (displayable_menu_item):
7019         * menubar-msw.c (mswindows_char_is_accelerator):
7020         * nt.c:
7021         * nt.c (mswindows_sigset):
7022         * nt.c (mswindows_sigrelse):
7023         * nt.c (mswindows_sigpause):
7024         * nt.c (mswindows_raise):
7025         * nt.c (timer_proc):
7026         * ntproc.c:
7027         * ntproc.c (find_child_console):
7028         * ntproc.c (sys_kill):
7029         * print.c:
7030         * print.c (std_handle_out_external):
7031         * process-nt.c (find_child_console):
7032         * process-nt.c (send_signal_the_95_way):
7033         * process-nt.c (ensure_console_window_exists):
7034         * process-nt.c (nt_create_process):
7035         * syssignal.h:
7036         rename msw_ to mswindows_ for consistency with general convention.
7037
7038         * emacs.c:
7039         * dumper.c:
7040         include nt.h, not syswindows.h.
7041
7042         * nt.c (mswindows_fstat):
7043         * nt.c (mswindows_stat):
7044         prefix mswindows_ instead of attempting to directly override the
7045         library functions.  fix declarations.
7046
7047         * nt.h:
7048         include syswindows.h.  move some sysdep.h stuff here.
7049
7050         * ntheap.h:
7051         include syswindows.h, not <windows.h>.
7052
7053         * ntplay.c:
7054         clean up headers.
7055
7056         * sysdep.c:
7057         clean up headers.
7058
7059         * sysdep.c (sys_fstat):
7060         * sysdep.c (sys_stat):
7061         call mswindows versions when appropriate.
7062
7063         * sysdep.h:
7064         move mswin decls to nt.h.
7065
7066         * syswindows.h:
7067         add long comment describing appropriate use of the various windows
7068         headers.
7069
7070 2000-06-11  Ben Wing  <ben@xemacs.org>
7071
7072         * device-x.c: Correct doc string for sixth arg of x-get-resource.
7073
7074 2000-06-10  Ben Wing  <ben@xemacs.org>
7075
7076         * Makefile.in.in (release):
7077         Correction to make sure xemacs.exe always dumped when correct.
7078
7079         * alloca.c:
7080         * balloon_help.c:
7081         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
7082
7083         * buffer.c (set_buffer_internal):
7084         [[[[2]]]]: Remove HAVE_FEP code.
7085
7086         * buffer.c (init_initial_directory):
7087         [3].
7088
7089         * bytecode.c:
7090         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
7091         individual files.
7092
7093         * callproc.c:
7094         * callproc.c (call_process_cleanup):
7095         * callproc.c (Fold_call_process_internal):
7096         * callproc.c (child_setup):
7097         * callproc.c (getenv_internal):
7098         * callproc.c (init_callproc):
7099         * callproc.c (vars_of_callproc):
7100         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
7101         __CYGWIN32__ -> CYGWIN.
7102         DOS_NT -> WIN32_NATIVE.
7103         Remove MSDOS support/references, converting to WIN32_NATIVE
7104           where correct.
7105         __MINGW32__ -> MINGW.
7106         Fix windows.h includes.
7107         Remove bogus HAVE_NTGUI.
7108
7109         * config.h.in:
7110         [2].
7111
7112         * console-msw.c:
7113         mswindows_message_outputted added for use in allowing startup
7114         errors on the console to be seen.
7115
7116         * console-msw.c (msw_ensure_console_allocated):
7117         * console-msw.c (msw_output_console_string):
7118         * console-msw.c (DHEADER):
7119         * console-msw.c (DOPAQUE_DATA):
7120         * console-msw.c (DEVENT):
7121         * console-msw.c (DCONS):
7122         * console-msw.c (DCONSCDR):
7123         * console-msw.c (DSTRING):
7124         * console-msw.c (DVECTOR):
7125         * console-msw.c (DSYMBOL):
7126         * console-msw.c (DSYMNAME):
7127         Fix warnings.
7128
7129         * console-stream.c (stream_init_console):
7130         Fix text/binary problems.
7131
7132         * device-msw.c:
7133         * device-msw.c (mswindows_finish_init_device):
7134         * device-msw.c (mswindows_delete_device):
7135         [1].
7136
7137         * device.c (handle_asynch_device_change):
7138         [3].
7139
7140         * dgif_lib.c:
7141         * dgif_lib.c (DGifOpenFileName):
7142         * dgif_lib.c (DGifOpenFileHandle):
7143         * dgif_lib.c (DGifGetLine):
7144         * dgif_lib.c (DGifGetPixel):
7145         Added config.h/lisp.h, fix up includes.
7146         [1].
7147
7148         * dired-msw.c:
7149         [4].
7150
7151         * dired.c:
7152         * dired.c (file_name_completion):
7153         * dired.c (Ffile_attributes):
7154         * dired.c (syms_of_dired):
7155         [1].
7156
7157         * dumper.c:
7158         * dumper.c (pdump_file_unmap):
7159         * dumper.c (pdump_load):
7160         [1].
7161
7162         * editfns.c:
7163         * editfns.c (Ftemp_directory):
7164         * editfns.c (user_login_name):
7165         * editfns.c (Fuser_real_login_name):
7166         * editfns.c (get_home_directory):
7167         [1].
7168
7169         * elhash.c (finish_marking_weak_hash_tables):
7170         [[[[5]]]]: Fix GCC warnings.
7171
7172         * emacs.c:
7173         * emacs.c (mswindows_handle_hardware_exceptions):
7174         * emacs.c (make_arg_list_1):
7175         * emacs.c (main_1):
7176         * emacs.c (Fkill_emacs):
7177         * emacs.c (Fdump_emacs):
7178         [1].
7179         Fix problems with nested crashes, add long comment.
7180
7181         * event-Xt.c (init_event_Xt_late):
7182         [1].
7183
7184         * event-msw.c:
7185         * event-msw.c (mswindows_dde_callback):
7186         * event-msw.c (mswindows_handle_sticky_modifiers):
7187         * event-msw.c (mswindows_wnd_proc):
7188         [1].
7189         [5].
7190
7191         * events.c (character_to_event):
7192         [1].
7193
7194         * fileio.c:
7195         * fileio.c (Ffile_name_directory):
7196         * fileio.c (Ffile_name_nondirectory):
7197         * fileio.c (directory_file_name):
7198         * fileio.c (Fexpand_file_name):
7199         * fileio.c (Fsubstitute_in_file_name):
7200         * fileio.c (Ffile_name_absolute_p):
7201         * fileio.c (check_executable):
7202         * fileio.c (Ffile_readable_p):
7203         * fileio.c (Ffile_accessible_directory_p):
7204         * fileio.c (Ffile_modes):
7205         * fileio.c (Funix_sync):
7206         * fileio.c (vars_of_fileio):
7207         [1]. [4].
7208
7209         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
7210
7211         Expand getdefdir defn.
7212         Fix bogus rename() comment.
7213
7214         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
7215         to use standard XEmacs include files, e.g. sysfile.h, rather
7216         than system-specific includes.
7217
7218         * fns.c:
7219         * fns.c (Fsubseq):
7220         [5]. [6].
7221
7222         * frame.c (vars_of_frame):
7223         [1].
7224
7225         * getloadavg.c:
7226         * getloadavg.c (getloadavg):
7227         [1]. [6].
7228         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
7229         (We don't use it elsewhere in the code; just add a comment.)
7230
7231         * gif_io.c:
7232         [6].
7233         Add config.h.
7234
7235         * glyphs-msw.c:
7236         * glyphs-msw.c (mswindows_resource_instantiate):
7237         [1].
7238
7239         * glyphs-x.c (x_native_layout_instantiate):
7240         [5].
7241
7242         * gui-msw.c (Fmswindows_shell_execute):
7243         [1].
7244
7245         * insdel.c:
7246         [4].
7247
7248         * lisp.h:
7249         [4]. [5].
7250
7251         * lread.c (locate_file_in_directory_mapper):
7252         [1].
7253
7254         * lstream.c:
7255         [4].
7256
7257         * mem-limits.h:
7258         * mem-limits.h (get_lim_data):
7259         [1].
7260
7261         * menubar-msw.c:
7262         [4].
7263
7264         * ndir.h:
7265         [1].
7266
7267         * nt.c:
7268         * nt.c (getwd):
7269         * nt.c (closedir):
7270         * nt.c (rva_to_section):
7271         * nt.c (mswindows_executable_type):
7272         [1]. [6].
7273         Fix closedir() defn.
7274
7275         * nt.h:
7276         [[[[8]]]]: *_OK defs moved to sysfile.h.
7277
7278         * ntproc.c:
7279         [6]. [7].
7280
7281         * objects-x.c:
7282         [4].
7283
7284         * print.c:
7285         * print.c (std_handle_out_external):
7286         [1]. [4].
7287
7288         * process-nt.c:
7289         * process-nt.c (nt_create_process):
7290         [6].
7291         try to fix process quoting somewhat.
7292
7293         * process-unix.c (unix_create_process):
7294         [1].
7295
7296         * process.c:
7297         * process.c (vars_of_process):
7298         Add Vnull_device.
7299
7300         * process.h:
7301         [1].
7302
7303         * realpath.c:
7304         * realpath.c (xrealpath):
7305         [1].
7306
7307         * redisplay-tty.c (init_tty_for_redisplay):
7308         [3].
7309
7310         * redisplay.c:
7311         [4]. [6].
7312
7313         * scrollbar-msw.c:
7314         [4].
7315
7316         * sheap.c:
7317         * sheap.c (more_static_core):
7318         * sheap.c (report_sheap_usage):
7319         [5]. [6].
7320
7321         * signal.c:
7322         * signal.c (alarm_signal):
7323         [1]. [6].
7324
7325         * sound.c:
7326         [6].
7327
7328         * strftime.c:
7329         * strftime.c (zone_name):
7330         [1]. [5].
7331
7332         * symsinit.h (init_sunpro):
7333         [1].
7334
7335         * syscommctrl.h:
7336         commctrl.h not in Cygwin b20.1.
7337
7338         * sysdep.c:
7339         * sysdep.c (endif):
7340         * sysdep.c (sys_subshell):
7341         * sysdep.c (init_baud_rate):
7342         * sysdep.c (emacs_get_tty):
7343         * sysdep.c (emacs_set_tty):
7344         * sysdep.c (tty_init_sys_modes_on_device):
7345         * sysdep.c (init_system_name):
7346         * sysdep.c (sys_open):
7347         * sysdep.c (interruptible_open):
7348         * sysdep.c (sys_fopen):
7349         * sysdep.c (sys_mkdir):
7350         * sysdep.c (sys_rename):
7351         * sysdep.c (get_process_times_1):
7352         [1]. [6].
7353
7354         * sysdep.h:
7355         [1].
7356
7357         * sysdir.h:
7358         * sysdir.h (DIRENTRY_NONEMPTY):
7359         [1]. [6].
7360
7361         * sysdll.c (dll_init):
7362         * sysdll.h:
7363         [1].
7364
7365         * sysfile.h:
7366         [1]. [6]. [8].
7367         added text/binary defs.
7368
7369         * sysfloat.h:
7370         [1].
7371
7372         * sysproc.h:
7373         * sysproc.h (EDESTADDRREQ):
7374         * sysproc.h (poll_fds_for_input):
7375         [1]. [6].
7376
7377         * syspwd.h:
7378         [6].
7379
7380         * syssignal.h:
7381         [1].
7382
7383         * systime.h:
7384         [1]. [6].
7385
7386         * systty.h:
7387         [1].
7388
7389         * syswindows.h:
7390         [1].
7391         Always define WIN32_LEAN_AND_MEAN.
7392
7393         * unexcw.c (unexec):
7394         [5].
7395
7396         * unexec.c:
7397         * unexec.c (copy_text_and_data):
7398         * unexec.c (adjust_lnnoptrs):
7399         [1].
7400
7401         * unexnt.c:
7402         * unexnt.c (_start):
7403         [1].
7404
7405 2000-06-07  Ben Wing  <ben@xemacs.org>
7406
7407         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
7408         was used only as a model.  We've long since extracted any useful
7409         logic or code out of this. (I just did an exhaustive search.)
7410
7411         * s\msdos.h: Removed.
7412
7413         * s\windows95.h: Removed.
7414
7415 2000-06-10  Ben Wing  <ben@xemacs.org>
7416
7417         * s\cygwin32.h:
7418         [1]. [5].
7419         Don't use extern with fun defs.
7420
7421         * s\mingw32.h:
7422         [1]. [7].
7423         Remove nt\inc include.
7424         Remove getdisk, getdefdir. (The former is unused, the latter
7425         expanded in fileio.h.)
7426
7427         * s\windowsnt.h:
7428         * s\windowsnt.h (WIN32_NATIVE):
7429         * s\windowsnt.h (HAVE_STRCASECMP):
7430         [1]. [7].
7431         Add long comment about preprocessor changes.
7432         Remove getdisk, getdefdir. (The former is unused, the latter
7433         expanded in fileio.h.)
7434
7435 2000-06-10  Ben Wing  <ben@xemacs.org>
7436
7437         * m\arm.h:
7438         * m\delta.h:
7439         * m\intel386.h:
7440         * m\sequent.h:
7441         * m\template.h:
7442         * m\windowsnt.h:
7443         [1].
7444         Remove bogus/unused NO_SOCK_SIGIO.
7445
7446 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
7447
7448         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
7449         not an Emchar.
7450
7451 2000-06-04  Mike Sperber <mike@xemacs.org>
7452
7453         * casetab.c (set_case_table): For `set-standard-case-table',
7454         actually deposit the new case tables where the rest of XEmacs can
7455         see them.
7456
7457 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
7458
7459         * data.c (Faset): Don't cast XCHAR() to unsigned char.
7460
7461 2000-06-05  Ben Wing  <ben@xemacs.org>
7462
7463         * callproc.c (child_setup): Don't do close_load_descs() under
7464         MS Windows.  Put in a comment explaining why.
7465
7466 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
7467
7468         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
7469         Toolkit shell" which breaks `kill-compilation' on Windows NT
7470         native, retaining STDERR handling improvements.
7471
7472 2000-06-01  Andreas Jaeger  <aj@suse.de>
7473
7474         * s/s390.h: Support for S390, based on a patch by Martin
7475         Schwidefsky <schwidefsky@de.ibm.com>.
7476
7477 2000-05-30  Andy Piper  <andy@xemacs.org>
7478
7479         * window.c (allocate_window):
7480         (make_dummy_parent):
7481         (Fset_window_configuration): use new hashtable type.
7482
7483         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
7484         (struct image_instantiator_methods):
7485         (struct Lisp_Image_Instance): make instance geometry signed.
7486
7487         * glyphs.c (instantiate_image_instantiator):
7488         (image_instance_query_geometry):
7489         (image_instance_layout):
7490         (image_instance_layout):
7491         (query_string_geometry):
7492         (text_query_geometry):
7493         (image_instantiate):
7494         (image_instantiate):
7495         (cache_subwindow_instance_in_frame_maybe):
7496         (subwindow_query_geometry): make instance geometry signed.
7497
7498         * glyphs-widget.c (widget_query_geometry):
7499         (widget_layout):
7500         (button_query_geometry):
7501         (tree_view_query_geometry):
7502         (tab_control_query_geometry):
7503         (layout_query_geometry):
7504         (layout_layout):
7505         (native_layout_layout): make instance geometry signed.
7506
7507 2000-05-29  Olivier Galibert  <galibert@pobox.com>
7508
7509         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
7510         constant.
7511
7512         * general.c (syms_of_general): Add Qfull_assoc symbol.
7513
7514         * data.c (finish_marking_weak_lists): Mark full-assoc lists
7515         correctly.
7516         (decode_weak_list_type): Decode full-assoc type.
7517         (encode_weak_list_type): Encode full-assoc type.
7518         (Fmake_weak_list): Update doc string.
7519
7520 2000-05-30  Andy Piper  <andy@xemacs.org>
7521
7522         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
7523
7524         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
7525         (decode_hash_table_weakness): ditto.
7526         (Fhash_table_weakness): ditto.
7527         (Fhash_table_type): ditto.
7528         (finish_marking_weak_hash_tables): ditto.
7529         (hash_table_weakness_validate): ditto.
7530         (syms_of_elhash): ditto.
7531
7532 2000-05-28  Martin Buchholz <martin@xemacs.org>
7533
7534         * XEmacs 21.2.34 is released.
7535
7536 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
7537
7538         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
7539         start cache.
7540         (updating_line_start_cache): Gone.
7541         (regenerate_window): Replace resetting of VERTICAL_CLIP by
7542         generic code to force a minimum of 1 line laid out in the
7543         CMOTION_DISP case.
7544
7545 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
7546
7547         * glyphs.c (instantiate_image_instantiator): Check for initialized
7548         height & width no longer special cases IMAGE_NOTHING.
7549         (nothing_instantiate): Set height and width of instance.
7550
7551 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
7552
7553         * unexelf.c (unexec): Search for ".data" section.
7554         Initialize new_data2_offset from old_data_index.
7555         Remove redundant check for ElfW.
7556
7557 2000-05-23  Andy Piper  <andy@xemacs.org>
7558
7559         * glyphs.c (get_image_instantiator_governing_domain): allow more
7560         specific domains as the governing domain rather than expecting an
7561         exact match. This fixes problems with layouts.
7562
7563 2000-05-22  Andy Piper  <andy@xemacs.org>
7564
7565         * redisplay-output.c (compare_runes): check for non-images
7566
7567         * glyphs.c (set_glyph_dirty_p): ditto.
7568         (update_glyph_cachel_data): ditto.
7569
7570         * glyphs-widget.c (layout_post_instantiate): ditto.
7571         (layout_post_instantiate): ditto.
7572
7573         * event-msw.c (mswindows_wnd_proc): warning removal.
7574
7575 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
7576
7577         * s\mingw32.h: Added #undef for CLASH_DETECTION.
7578
7579         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
7580
7581         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
7582
7583         * nt.c (rva_to_section): mingw32 needs rva_to_section.
7584         (mswindows_executable_type): mingw32 now has enough headers for
7585         this to work.
7586
7587 2000-05-20  Andy Piper  <andy@xemacs.org>
7588
7589         * console-msw.c (mswindows_output_last_error): ; -> ,
7590
7591 2000-05-12  Andy Piper  <andy@xemacs.org>
7592
7593         * console-msw.c (FROB): compare ints with ints.
7594
7595 2000-05-11  Andy Piper  <andy@xemacs.org>
7596
7597         * glyphs-x.c (x_finalize_image_instance): make minimal build
7598         happy.
7599
7600 2000-05-20  Ben Wing  <ben@xemacs.org>
7601
7602         * event-Xt.c:
7603         * event-Xt.c (vars_of_event_Xt):
7604         move modifier-keys-are-sticky to event-stream.c.
7605
7606         * event-msw.c:
7607         * event-msw.c (mswindows_enqueue_mouse_button_event):
7608         * event-msw.c (key_needs_default_processing_p):
7609         * event-msw.c (XEMSW_LCONTROL):
7610         * event-msw.c (mswindows_handle_sticky_modifiers):
7611         * event-msw.c (FROB):
7612         * event-msw.c (clear_sticky_modifiers):
7613         * event-msw.c (output_modifier_keyboard_state):
7614         * event-msw.c (output_alt_keyboard_state):
7615         * event-msw.c (mswindows_wnd_proc):
7616         * event-msw.c (mswindows_modifier_state):
7617         * event-msw.c (emacs_mswindows_handle_magic_event):
7618         implement sticky modifiers.
7619
7620         * event-stream.c:
7621         * event-stream.c (vars_of_event_stream):
7622         move modifier-keys-are-sticky here.
7623
7624         * lisp.h:
7625         add CHECK_FUNCTION.
7626
7627         * rangetab.c:
7628         implement map-range-table.
7629
7630
7631 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
7632
7633         * redisplay-tty.c (reset_tty_modes):
7634         (tty_redisplay_shutdown): Adjust argument type to
7635         tty_frame_output_end.
7636
7637 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
7638
7639         * eval.c (Fbacktrace): Don't output a line with only right
7640         parenthesis.
7641
7642 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
7643
7644         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
7645         (Fpq_reset_poll): Ditto.
7646
7647 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
7648
7649         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
7650
7651 2000-05-16  Ben Wing  <ben@xemacs.org>
7652
7653         * buffer.c:
7654         * buffer.c (dfc_convert_to/from_internal_format):
7655         * buffer.c (reinit_vars_of_buffer):
7656         Fix conversion functions to allow reentrancy.
7657
7658         * console-msw.c:
7659         * console-msw.c (mswindows_output_last_error):
7660         New fun, generally useful -- output a human-readable
7661         version of GetLastError() on the console.
7662
7663         * console-msw.h:
7664         * console-msw.h (struct mswindows_frame):
7665         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
7666
7667         * console-stream.c (stream_output_begin):
7668         * console-stream.c (stream_output_end):
7669         * console-stream.c (stream_output_vertical_divider):
7670         * console-stream.c (stream_clear_region):
7671         * console-stream.c (stream_flash):
7672         * console-stream.c (console_type_create_stream):
7673         Delete blank stream methods, not needed.
7674
7675         * console.h (struct console_methods):
7676         Split begin/end methods into window and frame.
7677
7678         * event-msw.c:
7679         * event-msw.c (mswindows_handle_paint):
7680         * event-msw.c (output_alt_keyboard_state):
7681         * event-msw.c (mswindows_wnd_proc):
7682         * event-msw.c (vars_of_event_mswindows):
7683         Comment about problems with ignored-expose.
7684         Define mswindows-debug-events; not really implemented.
7685
7686         * frame-msw.c (mswindows_init_frame_1):
7687         random cleanups.
7688
7689         * glyphs-msw.c:
7690         * glyphs-msw.c (begin_defer_window_pos):
7691         * glyphs-msw.c (mswindows_unmap_subwindow):
7692         * glyphs-msw.c (mswindows_map_subwindow):
7693         * glyphs-msw.c (mswindows_resize_subwindow):
7694         Use DeferWindowPos to reduce flashing when mapping/unmapping.
7695
7696         * glyphs.c (make_image_instance_1):
7697         Fix crash.
7698
7699         * gutter.c (Fredisplay_gutter_area):
7700         Use new begin/end methods.
7701
7702         * lisp.h (Dynarr_new2):
7703         New creation fun.
7704
7705         * redisplay-msw.c:
7706         * redisplay-msw.c (mswindows_frame_output_begin):
7707         * redisplay-msw.c (mswindows_frame_output_end):
7708         * redisplay-msw.c (console_type_create_redisplay_mswindows):
7709         New begin/end methods -- handle DeferWindowPos.
7710
7711         * redisplay-output.c (redisplay_move_cursor):
7712         * redisplay-output.c (redraw_cursor_in_window):
7713         * redisplay-output.c (redisplay_update_line):
7714         * redisplay-output.c (redisplay_output_window):
7715         New begin/end methods.
7716
7717         * redisplay-tty.c:
7718         * redisplay-tty.c (tty_frame_output_begin):
7719         * redisplay-tty.c (tty_frame_output_end):
7720         * redisplay-tty.c (console_type_create_redisplay_tty):
7721         New begin/end methods.
7722
7723         * redisplay-x.c:
7724         * redisplay-x.c (x_window_output_begin):
7725         * redisplay-x.c (x_window_output_end):
7726         * redisplay-x.c (console_type_create_redisplay_x):
7727         New begin/end methods.
7728
7729         * redisplay.c (redisplay_frame):
7730         * redisplay.c (Fredisplay_echo_area):
7731         New begin/end methods.
7732         use MAYBE_DEVMETH for clear_frame; it may not exist.
7733
7734         * window.h (WINDOW_XFRAME):
7735         WINDOW_XFOO macros -- get locale and decode struct pointer.
7736
7737
7738 2000-05-12  Ben Wing  <ben@xemacs.org>
7739
7740         * emacs.c:
7741         * emacs.c (ensure_no_quitting_from_now_on):
7742         * emacs.c (fatal_error_signal):
7743         * emacs.c (mswindows_handle_hardware_exceptions):
7744         * emacs.c (main):
7745         * emacs.c (Fkill_emacs):
7746         * emacs.c (shut_down_emacs):
7747         * emacs.c (assert_failed):
7748         various improvements in fatal error handling.
7749
7750         * eval.c:
7751         move preparing_for_armageddon to emacs.c.
7752
7753         * lisp.h:
7754         declare fatal_error_in_progress.
7755
7756         * print.c:
7757         * print.c (std_handle_out_external):
7758         * print.c (std_handle_out_va):
7759         * print.c (stderr_out):
7760         * print.c (stdout_out):
7761         use console under mswin when no standard output.
7762         don't do code conversion during fatal error.
7763
7764         * scrollbar.c (Fscrollbar_page_up):
7765         * scrollbar.c (Fscrollbar_page_down):
7766         fix missing else.  reindent.
7767
7768 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
7769
7770         Emergency fix.
7771
7772         * glyphs.h (GLYPH_CACHEL_DESCENT):
7773         (GLYPH_CACHEL_DESCENT):
7774         (GLYPH_CACHEL_DESCENT):
7775         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
7776         used in case these are inline functions.
7777         Use more absurd values to error check.
7778
7779         include window.h for error check functions.
7780
7781 2000-05-11  Ben Wing  <ben@xemacs.org>
7782
7783         * cmdloop.c (Freally_early_error_handler):
7784         Display message box under windows; otherwise, message will disappear
7785         before it can be viewed.
7786
7787         * console-msw.c:
7788         * console-msw.c (Fmswindows_message_box):
7789         * console-msw.c (FROB):
7790         * console-msw.c (syms_of_console_mswindows):
7791         Define new fun `mswindows-message-box'.
7792         #### I will merge this into `popup-dialog-box'; just give me
7793         a bit of time.
7794
7795         * general.c:
7796         * general.c (syms_of_general):
7797         Some new symbols used in `mswindows-message-box'.
7798
7799         * glyphs.c:
7800         * glyphs.c (Fset_image_instance_property):
7801         put warning in this fun.
7802
7803         * glyphs.h:
7804         * glyphs.h (GLYPH_CACHEL_WIDTH):
7805         * glyphs.h (GLYPH_CACHEL_ASCENT):
7806         * glyphs.h (GLYPH_CACHEL):
7807         * glyphs.h (GLYPH_CACHEL_GLYPH):
7808         define error-checking versions to try to catch a bug i've seen --
7809         redisplay gets in an infinite loop because the glyph width of the
7810         continuation glyph is 65535.
7811
7812         * lisp.h:
7813         Extern message-box stuff.
7814
7815         * window.c (allocate_window):
7816         * window.c (make_dummy_parent):
7817         * window.c (Fset_window_configuration):
7818         Use EQUAL not EQ for subwindow caches to make them work a bit
7819         better. (Something is still very broken.)
7820
7821
7822 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
7823
7824         * glyphs.c (image_instantiate): Suppress gcc warnings.
7825         (Fmake_image_instance): Fix doc string.
7826         * specifier.c (Fmake_specifier): Ditto.
7827
7828 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
7829
7830         * paths.h.in (PATH_LOCK): Removed.
7831         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
7832         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
7833
7834 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
7835
7836         * fns.c (Ffeaturep): Update e-mail address in doc-string.
7837         Document (featurep '(and xemacs 21.02)).
7838
7839 2000-05-09  Ben Wing  <ben@xemacs.org>
7840
7841         * buffer.c (complex_vars_of_buffer):
7842         update modeline-format doc.
7843
7844         * device.h:
7845         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
7846
7847         * emacs.c:
7848         timeline of all released versions of Emacs, for use in creating
7849         authorship comments and in synching up.
7850
7851         * glyphs-widget.c (image_instantiator_buttons):
7852         * glyphs-widget.c (image_instantiator_edit_fields):
7853         * glyphs-widget.c (image_instantiator_combo_box):
7854         * glyphs-widget.c (image_instantiator_scrollbar):
7855         * glyphs-widget.c (image_instantiator_progress_guage):
7856         * glyphs-widget.c (image_instantiator_tree_view):
7857         * glyphs-widget.c (image_instantiator_tab_control):
7858         * glyphs-widget.c (image_instantiator_labels):
7859         * glyphs-widget.c (image_instantiator_layout):
7860         * glyphs-widget.c (image_instantiator_native_layout):
7861         rename decode_domain method to governing_domain.
7862
7863         * glyphs.c:
7864         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
7865         * glyphs.c (add_entry_to_device_ii_format_list):
7866         make sure we don't put an entry more than once into the list.
7867         * glyphs.c (check_instance_cache_mapper):
7868         *************************************************************
7869         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
7870         HAVE BEEN GETTING.
7871         *************************************************************
7872         * glyphs.c (get_image_instantiator_governing_domain):
7873         clean up, expand on new concept of governing domain.
7874         * glyphs.c (instantiate_image_instantiator):
7875         * glyphs.c (allocate_image_instance):
7876         use governing_domain instead of cache_domain in naming.
7877         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
7878         * glyphs.c (make_image_instance_1):
7879         * glyphs.c (Fmake_image_instance):
7880         allow for any domain (not just device), and process the
7881         governing domain correctly.  very big doc fix.
7882         * glyphs.c (Fimage_instance_domain):
7883         new primitive, to retrieve the governing domain of an image instance.
7884         * glyphs.c (image_instantiate):
7885         use new governing_domain stuff.  this fixes a crash you could get
7886         by instantiating certain widget glyphs in frame locales. (should
7887         signal an error instead of crashing.)
7888         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
7889         * glyphs.c (Fglyphp): clean up doc.
7890         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
7891         * glyphs.c (syms_of_glyphs):
7892         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
7893         * glyphs.c (image_instantiator_format_create): add some comments about
7894         bogus code.
7895         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
7896         for current-display-table. (Apparently Hrjove implemented in 1998 a
7897         design I wrote up in 1996, but didn't update the doc string.)
7898
7899         * glyphs.h: clean up a doc string.
7900         * glyphs.h (governing_domain):
7901         * glyphs.h (struct image_instantiator_methods):
7902         changes for governing_domain stuff.
7903
7904         * gutter.c:
7905         * gutter.c (Fgutter_specifier_p):
7906         * gutter.c (Fgutter_size_specifier_p):
7907         * gutter.c (Fgutter_visible_specifier_p):
7908         * objects.c:
7909         * objects.c (Fcolor_specifier_p):
7910         * objects.c (Ffont_specifier_p):
7911         * objects.c (Fface_boolean_specifier_p):
7912         doc strings moved to make-*-specifier.
7913
7914         * redisplay.c (add_disp_table_entry_runes_1):
7915         * redisplay.c (generate_fstring_runes):
7916         * redisplay.c (screen):
7917         add random comments and doc strings.
7918
7919         * specifier.c:
7920         * specifier.c (Fmake_specifier):
7921         major overhaul of this doc string.
7922
7923         * specifier.c (Fvalid_specifier_domain_p):
7924         comment about the bogosity of image instances being domains.
7925         * specifier.c (decode_domain):
7926         now non-static, used in glyphs.c.
7927         * specifier.c (specifier_instance):
7928         comment about the bogosity of image instances being domains.
7929         * specifier.c (Fgeneric_specifier_p):
7930         move doc string to make-generic-specifier.
7931         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
7932         rebackslashify.
7933
7934         * specifier.h:
7935         * specifier.h (DOMAIN_FRAME):
7936         * specifier.h (DOMAIN_LIVE_P):
7937         * specifier.h (DOMAIN_XDEVICE):
7938         rebackslashify.
7939         add comments about problems with these macros.
7940         prototype for decode_domain.
7941
7942         * toolbar.c:
7943         * toolbar.c (Ftoolbar_specifier_p):
7944         move doc string to `make-toolbar-specifier'.
7945
7946         * window.c (window_unmap_subwindows_cache_mapper):
7947         *************************************************************
7948         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
7949         HAVE BEEN GETTING.
7950         *************************************************************
7951
7952 2000-05-09  Andy Piper  <andy@xemacs.org>
7953
7954         * glyphs.h: declare reset_frame_subwindow_instance_cache.
7955
7956         * window.c (Fset_window_configuration): reset the frame subwindow
7957         cache and re-initialize the window subwindow caches.
7958
7959         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
7960
7961 2000-05-09  Ben Wing  <ben@xemacs.org>
7962
7963         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
7964         DWORD.
7965
7966 2000-04-26  Mike Woolley  <mike@bulsara.com>
7967
7968         * ntheap.c: Changed recreate_heap to limit the amount reserved
7969         for the heap to that which is actually available. Also now
7970         displays a message box (with some dignostics) in the event that
7971         it still can't start.
7972
7973 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
7974
7975         * callproc.c (Fold_call_process_internal): GCPRO path
7976
7977 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
7978
7979         Patch by Bill Perry.
7980
7981         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
7982         back data instead of #ifdef.
7983         (Fscrollbar_page_down): ditto.
7984
7985 2000-05-07  Ben Wing  <ben@xemacs.org>
7986
7987         * buffer.h:
7988         Kludge for defining Qmswindows_tstr.
7989
7990         * nt.c:
7991         * nt.c (open_input_file):
7992         * nt.c (open_output_file):
7993         * nt.c (rva_to_section):
7994         * nt.c (mswindows_executable_type):
7995         Move all memory-mapped-file routines here (some were in unexnt.c,
7996         which is bad because they are used by process-nt.c, and unexnt
7997         won't be around when portable dumping).  Synched the above routines
7998         with FSF 20.6.
7999
8000         * nt.h:
8001         Removed ifdef'd out bogus code.
8002         Fixed some prototypes.
8003
8004         * nt.h (file_data):
8005         * nt.h (OFFSET_TO_RVA):
8006         * nt.h (RVA_TO_OFFSET):
8007         * nt.h (RVA_TO_PTR):
8008         Moved the memory-mapped-file structures, macros and prototypes
8009         here, to parallel nt.c.  ntheap.h should really be removed
8010         entirely, and it's a non-portable-dumper specific file.
8011
8012         * ntheap.h (round_to_next):
8013         Moved the memory-mapped-file structures, macros and prototypes
8014         to nt.h.
8015
8016         * ntproc.c (compare_env):
8017         Moved rva_to_section and mswindows_executable_type to nt.c.
8018         Moved compare_env to process-nt.c.
8019         ntproc.c will die, one day.
8020
8021         * ntproc.c (sys_spawnve):
8022         Account for win32_ -> mswindows_.
8023
8024         * process-nt.c:
8025         * process-nt.c (struct nt_process_data):
8026         * process-nt.c (ensure_console_window_exists):
8027         * process-nt.c (compare_env):
8028         * process-nt.c (nt_create_process):
8029         * process-nt.c (nt_kill_process_by_pid):
8030         * process-nt.c (syms_of_process_nt):
8031         * process-nt.c (vars_of_process_nt):
8032         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
8033         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
8034         changes).  Eliminate our old `nt-quote-process-args' mechanism.
8035         Synch up nt_create_process with FSF 20.6 sys_spawnve.
8036         Move compare_env here from ntproc.c.
8037
8038         * process.c (Fprocess_send_region):
8039         Takes an optional fourth argument, BUFFER, which should fix some
8040         problems with call-process.
8041
8042         * syscommctrl.h:
8043         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
8044
8045         * syswindows.h:
8046         Move ICC_BAR_CLASSES to syscommctrl.h.
8047         Add preliminary macros for MSWindows/Mule.  More to come.
8048
8049         * unexnt.c:
8050         * unexnt.c (unexec):
8051         open_output_file moved to nt.c.
8052
8053
8054 2000-05-05  Andy Piper  <andy@xemacs.org>
8055
8056         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
8057         instance from the frame cache also since GC may catch up too late
8058         to make frame deletion sane.
8059
8060 2000-05-04  Andy Piper  <andy@xemacs.org>
8061
8062         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
8063         (x_finalize_image_instance): ungcpro on deletion.
8064
8065         * glyphs.c (image_instantiator_format_create): give pointers a
8066         query geometry method so that the geometry is at least set.
8067
8068         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
8069         initialize layouts if using widgets.
8070
8071 2000-05-03  Andy Piper  <andy@xemacs.org>
8072
8073         * nt.c: remove bogus reference to sysmmsystem.h
8074
8075         * gui-x.c (popup_selection_callback): fix no selection abort.
8076
8077 2000-05-02  Andy Piper  <andy@xemacs.org>
8078
8079         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
8080         (mswindows_widget_instantiate): ditto.
8081
8082         * glyphs-widget.c (initialize_widget_image_instance): initialize
8083         children correctly.
8084         (widget_instantiate): cope with children and items in the same
8085         instance.
8086
8087         * glyphs.c (mark_image_instance): cope with children as a first
8088         class member.
8089         (image_instance_equal): ditto.
8090         (image_instance_hash): ditto.
8091         (image_instance_changed): ditto.
8092
8093 2000-04-30  Andy Piper  <andy@xemacs.org>
8094
8095         * glyphs.c (subwindow_query_geometry): new function. Return some
8096         defaults.
8097         (subwindow_instantiate): don't assign dimensions if none have been
8098         given.
8099         (image_instantiator_format_create): add subwindow_query_geometry.
8100         (print_image_instance): cope with layouts as widgets.
8101
8102 2000-04-29  Andy Piper  <andy@xemacs.org>
8103
8104         * frame.c (delete_frame_internal): call
8105         free_frame_subwindow_instance_cache so that all subwindows are
8106         finalized before their parent.
8107         (mark_frame): remove subwindow_cachels.
8108         (Fmake_frame): remove subwindow_cachel manipulation.
8109         (allocate_frame_core): subwindow_instance_cache is a weak list.
8110         (delete_frame_internal): set subwindow_instance_cache to nil.
8111
8112         * glyphs-msw.c (mswindows_finalize_image_instance): make double
8113         finalization safe.
8114         (mswindows_finalize_image_instance): use the device
8115         not the domain as the domain may have died already.
8116
8117         * glyphs-x.c (x_finalize_image_instance): ditto.
8118         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
8119         HEIGHT.
8120
8121         * redisplay-output.c (redisplay_unmap_subwindows): update for
8122         subwindow instance cache as a weak list.
8123         (redisplay_unmap_subwindows_maybe): ditto.
8124         (redisplay_unmap_subwindows_except_us): ditto.
8125
8126         * glyphs.c (unmap_subwindow): error checking will check the domain
8127         so don't deal with it here. Don't use cachels anymore.
8128         (map_subwindow): ditto.
8129         (update_subwindow_cachel_data): remove old accessor names.
8130         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
8131         (Fresize_subwindow): don't update cachel.
8132         (mark_subwindow_cachels):
8133         (update_subwindow_cachel_data):
8134         (add_subwindow_cachel):
8135         (get_subwindow_cachel_index):
8136         (update_subwindow_cachel):
8137         (reset_subwindow_cachels):
8138         (mark_subwindow_cachels_as_not_updated): deleted.
8139         (cache_subwindow_instance_in_frame_maybe): new function. Add a
8140         subwindow instance to the frame cache.
8141         (find_matching_subwindow): update for subwindow instance cache as
8142         a weak list.
8143         (update_widget_instances): ditto.
8144         (image_instance_type_to_mask):inlined.
8145         (free_frame_subwindow_instance_cache): new function. finalize all
8146         subwindows that are instantiated.
8147
8148         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
8149         of cachel information.
8150         (IMAGE_INSTANCE_DISPLAY_X):
8151         (IMAGE_INSTANCE_DISPLAY_Y):
8152         (IMAGE_INSTANCE_DISPLAY_WIDTH):
8153         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
8154         (XIMAGE_INSTANCE_DISPLAY_X):
8155         (XIMAGE_INSTANCE_DISPLAY_Y):
8156         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
8157         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
8158         remove subwindow_cachel structure and function references.
8159         (image_instance_type_to_mask): inline from glyphs.c
8160
8161         * redisplay.c (redisplay_frame): remove subwindow_cachel
8162         references.
8163
8164         * frame.h (struct frame): remove subwindow_cachels.
8165         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
8166
8167         * frameslots.h: add subwindow_instance_cache.
8168
8169         * window.c (replace_window): check subwindow cache of replacement.
8170         (window_unmap_subwindows_cache_mapper):
8171         (window_unmap_subwindows): new functions. Unmap all subwindows
8172         cached on this window.
8173         (mark_window_as_deleted): unmap all subwindows.
8174
8175 2000-04-27  Andy Piper  <andy@xemacs.org>
8176
8177         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
8178
8179         * glyphs-widget.c (widget_layout): return something.
8180         (layout_layout): return something. Fail if not initialized.
8181         (layout_query_geometry): ditto.
8182         (image_instantiator_native_layout): new function. Initialized the
8183         native layout type.
8184         (widget_instantiate): don't do layout stuff here.
8185
8186         * glyphs.c (instantiate_image_instantiator): reorded calling or
8187         instantiate and post_instantiate with layout in between.
8188         (image_instance_layout): be more selective about deciding whether
8189         the layout has been done or not.
8190
8191         * glyphs.h (struct image_instantiator_methods): return a value
8192         from layout_method.
8193
8194 2000-04-26  Andy Piper  <andy@xemacs.org>
8195
8196         * glyphs.c (allocate_image_instance): make initial width and
8197         height unspecified. Set initialized to 0.
8198
8199         * syscommctrl.h new file. Encapsulates commctrl.h.
8200
8201         * syswindows.h new file. Encapsulates windows.h.
8202
8203         * ntplay.c: use new syswindows.h and syscommctrl.h header.
8204         * nt.c: ditto.
8205         * console-msw.h: ditto.
8206
8207         * redisplay-tty.c (tty_output_display_block): remove layout references.
8208
8209         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
8210         window handle rather than just the frame.
8211
8212         * glyphs.c (mark_image_instance): remove layout references.
8213         (print_image_instance): ditto.
8214         (image_instance_equal): ditto.
8215         (image_instance_hash): ditto.
8216         (decode_image_instance_type): ditto.
8217         (encode_image_instance_type): ditto.
8218         (image_instantiate): ditto.
8219         (allocate_glyph): ditto.
8220         (Fimage_instance_height): ditto.
8221         (Fimage_instance_width): ditto.
8222         (update_subwindow): ditto.
8223
8224         * redisplay-x.c (x_output_display_block): recode for layouts as
8225         widgets.
8226
8227         * redisplay-output.c (redisplay_output_layout): recode for layouts
8228         as widgets.
8229         (compare_runes): remove layout references.
8230
8231         * redisplay-msw.c (mswindows_output_display_block): recode for
8232         layouts as widgets.
8233
8234         * glyphs-widget.c (image_instantiator_layout): remove
8235         layout_possible_dest_types.
8236         (layout_possible_dest_types): deleted.
8237
8238         * glyphs.h (image_instance_type): remove layout references.
8239         (struct Lisp_Image_Instance): ditto. Add initialized flag.
8240         (IMAGE_INSTANCE_INITIALIZED): new accessor.
8241         (XIMAGE_INSTANCE_INITIALIZED): ditto.
8242
8243 2000-04-25  Andy Piper  <andy@xemacs.org>
8244
8245         * glyphs-widget.c (image_instantiator_buttons):
8246         (image_instantiator_edit_fields):
8247         (image_instantiator_combo_box):
8248         (image_instantiator_scrollbar):
8249         (image_instantiator_progress_guage):
8250         (image_instantiator_tree_view):
8251         (image_instantiator_tab_control):
8252         (image_instantiator_labels):
8253         (image_instantiator_layout): call default post_instantiate method.
8254         (widget_post_instantiate): new function. Simply lays out the
8255         widgets.
8256
8257         * glyphs.h (struct image_instantiator_methods): add
8258         post_instantiate method.
8259
8260         * glyphs.c (instantiate_image_instantiator): add post_instantiate
8261         method calls.
8262
8263 2000-04-23  Andy Piper  <andy@xemacs.org>
8264
8265         * glyphs.h (struct image_instantiator_methods): add
8266         decode_domain_method.
8267         (struct Lisp_Image_Instance): remove subwindow frame - it can be
8268         derived from the domain.
8269         (IMAGE_INSTANCE_FRAME): new accessor.
8270         (XIMAGE_INSTANCE_FRAME): ditto.
8271
8272         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
8273         instead of _SUBWINDOW_FRAME.
8274         (finalize_image_instance): ditto.
8275         (Fimage_instance_foreground): ditto.
8276         (Fimage_instance_background): ditto.
8277         (image_instantiate): ditto.
8278         (update_subwindow_cachel): ditto.
8279         (update_subwindow): ditto.
8280         (unmap_subwindow): ditto.
8281         (map_subwindow): ditto
8282         (subwindow_instantiate): ditto.
8283         * glyphs-msw.c (mswindows_update_widget): ditto.
8284         (mswindows_progress_gauge_instantiate): ditto.
8285         (mswindows_tab_control_update): ditto.
8286         * glyphs-x.c (x_update_widget): ditto.
8287         (x_widget_instantiate): ditto.
8288         (x_tab_control_instantiate): ditto.
8289         (x_tab_control_update): ditto.
8290         * event-msw.c (mswindows_wnd_proc): ditto
8291
8292         * glyphs-widget.c (image_instantiator_layout): use
8293         subwindow_decode_domain.
8294         (image_instantiator_buttons): ditto.
8295         (image_instantiator_edit_fields): ditto.
8296         (image_instantiator_combo_box): ditto.
8297         (image_instantiator_scrollbar): ditto.
8298         (image_instantiator_progress_guage): ditto.
8299         (image_instantiator_tree_view): ditto.
8300         (image_instantiator_tab_control): ditto.
8301         (image_instantiator_labels): ditto.
8302         (image_instantiator_layout): ditto.
8303
8304         * glyphs.c: add instance error checking to many functions.
8305         (instantiate_image_instantiator): decode device from cache_domain.
8306         (image_instantiate): partially rewrite by using
8307         decode_image_instantiator_domain to determine what domain the
8308         instance needs to be cached in.
8309         (decode_image_instantiator_domain): new function. Determine what
8310         domain the image needs to be cached in.
8311         (check_window_subwindow_cache): new error checking function.
8312         (check_instance_cache_mapper): ditto.
8313         (check_image_instance_structure): ditto.
8314         (subwindow_decode_domain): new function. Encodes a window as a
8315         subwindow's cache domain.
8316         (image_instantiator_format_create): use it for text and
8317         subwindows.
8318
8319 2000-04-21  Andy Piper  <andy@xemacs.org>
8320
8321         * glyphs.c (image_instance_device): new function.
8322         (image_instance_frame): new function.
8323         (image_instance_window): new function.
8324         (image_instance_live_p): new function.
8325
8326         * window.c (mark_window_as_deleted): reset the subwindow_instance_
8327         cache to nil.
8328
8329         * glyphs.h (struct Lisp_Image_Instance): device->domain.
8330         (IMAGE_INSTANCE_DOMAIN): new accessor.
8331         (XIMAGE_INSTANCE_DOMAIN): ditto.
8332
8333         * glyphs-x.c (x_finalize_image_instance): device->domain.
8334
8335         * glyphs-msw.c (init_image_instance_geometry): device->domain.
8336         (mswindows_finalize_image_instance): ditto.
8337
8338         * glyphs-eimage.c (jpeg_instantiate): device->domain.
8339         (gif_instantiate): ditto.
8340         (png_instantiate): ditto.
8341         (tiff_instantiate): ditto.
8342
8343         * glyphs.c (instantiate_image_instantiator): use domain rather
8344         than device.
8345         (mark_image_instance): device -> domain.
8346         (print_image_instance): ditto.
8347         (finalize_image_instance): ditto.
8348         (image_instance_equal): ditto.
8349         (allocate_image_instance): ditto.
8350         (Fcolorize_image_instance): ditto.
8351         (query_string_geometry): ditto.
8352         (image_instantiate): ditto
8353         (query_string_font): ditto.
8354         (image_instantiate): ditto.
8355         (update_subwindow): ditto.
8356         (unmap_subwindow): ditto.
8357         (map_subwindow): ditto.
8358         (subwindow_instantiate): ditto.
8359
8360         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
8361         (DOMAIN_FRAME): ditto.
8362         (DOMAIN_WINDOW): ditto.
8363         (DOMAIN_LIVE_P): ditto.
8364         (XDOMAIN_DEVICE): ditto.
8365         (XDOMAIN_FRAME): ditto.
8366         (XDOMAIN_WINDOW): ditto.
8367
8368         * specifier.c (Fvalid_specifier_domain_p): add image instances as
8369         a valid specifier domain.
8370
8371 2000-04-19  Andy Piper  <andy@xemacs.org>
8372
8373         * glyphs-widget.c (syms_of_glyphs_widget): remove
8374         widget-callback-current-channel.
8375         (vars_of_glyphs_widget): ditto.
8376         * glyphs.h: ditto
8377
8378         * gui.c (get_gui_callback): revert to previous behaviour.
8379
8380 2000-04-18  Andy Piper  <andy@xemacs.org>
8381
8382         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
8383         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
8384         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
8385
8386         * glyphs.c (image_instance_equal): add margin_width.
8387         (image_instance_hash): ditto.
8388
8389         * glyphs-widget.c (widget_instantiate): deal with margin-width.
8390         (layout_query_geometry): ditto.
8391         (layout_layout): ditto.
8392         (syms_of_glyphs_widget): add margin-width.
8393         (image_instantiator_layout): allow margin-width.
8394
8395         * glyphs.c (update_widget_instances): make a normal function.
8396         (syms_of_glyphs): remove Qupdate_widget_instances.
8397         * glyphs.h: ditto.
8398
8399         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
8400         so that we don't corrupt ideas about the last event or
8401         command. Remove widget-callback-current-channel fiddling.
8402         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
8403
8404 2000-05-01  Martin Buchholz <martin@xemacs.org>
8405
8406         * XEmacs 21.2.33 is released.
8407
8408 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
8409
8410         * make-src-depend: Allow dots in header file name.
8411
8412 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
8413
8414         * mule-charset.h (struct charset_lookup): Add
8415         next_allocated_1_byte_leading_byte and
8416         next_allocated_2_byte_leading_byte.
8417         * mule-charset.c: Move above two variables so that those values
8418         will be dumped.
8419
8420 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
8421
8422         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
8423         when string length is zero.
8424         (find_charsets_in_emchar_string): Ditto.
8425
8426 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
8427
8428         * lisp.h: extern Qdialog and Qmenubar.
8429
8430         * gui-x.c: added events.h.
8431                 also fixed typo which made the file uncompilable.
8432
8433         * general.c: Added Qmenubar and Qdialog
8434
8435 2000-04-28  Ben Wing  <ben@xemacs.org>
8436
8437         * frame-msw.c (mswindows_init_frame_1):
8438         * frame-msw.c (mswindows_mark_frame):
8439         * event-msw.c (mswindows_enqueue_dispatch_event):
8440         * console-msw.h:
8441         * console-msw.h (struct mswindows_frame):
8442         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
8443         there are now three hash tables for callbacks.
8444         mswindows_enqueue_dispatch_event is no longer static.
8445
8446         * dialog-x.c (maybe_run_dbox_text_callback):
8447         * dialog-x.c (dbox_descriptor_to_widget_value):
8448         switch to new cons3 form for callbacks.
8449
8450         * glyphs-msw.c (mswindows_register_gui_item):
8451         * glyphs-msw.c (mswindows_widget_instantiate):
8452         * glyphs-msw.c (add_tree_item):
8453         * glyphs-msw.c (add_tab_item):
8454         new image instance parameter, so it can be passed to callback-ex.
8455         respect :callback-ex as well as :callback.
8456
8457         * glyphs-widget.c (VALID_GUI_KEYWORDS):
8458         add :callback-ex.
8459
8460         * glyphs.c (print_image_instance):
8461         prettify, e.g. now prints widget type.
8462
8463         * gui-x.h:
8464         certain funs have new image instance parameter.
8465
8466         * gui.c:
8467         * gui.c (get_gui_callback):
8468         * gui.c (gui_item_add_keyval_pair):
8469         * gui.c (gui_item_init):
8470         * gui.c (gui_add_item_keywords_to_plist):
8471         * gui.c (mark_gui_item):
8472         * gui.c (gui_item_hash):
8473         * gui.c (gui_item_equal):
8474         * gui.c (copy_gui_item):
8475         * gui.c (syms_of_gui):
8476         recognize callback-ex in a number of places.
8477         also, fix the annoying "can't get out of yes-no dialog" bug.
8478
8479         * gui.h:
8480         * gui.h (struct Lisp_Gui_Item):
8481         recognize callback-ex in a number of places.
8482
8483         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
8484         new parameter in button_item_to_widget_value.
8485
8486         * glyphs-x.c (x_update_widget):
8487         * glyphs-x.c (x_button_instantiate):
8488         * glyphs-x.c (x_button_update):
8489         * glyphs-x.c (x_progress_gauge_instantiate):
8490         * glyphs-x.c (x_edit_field_instantiate):
8491         * glyphs-x.c (x_combo_box_instantiate):
8492         * glyphs-x.c (x_tab_control_instantiate):
8493         * glyphs-x.c (x_label_instantiate):
8494         new image instance parameter in various places.
8495
8496         * event-Xt.c:
8497         * event-Xt.c (enqueue_Xt_dispatch_event):
8498         this fun gets exported.
8499
8500         * gui-msw.c:
8501         * gui-msw.c (mswindows_handle_gui_wm_command):
8502         handle both :callback and :callback-ex, and generate our own
8503         event because it's one of the callback-ex arguments.
8504
8505         * gui-x.c:
8506         * gui-x.c (popup_selection_callback):
8507         handle both :callback and :callback-ex, and generate our own
8508         event because it's one of the callback-ex arguments.
8509         * gui-x.c (button_item_to_widget_value):
8510         * gui-x.c (gui_items_to_widget_values_1):
8511         * gui-x.c (gui_item_children_to_widget_values):
8512         * gui-x.c (gui_items_to_widget_values):
8513         new image instance parameter in various places.
8514
8515         * fns.c (Freplace_list):
8516         fix small typo in doc string.
8517
8518         * lisp.h:
8519         declare enqueue_Xt_dispatch_event.
8520
8521 2000-04-28  Ben Wing  <ben@xemacs.org>
8522
8523         * buffer.c:
8524         * buffer.c (Frecord_buffer):
8525         * buffer.c (syms_of_buffer):
8526         delete record-buffer-hook.
8527
8528         * fns.c:
8529         * fns.c (Freplace_list):
8530         * fns.c (syms_of_fns):
8531         new primitive replace-list.
8532
8533         * frameslots.h:
8534         slot for old buffer-alist.
8535
8536         * lisp.h:
8537         exfun replace-list.
8538
8539         * redisplay.c:
8540         * redisplay.c (redisplay_frame):
8541         * redisplay.c (syms_of_redisplay):
8542         * redisplay.c (vars_of_redisplay):
8543         new hook buffer-list-changed-hook.
8544         call it.
8545
8546 2000-04-27  Ben Wing  <ben@xemacs.org>
8547
8548         * extents.h: extern in_modeline_generation.
8549
8550         * redisplay.c (generate_formatted_string_db): set
8551         in_modeline_generation.
8552
8553         * extents.c (extent_changed_for_redisplay): don't mark redisplay
8554         flags if in modeline generation.  otherwise frame-modified-tick
8555         is ticked far too often.
8556         Declare in_modeline_generation.
8557
8558 2000-04-26  Ben Wing  <ben@xemacs.org>
8559
8560         * emacs.c (vars_of_emacs): document quick-build "error-checking"
8561         option.
8562         (vars_of_emacs): add quick-build as an error-checking option.
8563         A bit kludgy, but there doesn't seem much point in creating
8564         a real var for this.
8565
8566         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
8567
8568 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
8569
8570         * redisplay.h (struct display_line): Add a new variable,
8571         line_continuation.
8572
8573         * redisplay.c (create_text_block): Set dl->line_continuation if
8574         the line continues.
8575         (create_string_text_block): Ditto.
8576         (regenerate_window_incrementally): Use line_continuation instead
8577         of searching continuation glyph.
8578         (add_margin_runes): Call add_glyph_rune.
8579         (add_glyph_rune): Handle margin glyph.
8580
8581 2000-04-20  Martin Buchholz  <martin@xemacs.org>
8582
8583         * filelock.c (fill_in_lock_file_name):
8584         ANSIfy.
8585         Check for IS_ANY_SEP instead of '/'.
8586         (lock_file_1):
8587         Avoid generating gratuitous garbage.  Call user_login_name() directly.
8588         Never check errno without first seeing that system call failed.
8589         (unlock_file): Add GCPRO.
8590         (Flock_buffer): Fix docstring.
8591         (Ffile_locked_p): Fix docstring.  Add GCPRO.
8592
8593 2000-04-19  Martin Buchholz  <martin@xemacs.org>
8594
8595         * sysdep.c (get_pty_max_bytes):
8596         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
8597         strings longer than 252 bytes.
8598
8599         * md5.c: Unconditionally include ANSI header <limits.h>
8600
8601         * glyphs-x.c (convert_EImage_to_XImage):
8602         * lisp-union.h (union Lisp_Object):
8603         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
8604
8605 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
8606
8607         * filelock.c (current_lock_owner): Remove unused variable o, p.
8608
8609 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
8610
8611         * callint.c: Remove multiply defined symbol Qlet
8612         (syms_of_callint): ditto.
8613
8614 2000-04-14  Andy Piper  <andy@xemacs.org>
8615
8616         * general.c (syms_of_general): add last-command, this-command, let
8617         and funcall.
8618
8619         * lisp.h: declare various symbols.
8620
8621         * glyphs.h: declare Qwidget_callback_current_channel;
8622
8623         * glyphs-widget.c (syms_of_glyphs_widget): add
8624         Qgui_callback_current_channel.
8625         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
8626
8627         * gui-msw.c (mswindows_handle_gui_wm_command): bind
8628         widget-callback-current-channel when invoking the interactive
8629         arg. Also bind last-command and next-command when invoking the
8630         widget updates.
8631         * gui-x.c (popup_selection_callback): ditto.
8632
8633         * gui.c (get_gui_callback): massage args so that we are always
8634         calling eval. This allows us to add our own variable bindings
8635         outside.
8636
8637         * glyphs-x.c (x_button_instantiate): use
8638         gui_items_to_widget_values since this is GC safe.
8639         (x_progress_gauge_instantiate): ditto.
8640         (x_edit_field_instantiate): ditto.
8641         (x_label_instantiate): ditto.
8642
8643         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
8644         (emacs_Xt_event_widget_focus_out): new function
8645         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
8646         focus.
8647         (emacs_Xt_event_add_widget_actions): new function. add focus
8648         functions as actions.
8649         (init_event_Xt_late): use it.
8650
8651 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
8652
8653         * event-stream.c (Fdispatch_event): Doc fix.
8654
8655 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
8656
8657         * postgresql.c: Remove all references to PQsetenv*.
8658
8659         * postgresql.h: Remove references to PGsetenvHandler object.
8660         * lrecord.h (lrecord_type): Ditto.
8661
8662 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
8663
8664         * glyphs-msw.h (struct mswindows_image_instance_data): Added
8665         real_heigh and real_width members, and accessor macros for these.
8666
8667         * glyphs-msw.c (init_image_instance_geometry): New function.
8668         (init_image_instance_from_dibitmap): Use it.
8669         (mswindows_resource_instantiate): Use it.
8670         (init_image_instance_from_xbm_inline): Use it.
8671         (mswindows_initialize_image_instance_mask): Use real bitmap
8672         geometry.
8673         (mswindows_create_resized_bitmap): Ditto.
8674         (mswindows_create_resized_mask): Ditto.
8675
8676         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
8677         and bitmap to their surface size.
8678
8679 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
8680
8681         * process-unix.c (unix_send_process): Guard against process MIA
8682         after Faccept_process_output.
8683
8684 2000-04-11  Ben Wing  <ben@xemacs.org>
8685
8686         * eval.c (unbind_to_hairy): fix brokenness introduced by
8687         nanosecond speed improvements.
8688
8689 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
8690
8691         * sunplay.c (init_device): To play sounds correctly, the device
8692         apparently needs to be initialized at least once by XEmacs.  Make
8693         it so.
8694
8695 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
8696
8697         * redisplay.c (add_margin_runes): Add text image glyph
8698           handling.
8699
8700 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8701
8702         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
8703         gcc is newer than 2.5.
8704
8705 2000-04-06  Colin Rafferty  <colin@xemacs.org>
8706
8707         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
8708
8709         * fns.c (size_bit_vector):
8710         * alloc.c (size_vector):
8711         (make_vector_internal):
8712         (make_bit_vector_internal):
8713         (sweep_bit_vectors_1):
8714         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
8715
8716 2000-04-06  Andy Piper  <andy@xemacs.org>
8717
8718         * gmalloc.c (malloc): undo previous change.
8719         (malloc): ditto.
8720         (free): ditto.
8721         (realloc): ditto.
8722
8723 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
8724
8725         * line-number.c (buffer_line_number): Revert to former version.
8726
8727 2000-04-06  Andy Piper  <andy@xemacs.org>
8728
8729         * gmalloc.c (malloc): add error checking.
8730         (malloc): ditto.
8731         (free): ditto.
8732         (realloc): ditto.
8733
8734         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
8735         button_item_to_widget_value arg.
8736
8737         * glyphs-x.c (x_button_instantiate): add extra
8738         button_item_to_widget_value arg.
8739         (x_progress_gauge_instantiate): ditto.
8740         (x_edit_field_instantiate): ditto.
8741         (x_label_instantiate): ditto.
8742
8743         * gui-x.c (gui_items_to_widget_values_1): add extra
8744         button_item_to_widget_value arg.
8745         (button_item_to_widget_value): add extra menu_item_p arg.
8746
8747         * gui-x.h: change signature of button_item_to_widget_value.
8748
8749         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
8750         button_item_to_widget_value arg.
8751
8752 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
8753
8754         * buffer.h (struct buffer): auto_save_modified should be long.
8755
8756 2000-04-05  Andy Piper  <andy@xemacs.org>
8757
8758         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
8759         type.
8760         (button_query_geometry): give a little more room so that athena
8761         buttons fit.
8762
8763 2000-04-05  Andy Piper  <andy@xemacs.org>
8764
8765         * faces.c (complex_vars_of_faces): The widget face should inherit
8766         the font of the gui-element face.
8767
8768 2000-04-04  Andy Piper  <andy@xemacs.org>
8769
8770         * glyphs-x.c (x_button_update): new function. unconditionally
8771         update a button's state when the instance is dirty.
8772         (image_instantiator_format_create_glyphs_x): add x_button_update.
8773         (x_widget_instantiate): remove old resize cruft.
8774
8775 2000-04-02  Andy Piper  <andy@xemacs.org>
8776
8777         * frame.c (change_frame_size_1): The introduction of gutters means
8778         that we need to allow 0 as a potential frame dimension.
8779
8780 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
8781
8782         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
8783         image glyph if allow_cursor.
8784         (add_hscroll_rune): Don't allow cursor to border glyph.
8785         (create_text_block): Ditto.
8786
8787         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
8788         text not in buffer.
8789         (redisplay_output_layout): Call ensure_face_cachel_complete for
8790         text image glyph.
8791
8792
8793 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
8794
8795         * redisplay.c (add_glyph_rune): Adding text image as text runes.
8796
8797         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
8798         not in buffer
8799
8800         * redisplay-tty.c (tty_output_display_block): Delete the routine
8801         for text image glyph
8802         * redisplay-x.c (x_output_display_block): ditto
8803         * redisplay-msw.c (mswindows_output_display_block): ditto
8804
8805 2000-02-02  Mike Alexander  <mta@arbortext.com>
8806
8807         Note: Some of these were committed by accident as part of other
8808         patches.
8809
8810         * regex.c (regex_compile): Avoid compiler warnings.
8811
8812         * ntproc.c (sys_spawnve): Avoid compiler warnings.
8813
8814         * nt.h: Declare term_ntproc correctly.
8815
8816         * nt.c: Remove incorrect declaration of get_home_directory which
8817         is declared correctly in lisp.h.
8818
8819         * keymap.c (get_keyelt): Avoid compiler warnings.
8820         (raw_lookup_key_mapper): Avoid compiler warnings.
8821
8822         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
8823
8824         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
8825
8826         * filemode.c (mode_string): Avoid compiler warnings.
8827
8828         * file-coding.c (Fcoding_system_aliasee): Add return statement to
8829         avoid warning.
8830
8831         * events-mod.h: Undef some things that winuser.h defines differently.
8832
8833         * data.c (Faset): Avoid compiler warnings.
8834
8835         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
8836
8837 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
8838
8839         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
8840         Fall through to simple beep on error.
8841         Replace "extern" by real header file.
8842
8843         * linuxplay.c: Use nativesound.h
8844         (play_sound_data): Return error code. Be less verbose on error.
8845
8846         * sunplay.c: Use nativesound.h
8847         (play_sound_data): Return error code. Be less verbose on error.
8848
8849         * ntplay.c: Use nativesound.h
8850         (play_sound_data): Return fake error code
8851
8852         * sgiplay.c: Use nativesound.h
8853         (play_sound_data): Return error code
8854
8855         * hpplay.c: Use nativesound.h, partially implement
8856         new error code. Break compilation until finished.
8857         (play_sound_data): error code.
8858
8859         * nativesound.h (play_sound_file):
8860           (play_sound_data): Prototype in new header.
8861
8862 2000-03-31  Andy Piper  <andy@xemacs.org>
8863
8864         * glyphs-widget.c: (button_query_geometry): new function. Adjust
8865         for toggle and radio buttons.
8866         (image_instantiator_buttons): use it.
8867
8868 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
8869
8870         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
8871         (x_update_horizontal_scrollbar_callback): Return if no mirror was
8872         found. Scrollbar event probably belonged to some old config.
8873
8874 2000-03-31  Andy Piper  <andy@xemacs.org>
8875
8876         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
8877         than 1.
8878         (initialize_widget_image_instance): default layout to
8879         LAYOUT_HORIZONTAL rather than 0.
8880         (widget_instantiate): reverse the item list at the end rather than
8881         every iteration.
8882         (layout_layout): re-code for the border text at the front of the
8883         item list rather than at the end.
8884         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
8885         provided by the user.
8886         (widget_query_geometry): comment.
8887
8888 2000-03-30  Andy Piper  <andy@xemacs.org>
8889
8890         * glyphs-widget.c (image_instantiator_layout): allow standard
8891         widget keywords in layouts.
8892
8893         * gutter.c (output_gutter): cope with nil gutter contents.
8894
8895         * frame.c (Fset_frame_properties): add gutter docs.
8896
8897 2000-03-29  Andy Piper  <andy@xemacs.org>
8898
8899         * toolbar-msw.c (TBSTYLE_FLAT): add.
8900         (mswindows_output_toolbar): minor fiddling.
8901
8902 2000-03-29  Andy Piper  <andy@xemacs.org>
8903
8904         * gutter.c (output_gutter): force gutter size recalculation if
8905         what we are trying to display won't fit.
8906         (update_gutter_geometry): new function. A per-gutter version of
8907         update_frame_gutter_geometry.
8908         (update_frame_gutter_geometry): use it.
8909         (redraw_exposed_gutter): add extra debugging output.
8910
8911 2000-03-28  Mike Alexander  <mta@arbortext.com>
8912
8913         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
8914         (pdump_file_unmap): Implement it on Windows
8915         (pdump_file_get): Save alocated handles for pdump_file_unmap
8916
8917 2000-03-28  Andy Piper  <andy@xemacs.org>
8918
8919         * gui.c (get_gui_callback): treat Quit specially.
8920
8921 2000-03-27  Andy Piper  <andy@xemacs.org>
8922
8923         * glyphs.c (image_instantiate): be careful to check in the same
8924         way we assigned.
8925
8926 2000-03-27  Didier Verna  <didier@xemacs.org>
8927
8928         * config.h.in: define the proper SMART_INCLUDE macro.
8929         handle renaming of `foo_h_path' to `foo_h_file'.
8930
8931         * database.c: ditto.
8932
8933         * emacs.c: ditto.
8934
8935         * linuxplay.c: ditto.
8936
8937         * terminfo.c: ditto.
8938
8939         * tooltalk.h: ditto.
8940
8941 2000-03-27  Andy Piper  <andy@xemacs.org>
8942
8943         * glyphs-msw.c (mswindows_update_widget): make sure the widget
8944         gets updated whenever the face might have changed.
8945
8946 2000-03-26  Mike Alexander  <mta@arbortext.com>
8947
8948         * dumper.c (pdump_resource_free): Fix the comment.
8949
8950 2000-03-21  Olivier Galibert  <galibert@pobox.com>
8951
8952         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
8953
8954 2000-03-22  Mike Alexander  <mta@arbortext.com>
8955
8956         * dumper.c: Include Windows headers on Windows
8957         (pdump_resource_free): Add a body to the function
8958         (pdump_load): exe_name -> exe_path and add some comments.
8959
8960 2000-03-25  Mike Alexander  <mta@arbortext.com>
8961
8962         * gui.c (copy_gui_item_tree): Return a value in all cases
8963
8964 2000-03-21  Didier Verna  <didier@xemacs.org>
8965
8966         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
8967         lwlib/config.h.in.
8968         (SMART_INCLUDE): new macro.
8969         (POSTGRES_INCLUDE): new macro to include postgresql headers from
8970         the proper location.
8971
8972         * postgresql.c: use it.
8973
8974         * inline.c: ditto.
8975
8976 2000-03-24  Andy Piper  <andy@xemacs.org>
8977
8978         * gutter.c (redraw_exposed_gutters): must be "in display" when we
8979         do this.
8980
8981 2000-03-24  Andy Piper  <andy@xemacs.org>
8982
8983         * redisplay-output.c (compare_runes): use image_instance_changed
8984         to detect changes. Do not depend on glyphs_changed, only depend on
8985         dirtiness.
8986          (redisplay_output_layout): add debug messages.
8987         (compare_runes): ditto.
8988
8989         * glyphs.h: declare new functions.
8990         (struct Lisp_Image_Instance): remove percent and associated
8991         accessors.
8992
8993         * gui.h: declare new copying functions.
8994
8995         * gui.c (copy_gui_item_tree): new function.
8996         (copy_gui_item): new function.
8997         (gui_item_id_hash): revert to standard hash.
8998         (gui_item_hash): ditto.
8999         (gui_item_hash_internal): deleted.
9000         (mark_gui_item): mark value.
9001         (gui_item_add_keyval_pair): add value.
9002         (gui_item_init): ditto.
9003         (gui_add_item_keywords_to_plist): ditto.
9004         (gui_item_equal): ditto.
9005         (syms_of_gui): add Q_value.
9006
9007         * glyphs-x.c (x_progress_gauge_update): use pending items and
9008         value for setting the state.
9009         (x_update_widget): don't set items from pending here.
9010
9011         * glyphs-widget.c (update_widget): update items here.
9012         (progress_gauge_set_property): use items for storing value. Put
9013         new value in pending items.
9014
9015         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
9016         items for new value. Convert percent -> value.
9017         (mswindows_tab_control_update): don't update items here.
9018
9019         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
9020         (update_subwindow): ditto.
9021         (image_instance_changed): new function. Compare hash values and
9022         past and present widget items.
9023         (image_instantiate): We more careful about where we instantiate
9024         things.
9025         (image_instantiate): add error checking.
9026
9027         * gutter.c (syms_of_gutter): use -hook.
9028
9029 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
9030
9031         * console-tty.c (Fset_console_tty_input_coding_system): Use
9032         Qkeyboard.
9033         (Fset_console_tty_output_coding_system): Use Qterminal.
9034         (tty_init_console): Use Qkeyboard and Qterminal.
9035
9036 2000-03-21  Ben Wing  <ben@xemacs.org>
9037
9038         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
9039         From Mike Alexander <mta@arbortext.com>.
9040
9041 2000-03-21  Ben Wing  <ben@xemacs.org>
9042
9043         * event-msw.c (mswindows_need_event): Horrible kludge to fix
9044         process brokenness.  Proper implementation to come.
9045         * callproc.c:
9046         Rename call-process-internal to old-call-process-internal.
9047         New impl. in process.el.
9048
9049 2000-03-21  Martin Buchholz  <martin@xemacs.org>
9050
9051         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
9052
9053 2000-03-20  Andy Piper  <andy@xemacs.org>
9054
9055         * glyphs.c (full_list_hash): make hashes of the same elements in
9056         different orders return different values.
9057
9058 2000-03-20  Martin Buchholz <martin@xemacs.org>
9059
9060         * XEmacs 21.2.32 is released.
9061
9062 2000-03-20  Martin Buchholz  <martin@xemacs.org>
9063
9064         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
9065         (DFC_MALLOC_USE_CONVERTED_DATA):
9066         Add aliasing-safe casts to allow use with char* or unsigned char*
9067         lvalues.
9068
9069         * eldap.c (Fldap_open):
9070         (Fldap_search_basic):
9071         (Fldap_add):
9072         (Fldap_modify):
9073         Make C++-compilable.
9074         Make sure GCPRO'ed variables are initialized.
9075         Use temp variables to avoid repeated calls to Flength.
9076
9077 2000-03-16  Martin Buchholz  <martin@xemacs.org>
9078
9079         * sysfile.h:
9080         Make sure PATH_MAX is always defined.
9081         Include limits.h for PATH_MAX.
9082         Deprecate use of MAXPATHLEN.
9083
9084 2000-03-10  Martin Buchholz  <martin@xemacs.org>
9085
9086         * emacs.c: Add reinit_vars_of_fileio.
9087         * symsinit.h: Add reinit_vars_of_fileio.
9088         * fileio.c (reinit_vars_of_fileio): New.
9089         * fileio.c (Fmake_temp_name):
9090         Initialize temp_name random number from microseconds to make
9091         collisions even less likely.  Initialize always at process startup
9092         time.  (make-temp-name) used to return the same file name twice in
9093         a row when PDUMP.
9094         Random stylistic fiddling.
9095         Comment fixes.
9096
9097 2000-03-20  Andy Piper  <andy@xemacs.org>
9098
9099         * glyphs.c (image_instantiate): allow text glyphs to be
9100         instantiated in the minibuffer window.
9101
9102 2000-03-19  Andy Piper  <andy@xemacs.org>
9103
9104         * glyphs.c (image_instance_hash): be careful about which items we
9105         hash on.
9106
9107         * glyphs-widget.c (tab_control_set_property): record into pending
9108         items rather than the actual items.
9109
9110         * glyphs-x.c (x_update_widget): use pending items to update with.
9111
9112         * glyphs-msw.c (mswindows_tab_control_update): use pending items
9113         to update with.
9114
9115         * glyphs.c (mark_image_instance): mark pending items.
9116
9117         * window.c (Fset_window_configuration): record the buffer.
9118         (Fselect_window): totally revert previous change which breaks many
9119         things.
9120
9121 2000-03-18  Andy Piper  <andy@xemacs.org>
9122
9123         * glyphs-msw.c (mswindows_tab_control_update): force selected
9124         item.
9125
9126         * glyphs.c (image_instantiate): don't allow the minibuffer as a
9127         window domain cache, otherwise we get inconsistencies at
9128         startup. There is something fishy at startup which can lead to the
9129         minibuffer being the selected window when the gutter content is
9130         instantiated.
9131
9132         * gui.c (parse_gui_item_tree_list): add probably unnecessary
9133         gcpros.
9134         (parse_gui_item_tree_children): ditto.
9135         (parse_gui_item_tree_item): ditto.
9136
9137         * glyphs.c (Fupdate_widget_instances): return something.
9138
9139 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
9140
9141         * window.c (Fselect_window): Undo 2000-03-17 change.
9142
9143 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
9144
9145         * postgresql.c (Fpq_setenv): Remove this turkey when linking
9146         against v7.0 libraries.  Insta-coredump city until the postgres
9147         folks fix it.
9148
9149 2000-03-17  Andy Piper  <andy@xemacs.org>
9150
9151         * faces.c (complex_vars_of_faces): don't give the widget face an
9152         inherited background pixmap.
9153
9154         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
9155         selected item.
9156
9157         * event-stream.c (Fdispatch_non_command_events): return something.
9158
9159         * gutter.c (output_gutter): use widget face.
9160         (clear_gutter): ditto.
9161
9162         * NEWS: adjust again.
9163
9164         * window.c (Fselect_window): make sure this runs to completion to
9165         avoid oddities with Fset_window_configuration.
9166         (Fcurrent_window_configuration): in general do not save the
9167         minibuffer as the selected window.
9168
9169         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
9170
9171 2000-03-16  Olivier Galibert  <galibert@pobox.com>
9172
9173         * emacs.c (Frunning_temacs_p): Revert previous patch.
9174         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
9175
9176 2000-03-16  Andy Piper  <andy@xemacs.org>
9177
9178         * glyphs-x.c (x_tab_control_update): if no widget values then
9179         return.
9180
9181         * NEWS: update for new features.
9182
9183         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
9184         synthetic event to the native system.
9185         (reinit_vars_of_event_Xt): set force_event_pending to
9186         emacs_Xt_force_event_pending.
9187
9188         * events.h (struct event_stream): add force_event_pending.
9189
9190         * specifier.c (recompute_one_cached_specifier_in_window): add
9191         comment.
9192
9193         * redisplay.c (redisplay_frame): don't call
9194         update_frame_subwindows. Reset subwindow cachels when
9195         subwindows_changed, removing this was an optimization too far.
9196
9197         * redisplay-output.c (compare_runes): reorganize so that we catch
9198         glyph changes when we want them. Set optimize_output when this
9199         would help layouts.
9200         (redisplay_output_layout): remove frame_really_changed, use
9201         optimize_output instead.
9202
9203         * redisplay-msw.c (mswindows_output_display_block): reset
9204         optimize_output after outputting a glyph.
9205         * redisplay-x.c (x_output_display_block): ditto.
9206         * redisplay-tty.c (tty_output_display_block): ditto.
9207
9208         * gutter.c: (specifier_vars_of_gutter): use new spec changed
9209         functions.
9210         (gutter_specs_changed): do specific gutter positions.
9211         (top_gutter_specs_changed): new function. Only update the
9212         specified gutter specs.
9213         (bottom_gutter_specs_changed): ditto.
9214         (left_gutter_specs_changed): ditto.
9215         (right_gutter_specs_changed): ditto.
9216
9217         * gui.c (gui_item_hash_internal): new function, does a real hash.
9218         (gui_item_id_hash): use it.
9219         (gui_item_hash): hash the eval'ed gui_item.
9220
9221         * gui-x.c (popup_selection_callback): send an eval event to call
9222         Fupdate_widget_instances.
9223
9224         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
9225         to call Fupdate_widget_instances.
9226
9227         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
9228         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
9229
9230         * glyphs.c: (update_frame_subwindows): deleted.
9231         (Fupdate_widget_instances): new function for updating the dirty
9232         state of widgets that might have changed.
9233         (syms_of_glyphs): add Qupdate_widget_instances.
9234         (full_list_hash): hash a list completely.
9235         (image_instance_hash): use it for items and properties.
9236
9237         * frame-msw.c (mswindows_size_frame_internal): remove unused
9238         variable.
9239
9240         * faces.h (struct face_cachel): fix comment.
9241
9242         * event-stream.c (Fdispatch_non_command_events): new
9243         function. Process non-command events, forcing an event cycle
9244         beforehand.
9245         (syms_of_event_stream): declare.
9246         (event_stream_force_event_pending): new function. Force an event
9247         on the native event queue so that an event cycle will occur next
9248         time we check.
9249
9250         * event-msw.c:
9251         (struct ntpipe_shove_stream):
9252         (mswindows_enqueue_dispatch_event):
9253         (mswindows_dequeue_dispatch_event):
9254         (mswindows_cancel_dispatch_event):
9255         (mswindows_pump_outstanding_events):
9256         (mswindows_drain_windows_queue):
9257         (mswindows_handle_paint):
9258         (mswindows_wnd_proc):
9259         (mswindows_key_to_emacs_keysym):
9260         (get_process_input_waitable):
9261         (emacs_mswindows_delete_stream_pair): re-indent file.
9262         (mswindows_need_event): do not process further fds if the windows
9263         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
9264         fixes the 100% cpu problem.
9265         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
9266
9267 2000-03-15  Olivier Galibert  <galibert@pobox.com>
9268
9269         * alloc.h: New.
9270         * dumper.h: New.
9271         * dumper.c: New.
9272
9273         * emacs.c: Moved dump file searching to dumper.c.
9274         (Frunning_temacs_p): Fixed.
9275
9276         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
9277         last_lrecord_type_index_assigned.
9278
9279 2000-02-20  Olivier Galibert  <galibert@pobox.com>
9280
9281         * symsinit.h: Added reinit parameter to init_console_stream
9282         declaration.
9283
9284         * lisp.h: Added file parameter to pdump_load declaration.
9285
9286         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
9287         support.  Added dump file searching.
9288
9289         * config.h.in: Added EMACS_PROGNAME.
9290
9291         * console-stream.c (init_console_stream): Fix reinitialisation
9292         when running from temacs.
9293
9294         * alloc.c (pdump): Add id support.
9295         (pdump_load): Add file parameter and signature/id support.
9296
9297         * Makefile.in.in: Add full pdump support.
9298
9299 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
9300
9301         * postgresql.c: Update documentation to reflect latest code
9302         status.
9303         (print_result): Show tuple counts in printed representation when
9304         appropriate.
9305         (Fpq_put_nbytes): MULE-ize.
9306         (Fpq_get_line_async): Ditto.
9307
9308 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
9309
9310         * postgresql.c (Fpq_lo_import): Fix return value.
9311         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
9312
9313 2000-03-13  Ben Wing  <ben@xemacs.org>
9314
9315         * alloc.c (pdump_load):
9316         Fix compile warning under mswin.
9317
9318 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
9319
9320         * postgresql.c: Mule-ization, bug fixes.
9321         Use PG_CODING to encapsulate coding system name changes.
9322         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
9323         (pg-coding-system): Create.
9324
9325         (Fpq_conn_defaults): Mule-ize.
9326         (Fpq_connectdb): Mule-ize & bug fix.
9327         (Fpq_connect_start): Mule-ize.
9328         (Fpq_set_client_encoding): Mule-ize.
9329         (Fpq_finish): Document `DEAD' connection status.
9330         (Fpq_clear): Ditto.
9331         (Fpq_pgconn): Mule-ize.
9332         (Fpq_exec): Mule-ize & bug fix.
9333         (Fpq_send_query): Ditto.
9334         (Fpq_get_result): Ditto.
9335         (Fpq_res_status): Mule-ize.
9336         (Fpq_result_error_message): Mule-ize.
9337         (Fpq_ntuples): fix comments.
9338         (Fpq_fname): Mule-ize.
9339         (Fpq_fnumber): Mule-ize.
9340         (Fpq_ftype): fix comments.
9341         (Fpq_get_value): Mule-ize.
9342         (Fpq_cmd_status): Ditto.
9343         (Fpq_cmd_tuples): Ditto.
9344         (Fpq_oid_value): Ditto.
9345         (Fpq_notifies): Ditto.
9346         (Fpq_lo_import): Ditto.
9347         (Fpq_lo_export): Ditto.
9348         (Fpq_get_line): Ditto.
9349         (Fpq_put_line): Mule-ize and bug fix.
9350         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
9351
9352 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
9353
9354         * postgresql.c (vars_of_postgresql): Mule-ize.
9355         (Fpq_conn_defaults): Ditto.
9356
9357 2000-03-12  Ben Wing  <ben@xemacs.org>
9358
9359         * alloc.c (Fmake_byte_code):
9360         * alloc.c (debug_string_purity_print):
9361         * alloc.c (pdump_backtrace):
9362         * alloc.c (pdump_get_indirect_count):
9363         * alloc.c (pdump_register_sub):
9364         * alloc.c (pdump_register_object):
9365         * alloc.c (pdump_register_struct):
9366         * alloc.c (pdump_dump_data):
9367         * alloc.c (pdump_reloc_one):
9368         Minor cleanups.
9369
9370         * console-msw.c:
9371         * console-msw.c (GetConsoleHwnd):
9372         * console-msw.c (msw_hide_console):
9373         * console-msw.c (msw_show_console):
9374         * console-msw.c (msw_ensure_console_buffered):
9375         * console-msw.c (msw_output_console_string):
9376         * console-msw.c (console_type_create_mswindows):
9377
9378         a) Added functions to manipulate the console window for use with
9379         shell support.
9380
9381         b) Added support for writing text to the console, which is now
9382         used under Windows when xemacs is not being run non-interactively,
9383         to write text that would otherwise be destined for stdout because
9384         under these circumstances, text written to stdout tends to
9385         disappear and not be seen.
9386
9387         * console-msw.h:
9388         * event-Xt.c:
9389         * event-Xt.c (x_event_to_emacs_event):
9390         * event-Xt.c (describe_event_window):
9391         * events-mod.h (XEMACS_MOD_CONTROL):
9392         * events.c:
9393         * events.c (Fmake_event):
9394         * events.c (character_to_event):
9395         * events.c (event_to_character):
9396         * events.c (format_event_object):
9397         * events.c (Fevent_modifiers):
9398         * events.h:
9399         * events.h (struct key_data):
9400         * events.h (struct button_data):
9401         * events.h (struct misc_user_data):
9402         * frame-x.c (Fcde_start_drag_internal):
9403         * frame-x.c (Foffix_start_drag_internal):
9404         * gpmevent.c (Freceive_gpm_event):
9405         * keymap.c:
9406         * keymap.c (bucky_sym_to_bucky_bit):
9407         * keymap.c (control_meta_superify):
9408         * keymap.c (make_key_description):
9409         * keymap.c (keymap_lookup_directly):
9410         * keymap.c (create_bucky_submap):
9411         * keymap.c (keymap_store):
9412         * keymap.c (define_key_check_and_coerce_keysym):
9413         * keymap.c (define_key_parser):
9414         * keymap.c (define_key_alternate_name):
9415         * keymap.c (Fdefine_key):
9416         * keymap.c (raw_lookup_key_mapper):
9417         * keymap.c (struct map_keymap_unsorted_closure):
9418         * keymap.c (map_keymap_unsorted_mapper):
9419         * keymap.c (map_keymap_sort_predicate):
9420         * keymap.c (map_keymap_sorted):
9421         * keymap.c (accessible_keymaps_mapper_1):
9422         * keymap.c (where_is_recursive_mapper):
9423         * keymap.c (describe_map_mapper):
9424         * keymap.c (describe_map_sort_predicate):
9425         * keymap.c (describe_map):
9426         * keymap.c (complex_vars_of_keymap):
9427         And a number of other files, the key modifier preprocessor
9428         constants that xemacs uses have names that conflict with constants
9429         defined under MS Windows for other purposes, so they were renamed
9430         to begin with the prefix XEMACS_. The variables that hold such
9431         modifiers were changed to consistently be of type int to fix
9432         various compile warnings.
9433
9434         * console.c (complex_vars_of_console):
9435         * device.c:
9436         * device-msw.c:
9437         * device-msw.c (mswindows_finish_init_device):
9438         * device-msw.c (msw_get_workspace_coords):
9439         * device-msw.c (mswindows_device_system_metrics):
9440         and various other files, added support for a new
9441         device property called offset-workspace which returns the position
9442         of the upper left corner of the workspace area and goes along with
9443         the existing size-workspace property.
9444
9445         * dialog-msw.c:
9446         * dialog-msw.c (push_bufbyte_string_as_unicode):
9447         * dialog-msw.c (mswindows_popup_dialog_box):
9448         Added support for XEmacs-style accelerator specifications in
9449         button text.  Note: I didn't add support for this under X Windows,
9450         and somebody needs to do this.
9451
9452         * dialog.c:
9453         * dialog.c (Fpopup_dialog_box):
9454         Documented the support for accelerators that was just mentioned.
9455
9456         editfns.c (get_home_directory): Changed behavior under Windows
9457         when HOME not defined; former behavior was irretrievably broken.
9458
9459         * emacs.c:
9460         * emacs.c (main_1):
9461         * emacs.c (main):
9462         * minibuf.c (clear_echo_area_internal):
9463         * minibuf.c (echo_area_append):
9464         * print.c:
9465         * print.c (std_handle_out_external):
9466         * print.c (std_handle_out_va):
9467         * print.c (fatal):
9468         * print.c (write_string_to_stdio_stream):
9469         * print.c (output_string):
9470         * print.c (debug_print):
9471         * print.c (debug_backtrace):
9472         * print.c (debug_short_backtrace):
9473         Cleaned up the code that prints text to stdout so that this can be
9474         changed to output into a console window instead under MS Windows,
9475         as described above.
9476
9477         * eval.c:
9478         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
9479         * eval.c (internal_catch):
9480         * eval.c (unwind_to_catch):
9481         * eval.c (throw_or_bomb_out):
9482         * eval.c (condition_case_1):
9483         * eval.c (signal_1):
9484         * eval.c (check_error_state_sanity):
9485         * eval.c (call_with_suspended_errors_1):
9486         * eval.c (call_with_suspended_errors):
9487         * eval.c (reinit_vars_of_eval):
9488         Added code to catch throw loops and check for a pesky bug that may
9489         be gone now.
9490
9491         * event-msw.c:
9492         * event-msw.c (key_needs_default_processing_p):
9493         * event-msw.c (mswindows_wnd_proc):
9494         * event-msw.c (mswindows_modifier_state):
9495         * event-msw.c (emacs_mswindows_quit_p):
9496         * event-msw.c (vars_of_event_mswindows):
9497         a) Added support for using the alt key to select menu items as is
9498         standard under MS Windows.  This is controlled using the variable
9499         menu-accelerator-enabled, just like under X Windows.  There is an
9500         option on the options menu to turn this support on.  I really
9501         think that it should be on by default under Windows, but I'm not
9502         going to make this change yet.
9503
9504         b)  Added support for dynamic display size changes under Windows.
9505
9506         * event-stream.c:
9507         * event-stream.c (maybe_echo_keys):
9508         * event-stream.c (Fnext_event):
9509         * event-stream.c (command_builder_find_leaf):
9510         * event-stream.c (lookup_command_event):
9511         * event-stream.c (execute_command_event):
9512         * event-stream.c (pre_command_hook):
9513         * event-stream.c (post_command_hook):
9514         * event-stream.c (syms_of_event_stream):
9515         * event-stream.c (vars_of_event_stream):
9516         * event-stream.c (complex_vars_of_event_stream):
9517         * events.h (struct command_builder):
9518
9519         a) Tried to clean up a little bit the horribly written x-specific
9520         accelerator code that crept into this file.  I moved this code
9521         into menubar-x.c where it belongs. I also needed to move the
9522         command builder structure into the file events.h because it is
9523         accessed directly by this accelerator code.  What I didn't do, but
9524         which should be done at some point, is to properly abstract this
9525         code using device methods instead of the kludgy way that it
9526         currently hooks into the event code.
9527
9528         b) Added the lisp variables this-command-properties and
9529         last-command- properties, which should be used to synchronize two
9530         adjacent commands in preference to playing games with the variable
9531         this-command, which is typically what happens.
9532
9533         c) Added some slightly nasty code to hook into the lisp support
9534         for shifted- motion-key selection.  This is actually necessary for
9535         somewhat complicated reasons, which are described in
9536         simple.el. (NB: I think the proper thing would be to have the code
9537         that calls the pre and post command hooks also call out to generic
9538         lisp functions in simple.el, where all built-in stuff could be
9539         added.  I will think about this more.)
9540
9541         * event-unixoid.c (poll_fds_for_input):
9542         * lread.c (readchar):
9543         * redisplay-tty.c (tty_clear_frame):
9544         * redisplay-x.c (x_get_gc):
9545         * signal.c (interrupt_signal):
9546         And a whole bunch of other files: fixed up places that printed
9547         directly to stderr to instead call the function stderr_out so that
9548         the changes I made under Windows work correctly.
9549
9550         * filemode.c (mode_string):
9551         Warning fixes.
9552
9553         * frame-msw.c:
9554         * frame-msw.c (mswindows_size_frame_internal):
9555         Fixed the computation of frame size and position to keep the frame
9556         within the workspace area, rather than within the physical
9557         dimensions of the screen, so that the frame doesn't overlap window
9558         manager decorations, such as the start menu and toolbar, typically
9559         at the bottom of the screen.
9560
9561         * frame.c (vars_of_frame):
9562         Changed the default frame title format under MS Windows to consist
9563         of buffername-XEmacs, which is standard under MS Windows.  I think
9564         it might be a good idea to change this everywhere because I think
9565         it is superior to the current frame title format, but this is the
9566         kind of change that is likely to cause some people to get annoyed,
9567         so I'm not making it.
9568
9569         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
9570
9571         * gui-msw.c (mswindows_handle_gui_wm_command):
9572         Fixed compile warnings.
9573
9574         * gui-x.c:
9575         * gui-x.c (strdup_and_add_accel):
9576         * gui-x.c (button_item_to_widget_value):
9577         * gui-x.h:
9578         Added code to automatically put an accelerator onto the beginning
9579         of menu items that don't have one as is now the standard, and is
9580         described more later.  Also fixed things so that the menu item
9581         name can be an evaluated expression, again a new standard.
9582
9583         * gui.c:
9584         * gui.c (gui_item_add_keyval_pair):
9585         * gui.c (make_gui_item_from_keywords_internal):
9586         * gui.c (gui_add_item_keywords_to_plist):
9587         * gui.c (gui_item_accelerator):
9588         * gui.c (gui_name_accelerator):
9589         * gui.c (gui_item_included_p):
9590         * gui.c (gui_item_display_flush_left):
9591         * gui.c (gui_item_display_flush_right):
9592         * gui.c (parse_gui_item_tree_item):
9593         * gui.c (parse_gui_item_tree_children):
9594         * gui.c (parse_gui_item_tree_list):
9595         Mule-ized.  Cleanup.  GCPRO addition.
9596
9597         * line-number.c (buffer_line_number):
9598         * lisp.h:
9599         * lisp.h (EMACS_INT_MAX):
9600         Added the manifest constant EMACS_INT_MIN corresponding to the
9601         existing constant EMACS_INT_MAX.  This is partially to fix compile
9602         warnings under Windows, and partly for cleanliness.
9603
9604         * menubar-msw.c:
9605         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
9606         * menubar-msw.c (msw_translate_menu_or_dialog_item):
9607         * menubar-msw.c (displayable_menu_item):
9608         * menubar-msw.c (populate_menu_add_item):
9609         * menubar-msw.c (populate_or_checksum_helper):
9610         * menubar-msw.c (populate_menu):
9611         * menubar-msw.c (update_frame_menubar_maybe):
9612         * menubar-msw.c (prune_menubar):
9613         * menubar-msw.c (msw_char_is_accelerator):
9614         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
9615         * menubar-msw.c (mswindows_handle_wm_command):
9616         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
9617         * menubar-msw.c (mswindows_handle_wm_initmenu):
9618         * menubar-msw.c (mswindows_update_frame_menubars):
9619         * menubar-msw.c (mswindows_free_frame_menubars):
9620         * menubar-msw.c (mswindows_popup_menu):
9621         Fixed a bug in handling accelerators where an extra character
9622         would be displayed in the menu item.  Also generalized the
9623         function displayable_menu_item because it is now used by the
9624         dialog box code as well.  And finally, added code in the functions
9625         that create the menubar to extract a list of accelerators for the
9626         top level menubar, which is used in the event code to determine
9627         whether a particular alt-key combination should be used to invoke
9628         a menu item, or should be passed through to access the standard
9629         XEmacs keymap binding for this key combination.
9630
9631         Much needed GCPROing.
9632
9633         * menubar-x.c:
9634         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9635         * menubar-x.c (menu_item_descriptor_to_widget_value):
9636         * menubar-x.c (restore_in_menu_callback):
9637         * menubar-x.c (x_popup_menu):
9638         * menubar-x.c (menu_move_up):
9639         * menubar-x.c (menu_move_down):
9640         * menubar-x.c (menu_move_left):
9641         * menubar-x.c (menu_move_right):
9642         * menubar-x.c (menu_select_item):
9643         * menubar-x.c (command_builder_operate_menu_accelerator):
9644         * menubar-x.c (menu_accelerator_junk_on_error):
9645         * menubar-x.c (command_builder_find_menu_accelerator):
9646         * menubar-x.c (Faccelerate_menu):
9647         * menubar.h:
9648         Moved a whole bunch of code here that was previously in
9649         event-stream.c as described above.  There is also code connected
9650         to the new standard of adding an accelerator to the beginning of
9651         menu items that don't have one as described above and below.
9652
9653         * menubar.c:
9654         * menubar.c (menu_parse_submenu_keywords):
9655         * menubar.c (Fmenu_find_real_submenu):
9656         * menubar.c (Fnormalize_menu_item_name):
9657         * menubar.c (syms_of_menubar):
9658         * menubar.c (vars_of_menubar):
9659         * menubar.c (complex_vars_of_menubar):
9660
9661         a) Cleaned up a bunch of documentation and improved it.
9662
9663         b) XEmacs now automatically adds an accelerator onto the beginning
9664         of any menu items that don't have one.  I did this because there
9665         will inevitably be some menu items on the main menubar that don't
9666         have accelerators on them because the package that adds that
9667         particular menu item hasn't yet been fixed up to have accelerators
9668         in them and it looked rather strange to have some items with and
9669         some items without accelerators, especially since even in items
9670         without accelerators, you can, at least under windows, still
9671         access the item through an accelerator corresponding to the first
9672         character in the item's name.  If people don't like this behavior,
9673         I can add a variable to turn it off optionally, but I'm not sure
9674         this is a good idea because we really do need to have accelerators
9675         on all of the menu items, and if a package doesn't like the
9676         accelerators being put on the first character, then it should put
9677         the accelerators where they belong.
9678
9679         c) I made a behavior change, which is that the descriptor that
9680         specifies the text of the menu item, which formerly was just a
9681         string, can now also be an evaluated expression.  This makes this
9682         descriptor parallel with all of the others, which could also be
9683         evaluated expressions.  This also obviates the need for the
9684         keyword :label, which was previously listed in the documentation
9685         as unimplemented, and which was for the same purpose.
9686
9687         d) GCPROing.
9688
9689         * ntproc.c:
9690         * ntproc.c (new_child):
9691         * ntproc.c (sys_spawnve):
9692         * ntproc.c (find_child_console):
9693         * ntproc.c (sys_kill):
9694         Fixed compile warnings.  By the way, this file should really go
9695         away entirely, and this will happen as soon as Kirill makes his
9696         final round of process cleanups, which affect the function
9697         call-process.
9698
9699         * process-nt.c:
9700         * process-nt.c (struct nt_process_data):
9701         * process-nt.c (find_process_from_pid):
9702         * process-nt.c (send_signal_the_nt_way):
9703         * process-nt.c (enable_child_signals):
9704         * process-nt.c (find_child_console):
9705         * process-nt.c (send_signal_the_95_way):
9706         * process-nt.c (nt_finalize_process_data):
9707         * process-nt.c (ensure_console_window_exists):
9708         * process-nt.c (nt_create_process):
9709         * process-nt.c (nt_kill_child_process):
9710         * process-nt.c (nt_kill_process_by_pid):
9711         * process-nt.c (nt_open_network_stream):
9712         * process-nt.c (vars_of_process_nt):
9713         Copied over code from Emacs 20.5 to correctly send signals to sub-
9714         processes under Windows 95.  Also added code to automatically
9715         create and hide console window when a sub-process is created under
9716         Windows 95, which obviates the need for the separate runemacs.exe
9717         executable, and finally implemented some variables that were
9718         implemented in Emacs 20.5, but previously not in XEmacs.  These
9719         include mswindows- start-process-share-console and
9720         mswindows-start-process-inherit-error-mode. (Both of these only
9721         apply to Windows 95.)
9722
9723         * regex.c (regex_compile): Fixed a compile warning.
9724
9725         * select-msw.c:
9726         * select-msw.c (mswindows_own_selection):
9727         * select-msw.c (mswindows_get_foreign_selection):
9728         * select-msw.c (mswindows_disown_selection):
9729         * select-msw.c (console_type_create_select_mswindows):
9730         * select-msw.c (syms_of_select_mswindows):
9731         Cleaned up the file and implemented the device method
9732         selection_exists_p, which had accidentally been left out.  Also
9733         removed four lisp functions that were remnants from before the
9734         time when the selection code was properly device abstracted.
9735         These functions are no longer needed because there are generic
9736         equivalents, and because they were added recently and don't exist
9737         in FSF Emacs, I don't think there's any problem with just deleting
9738         them.
9739
9740         * sysdep.c:
9741         * sysdep.c (sys_subshell):
9742         Fixed a compile warning, although in this case there's probably
9743         something wrong with this code, and it ought to be looked into
9744         more thoroughly by somebody who understands it.
9745
9746         * window.c:
9747         * window.c (Fwindow_text_area_height):
9748         * window.c (Fwindow_width):
9749         * window.c (Fwindow_full_width):
9750         * window.c (Fwindow_pixel_width):
9751         * window.c (debug_print_window):
9752         * window.c (syms_of_window):
9753         Added functions window-text-area-height and window-full-width,
9754         which are functions for returning various width and height
9755         characteristics of a window. (One of these functions is necessary
9756         for making the file dialog box work correctly, and the other one
9757         was added for completeness.)  Also added a table to the
9758         documentation for window-height which describes the entire scheme
9759         for accessing width and height characteristics of a window.
9760
9761 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
9762
9763         * nt.c (fstat): Added a comment for another problem with
9764         non-encapsulated [f]stat(), reported by Adrian Aichner
9765         <aichner@ecf.teradyne.com>.
9766
9767 2000-03-11  Andy Piper  <andy@xemacs.org>
9768
9769         * window.c (make_dummy_parent): initialize subwindow instance
9770         cache.
9771         (Fset_window_configuration): zero extent_modiff.
9772
9773 2000-03-10  Andy Piper  <andy@xemacs.org>
9774
9775         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
9776         more changes can be triggered.
9777         (Fredisplay_frame): ditto.
9778         (Fredraw_device): ditto.
9779         (Fredisplay_device): ditto.
9780         (redisplay_frame): make non-static.
9781         (redisplay_frame): call update_frame_gutter_geometry outside of
9782         display proper.
9783
9784         * gutter.h: declare update_frame_gutter_geometry.
9785
9786         * redisplay.h: declare redisplay_frame.
9787
9788         * gutter.c (update_frame_gutter_geometry): move geometry changes
9789         in update_frame_gutters here. Geometry changes can only occur
9790         outside of redisplay.
9791         (update_frame_gutters): remove geometry change code.
9792         (Fredisplay_gutter_area): make sure that we are in display when we
9793         update and that we have flushed any size changes.
9794
9795 2000-03-11  Andy Piper  <andy@xemacs.org>
9796
9797         * alloc.c (pdump_dump_data): remove i & count shadows.
9798
9799 2000-02-27  Mike Alexander  <mta@arbortext.com>
9800
9801         * sysdep.h: Declare pdump_read_file
9802
9803         * sysdep.c (pdump_read_file): New function
9804
9805         * alloc.c (pdump_load): Call pdump_read_file to get the portable
9806         dump data
9807
9808 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
9809
9810         * lrecord.h: add `lrecord_type_pgsetenv'.
9811
9812 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
9813
9814         * symsinit.h: declare (vars|syms)_of* functions.
9815         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
9816
9817 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
9818
9819         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
9820
9821         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
9822         GCCs.
9823
9824         * emacs.c (main_1): Call postgres initialization code.
9825
9826         * postgresql.h: New file.  PostgreSQL RDBMS support.
9827         * postgresql.c: New file.
9828
9829 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
9830
9831         * redisplay-output.c (redisplay_output_display_block): Disable
9832         redundant code.
9833
9834 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
9835
9836         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
9837         (Fcanna_henkan_next): Ditto.
9838         (Fcanna_bunsetu_henkou): Ditto.
9839         (Fcanna_henkan_kakutei): Ditto.
9840         (Fcanna_henkan_end): Ditto.
9841         (Fcanna_henkan_quit): Ditto.
9842         (Fcanna_henkan_next): Set retun value correctly.
9843         (c2mu): Use unsigned char instead of signed char.
9844
9845 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
9846
9847         * emacs.c (main_1): Always call syms_of_gui.
9848         * inline.c: include gui.h
9849
9850 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
9851
9852         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
9853         converted to Lisp_Object.
9854         (Qtop_bottom): New variable.
9855         (syms_of_redisplay): Initialize it.
9856         * redisplay.h (Vvisible_bell): Ditto.
9857         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
9858         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
9859         only flash top and bottom.
9860
9861 2000-03-08  Andy Piper  <andy@xemacs.org>
9862
9863         * buffer.c (Frename_buffer): record new buffer name the right way.
9864
9865 2000-03-08  Andy Piper  <andy@xemacs.org>
9866
9867         * glyphs.c (update_subwindow): increase hash depth so that widget
9868         items get picked up properly.
9869
9870         * redisplay-output.c (compare_runes): increase hash depth so that
9871         widget items get picked up properly.
9872
9873 2000-03-08  Andy Piper  <andy@xemacs.org>
9874
9875         * gutter.c (output_gutter): add some debug.
9876
9877         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
9878         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
9879         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
9880
9881         * redisplay-output.c (compare_runes): use display_hash to
9882         determine if glyphs really are not the same.
9883
9884         * glyphs.c (update_subwindow): check display_hash to see if
9885         anything really needs to be updated. If not then do
9886         nothing. Record the display_hash after updating.
9887         (image_instance_equal): compare the image_instance face also.
9888
9889 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
9890
9891         * redisplay.h: Fix comment style.
9892
9893 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9894
9895         * consle-msw.h (struct mswindows_frame):
9896         Added new member paint_pending to indicate whether a WM_PAINT
9897         magic event has been queued for this frame.
9898
9899         * event-msw.c (mswindows_drain_windows_queue):
9900         Don't queue a WM_PAINT magic event if one is already queued.
9901         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
9902
9903         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
9904
9905 2000-03-07  Didier Verna  <didier@xemacs.org>
9906
9907         * dired.c: #include `regex.h' after `sysfile.h'.
9908
9909 2000-03-06  Martin Buchholz  <martin@xemacs.org>
9910
9911         * sound.c (init_nas_sound): Fix compiler warning.
9912
9913         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
9914         (FREE_STRUCT_P):
9915         (MARK_STRUCT_AS_FREE):
9916         (MARK_STRUCT_AS_NOT_FREE):
9917         Make `gcc -fstrict-aliasing' work properly.
9918
9919 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9920
9921         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
9922         (mswindows_delete_device): Call CoUnnitialize().
9923
9924         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
9925
9926 2000-02-25    <CraigL@DyCon.com>
9927
9928         * process-nt.c: MinGW now has <shellapi.h>, but still needs
9929         <errno.h>.
9930
9931         * sysdep.c: This extern declaration for environ prevents MinGW
9932         from finding the variable in CRTDLL.DLL.
9933
9934         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
9935         windows headers.
9936         (SHGFI_EXETYPE): ..
9937         (WM_MOUSEWHEEL): ..
9938         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
9939         definitions.
9940         (MMRESULT): Removed, now defined in cygwin's windows headers.
9941         (TIMECAPS): ..
9942         (uid_t,gid_t,pid_t,ssize_t): ..
9943         (_timeb): Removed, MinGW defines both _timeb and timeb.
9944         (HAVE_H_ERRNO): Added.
9945         (HAVE_TZNAME): Added, configure is not detecting this.
9946
9947 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
9948
9949         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
9950         * syntax.c (syntax_match): Use it.
9951
9952         * cmds.c: Import auto-fill-chars from FSF Emacs.
9953         (Vauto_fill_chars): New variables.
9954         (internal_self_insert): Check Vauto_fill_chars.
9955         (vars_of_cmds):
9956         Declare auto-fill-chars as a Lisp variable and initialize it.
9957
9958 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9959
9960         * fileio.c (Fmake_symbolic_link):
9961         (Ffile_symlink_p):
9962         Run handlers even if local machine doesn't have symlinks.
9963
9964 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9965
9966         * event-msw.c (mswindows_drain_windows_queue):
9967         Don't generate paint magic events for non-XEmacs frames.
9968
9969 2000-03-05  Andy Piper  <andy@xemacs.org>
9970
9971         * redisplay.c (redisplay_frame): generate_displayable_area and
9972         friends assumes that we are not in GC, we therefore have to make
9973         sure that this doesn't happen.
9974
9975         * gutter.c (calculate_gutter_size): generate_displayable_area
9976         assumes that we are not in GC, we therefore have to make sure that
9977         this doesn't happen.
9978
9979 2000-03-05  Martin Buchholz  <martin@xemacs.org>
9980
9981         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
9982
9983 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
9984
9985         * redisplay.c (regenerate_window): Make sure we set a sane value
9986         for end_pos even if we jump out of the loop.
9987         (regenerate_window): Answer Ben's question :-).
9988         (start_end_of_last_line): Add may_error argument.
9989         (start_of_last_line):
9990         (end_of_last_line): Pass may_error = 0.
9991         (end_of_last_line_may_error): New function.
9992         (pixel_to_glyph_translation): Use it, so we don't crash in
9993         event_to_glyph.
9994
9995 2000-03-04  Andy Piper  <andy@xemacs.org>
9996
9997         * window.h (struct window): add gutter_extent_modiff.
9998
9999         * window.c (allocate_window): zero out gutter_extent_modiff.
10000
10001         * redisplay.h: declare sync_display_line_structs.
10002
10003         * redisplay.c (add_glyph_rune): add a better comment.
10004
10005         * redisplay-output.c (sync_display_line_structs): made non-static.
10006         (compare_runes): remove unneccesary glyph cachel access.
10007
10008         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
10009
10010         * gutter.c (output_gutter): don't output the gutter if extent
10011         changes only involve extents in buffers. use 4 sets of display
10012         lines.
10013         (gutter_extent_signal_changed_region_maybe): new function. Mark
10014         extents in gutters as changed.
10015         (update_frame_gutters): use 4 sets of display lines.
10016         (reset_gutter_display_lines): ditto.
10017         (free_frame_gutters): ditto.
10018         (redraw_exposed_gutter): force output of gutters.
10019
10020         * frame.h (struct frame): add 4 sets of gutter display lines.
10021
10022         * extents.c: (extent_changed_for_redisplay): signal changes to
10023         extents in strings in the gutter as well as extents in buffers.
10024
10025 2000-03-02  Andy Piper  <andy@xemacs.org>
10026
10027         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
10028
10029         * frame.c (Fmake_frame): make sure the gutters get initialized
10030         after the frame is visible.
10031         (set_frame_selected_window): re-arrange compilation macros a
10032         little.
10033         (change_frame_size_1): mark gutters changed.
10034
10035         * device.c (Fset_device_class): mark gutters changed.
10036
10037 2000-03-01  Andy Piper  <andy@xemacs.org>
10038
10039         * window.c (window_top_frame_gutter_height): deleted.
10040         (window_bottom_frame_gutter_height): ditto.
10041         (window_left_frame_gutter_height): ditto.
10042         (window_right_frame_gutter_height): ditto.
10043         (window_top_gutter_height): don't use them.
10044         (window_bottom_gutter_height): ditto.
10045         (window_left_gutter_width): ditto.
10046         (window_right_gutter_width): ditto.
10047         (Fsplit_window): ditto.
10048         (Fwindow_pixel_edges): don't use border dimensions here.
10049
10050         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
10051         (update_scrollbar_instance): ditto.
10052
10053         * redisplay.c (generate_modeline): don't take gutters into account.
10054         (generate_modeline): ditto.
10055         (redisplay_frame): small gutter display optimization.
10056
10057         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
10058
10059         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
10060         gutters into account.
10061
10062         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
10063         for window position and type.
10064
10065         * gutter.c (get_gutter_coords): fix for frame gutters.
10066         (update_frame_gutters): update frame geometry if the gutters have
10067         changed.
10068         (init_frame_gutters): record current gutter geometries.
10069
10070         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
10071         var.
10072         (mswindows_widget_instantiate): ditto.
10073
10074         * frame.h (struct frame): add current_gutter_bounds.
10075
10076         * frame.c (change_frame_size_1): position window and minibuffer
10077         appropriately taking into account the frame gutters.
10078
10079         * frame-x.c: (x_initialize_frame_size): take into account the
10080         frame gutters.
10081
10082 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
10083
10084         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
10085
10086 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
10087
10088         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
10089
10090 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
10091
10092         * file-coding.c (reset_decoding_stream): Clear previous
10093         detection state when autodetect.
10094
10095 2000-02-29  Didier Verna  <didier@xemacs.org>
10096
10097         * extents.c (set_extent_glyph_1): don't require extents to be
10098         attached.
10099
10100 2000-02-27  Andy Piper  <andy@xemacs.org>
10101
10102         * gutter.c (Fset_default_gutter_position): don't default left and
10103         right gutter visibility to t.
10104         (Fset_default_gutter_position): run
10105         default-gutter-position-changed-hook.
10106         (syms_of_gutter): add default-gutter-position-changed-hook.
10107
10108 2000-02-26  Andy Piper  <andy@xemacs.org>
10109
10110         * specifier.c (Fmake_specifier): add gutter references.
10111
10112         * gutter.h (RAW_WINDOW_GUTTER): new macro.
10113
10114         * lisp.h: declare Fvalid_plist_p.
10115
10116         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
10117         as changed.
10118         (default_gutter_visible_p_changed_in_window): invalidate gutter as
10119         well as its visibility so that it gets reconstructed.
10120         (construct_window_gutter_spec): new function. Construct a string
10121         to be displayed in the gutter from a plist of strings. Take care
10122         to only use elements that are declared as visible.
10123         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
10124         WINDOW_GUTTER.
10125         (gutter_validate): allow plists of strings in the specifier.
10126         (gutter_specs_changed): construct the real_gutter from the gutter
10127         specs using construct_window_gutter_spec.
10128         (gutter_visible_validate): gutter-visible is a new specifier type.
10129         (Fgutter_visible_specifier_p): new function for the new specifier.
10130         (syms_of_gutter): declare gutter-visible and
10131         Fgutter_visible_specifier_p.
10132         (specifier_type_create_gutter): intitalize new gutter-visible
10133         specifier.
10134         (reinit_specifier_type_create_gutter): ditto.
10135         (specifier_vars_of_gutter): use new specifier type for gutter
10136         visibility.
10137         (init_frame_gutters): construct real_gutter correctly.
10138         (Fgutter_specifier_p): beef up documentation.
10139         (Fgutter_size_specifier_p): ditto.
10140
10141         * winslots.h: add real_gutter slots.
10142
10143 2000-02-25  Andy Piper  <andy@xemacs.org>
10144
10145         * device-msw.c: Be kind to older cygwin versions. From Raymond
10146         Toy <toy@rtp.ericsson.se>.
10147
10148         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
10149         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
10150
10151 2000-02-25  Martin Buchholz  <martin@xemacs.org>
10152
10153         * elhash.c (MARK_OBJ): Practice macro hygiene.
10154
10155 2000-02-24  Martin Buchholz  <martin@xemacs.org>
10156
10157         * miscplay.c: s/__inline__/inline/g;
10158         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
10159         (get_device_compdc): INLINE ==> static inline
10160         * *.[ch]: Change INLINE to INLINE_HEADER globally.
10161         find -name '*.h' | \
10162         xargs global-replace \
10163         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
10164
10165 2000-02-25  Andy Piper  <andy@xemacs.org>
10166
10167         * window.c (window_top_frame_gutter_height): new function.
10168         (window_top_window_gutter_height): ditto.
10169         (window_top_gutter_height): use them.
10170         (window_bottom_frame_gutter_height): new function.
10171         (window_bottom_window_gutter_height): ditto.
10172         (window_bottom_gutter_height): use them.
10173         (window_left_window_gutter_width): new function.
10174         (window_left_frame_gutter_width): ditto.
10175         (window_left_gutter_width): use them.
10176         (window_right_window_gutter_width): new function.
10177         (window_right_frame_gutter_width): ditto.
10178         (window_right_gutter_width): use them.
10179         (window_pixel_height): new function. calulate window pixel height
10180         with frame gutter involvement.
10181         (Fsplit_window): calculate new sizes taking frame gutters into
10182         account.
10183         (window_char_height_to_pixel_height): don't include frame gutters.
10184         (window_char_height): use window_pixel_height.
10185         (window_pixheight): rename from window_pixel_height.
10186         (change_window_height): use it.
10187         (window_pixel_height_to_char_height): don't include frame gutters.
10188         (window_char_width_to_pixel_width): ditto.
10189
10190 2000-02-25  Andy Piper  <andy@xemacs.org>
10191
10192         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
10193         if it is.
10194
10195 2000-02-24  Martin Buchholz  <martin@xemacs.org>
10196
10197         * alloc.c (staticpro):
10198         (staticpro_nodump):
10199         (dumpstruct):
10200         (dumpopaque):
10201         (pdump_wire):
10202         (pdump_wire_list):
10203         (compact_string_chars):
10204         (pdump_dump_wired):
10205         Convert:  if (foo) abort();  ==>  assert (! foo);
10206
10207         * eldap.c (Fldap_search_basic):
10208         (Fldap_add):
10209         (Fldap_modify):
10210         (Fldap_delete):
10211         Fix compiler warnings, and possible crashes if (random) return
10212         value were to be used.
10213
10214 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10215
10216         * device-msw.c: Workaround ResetDC failure.
10217
10218         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
10219         applying a devmode.
10220
10221         * redisplay-msw.c (get_frame_dc): Added start_page_p.
10222         (mswindows_text_width): Do not start printer page.
10223
10224         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
10225
10226         * glyphs-msw.c: Added image methods to msprinter console and
10227         msprinter-specific image instantiation.
10228
10229 2000-02-20  Mike Alexander  <mta@arbortext.com>
10230
10231         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
10232         to avoid crashes when selection-sets-clipboard is on
10233         (mswindows_own_selection): ditto
10234
10235 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10236
10237         * glyphs-msw.c:
10238         * redisplay-msw.c (get_frame_dc):
10239         (get_frame_compdc):
10240         * console-msw.h:
10241         * device-msw.c (mswindows_init_device):
10242         (mswindows_delete_device):
10243         (msprinter_init_device):
10244         (msprinter_delete_device):
10245         * frame-msw.c (mswindows_init_frame_1):
10246         (mswindows_delete_frame):
10247         (msprinter_init_frame_3):
10248         (msprinter_delete_frame): Move compatible DC to device object from
10249         frame object, for both mswindows and msprinter. Only one at a time
10250         is needed, it is a real waste to have one per frame!
10251
10252 2000-02-23  Andy Piper  <andy@xemacs.org>
10253
10254         * glyphs.c: add dynamic width and height elements.
10255         (image_instance_equal): ditto.
10256
10257         * glyphs-widget.c (widget_query_geometry): calculate width and
10258         height dynamically if required.
10259         (initialize_widget_image_instance): initialize dynamic dimensions.
10260         (widget_instantiate): pick-up dynamic dimensions.
10261
10262         * glyphs.h (struct Lisp_Image_Instance): add width and height for
10263         dynamic determination. Add appropriate macros.
10264
10265         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
10266         dimensions safe.
10267         (WINDOW_GUTTER_SIZE): ditto.
10268         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
10269
10270         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
10271         inline.
10272         (get_frame_dc): ditto.
10273
10274         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
10275         here.
10276
10277 2000-02-23  Martin Buchholz <martin@xemacs.org>
10278
10279         * XEmacs 21.2.31 is released.
10280
10281 2000-02-22  Ben Wing <ben@xemacs.org>
10282
10283         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
10284
10285 2000-02-22  Andy Piper  <andy@xemacs.org>
10286
10287         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
10288
10289 2000-02-21  Mike Sperber <mike@xemacs.org>
10290
10291         * .dbxrc:
10292         * .gdbinit:
10293         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
10294         variables.
10295
10296 2000-02-21  Mike Sperber <mike@xemacs.org>
10297
10298         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
10299
10300 2000-02-21  Martin Buchholz <martin@xemacs.org>
10301
10302         * XEmacs 21.2.30 is released.
10303
10304 2000-02-20  Martin Buchholz  <martin@xemacs.org>
10305
10306         Performance hacking.
10307         * *.c (syms_of_*):
10308         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
10309         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
10310         * emacs.c (main_1):
10311         * lisp.h (DEFUN):
10312         * console.c (DEFVAR_CONSOLE_LOCAL_1):
10313         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
10314         * symeval.h (DEFVAR_SYMVAL_FWD):
10315         * symbols.c (guts_of_unbound_marker):
10316         Make all c_readonly objects also lisp_readonly and marked for life.
10317         * lrecord.h (struct lrecord_implementation):
10318         Document flags better.
10319         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
10320         * lrecord.h (DECLARE_LRECORD):
10321         * lrecord.h (XSETRECORD):
10322         * lrecord.h (RECORDP):
10323         * lrecord.h (RECORD_TYPEP):
10324         * lrecord.h (RECORD_MARKER): New.
10325         * lrecord.h (error_check_*):
10326         * lrecord.h (CONCHECK_NONRECORD):
10327         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
10328         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
10329         * lrecord.h (set_lheader_implementation):
10330         * lrecord.h (enum lrecord_type): New.
10331         * symeval.h (SYMBOL_VALUE_MAGIC_P):
10332         * alloc.c (disksave_object_finalization_1):
10333         * alloc.c (mark_object):
10334         * alloc.c (lrecord_type_index):
10335         * alloc.c (tick_lcrecord_stats):
10336         * alloc.c (Fgarbage_collect):
10337         * alloc.c (init_alloc_once_early):
10338         * alloc.c (pdump_load):
10339         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
10340         * alloc.c (lrecord_type_index): Delete.
10341         Make lisp object type indexes be constant.
10342           Makes (byte-compile) 5% faster.
10343         Put all marker functions into their own array.
10344           Makes (garbage-collect) 5% faster.
10345         Optimize SYMBOL_VALUE_MAGIC_P.
10346           Makes (byte-compile) 2-3% faster.
10347         * config.h.in (gc_checking_assert): New.
10348         * alloc.c: Use gc_checking_assert().
10349         * .dbxrc: Make compatible with new object type implementation.
10350         * .gdbinit: Make compatible with new object type implementation.
10351         * alloc.c: Delete all symbols defined only for debugging, such as
10352         Lisp_Type_Vector and lrecord_charset.
10353
10354 2000-02-21  Andy Piper  <andy@xemacs.org>
10355
10356         * gui-msw.c (Fmswindows_shell_execute): fix file location
10357         problems.
10358
10359         * buffer.c (Fkill_buffer): remove buffer from alist buffer
10360         unshowing so that set_window_buffer doesn't undo
10361         kill_buffer_hook's hard work.
10362
10363         * glyphs-widget.c (tab_control_query_geometry): don't count the
10364         first item when calculating geometry.
10365
10366         * glyphs.c (map_subwindow): remove redundant code.
10367         (update_frame_subwindows): be more circumspect about when to
10368         update subwindows.
10369
10370         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
10371         when items haven't changed. Update faces if faces have changed as
10372         well as just the widget face.
10373         (x_tab_control_update): Update faces if faces have changed as well
10374         as just the widget face.
10375
10376 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10377
10378         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
10379         registration.
10380         (build_syscolor_string): Use mswindows_color_to_string to try to
10381         get a named color.
10382         (mswindows_device_system_metrics): Reverse the foreground and
10383         background colors so that they match the documentation.
10384
10385         * objects-msw.c: (mswindows_X_color_map): tweak some values so
10386         they match the default Windows palette.
10387         (mswindows_color_to_string): New function.
10388
10389 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10390
10391         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
10392
10393 2000-02-18  Olivier Galibert  <galibert@pobox.com>
10394
10395         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
10396         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
10397
10398         * symbols.c (init_symbols_once_early): Removed obsolete
10399         DATA_SEG_BITS related kludge.
10400         (defvar_magic): Ditto.
10401
10402         * malloc.c: Removed obsolete DATA_SEG_BITS
10403         * ralloc.c: Ditto.
10404         * mem-limits.h: Ditto.
10405
10406         * Makefile.in.in: Removed obsolete HAVE_SHM
10407         * emacs.c: Ditto.
10408
10409 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10410
10411         *  device-msw.c (mswindows_delete_device): Free DDE string
10412         handles.
10413
10414 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10415
10416         * keymap.c (get_keyelt):
10417         * unexnt.c (unexec):
10418         * vm-limit.c (memory_warnings):
10419         * ntheap.c (recreate_heap):
10420         * ntheap.h (UNINIT_PTR):
10421         * select-msw.c (Fmswindows_get_clipboard):
10422         (Fmswindows_set_clipboard):
10423         * objects-msw.h (MSWINDOWS_BAD_HFONT):
10424         * objects-msw.c:
10425         * menubar-msw.c (displayable_menu_item):
10426         * glyphs-msw.c:
10427         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
10428         * sysdep.c (sys_subshell):
10429         * process-nt.c (nt_create_process):
10430         * nt.c (normalize_filename):
10431         (dostounix_filename):
10432         (unixtodos_filename):
10433         * ntproc.c (win32_executable_type):
10434         * ntplay.c (play_sound_data_1):
10435         (play_sound_file):
10436         * editfns.c (get_home_directory):
10437         * event-msw.c (struct winsock_stream):
10438         (mswindows_dde_callback):
10439         * device-msw.c (msprinter_init_device):
10440         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
10441
10442         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
10443         mswindows_clear_toolbar were swapped!
10444
10445         * objects-msw.c:(colormap_t):
10446         (fontmap_t):
10447         * emacs.c (struct standard_args): Fixed const jumble.
10448
10449         * glyphs-widget.c (update_widget): Fixed comparison notation.
10450
10451         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
10452
10453         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
10454         __declspec(noreturn) syntax.
10455
10456 2000-02-19  Martin Buchholz  <martin@xemacs.org>
10457
10458         * eldap.c (Fldap_open):
10459         (Fldap_search_basic):
10460         (Fldap_add):
10461         (Fldap_modify):
10462         Use new coding system conversion macros.
10463
10464 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
10465
10466         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
10467
10468 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
10469
10470         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
10471         (Fldap_add, Fldap_modify, Fldap_delete): New functions
10472
10473         * eldap.c (Qadd, Qreplace): New constant symbols
10474         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
10475         interruptions by XEmacs signals
10476         Remove unnecessary calls to slow_down_interrupts and
10477         speed_up_interrupts
10478         (Fldap_search_basic): Renamed from Fldap_search_internal
10479         Added new optional parameter VERBOSE that triggers the
10480         display of progress messages
10481         Remove unnecessary calls to slow_down_interrupts and
10482         speed_up_interrupts
10483         LDAP result code analysis rewritten
10484         (Fldap_add, Fldap_modify, Fldap_delete): New functions
10485         (syms_of_eldap): Define the new symbols and functions
10486
10487
10488 2000-02-17  Martin Buchholz  <martin@xemacs.org>
10489
10490         * realpath.c: Determine PATH_MAX maximally portably.
10491
10492         * insdel.c (bytecount_to_charcount): Optimize.
10493         The function used to be optimized for entirely ASCII sequences.
10494         Now it is optimized for successive characters from the same
10495         charset.  This also wins big for _mostly_ ASCII sequences.
10496
10497         * fileio.c (Ffile_truename): convert return from realpath() using
10498         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
10499         - Rewrite GCPROing slightly.
10500
10501         * sysdep.c (sys_open): Do filename conversion, like all other
10502         sys_* functions.  Fixes bug:
10503         (let ((file-name-coding-system 'iso-8859-2))
10504            (write-region x y latin2-name))
10505         ==> writes filename using internal encoding.
10506
10507 2000-02-18  Martin Buchholz  <martin@xemacs.org>
10508
10509         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
10510         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
10511         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
10512         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
10513         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
10514         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
10515         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
10516         (CONST_IF_NOT_DEBUG): Delete.
10517         * alloc.c (this_one_is_unmarkable): Delete.
10518         (mark_object): Don't check for this_one_is_unmarkable. Use the
10519         c_readonly flag instead.
10520         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
10521
10522 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10523
10524         * event-msw.c (mswindows_drain_windows_queue):
10525         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
10526         away redundant repaint events.
10527
10528 2000-02-17  Andy Piper  <andy@xemacs.org>
10529
10530         * redisplay.h: declare mark_redisplay_structs.
10531
10532         * redisplay.c (redisplay_window):
10533         (redisplay_frame): don't check subwindows_state_changed.
10534         (mark_redisplay): mark gutters here.
10535
10536         * glyphs.c: (instantiate_image_instantiator): always layout if we
10537         haven't done so already.
10538         (allocate_image_instance): don't mark as dirty.
10539         (update_subwindow): bind inhibit_quit.
10540
10541         * gutter.c (mark_gutters): new function.
10542
10543         * glyphs-x.c (x_update_widget): Always resize to get round a
10544         widget bug.
10545
10546         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
10547         breaking absolutely everything.
10548
10549         * gutter.h: declare mark_gutters.
10550
10551 2000-02-16  Martin Buchholz <martin@xemacs.org>
10552
10553         * XEmacs 21.2.29 is released.
10554
10555 2000-02-15  Olivier Galibert  <galibert@pobox.com>
10556
10557         * fns.c (size_bit_vector): Fix computation of the size.
10558
10559 2000-02-15  Martin Buchholz  <martin@xemacs.org>
10560
10561         * *.[ch]: Change CONST to const globally.
10562         find -name '*.[ch]' | \
10563         xargs global-replace \
10564         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
10565         - Remove vestigial references to CONST_IS_LOSING
10566
10567 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10568
10569         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
10570         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
10571         events instead of dispatching them directly.
10572         (mswindows_handle_paint): New function to do repainting.
10573         (mswindows_wnd_proc):
10574         (emacs_mswindows_handle_magic_event): Call above function.
10575
10576 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10577
10578         * objects-msw.c (mswindows_create_font_variant): Return the new
10579         font handle.
10580         (initialize_font_instance): Get font metrics from the underlined
10581         variant of the font to cope with the case where the underlined
10582         font has a bigger descent.
10583
10584 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
10585
10586         * gui.c (gui_item_accelerator): Return the first underlined
10587         character in item name.
10588
10589 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10590
10591         * lisp.h: Added Qprinter.
10592
10593         * general.c (syms_of_general): Initialized it.
10594
10595         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
10596         (get_frame_dc):
10597         (get_frame_compdc): Made inline.
10598
10599         * console.h (struct console_methods): Added eject_page method.
10600
10601         * frame.h: Added FRAME_DISPLAY_P and friends.
10602         Aligned backslahes in many macros in more readable fashion.
10603         Added page_number to struct frame, and an accessor macro
10604         for it.
10605
10606         * defice.h: Added DEVICE_DISPLAY_P and friends.
10607
10608         * device.c (Fdevice_printer_p): Used these.
10609
10610         * frame.c (allocate_frame_core): Initialize page number.
10611         (Fprint_job_page_number):
10612         (Fprint_job_eject_page): Implemented.
10613
10614         * frame-msw.c (msprinter_eject_page): Added method.
10615         (msprinter_start_page): Added.
10616
10617         * window.c (Fwindow_truncated_p): Fixed docstring.
10618         (Fwindow_last_line_visible_height): Implemented.
10619
10620 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10621
10622         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
10623
10624 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
10625
10626         * syntax.c (scan_words): Always advance at least one character.
10627
10628 2000-02-13  Andy Piper  <andy@xemacs.org>
10629
10630         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
10631         to make sure the glyph is in the cachels.
10632
10633         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
10634         global image instance flag.
10635         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
10636         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
10637
10638         * glyphs.c (allocate_image_instance): set dirty bits correctly.
10639         (Fset_image_instance_property): mark layout as changed.
10640         (invalidate_glyph_geometry_maybe): mark layout as changed.
10641         (glyph_width): use new NEEDS_LAYOUT macro.
10642         (glyph_ascent): ditto.
10643         (glyph_descent): ditto.
10644         (glyph_height): ditto.
10645         (image_instance_layout): mark layout as clean after laying out.
10646         (update_subwindow): don't mark layout as clean here.
10647
10648         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
10649         should no longer be needed.
10650
10651         * glyphs-x.c (x_update_widget): sanitize asserts.
10652         (x_finalize_image_instance): sanitize assignment to widgets.
10653
10654         * glyphs-widget.c (widget_instantiate): don't need to clear the
10655         layout flag here.
10656
10657 2000-02-13  Martin Buchholz  <martin@xemacs.org>
10658
10659         * sysdep.c (getcwd): Use standard prototype.
10660         * sysdep.h (getcwd): Use standard prototype.
10661
10662         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
10663         (sequence, start, end).
10664         Remove redundant type checking.
10665         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
10666         view of `caller-protects') to avoid a crash where the real fix was
10667         found elsewhere.
10668
10669 2000-02-12  Martin Buchholz  <martin@xemacs.org>
10670
10671         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
10672
10673         * s/sol2.h: Remove feature macro initialization.
10674
10675         * alloc.c (alloc_lcrecord): Add more type checking assertions.
10676         (vector_hash): New.  Code from internal_hash.
10677         * lrecord.h:
10678         Fix up allocation subsystem comments.
10679
10680         * config.h.in: Add __EXTENSIONS__ for Solaris.
10681
10682         * systime.h (EMACS_GETTIMEOFDAY): New.
10683         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
10684         Remove Solaris-specific code.
10685         Use void* for the (ignored) second arg for gettimeofday().
10686
10687         * elhash.c (hash_table_hash): Implement it, finally.
10688         * elhash.c:  Use hashcode_t.
10689
10690         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
10691         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
10692
10693         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
10694         * fns.c (size_bit_vector):
10695         * alloc.c (size_vector):
10696         (make_vector_internal):
10697         (make_bit_vector_internal):
10698         (sweep_bit_vectors_1):
10699         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
10700
10701 2000-02-10  Martin Buchholz  <martin@xemacs.org>
10702
10703         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
10704         Include strings.h to avoid warnings for bzero and strcasecmp.
10705
10706 2000-02-10  Olivier Galibert  <galibert@pobox.com>
10707
10708         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
10709         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
10710
10711         * fns.c (size_bit_vector): New.  Declare bit vectors as a
10712         sequence.
10713
10714 2000-02-10  Olivier Galibert  <galibert@pobox.com>
10715
10716         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
10717         use a value field instead.
10718         (symbol_value_forward_forward): Use value field.
10719         (DEFVAR_SYMVAL_FWD): Use value field.
10720         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
10721         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
10722         (DEFVAR_CONST_INT): Ditto.
10723         (DEFVAR_BOOL): Ditto.
10724         (DEFVAR_CONST_BOOL): Ditto.
10725         (DEFVAR_INT_MAGIC): Ditto.
10726         (DEFVAR_BOOL_MAGIC): Ditto.
10727
10728         * symbols.c (guts_of_unbound_marker): Use value field.
10729         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
10730         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
10731
10732         * lisp.h: Declare dumpopaque and noninteractive1.
10733
10734         * alloc.c (dumpopaque): Added.
10735         (pdump_dump_opaquevec): Added.
10736         (pdump): Call pdump_dump_opaquevec to dump opaque data.
10737         (pdump_load): Reload opaque data.  Sync noninteractive1 with
10738         noninteractive.
10739
10740 2000-02-10  Andy Piper  <andy@xemacs.org>
10741
10742         * glyphs.c (image_instance_layout): if the size changes, mark it
10743         as such.
10744
10745         * redisplay-output.c (redisplay_output_layout): Update the
10746         subwindow here.
10747         (redisplay_output_subwindow): ditto.
10748
10749         * glyphs.c (update_subwindow): make sure we reset flags for
10750         layouts as well as everything else.
10751
10752         * glyphs-widget.c (layout_layout): don't need to set the instances
10753         dimensions here.
10754
10755 2000-02-09  Martin Buchholz  <martin@xemacs.org>
10756
10757         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
10758         not HAVE_DLOPEN, which is a lower-level thing.
10759
10760         * .cvsignore: Ignore gmon.out
10761
10762 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
10763
10764         * .cvsignore: Ignore portable dumper xemacs.dmp file
10765
10766 2000-02-09  Andy Piper  <andy@xemacs.org>
10767
10768         * redisplay-output.c (redisplay_output_layout): be more clever
10769         about when we output based on the changed flags.
10770
10771         * glyphs.h (struct image_instantiator_methods): add update_method.
10772         (struct Lisp_Image_Instance): add changed flags. Declare new
10773         macros for manipulating them.
10774
10775         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
10776         (image_instance_parent_glyph): find an image_instance's parent
10777         glyph or image_instance.
10778         (image_instance_layout): mark the size as changed.
10779         (set_image_instance_dirty_p): new function. mark an image
10780         instance, plus all of its parents, as dirty.
10781         (Fset_image_instance_property): use it.
10782         (Fglyph_animated_timeout_handler): use it.
10783         (update_subwindow): call update_widget and device methods for
10784         update_subwindow. Mark all changed flags as clean.
10785         (Fresize_subwindow): mark size as changed.
10786
10787         * glyphs-x.c (x_finalize_image_instance): try and detect gc
10788         failures.
10789         (x_update_subwindow): only resize subwindows here.
10790         (x_update_widget): new function. Update all changed properties of
10791         a widget.
10792         (x_resize_subwindow): deleted.
10793         (x_widget_set_property): deleted.
10794         (x_progress_gauge_set_property): deleted.
10795         (x_progress_gauge_update): new function. Implement recorded
10796         changes.
10797         (x_tab_control_update): ditto.
10798         (x_tab_control_set_property): deleted.
10799         (console_type_create_glyphs_x): declare new functions.
10800         (image_instantiator_format_create_glyphs_x): ditto.
10801
10802         * glyphs-widget.c (widget_set_property): mark text changed.
10803         (update_widget): new function. Update properties of a widget.
10804         (widget_instantiate): for layouts make sure we set their
10805         children's parent correctly.
10806         (tab_control_set_property): new function. Record changes that will
10807         take place under redisplay's control.
10808         (progress_gauge_set_property): ditto.
10809         (image_instantiator_progress_guage): declare new functions.
10810         (image_instantiator_tab_control): ditto.
10811
10812         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
10813         now.
10814         (mswindows_update_widget): new function. Update all properties on
10815         a widget that have changed.
10816         (mswindows_button_update): new function. Update a button's set
10817         state.
10818         (mswindows_tab_control_update): new function. Update the items in
10819         a tab.
10820         (mswindows_tab_control_set_property): deleted.
10821         (mswindows_progress_gauge_update): new function. Update the
10822         progress gauge's progress.
10823         (mswindows_widget_set_property): deleted. This is all done
10824         asynchronously now.
10825         (mswindows_progress_gauge_set_property): ditto.
10826         (console_type_create_glyphs_mswindows): declare new methods.
10827         (image_instantiator_format_create_glyphs_mswindows): ditto.
10828
10829         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
10830         (msprinter_set_frame_properties): ditto.
10831
10832         * console.h (struct console_methods): Add update_widget_method.
10833
10834 2000-02-09  Andy Piper  <andy@xemacs.org>
10835
10836         * gui-msw.c (Fmswindows_shell_execute): Make
10837         mswindows-shell-execute industrial strength.
10838
10839 2000-02-08  Martin Buchholz  <martin@xemacs.org>
10840
10841         * lrecord.h: Make macro argument `props' match member function `plist'.
10842         * fns.c (Fget):
10843         * fns.c (Fput):
10844         * fns.c (Fremprop):
10845         * fns.c (Fobject_plist):
10846         * alloc.c:
10847         * symbols.c:
10848         Object property list frobbing cleanup.
10849         - Allow any lisp object (compared with `eq'), not just symbols, as
10850           keys in object plists.
10851         - Move symbol plist frobbing into symbols.c, where it belongs.
10852         - Move string plist frobbing into alloc.c, where it belongs.
10853         - Everything's an lrecord now, so no need to test for symbolp, etc.
10854         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
10855
10856         * extents.c: Reorder code to remove declarations.
10857
10858         * frame.h (store_in_alist): Remove useless declaration.
10859
10860 2000-02-07  Martin Buchholz  <martin@xemacs.org>
10861
10862         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
10863         * config.h.in: Add HAVE_XCONVERTCASE.
10864
10865 2000-02-07  Andy Piper  <andy@xemacs.org>
10866
10867         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
10868         it breaks many things.
10869
10870 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
10871
10872         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
10873         actually can start a common comment type.
10874         * src/syntax.h (SYNTAX_END_P): ditto for end.
10875
10876 2000-02-07  Martin Buchholz <martin@xemacs.org>
10877
10878         * XEmacs 21.2.28 is released.
10879
10880 2000-02-06  Martin Buchholz  <martin@xemacs.org>
10881
10882         * event-Xt.c (x_keysym_to_character): New.
10883         (maybe_define_x_key_as_self_inserting_character): New.
10884         (x_has_keysym): New.
10885         Auto-define all keys on the keyboard as self-insert-key.
10886
10887 2000-02-02  Martin Buchholz  <martin@xemacs.org>
10888
10889         * menubar.c (vars_of_menubar): A small code simplification.
10890
10891         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
10892
10893         * ExternalShell.c:
10894         * ExternalClient.c:
10895         * EmacsShell-sub.c:
10896         * EmacsManager.c:
10897         * EmacsFrame.c:
10898         Use consistent style for specifying X resources.
10899
10900         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
10901         This makes (dontusethis-set-symbol-value-handler) actually usable.
10902
10903         * lrecord.h (lrecord_decription_type):
10904         * alloc.c (pdump_register_sub):
10905         (pdump_dump_data):
10906         (pdump_reloc_one):
10907         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
10908         Comply with XEmacs coding style.
10909         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
10910         args, and XD_LISP_OBJECT_ARRAY with 3 args.
10911
10912         * keymap.c (Faccessible_keymaps):
10913         Make (accessible-keymaps map "\C-h") do the Right Thing.
10914         Make (accessible-keymaps map []) do the Right Thing.
10915         Make (accessible-keymaps map "") do the Right Thing.
10916         (check_keymap_definition_loop): New function.
10917         (keymap_store_internal): Keep luser from shooting self in foot,
10918           via (define-key ctl-x-4-map "p" global-map).
10919         Remove fullness slot from struct Lisp_Keymap, since hash tables
10920         are now reliable.
10921         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
10922
10923 2000-01-30  Martin Buchholz  <martin@xemacs.org>
10924
10925         * redisplay.c (init_redisplay): Fix small memory leak.
10926         * elhash.h:
10927         * elhash.c (pdump_reorganize_hash_table):
10928         Rename from reorganize_hash_table. Change prototype.
10929         Reuse the original memory for hentries.  Save 100k.
10930         * alloc.c (PDUMP_READ): new macro.
10931         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
10932         * alloc.c: No need to #ifndef before #undef.
10933
10934         * print.c: Allow debug_print() to print readably by modifying
10935         debug_print_readably.  Use consistent variable names.
10936
10937         * .dbxrc: Try to get things to work even if stopped in a function
10938         without source available by explicitly specifying source files.
10939 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10940
10941         * unexnt.c (_start): Removed bogus code which caused loading heap
10942         from differrent executable file.
10943         Removed bogus assignment to _fmode, which caused inconsistencies.
10944
10945 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10946
10947         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
10948         Have spawnve encapsulation regard DONT_ENCAPSULATE.
10949         Do not preliminary `#define signal sigset'.
10950
10951         * systime.h: Do not prototype environ on windows nt and cygwin,
10952         this conflicts with system header.
10953
10954         * syssignal.h: Use correct define for WINDOWSNT
10955
10956         * sysdep.h: Do not prototype environ on windows nt, this conflicts
10957         with system header.
10958
10959         * sysdep.c (near start of file): Fixed commentary and rearranged
10960         ifdefs in readable order.
10961         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
10962         (start_of_text):
10963         (end_of_text):
10964         (end_of_data): Do not compile in if using PDUMP.
10965
10966         * symsinit.h: Prototyped vars_of_nt().
10967
10968         * ntproc.c (windows9x_p): Added, instead of os_subtype.
10969         (find_child_console): Use it.
10970         (sys_kill): Use it.
10971
10972         * ntheap.h: Do not extern os_subtype.
10973
10974         * ntheap.c (cache_system_info): Do not cache unneeded:
10975         nt_major_version, nt_minor_version and os_subtype.
10976         (recreate_heap): Do not compile in when PDUMPing.
10977
10978         * nt.c (geteuid and friends): Use the new varibale
10979         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
10980         (init_user_info): Removed the above mentioned hackery.
10981         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
10982         stat has been fixed in the C runtime.
10983         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
10984
10985         * file-coding.c (struct file_coding_dump): Do not define
10986         ucs_to_mule_table in the struct if not MULE.
10987         (struct struct lrecord_description fcd_description_1): Do not dump
10988         the above.
10989
10990         * emacs.c (main_1): Call vars_of_nt().
10991         (right before Fdump_emacs_data): Don't need lastfile if using both
10992         portabe dumper and system malloc.
10993
10994         * alloc.c (Fmemory_limit): Conditionalized out.
10995         (pdump): Use OPEN_BINARY for the portable dump file.
10996         (pdump_load): Ditto.
10997
10998 2000-02-02  Mike Alexander  <mta@arbortext.com>
10999
11000         * nt.c (convert_time): Set tm_isdst before calling mktime and
11001         avoid calling it at all if the compiler supports 64 bit integers.
11002         Also initialize utc_base_ft before using it.
11003
11004 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
11005
11006         * frame.c (change_frame_size_1): Take f->internal_border_width
11007         into consideration when calculating the width of the frame.
11008
11009 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11010
11011         * window.c (frame_min_height):
11012         (frame_size_valid_p):
11013         (frame_pixsize_valid_p): Added.
11014         (check_frame_size): Generalized.
11015
11016         * window.h: Prototyped the above.
11017
11018         * lisp.h:
11019         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
11020         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
11021         Deleted Vwin32_* and Vbinary_process_* unused variables.
11022
11023         * device-msw.c (msprinter_init_device): Do not get printer font
11024         list; Added DEVMODE functions.
11025
11026         * frame-msw.c: Added lots of printer code.
11027
11028         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
11029         general.c.
11030
11031         * console-msw.h: Added more msprinter device private slots.
11032
11033 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11034
11035         * event-msw.c (key_needs_default_processing_p): Added.
11036         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
11037
11038 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11039
11040         * glyphs.c (image_instance_layout): Mark image instance as clean
11041         after layout.
11042         (glyph_dirty_p): Removed redundant function.
11043         (invalidate_glyph_geometry_maybe): Added.
11044         (update_glyph_cachel_data): Call it.
11045
11046         * glyphs.h: Prototyped it.
11047
11048         * redisplay.c (add_glyph_rune): Call it.
11049         (redisplay_window): Reset glyphs cachels when frame faces have
11050         changed, thus forcing recomputation of built-in border glyphs.
11051
11052 2000-01-30  Martin Buchholz  <martin@xemacs.org>
11053
11054         * Makefile.in.in: Make portable dumper and purify play well together.
11055         Add imperfect, but better than nothing, support for pdump.
11056         Remove xemacs.dmp when temacs is re-generated.
11057         Don't ignore errors when dumping xemacs.
11058
11059         * symbols.c (maybe_call_magic_handler): Remove one magic number.
11060
11061 2000-01-28  Andy Piper  <andy@xemacs.org>
11062
11063         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
11064         (setup_normal_frame): ditto.
11065         (setup_frame_without_minibuffer): ditto.
11066         (setup_minibuffer_frame): ditto.
11067         (delete_frame_internal): ditto.
11068         (Fmake_frame_invisible): ditto.
11069         (Ficonify_frame): ditto.
11070
11071         * window.h: change Fset_window_buffer signature.
11072
11073         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
11074         (Fset_window_buffer): allow recording of buffer if the window is
11075         the selected window.
11076         (window_loop): Use new Fset_window signature.
11077
11078 2000-01-23  Daniel Pittman  <daniel@danann.net>
11079
11080         * config.h.in: Added template for `HAVE_ATHENA_3D'
11081
11082 2000-01-29  Andy Piper  <andy@xemacs.org>
11083
11084         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
11085
11086         * gutter.c (output_gutter): Don't output if the window isn't live.
11087
11088 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11089
11090         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
11091         of 01/12/00: Moved SetFocus back here where it belongs.
11092
11093 2000-01-23  Andy Piper  <andy@xemacs.org>
11094
11095         * s/cygwin32.h: declare printer things.
11096
11097 2000-01-26  Andy Piper  <andy@xemacs.org>
11098
11099         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
11100         Alexander.
11101
11102 2000-01-24  Andy Piper  <andy@xemacs.org>
11103
11104         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
11105         (mswindows_button_instantiate): Make sure glyph is a pixmap.
11106
11107         * glyphs-widget.c (widget_instantiate): Avoid shadows.
11108
11109         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
11110
11111         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
11112
11113         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
11114         (mswindows_output_display_block): Avoid local shadows.
11115
11116         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
11117         (mswindows_enqueue_mouse_button_event): ditto.
11118         (mswindows_handle_gui_wm_command): remove declaration.
11119
11120         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
11121         warnings.
11122
11123         * console-msw.h: Avoid shadows.
11124         (mswindows_get_toolbar_button_text):
11125         (emacs_mswindows_create_stream_pair):
11126         (emacs_mswindows_delete_stream_pair):
11127         (mswindows_handle_toolbar_wm_command): declare.
11128
11129         * device-msw.c (build_syscolor_string): Avoid shadows.
11130
11131 2000-01-23  Andy Piper  <andy@xemacs.org>
11132
11133         * glyphs-widget.c (widget_instantiate): reverse the items for
11134         layouts so that children are in the expected order.
11135
11136 2000-01-28  Martin Buchholz  <martin@xemacs.org>
11137
11138         * ralloc.c: safe_bcopy ==> memmove
11139         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
11140         * s/msdos.h: Remove BCOPY macros.
11141         * insdel.c (gap_right): Remove BCOPY conditional code.
11142         * insdel.c (gap_left): Remove BCOPY conditional code.
11143         XEmacs demands a working ANSI C compiler - hence memmove.
11144
11145         * regex.c (regex_compile): Remove accidental use of trigraphs.
11146
11147 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11148
11149         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
11150         event timestamp.
11151
11152 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11153
11154         * event-msw.c (mswindows_drain_windows_queue): Added the
11155         parameter.
11156         (mswindows_need_event): Commented the call to
11157         mswindows_drain_windows_queue().
11158         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
11159         only.
11160
11161         * console-msw.h: Moved a few function prototypes here from
11162         event-msw.c.
11163
11164         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
11165         parameter from unsigned short to unsigned long.
11166         (Fmswindows_shell_execute): Added return value.
11167
11168 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
11169
11170         * sysdep.c (init_system_name):
11171           process-unix.c (unix_canonicalized_host_name):
11172         Don't call freeaddrinfo() if getaddrinfo() fails.
11173
11174         * process-unix.c (unix_open_unix_network_stream):
11175         Moved the code to get a port # into address loop.
11176
11177 2000-01-27  Martin Buchholz  <martin@xemacs.org>
11178
11179         * buffer.c (reinit_vars_of_buffer):
11180         The right place to initialize conversion_in_dynarr and
11181         conversion_out_dynarr.
11182
11183         * alloc.c (pdump): Use the real open() till sys_open() is functional.
11184
11185         * process-unix.c (unix_canonicalize_host_name): Muleize.
11186         (unix_open_network_stream): Muleize.
11187
11188         * buffer.h: Fix up prototypes for ralloc.c functions.
11189
11190 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
11191         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
11192         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
11193                 instead of gethostbyname()
11194         * process-unix.c: In unix_canonicalize_host_name() and
11195                 unix_open_network_stream(), add code to use getaddrinfo()
11196                 instead of gethostbyname().
11197
11198 2000-01-27  Daniel Pittman <daniel@danann.net>
11199
11200         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
11201         libs when built with flat Athena.
11202
11203 2000-01-27  Martin Buchholz  <martin@xemacs.org>
11204
11205         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
11206         Use coding standards for function prototypes.
11207
11208 2000-01-25  Martin Buchholz  <martin@xemacs.org>
11209
11210         * dialog-msw.c (push_lisp_string_as_unicode):
11211         * doc.c (unparesseuxify_doc_string):
11212         * dired.c (Fuser_name_completion_1):
11213         * dired.c (Fuser_name_all_completions):
11214         * dired.c (free_user_cache):
11215         * dired.c (user_name_completion):
11216         * console-x.c (get_display_arg_connection):
11217         * minibuf.c (clear_echo_area_internal):
11218         * minibuf.c (echo_area_append):
11219         * eldap.c (Fldap_open):
11220         * eldap.c (Fldap_search_internal):
11221         * frame-x.c (x_set_frame_text_value):
11222         * frame-x.c (x_set_frame_properties):
11223         * frame-x.c (x_create_widgets):
11224         * redisplay-tty.c (term_get_fkeys_1):
11225         * objects-x.c (x_parse_nearest_color):
11226         * objects-x.c (x_valid_color_name_p):
11227         * objects-x.c (x_initialize_font_instance):
11228         * objects-x.c (x_list_fonts):
11229         * objects-x.c (x_find_charset_font):
11230         * tooltalk.c (Fadd_tooltalk_message_arg):
11231         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
11232         * tooltalk.c (Fadd_tooltalk_pattern_arg):
11233         * process-unix.c (unix_create_process):
11234         * ntproc.c (sys_spawnve):
11235         * sound.c (Fplay_sound_file):
11236         * sound.c (Fplay_sound):
11237         * buffer.c (init_initial_directory):
11238         * buffer.c (init_buffer):
11239         * editfns.c (init_editfns):
11240         * editfns.c (Ftemp_directory):
11241         * editfns.c (Fuser_full_name):
11242         * editfns.c (uncache_home_directory):
11243         * editfns.c (get_home_directory):
11244         * editfns.c (Fuser_home_directory):
11245         * editfns.c (Fformat_time_string):
11246         * editfns.c (Fcurrent_time_string):
11247         * gui-x.c (button_item_to_widget_value):
11248         * database.c (Fopen_database):
11249         * event-Xt.c (x_to_emacs_keysym):
11250         * event-Xt.c (x_event_to_emacs_event):
11251         * event-Xt.c (describe_event_window):
11252         * event-msw.c (mswindows_wnd_proc):
11253         * glyphs-eimage.c (jpeg_instantiate):
11254         * glyphs-eimage.c (gif_instantiate):
11255         * glyphs-eimage.c (png_instantiate):
11256         * glyphs-eimage.c (tiff_instantiate):
11257         * glyphs-x.c (xbm_instantiate_1):
11258         * glyphs-x.c (x_xbm_instantiate):
11259         * glyphs-x.c (x_xface_instantiate):
11260         * glyphs-x.c (autodetect_instantiate):
11261         * glyphs-x.c (cursor_font_instantiate):
11262         * glyphs-x.c (x_widget_instantiate):
11263         * glyphs-x.c (x_widget_set_property):
11264         * glyphs-x.c (x_widget_property):
11265         * glyphs-x.c (BUILD_GLYPH_INST):
11266         * print.c (write_string_to_stdio_stream):
11267         * print.c (output_string):
11268         * print.c (Falternate_debugging_output):
11269         * print.c (Fexternal_debugging_output):
11270         * glyphs-msw.c (extract_xpm_color_names):
11271         * glyphs-msw.c (mswindows_xpm_instantiate):
11272         * glyphs-msw.c (bmp_instantiate):
11273         * glyphs-msw.c (resource_name_to_resource):
11274         * glyphs-msw.c (mswindows_resource_instantiate):
11275         * glyphs-msw.c (xbm_instantiate_1):
11276         * glyphs-msw.c (mswindows_xbm_instantiate):
11277         * glyphs-msw.c (mswindows_xface_instantiate):
11278         * glyphs-msw.c (mswindows_widget_instantiate):
11279         * glyphs-msw.c (add_tree_item):
11280         * glyphs-msw.c (add_tab_item):
11281         * glyphs-msw.c (mswindows_combo_box_instantiate):
11282         * glyphs-msw.c (mswindows_widget_property):
11283         * glyphs-msw.c (mswindows_combo_box_property):
11284         * glyphs-msw.c (mswindows_widget_set_property):
11285         * console.c (stuff_buffered_input):
11286         * objects-msw.c (mswindows_initialize_color_instance):
11287         * objects-msw.c (mswindows_valid_color_name_p):
11288         * objects-msw.c (mswindows_list_fonts):
11289         * objects-msw.c (mswindows_font_instance_truename):
11290         * bytecode.c (optimize_compiled_function):
11291         * select-x.c (symbol_to_x_atom):
11292         * select-x.c (x_atom_to_symbol):
11293         * select-x.c (hack_motif_clipboard_selection):
11294         * select-x.c (selection_data_to_lisp_data):
11295         * select-x.c (lisp_data_to_selection_data):
11296         * select-x.c (Fx_get_cutbuffer_internal):
11297         * select-x.c (Fx_store_cutbuffer_internal):
11298         * buffer.h (TO_EXTERNAL_FORMAT): New function.
11299         * buffer.h (TO_INTERNAL_FORMAT): New function.
11300         * emacs.c (make_arg_list_1):
11301         * emacs.c (make_argc_argv):
11302         * emacs.c (main_1):
11303         * emacs.c (Fdump_emacs):
11304         * emacs.c (split_string_by_emchar_1):
11305         * file-coding.h:
11306         * lisp.h:
11307         * lstream.h:
11308         * symsinit.h:
11309         * device-x.c (x_init_device):
11310         * device-x.c (Fx_valid_keysym_name_p):
11311         * device-x.c (Fx_get_font_path):
11312         * device-x.c (Fx_set_font_path):
11313         * glyphs.c (bitmap_to_lisp_data):
11314         * glyphs.c (pixmap_to_lisp_data):
11315         * alloc.c (make_ext_string): Use coding system arguments.  Update
11316         all callers.
11317         * alloc.c (build_string):
11318         * callproc.c (child_setup):
11319         * callproc.c (init_callproc):
11320         * fileio.c (lisp_strerror):
11321         * fileio.c (directory_file_name):
11322         * fileio.c (Fexpand_file_name):
11323         * fileio.c (Ffile_truename):
11324         * fileio.c (Fsysnetunam):
11325         * fileio.c (Fdo_auto_save):
11326         * sysdep.c (sys_readdir):
11327         * tests.c: New file.  Allow adding C tests.
11328         Replace GET_* macros with a more comprehensible and flexible
11329         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
11330         Modify all calls.
11331         Any coding system can be used to do format conversion.
11332         Eliminate enum external_data_format.
11333         Eliminate convert_to_external_format.
11334         Eliminate convert_to_internal_format.
11335         Make sure file-name, keyboard, terminal, and ctext are always
11336         defined as coding systems or aliases.  Make
11337         file-name-coding-system, terminal-coding-system, and
11338         keyboard-coding-system magical variables that are equivalent to
11339         defining the corresponding coding system aliases.
11340
11341         * file-coding.c (Fcoding_system_canonical_name_p): New function.
11342         * file-coding.c (Fcoding_system_alias_p): New function.
11343         * file-coding.c (Fcoding_system_aliasee): New function.
11344         * file-coding.c (append_suffix_to_symbol): New function.
11345         * file-coding.c (dangling_coding_system_alias_p): New function.
11346         * file-coding.c (Ffind_coding_system):
11347         * file-coding.c (Fcopy_coding_system):
11348         * file-coding.c (encode_coding_no_conversion):
11349         * file-coding.c (syms_of_file_coding):
11350         * file-coding.c (vars_of_file_coding):
11351         Rewrite coding system alias code.
11352         Allow nested aliases, like symbolic links.
11353         Allow redefinition of coding system aliases.
11354         Prevent existence of dangling coding system aliases.
11355
11356         * dired.c (Fuser_name_completion_1):
11357         * dired.c (Fuser_name_all_completions):
11358         A crash would happen if user did QUIT in the middle of building
11359         user_name_cache.  Remove redundant code in mainline and unwind_protect.
11360
11361         * lisp.h:
11362         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
11363
11364         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
11365         an unsigned char *.  Update all callers.
11366
11367 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11368
11369         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
11370
11371 2000-01-25  Martin Buchholz  <martin@xemacs.org>
11372
11373         * elhash.c (hentry_description): Use more portable definition.
11374         (resize_hash_table): Initialize new hentries using
11375         xnew_array_and_zero, thereby simplifying the code.
11376
11377         * mule-charset.c (make_charset): Make sure entire object is
11378         initialized, to avoid Purify warnings.
11379
11380         * alloc.c (resize_string): Fix unlikely crash with big strings.
11381
11382 2000-01-24  Martin Buchholz  <martin@xemacs.org>
11383
11384         * realpath.c (xrealpath):
11385         Don't call getwd().
11386
11387 2000-01-25  Martin Buchholz  <martin@xemacs.org>
11388
11389         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
11390
11391 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
11392
11393         * unexelfsgi.c (unexec): Change the way we decide which segment
11394         should be extended.
11395
11396         Assumption that .bss section should be outside the PT_LOADable
11397         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
11398         it's present) is inside the 'data' segment. This would fail the
11399         test which was used to find a segment to grow and cover new
11400         heap. Instead of this assumption, I created another one - on IRIX
11401         the segment to grow should start below .bss and it's address
11402         should extent above the end of .bss. Once this segment is
11403         identified, it's grown to accommodate the new heap and new
11404         zero-length .bss section is added at the end of .data2.
11405
11406 2000-01-25  Martin Buchholz  <martin@xemacs.org>
11407
11408         * eval.c (Feval): Wrong number of arguments should use original
11409         function, not the indirect_function version of it.
11410
11411 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
11412
11413         * glyphs-x.c (x_button_instantiate): Don't add image if
11414         it is not a pixmap.
11415         (x_locate_pixmap_file): Call Fexpand_file_name when file name
11416         is relative.
11417
11418 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
11419
11420         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
11421         declaration.
11422         (DEFVAR_INT_MAGIC): Ditto.
11423         (DEFVAR_BOOL_MAGIC): Ditto.
11424         * glyphs.h: Reindent backslash.
11425
11426 2000-01-24  Martin Buchholz  <martin@xemacs.org>
11427
11428         * glyphs-widget.c (layout_query_geometry):
11429         (layout_layout): Use correct types for gheight, gwidth.
11430
11431 2000-01-24  Martin Buchholz  <martin@xemacs.org>
11432
11433         * EmacsManager.c (QueryGeometry): Purified.
11434
11435 2000-01-23  Martin Buchholz  <martin@xemacs.org>
11436
11437         * alloc.c (make_float): Make sure entire object is initialized, to
11438         avoid Purify warnings.
11439         (pdump_register_sub): Remove useless assignment.
11440         (pdump): Use xmalloc, not malloc.
11441         (pdump_load): Use xmalloc, not malloc.
11442
11443 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11444
11445         * callproc.c:
11446         * dired-msw.c:
11447         * fileio.c:
11448         * process-nt.c:
11449         * redisplay-msw.c:
11450         * sysdep.c: Removed redundant #include <windows.h>
11451
11452 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11453
11454         * frame.c (delete_frame_internal): Do not delete device when its
11455         implementation so declares.
11456         (delete_frame_internal): Set device selected frame to nil when
11457         last frame goes away.
11458
11459         * device-msw.c (msprinter_device_system_metrics): Implemented.
11460         (mswindows_device_system_metrics): Added 'device-dpi property.
11461
11462         * device.c: (Fdevice_printer_p): Added.
11463         Added 'offset-workspace device metric.
11464
11465         * console.h (device_metrics): Declared DM_offset_workspace.
11466
11467 2000-01-23  Martin Buchholz  <martin@xemacs.org>
11468
11469         * fileio.c (Ffile_truename): Remove pointless and confusing
11470         initialization of elen.
11471
11472         * glyphs-widget.c: Compiler warning fixes.
11473
11474 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
11475
11476         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
11477         instead of a Lisp_Object as argument to make it consistent with
11478         the other LIVE_P macros.
11479         (CHECK_LIVE_PROCESS): New macro.
11480
11481         * process.c: Declare Qprocess_live_p.
11482         (Fprocess_live_p): New function.
11483         (create_process): Use PROCESS_LIVE_P.
11484         (read_process_output): Ditto.
11485         (set_process_filter): Ditto.
11486         (Fdelete_process): Ditto.
11487         (kill_buffer_processes): Ditto
11488         (process_send_signal): Use CHECK_LIVE_PROCESS.
11489         (Fprocess_input_coding_system): Check whether process is still
11490         alive (fix PR#1061).
11491         (Fprocess_output_coding_system): Ditto.
11492         (Fprocess_coding_system): Ditto.
11493         (Fset_process_input_coding_system): Ditto.
11494         (Fset_process_output_coding_system): Ditto.
11495
11496 2000-01-23  Andy Piper  <andy@xemacs.org>
11497
11498         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
11499         layout and widget.
11500
11501         * glyphs.c (mark_image_instance): take into account changed
11502         image_instance format.
11503         (image_instance_equal): ditto.
11504         (image_instance_hash): ditto.
11505
11506         * glyphs-widget.c (widget_instantiate): Incorporate layout
11507         instantiation here. Delay layout of the layout until later.
11508         (layout_instantiate): deleted.
11509         (layout_query_geometry): new function. get the geometry of a
11510         layout.
11511         (layout_layout): layout a layout dynamically.
11512         (image_instantiator_widget): New function - splitting up
11513         image_instantiator_format_create_glyphs_widget for netwinder
11514         compilation.
11515         (image_instantiator_buttons):
11516         (image_instantiator_edit_fields):
11517         (image_instantiator_combo_box):
11518         (image_instantiator_scrollbar):
11519         (image_instantiator_progress_guage):
11520         (image_instantiator_tree_view):
11521         (image_instantiator_tab_control):
11522         (image_instantiator_labels):
11523         (image_instantiator_layout): ditto.
11524         (image_instantiator_format_create_glyphs_widget): Call preceding
11525         functions.
11526
11527 2000-01-22  Martin Buchholz  <martin@xemacs.org>
11528
11529         * process.c (Fset_process_coding_system):
11530         * device-x.c (Fx_keysym_hash_table):
11531         Docstring fixes.
11532
11533         * lstream.c (Lstream_write): Return documented value, not 0.
11534
11535         * fileio.c (directory_file_name):
11536         (Fsubstitute_in_file_name):
11537         (Fsubstitute_insert_file_contents_internal):
11538         (Fwrite_region_internal):
11539         * emacs.c:
11540         * sysdep.c:
11541         * getloadavg.c:
11542         * systty.h:
11543         Remove vestigial APOLLO-conditional code.
11544
11545 2000-01-21  Martin Buchholz  <martin@xemacs.org>
11546
11547         * getpagesize.h: Add guard macros.
11548         * libsst.h: Add guard macros.
11549         * libst.h: Add guard macros.
11550         * line-number.h: Add guard macros.
11551         * ndir.h: Add guard macros.
11552         * sysfloat.h: Add guard macros.
11553         * sysfile.h: Add guard macros.
11554         * sysproc.h: Add guard macros.
11555         * syswait.h: Add guard macros.
11556         * xintrinsic.h: Add guard macros.
11557         * xintrinsicp.h: Add guard macros.
11558         * xmmanager.h: Add guard macros.
11559         * xmmanagerp.h: Add guard macros.
11560         * xmprimitive.h: Add guard macros.
11561         * xmu.h: Add guard macros.
11562         * gpmevent.h: Add copyright statement. Add guard macros.
11563         * miscplay.h: Add guard macros.
11564         * *.h: Use consistent C-standards-approved guard macro names.
11565
11566         * opaque.c (make_opaque): Switch parameter order.
11567         * opaque.h (make_opaque): Switch parameter order.
11568         Update all callers.
11569         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
11570
11571         * config.h.in (type_checking_assert): Added.
11572         (bufpos_checking_assert): Added.
11573
11574 2000-01-21  Martin Buchholz  <martin@xemacs.org>
11575
11576         * alloc.c: Harmless pdump changes.
11577         - Use countof().
11578         - spell alignment correctly.
11579         * sysdep.c: Use countof()
11580
11581 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11582
11583         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
11584         initially_selected_for_input() console method, default to 0.
11585         (semi_canonicalize_console_connection): Try to delegate to
11586         canonicalize_console_connection if no such console method.
11587         (canonicalize_console_connection): Vice versa.
11588         (print_console): Do not print nil connection.
11589
11590         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
11591         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
11592         (XDEVIMPF_FRAMELESS_OK): Added.
11593         (CONSOLE_INHERITS_METHOD): Added.
11594
11595         * console-msw.c (mswindows_canonicalize_console_connection):
11596         Added.
11597         (mswindows_canonicalize_device_connection): Added.
11598
11599         * console-msw.h (struct msprinter_device): Added this struct and
11600         accessor macros.
11601         (mswindows_device): Made fontlist a lisp object.
11602
11603         * device.c (semi_canonicalize_device_connection):  Try to delegate
11604         to canonicalize_device_connection if no such console method.
11605         (canonicalize_device_connection): Vice versa.
11606         (print_device): Do not print nil connection.
11607
11608         * device-msw.c (mswindows_init_device): Call InitCommonControls
11609         when have widgets.
11610         (mswindows_delete_device): Removed fontlist deallocation.
11611         (mswindows_mark_device): Added.
11612
11613         * events.c (event_equal): Added abort() at unreached code.
11614         (event_hash): Ditto.
11615
11616         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
11617         fallback tags of Windows devices.
11618
11619         * general.c (syms_of_general): Initialized Qmsprinter.
11620
11621         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
11622         of fallback tags of Windows devices.
11623
11624         * lisp.h: Declared Qmsprinter.
11625
11626         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
11627         of strings.
11628         (mswindows_list_fonts): Ditto.
11629         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
11630         that it can be used by both mswindows and msprinter devices.
11631         (initialize_font_instance): Added.
11632         (mswindows_initialize_font_instance): Use it.
11633         (msprinter_initialize_font_instance): Added.
11634
11635         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
11636         and implementation flags check.
11637         (redisplay_without_hooks): Changed the call to the above.
11638         (Fredraw_device): Ditto.
11639         (Fredisplay_device): Ditto.
11640
11641         * redisplay-msw.c (get_frame_dc): Implemented.
11642         (get_frame_compdc): Implemented.
11643         (many functions): Use the two functions above to get device
11644         contexts, ether for a window or a printer.
11645
11646 2000-01-21  Olivier Galibert  <galibert@pobox.com>
11647
11648         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
11649         initialization here.
11650         (init_symbols_once_early): Call it.
11651         * emacs.c (main_1): Call it.
11652         * symsinit.h: Declare it.
11653
11654 2000-01-19  Olivier Galibert  <galibert@pobox.com>
11655
11656         * alloc.c: Use a lrecord_header * in the backtrace instead of a
11657         Lisp_Object.
11658         (pdump_backtrace): Ditto.
11659         (pdump_register_object): Ditto.  Cleanup use of the pointers.
11660         (pdump_get_entry): Abort if trying to register a null pointer.
11661         (pdump_dump_data): Cleanup types when relocating.
11662         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
11663         (pdump_dump_rtables): Remove bad casts.
11664         (pdump_load): Cleanup relocation w.r.t union type.  Use a
11665         Lisp_Object instead of a EMACS_INT for the hashtable
11666         reorganization.
11667
11668 2000-01-20  Martin Buchholz  <martin@xemacs.org>
11669
11670         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
11671
11672         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
11673
11674         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
11675
11676         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
11677
11678 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11679
11680         * faces.h (FACE_STRIKETHRU_P): Added.
11681
11682         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
11683         of font variants.
11684
11685         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
11686         (mswindows_set_dc_font): New function, aware of font variants,
11687         separated from mswindows_update_dc.
11688
11689         * objects-msw.h (struct mswindows_font_instance_data): Added
11690         definition.
11691
11692         * objects-msw.c (mswindows_finalize_font_instance): Delete all
11693         cached fonts and the data structure.
11694         (mswindows_initialize_font_instance): Added creation of font data
11695         structure.
11696         (mswindows_print_font_instance): Print at least something.
11697         (mswindows_create_font_variant): Implemented.
11698         (mswindows_get_hfont): Implemented.
11699
11700 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
11701
11702         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
11703         prototyping problem with msvc.
11704
11705         * emacs.c (main_1): added syms_of_gui_mswindows() call
11706
11707         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
11708         syms_of_gui_mswindows() function
11709
11710         * symsinit.h: added the prototype for syms_of_gui_mswindows()
11711
11712 2000-01-18  Martin Buchholz <martin@xemacs.org>
11713
11714         * XEmacs 21.2.27 is released.
11715
11716 2000-01-18  Martin Buchholz  <martin@xemacs.org>
11717
11718         * glyphs-eimage.c (struct tiff_error_struct):
11719         (tiff_error_func):
11720         (tiff_warning_func):
11721         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
11722
11723         * unexmips.c:
11724         * unexhp9k3.c:
11725         * unexfreebsd.c:
11726         * unexec.c: Remove vestigial Lucid C code.
11727         * unexalpha.c:
11728         * unexaix.c:
11729         * termcap.c:
11730         * libsst.c: Ansify.
11731         Remove declarations of errno and strerror().
11732
11733         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
11734
11735         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
11736
11737 2000-01-16  Martin Buchholz  <martin@xemacs.org>
11738
11739         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
11740         Optimize.
11741
11742 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11743
11744         * md5.c:
11745         * file-coding.c:
11746         * file-coding.h:
11747         Change enum eol_type to eol_type_t.
11748
11749 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11750
11751         * gui.c (get_gui_callback): Check cons before accessing car.
11752
11753 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11754
11755         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
11756         (XSETSPECIFIER_TYPE): Ditto.
11757
11758 2000-01-17  Didier Verna  <didier@xemacs.org>
11759
11760         * redisplay.c (generate_fstring_runes): compute string size in
11761         characters, not bytes.
11762
11763 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
11764
11765         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
11766
11767 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
11768
11769         * print.c (print_error_message): Call print_prepare().
11770
11771 2000-01-14  Martin Buchholz  <martin@xemacs.org>
11772
11773         * .dbxrc: Renamed from dbxrc.
11774
11775         * events.c (event_to_character):
11776         Use `assert (foo)' instead of `if (!foo) abort()'
11777
11778         * .gdbinit (xtype): Add documentation.
11779         * .gdbinit (check-temacs): New function.
11780         * .gdbinit (check-xemacs): New function.
11781         * dbxrc (check-xemacs): New function.
11782         * dbxrc (check-xemacs): New function.
11783
11784 2000-01-14  Andy Piper  <andy@xemacs.org>
11785
11786         * glyphs-widget.c (widget_query_geometry): Make sure that we
11787         calculate default dimensions correctly.
11788
11789 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11790
11791         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
11792
11793         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
11794         pdump_wire'd variable.
11795
11796         * emacs.c: (main_1): Conditionalized calls to
11797         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
11798
11799 2000-01-13  Martin Buchholz  <martin@xemacs.org>
11800
11801         * window.c (Fset_window_configuration):
11802         * sysdep.c (_start):
11803         * input-method-motif.c (res):
11804         * event-Xt.c (Xt_process_to_emacs_event):
11805         Simple compiler warning fixes.
11806
11807         * bytecode.c (funcall_compiled_function): Use the original
11808         function symbol on the backtrace list in preference to the
11809         compiled_function object in error messages.
11810
11811 2000-01-13  Andy Piper  <andy@xemacs.org>
11812
11813         * glyphs-x.c (update_widget_face): Make sure we update the widget
11814         background as well as foreground.
11815
11816 2000-01-13  Andy Piper  <andy@xemacs.org>
11817
11818         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
11819         fields to subwindow.
11820         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
11821         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
11822         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
11823         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
11824
11825         * glyphs-widget.c (check_valid_tab_orientation): new function.
11826         (initialize_widget_image_instance): zero orientation and
11827         justification.
11828         (widget_instantiate): pick up orientation.
11829         (tab_control_query_geometry): return appropriate values for
11830         vertical tabs.
11831
11832         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
11833         appropriate creation flags for left, right and bottom tabs.
11834
11835         * s/cygwin32.h: add tab definitions.
11836
11837 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11838
11839         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
11840         frame upon hiding a subwindow.
11841         (mswindows_button_instantiate): Changed the push button style to
11842         BS_PUSHBUTTON.
11843         (mswindows_button_instantiate): Removed button BS_NOTIFY
11844         style.
11845         (mswindows_button_instantiate): Removed redundant check for
11846         a disabled gui item.
11847         (mswindows_button_instantiate): Made use of WS_TABSTOP
11848         consistent: "operable" controls (edit, button, tree, scroll) have
11849         this style, "display-only" ones (static, progress gauge) do
11850         not. This style is currently ignored by XEmacs though. Also,
11851         removed the WS_EX_CONTROLPARENT style - it is not for children,
11852         it is for their parents!
11853         (mswindows_edit_field_instantiate): Ditto.
11854         (mswindows_progress_gauge_instantiate): Ditto.
11855         (mswindows_tree_view_instantiate): Ditto.
11856         (mswindows_tab_control_instantiate): Ditto.
11857         (mswindows_scrollbar_instantiate): Ditto.
11858         (mswindows_combo_box_instantiate): Ditto.
11859         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
11860         style to the "clip" window.
11861         (mswindows_button_instantiate): Removed compilation warning by
11862         equally typing terms of the ?: operator.
11863
11864 2000-01-12  Didier Verna  <didier@xemacs.org>
11865
11866         * redisplay.c (generate_fstring_runes): new parameter holding the
11867         last modeline-format extent.
11868         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
11869         extent, fill the glyph block with it.
11870         (generate_fstring_runes): handle these parameters.
11871         (generate_formatted_string_db): ditto.
11872
11873         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
11874         glyphs'extents in the modeline.
11875
11876 1999-01-11  Mike Woolley  <mike@bulsara.com>
11877
11878         * ntheap.c: Reduced the reserved heap space from 1Gb down to
11879         256Mb, as a workaround for the non-starting problem many people
11880         have experienced.
11881
11882 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11883
11884         * console-tty.c (Fset_console_tty_output_coding_system):
11885         Force redrawing tty frame.
11886
11887 2000-01-10  Didier Verna  <didier@xemacs.org>
11888
11889         * redisplay.c (generate_fstring_runes): fix size computation bug.
11890
11891 2000-01-09  William M. Perry <wmperry@aventail.com>
11892
11893         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
11894
11895 2000-01-09  Andy Piper  <andy@xemacs.org>
11896
11897         * glyphs-msw.c: index -> i to avoid shadows.
11898         (xbm_create_bitmap_from_data): make static.
11899         (check_valid_string_or_int): deleted.
11900         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
11901
11902         * glyphs-x.c (x_update_subwindow): remove unused args.
11903
11904         * glyphs.c (glyph_image_instance): return the thing. Don't set the
11905         back pointer - this is done in allocate_image_instance.
11906         (query_string_font): return Qnil to make the compiler happy.
11907         (unmap_subwindow): set to ~0 to make the compiler happy.
11908         (glyph_query_geometry): comment out until used.
11909         (glyph_layout): ditto.
11910
11911 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
11912
11913         * insdel.c (signal_after_change): Remove extraneous unbind_to().