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