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