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