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