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