update.
[chise/xemacs-chise.git] / src / ChangeLog
1 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
4
5         * char-ucs.h: Use <short> for <Charset_ID>.
6
7         * mule-charset.h, char-1byte.h: Use <unsigned char> for
8         <Charset_ID>.
9
10 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
11
12         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
13         to 0.16.
14
15 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
16
17         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
18         variable.
19         (Qmorohashi_daikanwa): New variable.
20         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
21         for `morohashi-daikanwa' attribute.
22         (Fget_char_attribute): Likewise.
23         (Fput_char_attribute): Likewise.
24         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
25         has the same value of `ideograph-daikanwa'.
26         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
27         (vars_of_mule_charset): Setup
28         `Vcharacter_morohashi_daikanwa_table'.
29
30 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
31
32         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
33         attributes.
34         (add_charset_to_list_mapper): Add `key' instead of
35         `XCHARSET_NAME (value)' to return aliases.
36
37 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
38
39         * mule-charset.c (Vcharacter_ideographic_radical_table): New
40         variable.
41         (Vcharacter_ideographic_strokes_table): New variable.
42         (Qideographic_radical): New variable.
43         (Qideographic_strokes): New variable.
44         (Fchar_attribute_alist): Use
45         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
46         attribute; use `Vcharacter_ideographic_strokes_table' for
47         `ideographic-strokes' attribute.
48         (Fget_char_attribute): Likewise.
49         (Fput_char_attribute): Likewise.
50         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
51         `ideographic-strokes'.
52         (vars_of_mule_charset): Setup
53         `Vcharacter_ideographic_radical_table' and
54         `Vcharacter_ideographic_strokes_table'.
55
56 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
57
58         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
59         (Qtotal_strokes): New variable.
60         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
61         `total-strokes' attribute.
62         (Fget_char_attribute): Likewise.
63         (Fput_char_attribute): Likewise.
64         (syms_of_mule_charset): Add new symbol `total-strokes'.
65         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
66
67 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
68
69         * mule-charset.c (Vcharacter_decomposition_table): New variable.
70         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
71         are found.
72         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
73         `->decomposition' attribute.
74         (Fput_char_attribute): Likewise.
75         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
76
77 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
78
79         * mule-charset.c (decoding_table_check_elements): New function.
80         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
81
82 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
83
84         * mule-charset.c (Fset_charset_mapping_table): Use
85         `put_char_ccs_code_point'.
86
87 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
88
89         * mule-charset.c (decoding_table_put_char): New inline function.
90         (put_char_ccs_code_point): Use `decoding_table_put_char'.
91
92 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
93
94         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
95         (XCHARSET_BYTE_SIZE): New macro.
96         (decoding_table_remove_char): New inline function.
97         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
98         `decoding_table_remove_char'.
99         (remove_char_ccs): Use `decoding_table_remove_char'.
100         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
101
102 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
103
104         * mule-charset.c (Vcharacter_name_table): New variable.
105         (Qname): New variable.
106         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
107         attribute.
108         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
109         `Vcharacter_name_table' for `name' attribute.
110         (Fremove_char_attribute): Use function `remove_char_ccs'.
111         (put_char_ccs_code_point): New function.
112         (remove_char_ccs): New function.
113         (syms_of_mule_charset): Add new symbol `name'.
114         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
115
116 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
117
118         * mule-charset.c (make_byte_table): Add new argument `older'.
119         (make_char_id_table): Likewise.
120         (copy_char_id_table): Comment out because it is not used.
121         (put_char_id_table): Modify for `make_byte_table'.
122         (Fput_char_attribute): Make encoding_table as older object;
123         inherit older bit of `Vcharacter_composition_table'.
124         (mark_charset): Don't mark `cs->encoding_table'.
125         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
126         normal object; make `Vcharacter_composition_table' as an older
127         object; delete staticpro for `Vcharacter_composition_table'; make
128         `Vcharacter_variant_table' as a normal object.
129
130         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
131         (mark_object): Don't check older object in UTF-2000.
132
133         * lrecord.h (struct lrecord_header): Add new member `older' in
134         UTF-2000.
135         (set_lheader_implementation): Setup `SLI_header->older' in
136         UTF-2000.
137         (set_lheader_older_implementation): New macro in UTF-2000.
138         (OLDER_RECORD_P): New macro in UTF-2000.
139         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
140         (alloc_older_lcrecord): New prototype in UTF-2000.
141         (alloc_older_lcrecord_type): New macro in UTF-2000.
142
143 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
144
145         * mule-charset.c (byte_table_description): Use
146         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
147         (char_id_table_description): Delete bogus `, 1'.
148         (Fget_char_attribute): Refer encoding_table of each coded-charset
149         to get value of coded-charset attribute of a character.
150         (Fput_char_attribute): Use `make_older_vector' instead of
151         `make_vector'; use encoding_table of each coded-charset to store
152         value of coded-charset attribute of a character.
153         (Fremove_char_attribute): Use encoding_table of each coded-charset
154         to store value of coded-charset attribute of a character.
155         (mark_charset): Mark `cs->encoding_table'; don't mark
156         `cs->decoding_table'.
157         (charset_description): Add description of new member
158         `encoding_table'.
159         (make_charset): Initialize `encoding_table'.
160
161         * char-ucs.h (struct Lisp_Charset): Add new member
162         `encoding_table'.
163         (CHARSET_ENCODING_TABLE): New macro.
164         (XCHARSET_ENCODING_TABLE): New macro.
165         (charset_code_point): New implementation.
166         (encode_char_1): Likewise.
167
168         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
169         (disksave_object_finalization_1): Call finalizers of
170         `all_older_lcrecords' in UTF-2000.
171         (make_older_vector): New function in UTF-2000.
172         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
173         UTF-2000.
174
175         * lisp.h (make_older_vector): New prototype in UTF-2000.
176
177 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
178
179         * lrecord.h (enum lrecord_type): Rename
180         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
181
182         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
183         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
184         `get_char_code_table'.
185
186         * mule-charset.c (mark_char_id_table): Renamed from
187         `mark_char_code_table'.
188         (char_id_table_equal): Renamed from `char_code_table_equal'.
189         (char_id_table_hash): Renamed from `char_code_table_hash'.
190         (make_char_id_table): Renamed from `make_char_code_table'.
191         (copy_char_id_table): Renamed from `copy_char_code_table'.
192         (get_char_id_table): Renamed from `get_char_code_table'.
193         (put_char_id_table): Renamed from `put_char_code_table'.
194         (to_char_id): Renamed from `to_char_code'.
195
196         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
197         `Lisp_Char_Code_Table'.
198         (char_id_table): Renamed from `char_code_table'.
199         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
200         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
201         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
202         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
203         (get_char_id_table): Renamed from `get_char_code_table'.
204
205 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
206
207         * lrecord.h (enum lrecord_type): Rename
208         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
209
210         * mule-charset.c (mark_byte_table): Renamed from
211         `mark_char_byte_table'.
212         (byte_table_equal): Renamed from `char_byte_table_equal'.
213         (byte_table_hash): Renamed from `byte_table_hash'.
214         (make_byte_table): Renamed from `make_byte_table'.
215         (copy_byte_table): Renamed from `copy_char_byte_table'.
216
217         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
218         `Lisp_Char_Byte_Table'.
219         (byte_table): Renamed from `char_byte_table'.
220         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
221         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
222         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
223         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
224
225 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
226
227         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
228         (dfc_convert_to_internal_format): Likewise.
229         
230         * text-coding.c (Fcoding_system_canonical_name_p): New function.
231         * text-coding.c (Fcoding_system_alias_p): New function.
232         * text-coding.c (Fcoding_system_aliasee): New function.
233         * text-coding.c (append_suffix_to_symbol): New function.
234         * text-coding.c (dangling_coding_system_alias_p): New function.
235         * text-coding.c (Ffind_coding_system):
236         * text-coding.c (Fcopy_coding_system):
237         * text-coding.c (encode_coding_no_conversion):
238         * text-coding.c (syms_of_file_coding):
239         * text-coding.c (vars_of_file_coding):
240         Rewrite coding system alias code.
241         Allow nested aliases, like symbolic links.
242         Allow redefinition of coding system aliases.
243         Prevent existence of dangling coding system aliases.
244         Eliminate convert_to_external_format.
245         Eliminate convert_to_internal_format.
246         
247         * text-coding.c: Change enum eol_type to eol_type_t.
248
249 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
250
251         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
252         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
253
254         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
255         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
256
257 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
258
259         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
260         `ideograph-daikanwa'.
261
262         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
263         (Vcharset_ucs_bmp): Likewise.
264         (Vcharset_mojikyo): Add new extern variable definition.
265         (Vcharset_latin_iso8859_2): Deleted because it is not used.
266         (Vcharset_latin_iso8859_3): Likewise.
267         (Vcharset_latin_iso8859_4): Likewise.
268         (Vcharset_latin_iso8859_9): Likewise.
269         (Vcharset_latin_viscii_lower): Likewise.
270         (Vcharset_latin_viscii_upper): Likewise.
271         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
272         `mojikyo' code-point is used to decode.
273         (encode_char_2): New function [to convert `mojikyo' code-point to
274         Mojikyo font encoding].
275         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
276         (breakup_char_1): Likewise.
277         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
278
279 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
280
281         * text-coding.c (Fmake_coding_system): Add document about
282         `disable-composition' property.
283
284 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
285
286         * text-coding.c (Qdisable_composition): New variable; delete
287         `Qcomposite'.
288         (Fmake_coding_system): Add new property `disable-composite';
289         delete property `composite'.
290         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
291         instead of `!CODING_SYSTEM_COMPOSITE'.
292         (syms_of_file_coding): Add new symbol `disable-composition';
293         delete symbol `composite'.
294
295         * file-coding.h (struct Lisp_Coding_System): Add
296         `disable_composition'; delete `enable_composition'.
297         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
298         `CODING_SYSTEM_COMPOSITE'.
299         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
300         `XCODING_SYSTEM_COMPOSITE'.
301
302 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
303
304         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
305         to 0.15.
306
307 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
308
309         * text-coding.c (Qcomposite): New variable.
310         (Fmake_coding_system): Add new property `composite'.
311         (struct decoding_stream): Add `combined_char_count',
312         `combined_chars' and `combining_table' in UTF-2000.
313         (COMPOSE_FLUSH_CHARS): New macro.
314         (COMPOSE_ADD_CHAR): New macro.
315         (reset_decoding_stream): Reset `str->combined_char_count' and
316         `str->combining_table' in UTF-2000.
317         (decode_coding_iso2022): Modify for character-decomposition.
318         (syms_of_file_coding): Add new symbol `composite'.
319
320 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
321
322         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
323         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
324         of `Vcharacter_composition_table' if `->decomposition' property
325         has only 1 element.
326         (Qlatin_tcvn5712): New variable.
327         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
328         (complex_vars_of_mule_charset): Add new coded-charset
329         `latin-tcvn5712'.
330
331         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
332
333 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
334
335         * file-coding.h (struct Lisp_Coding_System): Add
336         `enable_composition'.
337         (CODING_SYSTEM_COMPOSITE): New macro.
338         (XCODING_SYSTEM_COMPOSITE): New macro.
339
340 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
341
342         * mule-canna.c (c2mu): Fix problem with UTF-2000.
343
344 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
345
346         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
347         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
348
349 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
350
351         * mule-charset.c (Vcharset_mojikyo): New variable.
352         (Fdefine_char): Don't use coded-charset which does not have
353         non-builtin character range to allocate character-id.
354         (Qmojikyo): New variable.
355         (syms_of_mule_charset): Add new symbol `mojikyo'.
356         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
357
358         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
359         (LEADING_BYTE_MOJIKYO): New macro.
360         (MIN_CHAR_MOJIKYO): New macro.
361         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
362         (MAX_CHAR_MOJIKYO): New macro.
363
364 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
365
366         * mule-charset.c (remove_char_attribute): Fixed.
367
368 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
369
370         * mule-charset.c (remove_char_attribute): New function.
371         (Fremove_char_attribute): New function.
372         (encode_builtin_char_1): Comment out builtin-support for
373         greek-iso8859-7 and cyrillic-iso8859-5.
374         (Fdecode_char): Check `code' is an integer.
375         (syms_of_mule_charset): Add `remove-char-attribute'.
376         (MIN_CHAR_GREEK): Deleted.
377         (MAX_CHAR_GREEK): Likewise.
378         (MIN_CHAR_CYRILLIC): Likewise.
379         (MAX_CHAR_CYRILLIC): Likewise.
380         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
381         MAX_CHAR_GREEK for `greek-iso8859-7'.
382
383         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
384         (MAX_CHAR_GREEK): Likewise.
385         (MIN_CHAR_CYRILLIC): Likewise.
386         (MAX_CHAR_CYRILLIC): Likewise.
387
388 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
389
390         * mule-charset.c (Fdefine_char): Fix problem when new code-point
391         format is used without `ucs' property.
392         (Fdecode_char): Fix problem with GR representation.
393         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
394         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
395
396 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
397
398         * mule-charset.c (make_builtin_char): New function.
399         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
400         (Fset_charset_mapping_table): Modify for new representation of
401         code-point.
402         (Fdecode_char): New function.
403         (syms_of_mule_charset): Add new builtin function `decode-char' in
404         UTF-2000.
405
406         * char-ucs.h (make_builtin_char): New prototype.
407         (DECODE_CHAR): New inline function.
408         (MAKE_CHAR): Use `DECODE_CHAR'.
409
410 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
411
412         * text-coding.c (parse_charset_conversion_specs): Use
413         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
414         `XCHARSET_TYPE'.
415         (iso2022_designate): Likewise.
416
417         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
418         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
419
420         * mule-charset.c (Vcharset_ucs): New variable.
421         (print_charset): Change design; use `CHARSET_CHARS' and
422         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
423         (make_charset): Change signature to specify `chars' and
424         `dimension' instead of `type'.
425         (range_charset_code_point): Modify for 256^n-set.
426         (encode_builtin_char_1): Encode as `ucs' in default.
427         (Fmake_charset): Modify for `make_charset'.
428         (Fmake_reverse_direction_charset): Likewise.
429         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
430         UTF-2000.
431         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
432         for `make_charset'.
433
434         * char-ucs.h (Vcharset_ucs): New variable.
435         (LEADING_BYTE_UCS): New macro.
436         (struct Lisp_Charset): Delete `type'; change type of `dimension'
437         and `chars' to `unsigned short' from `unsigned int'.
438         (CHARSET_TYPE): Deleted.
439         (XCHARSET_TYPE): Deleted.
440
441 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
442
443         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
444
445         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
446         (ENCODE_CHAR): New macro.
447
448 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
449
450         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
451         to 0.14 (Kawachi-Katakami).
452
453 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
454
455         * text-coding.c (char_encode_shift_jis): Modify for
456         `charset_code_point'.
457         (char_encode_iso2022): Likewise.
458
459         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
460         (integer) instead of list of <Lisp_Object>s (integers) as the
461         format of code-point of a coded-charset.
462         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
463         (encode_builtin_char_1): New function; delete
464         `split_builtin_char'.
465         (charset_code_point): Return <int> instead of <Lisp_Object>.
466         (Fsplit_char): Don't use `SPLIT_CHAR'.
467
468         * char-ucs.h (encode_builtin_char_1): New prototype; delete
469         prototype for `split_builtin_char'.
470         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
471         (charset_code_point): Likewise.
472         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
473         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
474
475 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
476
477         * mule-charset.c (complex_vars_of_mule_charset): Don't define
478         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
479
480 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
481
482         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
483
484         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
485         (MAX_CHAR_OBS_94x94): Deleted.
486
487 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
488
489         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
490
491         * char-ucs.h (MAX_CHAR_BMP): New macro.
492
493 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
494
495         * text-coding.c: Sync with r21-2-24.
496
497 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
498
499         * file-coding.c: Modify for UTF-2000.
500
501 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
502
503         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
504         to 0.13 (Takaida).
505
506 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
507
508         * mule-charset.c (split_builtin_char): Delete builtin support for
509         `katakana-jisx0201'.
510         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
511         BMP area in builtin representation.
512
513         * char-ucs.h (MAKE_CHAR): Delete builtin support for
514         `Vcharset_katakana_jisx0201'.
515
516 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
517
518         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
519         (Qisolated): New variable.
520         (Qinitial): New variable.
521         (Qmedial): New variable.
522         (Qfinal): New variable.
523         (Qvertical): New variable.
524         (Qsmall): New variable.
525         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
526         `Qvertical' and `Qsmall'.
527         (Qmojikyo_pj_[1 .. 21]): New variable.
528         (syms_of_mule_charset): Add new symbols `isolated', `initial',
529         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
530         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
531         .. 21]'.
532
533 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
534
535         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
536         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
537         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
538
539 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
540
541         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
542         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
543         BMP.
544         (Qjapanese_jisx0208_1990): New variable.
545         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
546         (complex_vars_of_mule_charset): Add new coded-charset
547         `japanese-jisx0208-1990'.
548
549         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
550         (MIN_CHAR_JIS_X0208_1990): New macro.
551         (MAX_CHAR_JIS_X0208_1990): New macro.
552
553 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
554
555         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
556         coded-charset is not found.
557
558 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
559
560         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
561         (Fdefine_char): Use `Fmake_char'.
562
563 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
564
565         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
566         (Vcharset_hiragana_jisx0208): Deleted.
567         (Vcharset_katakana_jisx0208): Deleted.
568         (Qideograph_daikanwa): New variable.
569         (Qhiragana_jisx0208): Deleted.
570         (Qkatakana_jisx0208): Deleted.
571         (split_builtin_char): Split `ideograph-daikanwa'.
572         (Fsplit_char): New implementation for UTF-2000.
573         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
574         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
575         (complex_vars_of_mule_charset): Add new coded-charset
576         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
577         `katakana-jisx0208'.
578
579         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
580         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
581         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
582         (MIN_CHAR_DAIKANWA): New macro.
583         (MAX_CHAR_DAIKANWA): New macro.
584
585 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
586
587         * data.c (Fstring_to_number): Don't recognize floating point if
588         base is not 10.
589
590 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
591
592         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
593
594 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
595
596         * mule-charset.c (Qsquare): New variable.
597         (to_char_code): Add `Qsquare'.
598         (syms_of_mule_charset): Add new symbol `square'.
599
600 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
601
602         * mule-charset.c (Qcircle): New variable.
603         (to_char_code): Add `Qcircle'.
604         (syms_of_mule_charset): Add new symbol `circle'.
605
606 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
607
608         * mule-charset.c (Qfont): New variable.
609         (to_char_code): Add `Qfont'.
610         (syms_of_mule_charset): Add new symbol `font'.
611
612 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
613
614         * mule-charset.c (Qsub): New variable.
615         (to_char_code): Add `Qsub'.
616         (syms_of_mule_charset): Add new symbol `sub'.
617
618 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
619
620         * mule-charset.c (Fput_char_attribute): Convert each element of
621         VALUE to GL position if ATTRIBUTE is a GR-set,
622
623 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
624
625         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
626         coded-charset is a GR-set.
627
628 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
629
630         * mule-charset.c (Fput_char_attribute): Check each element of
631         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
632
633 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
634
635         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
636         UTF-2000.
637         (Qethiopic_ucs): New variable in UTF-2000.
638         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
639         (complex_vars_of_mule_charset): Add new coded-charset
640         `ethiopic-ucs' in UTF-2000.
641
642         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
643         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
644         9)'.
645         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
646         10)'.
647         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
648
649 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
650
651         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
652         `ascii'.
653
654 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
655
656         * mule-charset.c (Vcharacter_variant_table): New variable.
657         (Q_ucs): New variable.
658         (Fchar_variants): New function.
659         (Fput_char_attribute): Register `->ucs' value to
660         `Vcharacter_variant_table'.
661         (syms_of_mule_charset): Add new function `char-variants' and new
662         symbol `->ucs'.
663         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
664
665 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
666
667         * mule-charset.c (get_char_code_table): Allow negative character
668         code.
669         (put_char_code_table): Likewise.
670         (Vcharacter_composition_table): New variable.
671         (Q_decomposition): New variable.
672         (Qwide): New variable.
673         (Qnarrow): New variable.
674         (Qcompat): New variable.
675         (QnoBreak): New variable.
676         (Qsuper): New variable.
677         (Qfraction): New variable.
678         (to_char_code): New function.
679         (Fget_composite_char): New function.
680         (Fput_char_attribute): Register `->decomposition' value to
681         `Vcharacter_composition_table'.
682         (syms_of_mule_charset): Add new function `get-composite-char', new
683         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
684         `super' and `fraction'.
685         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
686
687 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
688
689         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
690         character; copy the return value.
691
692 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
693
694         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
695
696         * mule-charset.c (range_charset_code_point): Must use make_int.
697         (split_builtin_char): New function.
698
699 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
700
701         * mule-charset.c (char_byte_table): Change name from
702         "char-code-table" to "char-byte-table".
703         (mark_char_code_table): New function.
704         (char_code_table_equal): New function.
705         (char_code_table_hash): New function.
706         (char_code_table_description): New constant.
707         (char_code_table): New type.
708         (make_char_code_table): New function.
709         (copy_char_code_table): New function.
710         (get_char_code_table): Modify for `char_code_table' type.
711         (put_char_code_table): Likewise.
712         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
713         (Kashiwara).
714
715         * char-ucs.h (char_code_table): New type.
716         (XCHAR_CODE_TABLE): New macro.
717         (XSETCHAR_CODE_TABLE): New macro.
718         (CHAR_CODE_TABLE_P): New macro.
719         (GC_CHAR_CODE_TABLE_P): New macro.
720         (struct Lisp_Char_Code_Table): New structure.
721
722 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
723
724         * mule-charset.c (Fmake_charset): Setup byte_offset for
725         {94|96}^n-set.
726
727 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
728
729         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
730         character.
731
732 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
733
734         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
735         is found.
736
737 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
738
739         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
740         charset, it is regarded as a charset.
741         (put_char_attribute): New function in UTF-2000.
742         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
743         charset, mapping-table of the charset is modified.
744         (Fdefine_char): New function in UTF-2000.
745         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
746         `Fput_char_attribute'.
747         (syms_of_mule_charset): Add new function `define-char' and new
748         symbol `ucs' in UTF-2000.
749         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
750
751 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
752
753         * mule-charset.c (Fcharset_name): Define `byte_offset' in
754         non-UTF-2000 configuration.
755
756 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
757
758         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
759         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
760
761         * mule-charset.c (mark_charset): `cs->encoding_table' has been
762         deleted.
763         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
764         (Fset_charset_mapping_table): Likewise.
765
766         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
767         (CHARSET_ENCODING_TABLE): Delete.
768         (XCHARSET_ENCODING_TABLE): Delete.
769         (charset_code_point): New interface.
770
771 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
772
773         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
774         instead of `charset_get_byte1' and `charset_get_byte2'.
775
776         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
777         (charset_get_byte2): Deleted.
778
779 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
780
781         * char-ucs.h (SPLIT_CHAR): New inline function.
782         (breakup_char_1): Use `SPLIT_CHAR'.
783
784         * mule-charset.c (range_charset_code_point): New function.
785         (charset_code_point): New function.
786
787         * char-ucs.h (range_charset_code_point): New interface.
788         (breakup_char_1): Use `range_charset_code_point'.
789
790 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
791
792         * mule-charset.c (Fmake_charset): Delete unused local variable
793         `code_offset'.
794
795         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
796         (breakup_char_1): Find a charset and code-point in
797         `Vcharacter_attribute_table'.
798
799 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
800
801         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
802         to 0.10 (Yao).
803
804 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
805
806         * mule-charset.c (Vcharacter_attribute_table): New variable.
807         (Fchar_attribute_alist): New function.
808         (Fget_char_attribute): New function.
809         (Fput_char_attribute): New function.
810         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
811         too.
812         (syms_of_mule_charset): Add new function `char-attribute-alist',
813         `get-char-attribute' and `put-char-attribute'.
814         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
815
816 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
817
818         * mule-charset.c (Fmake_charset): Just use
819         `get_unallocated_leading_byte'.
820
821         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
822         sets; don't use final-byte based number for private sets.
823
824 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
825
826         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
827         integer.
828
829 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
830
831         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
832         to 0.9.
833
834 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
835
836         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
837         of `CHAR_LEADING_BYTE' in UTF-2000.
838
839         * insdel.c (find_charsets_in_bufbyte_string): Use
840         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
841         (find_charsets_in_emchar_string): Likewise.
842
843         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
844         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
845
846         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
847         (CHAR_CHARSET_ID): New macro.
848
849 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
850
851         * chartab.c (get_char_table): Don't use type `Charset_ID' for
852         charset-id - MIN_LEADING_BYTE.
853         (put_char_table): Likewise.
854
855 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
856
857         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
858         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
859         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
860         (CHARSET_ID_OFFSET): New macro.
861         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
862         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
863         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
864         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
865         4).
866         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
867         5).
868         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
869         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
870         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
871         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
872         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
873
874 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
875
876         * mule-charset.c (next_allocated_leading_byte): New variable in
877         UTF-2000.
878         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
879         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
880         (get_unallocated_leading_byte): Simply use
881         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
882         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
883         UTF-2000.
884
885         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
886         (MAX_LEADING_BYTE_PRIVATE): New macro.
887         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
888         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
889
890 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
891
892         * mule-charset.c (Fmake_charset): Allocate final-byte based
893         charset-id for 94-set, 96-set and 94x94-set.
894
895 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
896
897         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
898         ambiguous `else'.
899         (Fmake_charset): Likewise.
900         (complex_vars_of_mule_charset): Modify the font registry of
901         `ucs-bmp' not to match `Ethiopic-Unicode'.
902
903 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
904
905         * mule-charset.c (complex_vars_of_mule_charset): Add font
906         registory of `ucs-bmp'.
907
908 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
909
910         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
911         coded-charsets in `default-coded-charset-priority-list' when
912         breaking up a character.
913
914         * mule-charset.c (Vcharset_latin_viscii): New variable.
915         (Qlatin_viscii): New variable.
916         (make_charset): Don't use `decoding_table'.
917         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
918         byte_offset.
919         (Fset_charset_mapping_table): New implementation.
920         (syms_of_mule_charset): Add new symbol `latin-viscii'.
921         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
922         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
923         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
924         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
925         charset `latin_viscii'.
926
927         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
928         (CHARSET_TYPE_94X94): Change to 1 from 2.
929         (CHARSET_TYPE_96): Change to 2 from 1.
930         (CHARSET_TYPE_128): New macro.
931         (CHARSET_TYPE_128X128): Change to 5 from 4.
932         (CHARSET_TYPE_256): New macro.
933         (CHARSET_TYPE_256X256): Change to 7 from 5.
934         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
935
936 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
937
938         * text-coding.c (char_encode_shift_jis): Refer
939         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
940         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
941
942         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
943         (char_byte_table_equal): New function in UTF-2000.
944         (char_byte_table_hash): New function in UTF-2000.
945         (char_byte_table_description): New constant in UTF-2000.
946         (char_byte_table): New type in UTF-2000.
947         (make_char_byte_table): New function in UTF-2000.
948         (copy_char_byte_table): New function in UTF-2000.
949         (make_char_code_table): New macro in UTF-2000.
950         (get_char_code_table): New function in UTF-2000.
951         (put_char_code_table): New function in UTF-2000.
952         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
953         (charset_description): Add setting in UTF-2000.
954         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
955         `CHARSET_TO_BYTE1_TABLE(cs)'.
956         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
957         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
958         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
959         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
960         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
961         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
962         `CHARSET_TO_BYTE2_TABLE(cs)'.
963
964         * char-ucs.h (char_byte_table): New type.
965         (XCHAR_BYTE_TABLE): New macro.
966         (XSETCHAR_BYTE_TABLE): New macro.
967         (CHAR_BYTE_TABLE_P): New macro.
968         (GC_CHAR_BYTE_TABLE_P): New macro.
969         (struct Lisp_Char_Byte_Table): New structure.
970         (get_char_code_table): New interface.
971         (Emchar_to_byte_table): Deleted.
972         (get_byte_from_character_table): Deleted.
973         (struct Lisp_Charset): Add `encoding_table'; delete
974         `to_byte1_table' and `to_byte2_table'.
975         (CHARSET_ENCODING_TABLE): New macro.
976         (CHARSET_TO_BYTE1_TABLE): Deleted.
977         (CHARSET_TO_BYTE2_TABLE): Deleted.
978         (XCHARSET_ENCODING_TABLE): New macro.
979         (XCHARSET_TO_BYTE1_TABLE): Deleted.
980         (XCHARSET_TO_BYTE2_TABLE): Deleted.
981
982 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
983
984         * mule-charset.c (syms_of_mule_charset): Delete charset alias
985         `vietnamese-viscii-*'.
986
987 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
988
989         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
990         (Qvietnamese_viscii_upper): New variable.
991         (Fdefine_charset_alias): New function.
992         (syms_of_mule_charset): Add new function `define-charset-alias'.
993         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
994         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
995         `latin-viscii-*'.
996
997 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
998
999         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
1000         (MAX_CHAR_OBS_94x94): New macro.
1001         (breakup_char_1): Support obsolete XEmacs-UCS private code space
1002         for 94x94 sets.
1003
1004         * mule-charset.c (put_byte_from_character_table): Change unit size
1005         from 128 to 256.
1006         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
1007         not defined.
1008         (Fmake_reverse_direction_charset): Modify dummy argument of
1009         `make_charset' for non-UTF-2000 environment.
1010
1011 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1012
1013         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
1014
1015         * mule-charset.c (destroy_byte_from_character_table): New macro.
1016         (latin_jisx0201_to_ucs): Deleted.
1017         (latin_iso8859_2_to_ucs): Deleted.
1018         (latin_iso8859_3_to_ucs): Deleted.
1019         (latin_iso8859_4_to_ucs): Deleted.
1020         (latin_iso8859_9_to_ucs): Deleted.
1021         (latin_viscii_lower_to_ucs): Deleted.
1022         (latin_viscii_upper_to_ucs): Deleted.
1023         (mark_charset): Mark `cs->decoding_table'.
1024         (Fcharset_mapping_table): Fix DOC-string.
1025         (Fset_charset_mapping_table): New function.
1026         (syms_of_mule_charset): Add nwe function
1027         `set-charset-mapping-table'.
1028         (complex_vars_of_mule_charset): Don't setup and use
1029         `latin_*_to_ucs'.
1030
1031 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1032
1033         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
1034         charset.
1035
1036 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1037
1038         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
1039         (Vcharset_katakana_jisx0208): New variable.
1040         (Qhiragana_jisx0208): New variable.
1041         (Qkatakana_jisx0208): New variable.
1042         (make_charset): Add new argument `byte_offset'.
1043         (charset_get_byte1): Modify for new coded-charset definition; use
1044         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
1045         `XCHARSET_BYTE_OFFSET'.
1046         (Fmake_charset): Modify for `make_charset'.
1047         (Fmake_reverse_direction_charset): Likewise.
1048         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
1049         `katakana-jisx0208'.
1050         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
1051         `.'  in font registry of charset `katakana-jisx0201',
1052         `latin-jisx0201', `vietnamese-viscii-lower' and
1053         `vietnamese-viscii-upper'; modify DOC-string of charset
1054         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
1055         registry of charset `japanese-jisx0208' not to use font for JIS
1056         X0208:1990; add new charset `hiragana-jisx0208' and
1057         `katakana-jisx0208'.
1058
1059         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
1060         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
1061         (struct Lisp_Charset): Add `byte_offset'.
1062         (CHARSET_BYTE_OFFSET): New macro.
1063         (XCHARSET_UCS_MIN): New macro.
1064         (XCHARSET_UCS_MAX): New macro.
1065         (XCHARSET_CODE_OFFSET): New macro.
1066         (XCHARSET_BYTE_OFFSET): New macro.
1067         (MIN_CHAR_HIRAGANA): New macro.
1068         (MAX_CHAR_HIRAGANA): New macro.
1069         (MIN_CHAR_KATAKANA): New macro.
1070         (MAX_CHAR_KATAKANA): New macro.
1071         (MAKE_CHAR): Modify for new coded-charset definition; use
1072         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
1073         `XCHARSET_BYTE_OFFSET'.
1074
1075 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
1076
1077         * mule-charset.c (CHAR96): Deleted.
1078         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
1079         <Lisp_Object>.
1080         (latin_iso8859_2_to_ucs): Likewise.
1081         (latin_iso8859_3_to_ucs): Likewise.
1082         (latin_iso8859_4_to_ucs): Likewise.
1083         (latin_iso8859_9_to_ucs): Likewise.
1084         (latin_viscii_lower_to_ucs): Likewise.
1085         (latin_viscii_upper_to_ucs): Likewise.
1086         (latin_tcvn5712_to_ucs): Commented out.
1087         (make_charset): Change type of argument `decoding_table' from
1088         <Emchar*> to <Lisp_Object> [vector of characters].
1089         (Fmake_charset): Modify for `make_charset'.
1090         (Fmake_reverse_direction_charset): Likewise.
1091         (Fcharset_mapping_table): New function in UTF-2000.
1092         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
1093         UTF-2000.
1094         (complex_vars_of_mule_charset): Modify for type change of
1095         `*_to_ucs'; modify for `make_charset'.
1096
1097         * char-ucs.h (struct Lisp_Charset): Change type of
1098         `decoding_table' from <Emchar*> to <Lisp_Object>.
1099         (MAKE_CHAR): Modify for new specification of `decoding_table'.
1100
1101 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
1102
1103         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
1104         error with non-UTF-2000-Mule.
1105
1106 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
1107
1108         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
1109         in lisp again].
1110         (Vcharset_chinese_cns11643_4): Likewise.
1111         (Vcharset_chinese_cns11643_5): Likewise.
1112         (Vcharset_chinese_cns11643_6): Likewise.
1113         (Vcharset_chinese_cns11643_7): Likewise.
1114         (Qchinese_cns11643_3): Likewise.
1115         (Qchinese_cns11643_4): Likewise.
1116         (Qchinese_cns11643_5): Likewise.
1117         (Qchinese_cns11643_6): Likewise.
1118         (Qchinese_cns11643_7): Likewise.
1119         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
1120         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
1121         and `chinese-cns11643-7' to lisp/mule/chinese.el.
1122         (complex_vars_of_mule_charset): Likewise.
1123
1124 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
1125
1126         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
1127         96-set.
1128         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
1129         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
1130
1131 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
1132
1133         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
1134         0xFF60.
1135         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
1136         (breakup_char_1): Likewise.
1137
1138         * text-coding.c (char_encode_iso2022): Keep designated charsets if
1139         one of them includes the specified character.
1140
1141 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
1142
1143         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
1144
1145 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
1146
1147         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
1148
1149 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
1150
1151         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
1152         definition for non-UTF-2000 Mule.
1153         (latin_iso8859_3_to_ucs): Likewise.
1154         (latin_iso8859_4_to_ucs): Likewise.
1155         (latin_iso8859_9_to_ucs): Likewise.
1156         (latin_jisx0201_to_ucs): Likewise.
1157         (MIN_CHAR_THAI): Likewise.
1158         (MAX_CHAR_THAI): Likewise.
1159         (MIN_CHAR_GREEK): Likewise.
1160         (MAX_CHAR_GREEK): Likewise.
1161         (MIN_CHAR_HEBREW): Likewise.
1162         (MAX_CHAR_HEBREW): Likewise.
1163         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
1164         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
1165         (MIN_CHAR_CYRILLIC): Likewise.
1166         (MAX_CHAR_CYRILLIC): Likewise.
1167
1168 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
1169
1170         * char-ucs.h (breakup_char_1): Use
1171         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
1172         thai-tis620 and katakana-jisx0201 area.
1173
1174 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1175
1176         * char-ucs.h (breakup_char_1): Use
1177         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
1178         area.
1179
1180         * text-coding.c (reset_encoding_stream): Fixed.
1181         (char_encode_ucs4): Delete `& 255'.
1182
1183         * char-ucs.h (breakup_char_1): Use
1184         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
1185
1186 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1187
1188         * file-coding.c (Fmake_coding_system): Don't set up
1189         `codesys->fixed.size'.
1190         (encode_coding_no_conversion): Don't refer
1191         `str->codesys->fixed.size'.
1192
1193 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1194
1195         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
1196         (latin_a_char_to_byte1): Deleted.
1197         (latin_a_char_to_byte2): Deleted.
1198
1199 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1200
1201         * mule-charset.c (make_charset): Add new argument `ucs_min',
1202         `ucs_max' and `code_offset'.
1203         (charset_get_byte1): New implementation [delete specific charset
1204         depended implementations].
1205         (Fmake_charset): Modify for `make_charset'.
1206         (Fmake_reverse_direction_charset): Likewise.
1207         (complex_vars_of_mule_charset): Likewise.
1208
1209         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
1210         `code_offset'.
1211         (CHARSET_UCS_MIN): New macro.
1212         (CHARSET_UCS_MAX): New macro.
1213         (CHARSET_CODE_OFFSET): New macro.
1214         (MAKE_CHAR): Delete charset depended definitions [except
1215         katakana-jisx0201].
1216
1217 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
1218
1219         * char-ucs.h (breakup_char_1): Use
1220         `Vdefault_coded_charset_priority_list' for C0-Controls,
1221         Basic-Latin, C1-Controls and Latin-1-Supplement area.
1222
1223 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1224
1225         * char-ucs.h (charset_get_byte1): New function.
1226         (XCHARSET_GET_BYTE1): Deleted.
1227         (charset_get_byte2): New function.
1228         (XCHARSET_GET_BYTE2): Deleted.
1229         (Vdefault_coded_charset_priority_list): New external variable.
1230         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
1231         `Vdefault_preferred_coded_charset_list'.
1232
1233         * mule-charset.c (charset_get_byte1): New function.
1234         (charset_get_byte2): New function.
1235         (Vdefault_coded_charset_priority_list): New variable.
1236         (vars_of_mule_charset): Add new variable
1237         `default-coded-charset-priority-list'.
1238
1239 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1240
1241         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
1242         (XCHARSET_GET_BYTE2): New inline function.
1243         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
1244         `XCHARSET_GET_BYTE2'.
1245
1246 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1247
1248         * mule-charset.c (make_charset): Initialize
1249         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
1250         NULL if table is not defined.
1251
1252 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1253
1254         * text-coding.c (char_encode_shift_jis): Use
1255         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
1256         `ucs_to_latin_jisx0201'.
1257
1258         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
1259         (ucs_to_latin_iso8859_2): Deleted.
1260         (ucs_to_latin_iso8859_3): Deleted.
1261         (ucs_to_latin_iso8859_4): Deleted.
1262         (ucs_to_latin_iso8859_9): Deleted.
1263         (ucs_to_latin_viscii_lower): Deleted.
1264         (ucs_to_latin_viscii_upper): Deleted.
1265         (ucs_to_latin_tcvn5712): Deleted.
1266         (make_charset): Add new argument `decoding_table'; set up
1267         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
1268         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
1269         `decoding_table' is defined in UTF-2000.
1270         (Fmake_charset): Modify for `make_charset'.
1271         (Fmake_reverse_direction_charset): Likewise.
1272         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
1273         and `GENERATE_96_SET'.
1274
1275         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
1276         (ucs_to_latin_jisx0201): Deleted.
1277         (latin_iso8859_2_to_ucs): Deleted.
1278         (ucs_to_latin_iso8859_2): Deleted.
1279         (latin_iso8859_3_to_ucs): Deleted.
1280         (ucs_to_latin_iso8859_3): Deleted.
1281         (latin_iso8859_4_to_ucs): Deleted.
1282         (ucs_to_latin_iso8859_4): Deleted.
1283         (latin_iso8859_9_to_ucs): Deleted.
1284         (ucs_to_latin_iso8859_9): Deleted.
1285         (latin_viscii_lower_to_ucs): Deleted.
1286         (ucs_to_latin_viscii_lower): Deleted.
1287         (latin_viscii_upper_to_ucs): Deleted.
1288         (ucs_to_latin_viscii_upper): Deleted.
1289         (struct Lisp_Charset): Renamed `encoding_table' to
1290         `to_byte1_table'; add `to_byte2_table'.
1291         (CHARSET_DECODING_TABLE): New macro.
1292         (CHARSET_TO_BYTE1_TABLE): New macro.
1293         (CHARSET_TO_BYTE2_TABLE): New macro.
1294         (XCHARSET_DECODING_TABLE): New macro.
1295         (XCHARSET_TO_BYTE1_TABLE): New macro.
1296         (XCHARSET_TO_BYTE2_TABLE): New macro.
1297         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
1298         tables.
1299         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
1300         don't use `ucs_to_*' tables.
1301
1302 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1303
1304         * text-coding.c (Fmake_coding_system): Don't set up
1305         `codesys->fixed.size'.
1306         (encode_coding_no_conversion): Use `if' instead of `switch'.
1307
1308         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
1309
1310 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
1311
1312         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
1313         (Fmake_charset): Modify for `make_charset'.
1314         (Fmake_reverse_direction_charset): Likewise.
1315         (complex_vars_of_mule_charset): Likewise.
1316
1317 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
1318
1319         * text-coding.c (char_encode_shift_jis): Use table
1320         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
1321
1322 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
1323
1324         * text-coding.c (text_encode_generic): Use `if' instead of
1325         `switch'.
1326         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
1327         decode JIS-Latin.
1328
1329 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
1330
1331         * text-coding.c (encode_coding_sjis): Deleted.
1332         (char_encode_shift_jis): New function.
1333         (char_finish_shift_jis): New function.
1334         (reset_encoding_stream): Set up `encode_char' and `finish' for
1335         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
1336         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
1337         (char_encode_utf8): Treat `eol_type'.
1338
1339 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
1340
1341         * file-coding.c (decode_coding_iso2022): Use
1342         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
1343
1344 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
1345
1346         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1347         to 0.7 (Hirano).
1348
1349 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
1350
1351         * char-lb.h (CHAR_COLUMNS): New macro.
1352
1353 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
1354
1355         * text-coding.c (char_encode_ucs4): New function.
1356         (char_finish_ucs4): New function.
1357         (encode_coding_ucs4): Deleted.
1358         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
1359         (text_encode_generic): Delete local variable `charset' and `half'.
1360         (ucs_to_mule_table): Deleted.
1361         (mule_to_ucs_table): Deleted.
1362         (Fset_ucs_char): Deleted.
1363         (ucs_to_char): Deleted.
1364         (Fucs_char): Deleted.
1365         (Fset_char_ucs): Deleted.
1366         (Fchar_ucs): Deleted.
1367         (decode_ucs4): Deleted.
1368         (mule_char_to_ucs4): Deleted.
1369         (encode_ucs4): Deleted.
1370         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
1371         (decode_coding_utf8): Likewise.
1372         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
1373         (char_encode_iso2022): Fixed.
1374         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
1375         `Fset_char_ucs' and `Fchar_ucs'.
1376         (complex_vars_of_file_coding): Don't initialize
1377         `ucs_to_mule_table'.
1378
1379         * objects-tty.c (tty_initialize_font_instance): Don't use
1380         `XCHARSET_COLUMNS'.
1381
1382         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
1383         UTF-2000.
1384
1385         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
1386         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
1387
1388         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
1389         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
1390         (emchar_string_displayed_columns): Likewise.
1391
1392         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
1393         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
1394         (string_column_at_point): Likewise.
1395         (Fmove_to_column): Likewise.
1396
1397         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
1398         `encoding_table' and `decoding_table'.
1399         (CHARSET_REP_BYTES): Deleted.
1400         (XCHARSET_REP_BYTES): Deleted.
1401         (XCHARSET_COLUMNS): Deleted.
1402         (CHAR_COLUMNS): New macro.
1403         (lookup_composite_char): Deleted unconditionally.
1404         (composite_char_string): Likewise.
1405
1406 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
1407
1408         * char-ucs.h (Emchar_to_byte_table): New type.
1409         (get_byte_from_character_table): New function interface.
1410         (Vcharset_latin_jisx0201): New variable.
1411         (latin_jisx0201_to_ucs): New variable.
1412         (ucs_to_latin_jisx0201): New variable.
1413         (Vcharset_latin_iso8859_2): New variable.
1414         (latin_iso8859_2_to_ucs): New variable.
1415         (ucs_to_latin_iso8859_2): New variable.
1416         (Vcharset_latin_iso8859_3): New variable.
1417         (latin_iso8859_3_to_ucs): New variable.
1418         (ucs_to_latin_iso8859_3): New variable.
1419         (Vcharset_latin_iso8859_4): New variable.
1420         (latin_iso8859_4_to_ucs): New variable.
1421         (ucs_to_latin_iso8859_4): New variable.
1422         (Vcharset_latin_iso8859_9): New variable.
1423         (latin_iso8859_9_to_ucs): New variable.
1424         (ucs_to_latin_iso8859_9): New variable.
1425         (Vcharset_latin_viscii_lower): New variable.
1426         (latin_viscii_lower_to_ucs): New variable.
1427         (ucs_to_latin_viscii_lower): New variable.
1428         (Vcharset_latin_viscii_upper): New variable.
1429         (latin_viscii_upper_to_ucs): New variable.
1430         (ucs_to_latin_viscii_upper): New variable.
1431         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
1432         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
1433         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
1434         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
1435         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
1436         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
1437         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
1438         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
1439         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
1440         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
1441
1442         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
1443         (Vcharset_latin_viscii_upper): New variable.
1444         (make_byte_from_character_table): New function.
1445         (put_byte_from_character_table): New function.
1446         (get_byte_from_character_table): New function.
1447         (CHAR96): New macro.
1448         (ucs_to_latin_jisx0201): New variable.
1449         (latin_jisx0201_to_ucs): New variable.
1450         (ucs_to_latin_iso8859_2): New variable.
1451         (latin_iso8859_2_to_ucs): New variable.
1452         (ucs_to_latin_iso8859_3): New variable.
1453         (latin_iso8859_3_to_ucs): New variable.
1454         (ucs_to_latin_iso8859_4): New variable.
1455         (latin_iso8859_4_to_ucs): New variable.
1456         (ucs_to_latin_iso8859_9): New variable.
1457         (latin_iso8859_9_to_ucs): New variable.
1458         (ucs_to_latin_viscii_lower): New variable.
1459         (latin_viscii_lower_to_ucs): New variable.
1460         (ucs_to_latin_viscii_upper): New variable.
1461         (latin_viscii_upper_to_ucs): New variable.
1462         (ucs_to_latin_tcvn5712): New variable.
1463         (latin_tcvn5712_to_ucs): New variable.
1464         (Qlatin_viscii_lower): New variable.
1465         (Qlatin_viscii_upper): New variable.
1466         (syms_of_mule_charset): Set up new symbol
1467         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
1468         (complex_vars_of_mule_charset): Set up new charset
1469         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
1470         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
1471         `ucs_to_<CHARSET>' tables.
1472
1473 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
1474
1475         * text-coding.c: New file.
1476
1477 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
1478
1479         * mule-charset.c (Fmake_char): Fix problem of 256-set.
1480
1481         * char-ucs.h (Vcharset_ucs_bmp): New variable.
1482         (MAKE_CHAR): Modify for `ucs-bmp'.
1483         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
1484         non-MULE characters of BMP.
1485
1486 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
1487
1488         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1489         to 0.6.
1490
1491 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1492
1493         * lstream.h:
1494         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
1495         - Include character.h for `CHAR_ASCII_P'.
1496
1497         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
1498
1499         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
1500         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
1501
1502         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
1503         (BYTE_C0_P): Likewise.
1504         (BYTE_C1_P): Likewise.
1505         (Lstream_get_emchar_1): Likewise.
1506         (Lstream_fput_emchar): Likewise.
1507         (Lstream_funget_emchar): Likewise.
1508         (copy_internal_to_external): Likewise.
1509         (copy_external_to_internal): Likewise.
1510
1511         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
1512         (BYTE_C0_P): Likewise.
1513         (BYTE_C1_P): Likewise.
1514         (Lstream_get_emchar_1): Likewise.
1515         (Lstream_fput_emchar): Likewise.
1516         (Lstream_funget_emchar): Likewise.
1517         (copy_internal_to_external): Likewise.
1518         (copy_external_to_internal): Likewise.
1519
1520         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
1521         (REP_BYTES_BY_FIRST_BYTE): Likewise.
1522
1523         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
1524         (BYTE_ASCII_P): Moved to mb-1byte.h.
1525
1526 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1527
1528         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
1529
1530         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
1531         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
1532         (VALID_CHARPTR_P): Moved to mb-*byte.h.
1533         (VALIDATE_CHARPTR_BACKWARD): Likewise.
1534         (VALIDATE_CHARPTR_FORWARD): Likewise.
1535         (simple_charptr_emchar): Moved to mb-multibyte.h.
1536         (simple_set_charptr_emchar): Likewise.
1537         (simple_charptr_copy_char): Likewise.
1538         (non_ascii_charptr_emchar): Likewise.
1539         (non_ascii_set_charptr_emchar): Likewise.
1540         (non_ascii_charptr_copy_char): Likewise.
1541         (charptr_emchar): Moved to mb-*byte.h.
1542         (set_charptr_emchar): Likewise.
1543         (charptr_copy_char): Likewise.
1544
1545         * mb-1byte.h, mb-multibyte.h: New files.
1546
1547 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1548
1549         * mb-utf-8.h (MULTIBYTE): New macro.
1550         (MAX_EMCHAR_LEN): Moved from buffer.h.
1551         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
1552
1553         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
1554
1555         * mb-lb.h, multibyte.h: New files.
1556
1557         * char-1byte.h (Charset_ID): Moved from buffer.h.
1558         (MIN_LEADING_BYTE): Likewise.
1559         (LEADING_BYTE_ASCII): Likewise.
1560         (NUM_LEADING_BYTES): Likewise.
1561         (CHARSETP): Likewise.
1562         (CHARSET_BY_LEADING_BYTE): Likewise.
1563         (XCHARSET_LEADING_BYTE): Likewise.
1564         (XCHARSET_GRAPHIC): Likewise.
1565         (XCHARSET_COLUMNS): Likewise.
1566         (XCHARSET_DIMENSION): Likewise.
1567         (CHAR_CHARSET): Likewise.
1568         (CHAR_LEADING_BYTE): Likewise.
1569         (BREAKUP_CHAR): Likewise.
1570         (Vcharset_ascii): Likewise.
1571
1572         * buffer.h: Include multibyte.h unconditionally.
1573         (VALID_CHARPTR_P): Moved to multibyte.h.
1574         (ASSERT_VALID_CHARPTR): Likewise.
1575         (REAL_INC_CHARPTR): Likewise.
1576         (REAL_INC_CHARBYTIND): Likewise.
1577         (REAL_DEC_CHARPTR): Likewise.
1578         (INC_CHARPTR): Likewise.
1579         (INC_CHARBYTIND): Likewise.
1580         (DEC_CHARPTR): Likewise.
1581         (VALIDATE_CHARPTR_BACKWARD): Likewise.
1582         (VALIDATE_CHARPTR_FORWARD): Likewise.
1583         (charptr_n_addr): Likewise.
1584         (MAX_EMCHAR_LEN): Moved to mb-*.h.
1585         (simple_charptr_emchar): Moved to multibyte.h.
1586         (simple_set_charptr_emchar): Likewise.
1587         (simple_charptr_copy_char): Likewise.
1588         (non_ascii_charptr_emchar): Likewise.
1589         (non_ascii_set_charptr_emchar): Likewise.
1590         (non_ascii_charptr_copy_char): Likewise.
1591         (charptr_emchar): Likewise.
1592         (set_charptr_emchar): Likewise.
1593         (charptr_copy_char): Likewise.
1594         (charptr_emchar_n): Likewise.
1595         (Charset_ID): Moved to char-1byte.h.
1596         (Vcharset_ascii): Likewise.
1597         (CHAR_CHARSET): Likewise.
1598         (CHAR_LEADING_BYTE): Likewise.
1599         (LEADING_BYTE_ASCII): Likewise.
1600         (NUM_LEADING_BYTES): Likewise.
1601         (MIN_LEADING_BYTE): Likewise.
1602         (CHARSETP): Likewise.
1603         (CHARSET_BY_LEADING_BYTE): Likewise.
1604         (XCHARSET_LEADING_BYTE): Likewise.
1605         (XCHARSET_GRAPHIC): Likewise.
1606         (XCHARSET_COLUMNS): Likewise.
1607         (XCHARSET_DIMENSION): Likewise.
1608         (BREAKUP_CHAR): Likewise.
1609
1610 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1611
1612         * character.h: Add document about interface for characters.
1613
1614         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
1615         (MAKE_CHAR): Delete comment about
1616         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
1617         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
1618         (BREAKUP_CHAR): Modify name of arguments.
1619         (CHAR_CHARSET): Modify name of argument.
1620
1621         * buffer.h: Delete document about Emchar accessors.
1622
1623 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1624
1625         * character.h (CHAR_INTP): Moved from buffer.h
1626         (CHAR_OR_CHAR_INTP): Likewise.
1627         (XCHAR_OR_CHAR_INT): Likewise.
1628         (CHECK_CHAR_COERCE_INT): Likewise.
1629
1630         * buffer.h (CHAR_INTP): Moved to character.h
1631         (CHAR_OR_CHAR_INTP): Likewise.
1632         (XCHAR_OR_CHAR_INT): Likewise.
1633         (CHECK_CHAR_COERCE_INT): Likewise.
1634
1635 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1636
1637         * character.h:
1638         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
1639         - Include char-1byte.h, char-lb.h or char-ucs.h.
1640
1641         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
1642
1643         * buffer.h: Include character unconditionally.
1644         (valid_char_p): Moved to char-*.h.
1645         (non_ascii_valid_char_p): Moved to char-lb.h.
1646
1647         * char-1byte.h, char-lb.h, char-ucs.h: New files.
1648
1649 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1650
1651         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
1652         in UTF-2000 because it is not ported yet and not to use
1653         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
1654         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
1655         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
1656
1657         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
1658         (CHAR_ASCII_P): Moved from character.h.
1659
1660         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
1661         (CHAR_ASCII_P): Likewise.
1662         (CHAR_FIELD1_MASK): Deleted.
1663         (CHAR_FIELD2_MASK): Deleted.
1664         (CHAR_FIELD3_MASK): Deleted.
1665         (MAX_CHAR_BASIC_LATIN): New macro.
1666         (CHAR_FIELD1): Deleted.
1667         (CHAR_FIELD2_INTERNAL): Deleted.
1668         (CHAR_FIELD3_INTERNAL): Deleted.
1669         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
1670         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
1671         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
1672         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
1673         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
1674         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
1675         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
1676         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
1677         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
1678         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
1679         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
1680         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
1681         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
1682         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
1683         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
1684         (MIN_CHAR_COMPOSITION): Deleted.
1685         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
1686         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
1687
1688 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
1689
1690         * buffer.h: Include mb-utf-8.h in UTF-2000.
1691
1692         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
1693
1694         * mb-utf-8.h: New file.
1695
1696 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
1697
1698         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
1699         instead of `int'.
1700
1701         * mule-charset.h, buffer.h (Charset_ID): New type.
1702
1703 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
1704
1705         * mule-canna.c (c2mu): Use `MAKE_CHAR',
1706         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
1707         instead of `MULE_CHAR_PRIVATE_OFFSET',
1708         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
1709         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
1710         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
1711
1712         * character.h (Vcharset_japanese_jisx0212): New variable
1713         definition.
1714
1715 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
1716
1717         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
1718         (charset_by_attributes): Delete array about direction.
1719         (latin_a_char_to_charset): New variable in UTF-2000.
1720         (latin_a_char_to_byte1): New variable in UTF-2000.
1721         (latin_a_char_to_byte2): New variable in UTF-2000.
1722         (Qucs_bmp): New variable.
1723         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
1724         `Bufbyte'.
1725         (next_allocated_2_byte_leading_byte): Likewise.
1726         (non_ascii_set_charptr_emchar): Likewise.
1727         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
1728         `CHARSET_TYPE_256X256' in UTF-2000; modify for
1729         `charset_by_attributes'.
1730         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
1731         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
1732         and `CHARSET_BY_LEADING_BYTE'.
1733         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
1734         `utf-2000-version' to `vars_of_mule_charset'.
1735         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
1736         define `leading-code-private-11' in UTF-2000; move setting of
1737         `utf-2000-version' from `syms_of_mule_charset'.
1738         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
1739         UTF-2000.
1740
1741         * character.h (Charset_ID): New type.
1742         (LEADING_BYTE_UCS_BMP): New macro.
1743         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
1744         (CHARSET_ID_OFFSET_94): New macro.
1745         (MIN_CHARSET_ID_PRIVATE_94): New macro.
1746         (MAX_CHARSET_ID_PRIVATE_94): New macro.
1747         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
1748         final-byte.
1749         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
1750         (LEADING_BYTE_LATIN_JISX0201): Likewise.
1751         (CHARSET_ID_OFFSET_96): New macro.
1752         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
1753         CHARSET_ID_OFFSET_96 and final-byte.
1754         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
1755         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
1756         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
1757         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
1758         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
1759         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
1760         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
1761         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
1762         (LEADING_BYTE_THAI_TIS620): Likewise.
1763         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
1764         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
1765         (CHARSET_ID_OFFSET_94x94): New macro.
1766         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
1767         CHARSET_ID_OFFSET_94x94 and final-byte.
1768         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
1769         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
1770         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
1771         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
1772         (LEADING_BYTE_CHINESE_GB2312): Likewise.
1773         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
1774         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
1775         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
1776         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
1777         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
1778         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
1779         (CHARSET_TYPE_128X128): New macro.
1780         (CHARSET_TYPE_256X256): New macro.
1781         (XCHARSET_PRIVATE_P): Delete unconditionally.
1782         (charset_by_attributes): Delete array about direction.
1783         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
1784         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
1785         (MIN_CHAR_94): New macro.
1786         (MAX_CHAR_94): New macro.
1787         (MIN_CHAR_96): New macro.
1788         (MAX_CHAR_96): New macro.
1789         (MIN_CHAR_94x94): New macro.
1790         (MAX_CHAR_94x94): New macro.
1791         (MIN_CHAR_96x96): New macro.
1792         (MAX_CHAR_96x96): New macro.
1793         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
1794         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
1795         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
1796         - 32)'.
1797         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
1798         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
1799         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
1800         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
1801         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
1802         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
1803         `XCHARSET_LEADING_BYTE' to make code-point.
1804         (latin_a_char_to_charset): New variable.
1805         (latin_a_char_to_byte1): New variable.
1806         (latin_a_char_to_byte2): New variable.
1807         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
1808         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
1809         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
1810
1811         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
1812         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
1813         (find_charsets_in_emchar_string): Likewise.
1814         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
1815
1816         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
1817         `int'.
1818         (decode_coding_iso2022): Likewise.
1819
1820         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
1821         of `unsigned char'.
1822
1823         * redisplay.c (redisplay_text_width_emchar_string): Use
1824         `Charset_ID' instead of `unsigned char'.
1825         (redisplay_frame_text_width_string): Likewise.
1826
1827         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
1828         `unsigned char'.
1829
1830         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
1831         instead of `unsigned char'.
1832         (face_cachel_charset_font_metric_info): Likewise.
1833
1834         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
1835         (get_non_ascii_char_table_value): Likewise.
1836         (get_char_table): Likewise.
1837         (put_char_table): Likewise.
1838         (map_over_other_charset): Likewise.
1839         (map_char_table): Likewise.
1840
1841         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
1842         instead of `unsigned char'.
1843
1844 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
1845
1846         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
1847         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
1848
1849         * mule-charset.c (leading_code_private_11): Don't define in
1850         UTF-2000.
1851
1852         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
1853         in UTF-2000 because it is not ported yet and not to use
1854         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
1855
1856 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
1857
1858         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
1859
1860 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
1861
1862         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
1863         in UTF-2000.
1864
1865         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
1866         of unsigned char to store leading-byte.
1867
1868         * chartab.c (get_non_ascii_char_table_value): Don't use
1869         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
1870
1871         * file-coding.c (encode_coding_big5): Delete bogus implementation
1872         in UTF2000.
1873
1874         * character.h (LEADING_BYTE_*): Delete definition for
1875         non-UTF-2000.
1876         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
1877         (LEADING_BYTE_PREFIX_P): Deleted.
1878         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
1879         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
1880         (BUFBYTE_LEADING_BYTE_P): Deleted.
1881         (CHARSET_PRIVATE_P): Deleted unconditionally.
1882         (rep_bytes_by_first_byte): Deleted unconditionally.
1883         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
1884         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
1885         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
1886         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
1887         (CHAR_FIELD2): Deleted.
1888         (CHAR_FIELD3): Deleted.
1889         (MAKE_CHAR): Delete definition for non-UTF-2000.
1890         (BREAKUP_CHAR_1_UNSAFE): Deleted.
1891         (breakup_char_1): New implementation.
1892         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
1893         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
1894
1895 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
1896
1897         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
1898         condition.
1899
1900 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
1901
1902         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
1903         (CHARSET_PRIVATE_P): Likewise.
1904         (XCHARSET_PRIVATE_P): Likewise.
1905         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
1906
1907         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
1908         UTF2000.
1909         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
1910
1911 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
1912
1913         * character.h (LEADING_BYTE_*): Changed in UTF2000.
1914         (NUM_LEADING_BYTES): Changed from 128 to 256.
1915         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
1916         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
1917         UTF2000.
1918         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
1919
1920         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
1921         UTF2000.
1922         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
1923         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
1924         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
1925         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
1926         (Qchinese_cns11643_3): New variable in UTF2000.
1927         (Qchinese_cns11643_4): New variable in UTF2000.
1928         (Qchinese_cns11643_5): New variable in UTF2000.
1929         (Qchinese_cns11643_6): New variable in UTF2000.
1930         (Qchinese_cns11643_7): New variable in UTF2000.
1931         (syms_of_mule_charset): Define `chinese-cns11643-3',
1932         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
1933         and `chinese-cns11643-7' in UTF2000.
1934         (vars_of_mule_charset): Initialize
1935         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
1936         + 1 in UTF2000.
1937         (complex_vars_of_mule_charset): Setup charset
1938         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
1939         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
1940
1941 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
1942
1943         * mule-charset.c: Move setting for `leading-code-private-11' from
1944         `syms_of_mule_charset' to `vars_of_mule_charset'.
1945
1946 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
1947
1948         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
1949         and `NUM_LEADING_BYTES' in assert.
1950
1951 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
1952
1953         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
1954         instead of 128.
1955         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
1956         `NUM_LEADING_BYTES' instead of 128.
1957
1958 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
1959
1960         * mule-charset.h (charset_by_leading_byte): Use
1961         `NUM_LEADING_BYTES' instead of 128.
1962         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
1963
1964         * mule-charset.c (charset_by_leading_byte): Use
1965         `NUM_LEADING_BYTES' instead of 128.
1966         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
1967
1968         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
1969         128.
1970
1971 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
1972
1973         * mule-charset.c (syms_of_mule_charset): Update to
1974         0.4 (Shin-Imamiya).
1975
1976 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
1977
1978         * file-coding.c (encode_coding_sjis): New implementation for
1979         UTF2000.  (decode_coding_sjis): Ditto.
1980
1981 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
1982
1983         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
1984         Don't define in UTF2000.
1985
1986         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
1987         defined.
1988
1989         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
1990         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
1991         MULE.
1992
1993 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
1994
1995         * config.h.in (CHAR_IS_UCS4): New macro.
1996
1997         * mule-charset.c (rep_bytes_by_first_byte): Modify for
1998         conventional MULE representation.
1999         (syms_of_mule_charset): Update to 0.3 (Imamiya).
2000
2001         * mule-charset.h: Reverted to original.
2002
2003         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
2004         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
2005         "mule-charset.h" if CHAR_IS_UCS4 is defined.
2006
2007         * character.h: New file.
2008
2009         * file-coding.c (Fmake_coding_system): Set 1 to
2010         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
2011         defined.
2012         (encode_coding_no_conversion): New implementation for UTF2000.
2013
2014         * file-coding.h (struct Lisp_Coding_System): Add new member
2015         `fixed.size'.
2016
2017 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
2018
2019         * file-coding.c (decode_coding_iso2022): Code-point arguments of
2020         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
2021         (encode_coding_iso2022): New implementation for UTF2000.
2022
2023 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
2024
2025         * mule-canna.c (c2mu): New implementation for UTF2000.
2026         (m2c): Likewise.
2027
2028 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
2029
2030         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
2031
2032 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
2033
2034         * file-coding.c (reset_encoding_stream): Set 0 to
2035         `str->iso2022.current_char_boundary' in UTF2000.
2036         (encode_utf8): Don't define in UTF2000.
2037         (encode_coding_utf8): New implementation for UTF-8 representation
2038         of UTF2000.
2039         (complex_vars_of_file_coding): Define coding-system `utf-8'.
2040
2041 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
2042
2043         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
2044
2045         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
2046         UTF2000.
2047         (REP_BYTES_BY_FIRST_BYTE): Likewise.
2048
2049         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
2050
2051         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
2052         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
2053         as UTF-8 in UTF2000.
2054         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
2055         (non_ascii_valid_char_p): Don't define in UTF2000.
2056         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
2057         (Lstream_get_emchar_1): Likewise.
2058         (utf-2000-version): New variable in UTF2000.
2059
2060         * lread.c (read_escape): Add new reader `u'.
2061
2062         * insdel.c (three_to_one_table): Don't define in UTF2000.
2063         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
2064         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
2065         UTF2000.
2066         (bytind_to_bufpos_func): Likewise.
2067         (buffer_mule_signal_inserted_region): Likewise.
2068         (vars_of_insdel): Don't initialize `three_to_one_table'.
2069         (init_buffer_text): Use `buf->text->mule_size' instead of
2070         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
2071         UTF2000.
2072
2073         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
2074         UTF-8 representation in UTF2000.
2075         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
2076         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
2077         (decode_coding_iso2022): Don't define local variable `lb' in
2078         UTF2000; don't use LEADING_BYTE in UTF2000; use
2079         `DECODE_ADD_UCS_CHAR' in UTF2000.
2080         (convert_to_external_format): Decode as UTF-8 in UTF2000.
2081
2082         * config.h.in (UTF2000): New macro.
2083
2084         * buffer.h (struct buffer_text): Add new member `mule_size' and
2085         don't add `mule_shifter' and `mule_three_p' in UTF2000.
2086         (valid_char_p): Return always 1 in UTF2000.
2087         (MAX_EMCHAR_LEN): 6 in UTF2000.
2088         (three_to_one_table): Don't define in UTF2000.
2089         (real_bufpos_to_bytind): Modify for UTF-8 representation in
2090         UTF2000.
2091         (real_bytind_to_bufpos): Likewise.
2092
2093         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
2094
2095 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2096
2097         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
2098         representation change.
2099         (Vutf_2000_version): New variable.
2100         (leading_code_private_11): New variable.
2101         (syms_of_mule_charset): Add new variables `utf-2000-version' and
2102         `leading-code-private-11'.
2103
2104         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
2105         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
2106         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
2107         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
2108         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
2109         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
2110         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
2111         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
2112         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
2113         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
2114         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
2115         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
2116         (MIN_CHAR_GREEK): New macro.
2117         (MAX_CHAR_GREEK): New macro.
2118         (MIN_CHAR_CYRILLIC): New macro.
2119         (MAX_CHAR_CYRILLIC): New macro.
2120         (MIN_CHAR_HEBREW): New macro.
2121         (MAX_CHAR_HEBREW): New macro.
2122         (MIN_CHAR_THAI): New macro.
2123         (MAX_CHAR_THAI): New macro.
2124         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
2125         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
2126         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
2127         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
2128         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
2129         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
2130         (CHAR_FIELD2): New inline function.
2131         (CHAR_FIELD3): New inline function.
2132         (MULE_CHAR_PRIVATE_OFFSET): New macro.
2133         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
2134         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
2135         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
2136         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
2137         (MIN_CHAR_COMPOSITION): Likewise.
2138         (CHAR_LEADING_BYTE): Modified for character representation change.
2139         (MAKE_CHAR): Likewise.
2140
2141         * lisp.h (Vcharset_latin_iso8859_1): New variable.
2142         (Vcharset_greek_iso8859_7): Likewise.
2143         (Vcharset_cyrillic_iso8859_5): Likewise.
2144         (Vcharset_hebrew_iso8859_8): Likewise.
2145         (Vcharset_thai_tis620): Likewise.
2146         (Vcharset_katakana_jisx0201): Likewise.
2147
2148 2000-05-28  Martin Buchholz <martin@xemacs.org>
2149
2150         * XEmacs 21.2.34 is released.
2151
2152 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
2153
2154         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
2155         start cache.
2156         (updating_line_start_cache): Gone.
2157         (regenerate_window): Replace resetting of VERTICAL_CLIP by
2158         generic code to force a minimum of 1 line laid out in the
2159         CMOTION_DISP case.
2160
2161 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
2162
2163         * glyphs.c (instantiate_image_instantiator): Check for initialized
2164         height & width no longer special cases IMAGE_NOTHING.
2165         (nothing_instantiate): Set height and width of instance.
2166
2167 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
2168
2169         * unexelf.c (unexec): Search for ".data" section.
2170         Initialize new_data2_offset from old_data_index.
2171         Remove redundant check for ElfW.
2172
2173 2000-05-23  Andy Piper  <andy@xemacs.org>
2174
2175         * glyphs.c (get_image_instantiator_governing_domain): allow more
2176         specific domains as the governing domain rather than expecting an
2177         exact match. This fixes problems with layouts.
2178
2179 2000-05-22  Andy Piper  <andy@xemacs.org>
2180
2181         * redisplay-output.c (compare_runes): check for non-images
2182
2183         * glyphs.c (set_glyph_dirty_p): ditto.
2184         (update_glyph_cachel_data): ditto.
2185
2186         * glyphs-widget.c (layout_post_instantiate): ditto.
2187         (layout_post_instantiate): ditto.
2188
2189         * event-msw.c (mswindows_wnd_proc): warning removal.
2190
2191 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
2192
2193         * s\mingw32.h: Added #undef for CLASH_DETECTION.
2194
2195         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
2196
2197         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
2198
2199         * nt.c (rva_to_section): mingw32 needs rva_to_section.
2200         (mswindows_executable_type): mingw32 now has enough headers for
2201         this to work.
2202
2203 2000-05-20  Andy Piper  <andy@xemacs.org>
2204
2205         * console-msw.c (mswindows_output_last_error): ; -> ,
2206
2207 2000-05-12  Andy Piper  <andy@xemacs.org>
2208
2209         * console-msw.c (FROB): compare ints with ints.
2210
2211 2000-05-11  Andy Piper  <andy@xemacs.org>
2212
2213         * glyphs-x.c (x_finalize_image_instance): make minimal build
2214         happy.
2215
2216 2000-05-20  Ben Wing  <ben@xemacs.org>
2217
2218         * event-Xt.c:
2219         * event-Xt.c (vars_of_event_Xt):
2220         move modifier-keys-are-sticky to event-stream.c.
2221         
2222         * event-msw.c:
2223         * event-msw.c (mswindows_enqueue_mouse_button_event):
2224         * event-msw.c (key_needs_default_processing_p):
2225         * event-msw.c (XEMSW_LCONTROL):
2226         * event-msw.c (mswindows_handle_sticky_modifiers):
2227         * event-msw.c (FROB):
2228         * event-msw.c (clear_sticky_modifiers):
2229         * event-msw.c (output_modifier_keyboard_state):
2230         * event-msw.c (output_alt_keyboard_state):
2231         * event-msw.c (mswindows_wnd_proc):
2232         * event-msw.c (mswindows_modifier_state):
2233         * event-msw.c (emacs_mswindows_handle_magic_event):
2234         implement sticky modifiers.
2235         
2236         * event-stream.c:
2237         * event-stream.c (vars_of_event_stream):
2238         move modifier-keys-are-sticky here.
2239
2240         * lisp.h:
2241         add CHECK_FUNCTION.
2242         
2243         * rangetab.c:
2244         implement map-range-table.
2245
2246
2247 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
2248
2249         * redisplay-tty.c (reset_tty_modes):
2250         (tty_redisplay_shutdown): Adjust argument type to
2251         tty_frame_output_end.
2252
2253 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
2254
2255         * eval.c (Fbacktrace): Don't output a line with only right
2256         parenthesis.
2257
2258 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
2259
2260         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
2261         (Fpq_reset_poll): Ditto.
2262
2263 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
2264
2265         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
2266
2267 2000-05-16  Ben Wing  <ben@xemacs.org>
2268
2269         * buffer.c:
2270         * buffer.c (dfc_convert_to/from_internal_format):
2271         * buffer.c (reinit_vars_of_buffer):
2272         Fix conversion functions to allow reentrancy.
2273         
2274         * console-msw.c:
2275         * console-msw.c (mswindows_output_last_error):
2276         New fun, generally useful -- output a human-readable
2277         version of GetLastError() on the console.
2278         
2279         * console-msw.h:
2280         * console-msw.h (struct mswindows_frame):
2281         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
2282         
2283         * console-stream.c (stream_output_begin):
2284         * console-stream.c (stream_output_end):
2285         * console-stream.c (stream_output_vertical_divider):
2286         * console-stream.c (stream_clear_region):
2287         * console-stream.c (stream_flash):
2288         * console-stream.c (console_type_create_stream):
2289         Delete blank stream methods, not needed.
2290         
2291         * console.h (struct console_methods):
2292         Split begin/end methods into window and frame.
2293         
2294         * event-msw.c:
2295         * event-msw.c (mswindows_handle_paint):
2296         * event-msw.c (output_alt_keyboard_state):
2297         * event-msw.c (mswindows_wnd_proc):
2298         * event-msw.c (vars_of_event_mswindows):
2299         Comment about problems with ignored-expose.
2300         Define mswindows-debug-events; not really implemented.
2301         
2302         * frame-msw.c (mswindows_init_frame_1):
2303         random cleanups.
2304         
2305         * glyphs-msw.c:
2306         * glyphs-msw.c (begin_defer_window_pos):
2307         * glyphs-msw.c (mswindows_unmap_subwindow):
2308         * glyphs-msw.c (mswindows_map_subwindow):
2309         * glyphs-msw.c (mswindows_resize_subwindow):
2310         Use DeferWindowPos to reduce flashing when mapping/unmapping.
2311         
2312         * glyphs.c (make_image_instance_1):
2313         Fix crash.
2314         
2315         * gutter.c (Fredisplay_gutter_area):
2316         Use new begin/end methods.
2317         
2318         * lisp.h (Dynarr_new2):
2319         New creation fun.
2320         
2321         * redisplay-msw.c:
2322         * redisplay-msw.c (mswindows_frame_output_begin):
2323         * redisplay-msw.c (mswindows_frame_output_end):
2324         * redisplay-msw.c (console_type_create_redisplay_mswindows):
2325         New begin/end methods -- handle DeferWindowPos.
2326         
2327         * redisplay-output.c (redisplay_move_cursor):
2328         * redisplay-output.c (redraw_cursor_in_window):
2329         * redisplay-output.c (redisplay_update_line):
2330         * redisplay-output.c (redisplay_output_window):
2331         New begin/end methods.
2332
2333         * redisplay-tty.c:
2334         * redisplay-tty.c (tty_frame_output_begin):
2335         * redisplay-tty.c (tty_frame_output_end):
2336         * redisplay-tty.c (console_type_create_redisplay_tty):
2337         New begin/end methods.
2338
2339         * redisplay-x.c:
2340         * redisplay-x.c (x_window_output_begin):
2341         * redisplay-x.c (x_window_output_end):
2342         * redisplay-x.c (console_type_create_redisplay_x):
2343         New begin/end methods.
2344
2345         * redisplay.c (redisplay_frame):
2346         * redisplay.c (Fredisplay_echo_area):
2347         New begin/end methods.
2348         use MAYBE_DEVMETH for clear_frame; it may not exist.
2349
2350         * window.h (WINDOW_XFRAME):
2351         WINDOW_XFOO macros -- get locale and decode struct pointer.
2352
2353
2354 2000-05-12  Ben Wing  <ben@xemacs.org>
2355
2356         * emacs.c:
2357         * emacs.c (ensure_no_quitting_from_now_on):
2358         * emacs.c (fatal_error_signal):
2359         * emacs.c (mswindows_handle_hardware_exceptions):
2360         * emacs.c (main):
2361         * emacs.c (Fkill_emacs):
2362         * emacs.c (shut_down_emacs):
2363         * emacs.c (assert_failed):
2364         various improvements in fatal error handling.
2365         
2366         * eval.c:
2367         move preparing_for_armageddon to emacs.c.
2368         
2369         * lisp.h:
2370         declare fatal_error_in_progress.
2371         
2372         * print.c:
2373         * print.c (std_handle_out_external):
2374         * print.c (std_handle_out_va):
2375         * print.c (stderr_out):
2376         * print.c (stdout_out):
2377         use console under mswin when no standard output.
2378         don't do code conversion during fatal error.
2379         
2380         * scrollbar.c (Fscrollbar_page_up):
2381         * scrollbar.c (Fscrollbar_page_down):
2382         fix missing else.  reindent.
2383
2384 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
2385
2386         Emergency fix.  
2387         
2388         * glyphs.h (GLYPH_CACHEL_DESCENT): 
2389         (GLYPH_CACHEL_DESCENT): 
2390         (GLYPH_CACHEL_DESCENT): 
2391         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
2392         used in case these are inline functions.
2393         Use more absurd values to error check.
2394
2395         include window.h for error check functions.
2396
2397 2000-05-11  Ben Wing  <ben@xemacs.org>
2398
2399         * cmdloop.c (Freally_early_error_handler):
2400         Display message box under windows; otherwise, message will disappear
2401         before it can be viewed.
2402
2403         * console-msw.c:
2404         * console-msw.c (Fmswindows_message_box):
2405         * console-msw.c (FROB):
2406         * console-msw.c (syms_of_console_mswindows):
2407         Define new fun `mswindows-message-box'.
2408         #### I will merge this into `popup-dialog-box'; just give me
2409         a bit of time.
2410         
2411         * general.c:
2412         * general.c (syms_of_general):
2413         Some new symbols used in `mswindows-message-box'.
2414         
2415         * glyphs.c:
2416         * glyphs.c (Fset_image_instance_property):
2417         put warning in this fun.
2418         
2419         * glyphs.h:
2420         * glyphs.h (GLYPH_CACHEL_WIDTH):
2421         * glyphs.h (GLYPH_CACHEL_ASCENT):
2422         * glyphs.h (GLYPH_CACHEL):
2423         * glyphs.h (GLYPH_CACHEL_GLYPH):
2424         define error-checking versions to try to catch a bug i've seen --
2425         redisplay gets in an infinite loop because the glyph width of the
2426         continuation glyph is 65535.
2427         
2428         * lisp.h:
2429         Extern message-box stuff.
2430
2431         * window.c (allocate_window):
2432         * window.c (make_dummy_parent):
2433         * window.c (Fset_window_configuration):
2434         Use EQUAL not EQ for subwindow caches to make them work a bit
2435         better. (Something is still very broken.)
2436         
2437
2438 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
2439
2440         * glyphs.c (image_instantiate): Suppress gcc warnings.
2441         (Fmake_image_instance): Fix doc string.
2442         * specifier.c (Fmake_specifier): Ditto.
2443
2444 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
2445
2446         * paths.h.in (PATH_LOCK): Removed.
2447         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
2448         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
2449
2450 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
2451
2452         * fns.c (Ffeaturep): Update e-mail address in doc-string.
2453         Document (featurep '(and xemacs 21.02)).
2454
2455 2000-05-09  Ben Wing  <ben@xemacs.org>
2456
2457         * buffer.c (complex_vars_of_buffer):
2458         update modeline-format doc.
2459         
2460         * device.h:
2461         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
2462         
2463         * emacs.c:
2464         timeline of all released versions of Emacs, for use in creating
2465         authorship comments and in synching up.
2466         
2467         * glyphs-widget.c (image_instantiator_buttons):
2468         * glyphs-widget.c (image_instantiator_edit_fields):
2469         * glyphs-widget.c (image_instantiator_combo_box):
2470         * glyphs-widget.c (image_instantiator_scrollbar):
2471         * glyphs-widget.c (image_instantiator_progress_guage):
2472         * glyphs-widget.c (image_instantiator_tree_view):
2473         * glyphs-widget.c (image_instantiator_tab_control):
2474         * glyphs-widget.c (image_instantiator_labels):
2475         * glyphs-widget.c (image_instantiator_layout):
2476         * glyphs-widget.c (image_instantiator_native_layout):
2477         rename decode_domain method to governing_domain.
2478         
2479         * glyphs.c:
2480         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
2481         * glyphs.c (add_entry_to_device_ii_format_list):
2482         make sure we don't put an entry more than once into the list.
2483         * glyphs.c (check_instance_cache_mapper):
2484         *************************************************************
2485         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
2486         HAVE BEEN GETTING.
2487         *************************************************************
2488         * glyphs.c (get_image_instantiator_governing_domain):
2489         clean up, expand on new concept of governing domain.
2490         * glyphs.c (instantiate_image_instantiator):
2491         * glyphs.c (allocate_image_instance):
2492         use governing_domain instead of cache_domain in naming.
2493         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
2494         * glyphs.c (make_image_instance_1):
2495         * glyphs.c (Fmake_image_instance):
2496         allow for any domain (not just device), and process the
2497         governing domain correctly.  very big doc fix.
2498         * glyphs.c (Fimage_instance_domain):
2499         new primitive, to retrieve the governing domain of an image instance.
2500         * glyphs.c (image_instantiate):
2501         use new governing_domain stuff.  this fixes a crash you could get
2502         by instantiating certain widget glyphs in frame locales. (should
2503         signal an error instead of crashing.)
2504         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
2505         * glyphs.c (Fglyphp): clean up doc.
2506         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
2507         * glyphs.c (syms_of_glyphs):
2508         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
2509         * glyphs.c (image_instantiator_format_create): add some comments about
2510         bogus code.
2511         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
2512         for current-display-table. (Apparently Hrjove implemented in 1998 a
2513         design I wrote up in 1996, but didn't update the doc string.)
2514         
2515         * glyphs.h: clean up a doc string.
2516         * glyphs.h (governing_domain):
2517         * glyphs.h (struct image_instantiator_methods):
2518         changes for governing_domain stuff.
2519         
2520         * gutter.c:
2521         * gutter.c (Fgutter_specifier_p):
2522         * gutter.c (Fgutter_size_specifier_p):
2523         * gutter.c (Fgutter_visible_specifier_p):
2524         * objects.c:
2525         * objects.c (Fcolor_specifier_p):
2526         * objects.c (Ffont_specifier_p):
2527         * objects.c (Fface_boolean_specifier_p):
2528         doc strings moved to make-*-specifier.
2529         
2530         * redisplay.c (add_disp_table_entry_runes_1):
2531         * redisplay.c (generate_fstring_runes):
2532         * redisplay.c (screen):
2533         add random comments and doc strings.
2534         
2535         * specifier.c:
2536         * specifier.c (Fmake_specifier):
2537         major overhaul of this doc string.
2538         
2539         * specifier.c (Fvalid_specifier_domain_p):
2540         comment about the bogosity of image instances being domains.
2541         * specifier.c (decode_domain):
2542         now non-static, used in glyphs.c.
2543         * specifier.c (specifier_instance):
2544         comment about the bogosity of image instances being domains.
2545         * specifier.c (Fgeneric_specifier_p):
2546         move doc string to make-generic-specifier.
2547         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
2548         rebackslashify.
2549         
2550         * specifier.h:
2551         * specifier.h (DOMAIN_FRAME):
2552         * specifier.h (DOMAIN_LIVE_P):
2553         * specifier.h (DOMAIN_XDEVICE):
2554         rebackslashify.
2555         add comments about problems with these macros.
2556         prototype for decode_domain.
2557         
2558         * toolbar.c:
2559         * toolbar.c (Ftoolbar_specifier_p):
2560         move doc string to `make-toolbar-specifier'.
2561         
2562         * window.c (window_unmap_subwindows_cache_mapper):
2563         *************************************************************
2564         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
2565         HAVE BEEN GETTING.
2566         *************************************************************
2567
2568 2000-05-09  Andy Piper  <andy@xemacs.org>
2569
2570         * glyphs.h: declare reset_frame_subwindow_instance_cache.
2571
2572         * window.c (Fset_window_configuration): reset the frame subwindow
2573         cache and re-initialize the window subwindow caches.
2574
2575         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
2576
2577 2000-05-09  Ben Wing  <ben@xemacs.org>
2578
2579         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
2580         DWORD.
2581
2582 2000-04-26  Mike Woolley  <mike@bulsara.com>
2583
2584         * ntheap.c: Changed recreate_heap to limit the amount reserved
2585         for the heap to that which is actually available. Also now
2586         displays a message box (with some dignostics) in the event that
2587         it still can't start.
2588
2589 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
2590
2591         * callproc.c (Fold_call_process_internal): GCPRO path
2592
2593 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
2594
2595         Patch by Bill Perry.
2596         
2597         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call 
2598         back data instead of #ifdef.
2599         (Fscrollbar_page_down): ditto.
2600
2601 2000-05-07  Ben Wing  <ben@xemacs.org>
2602
2603         * buffer.h:
2604         Kludge for defining Qmswindows_tstr.
2605         
2606         * nt.c:
2607         * nt.c (open_input_file):
2608         * nt.c (open_output_file):
2609         * nt.c (rva_to_section):
2610         * nt.c (mswindows_executable_type):
2611         Move all memory-mapped-file routines here (some were in unexnt.c,
2612         which is bad because they are used by process-nt.c, and unexnt
2613         won't be around when portable dumping).  Synched the above routines
2614         with FSF 20.6.
2615         
2616         * nt.h:
2617         Removed ifdef'd out bogus code.
2618         Fixed some prototypes.
2619         
2620         * nt.h (file_data):
2621         * nt.h (OFFSET_TO_RVA):
2622         * nt.h (RVA_TO_OFFSET):
2623         * nt.h (RVA_TO_PTR):
2624         Moved the memory-mapped-file structures, macros and prototypes
2625         here, to parallel nt.c.  ntheap.h should really be removed
2626         entirely, and it's a non-portable-dumper specific file.
2627         
2628         * ntheap.h (round_to_next):
2629         Moved the memory-mapped-file structures, macros and prototypes
2630         to nt.h.
2631
2632         * ntproc.c (compare_env):
2633         Moved rva_to_section and mswindows_executable_type to nt.c.
2634         Moved compare_env to process-nt.c.
2635         ntproc.c will die, one day.
2636
2637         * ntproc.c (sys_spawnve):
2638         Account for win32_ -> mswindows_.
2639
2640         * process-nt.c:
2641         * process-nt.c (struct nt_process_data):
2642         * process-nt.c (ensure_console_window_exists):
2643         * process-nt.c (compare_env):
2644         * process-nt.c (nt_create_process):
2645         * process-nt.c (nt_kill_process_by_pid):
2646         * process-nt.c (syms_of_process_nt):
2647         * process-nt.c (vars_of_process_nt):
2648         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
2649         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
2650         changes).  Eliminate our old `nt-quote-process-args' mechanism.
2651         Synch up nt_create_process with FSF 20.6 sys_spawnve.
2652         Move compare_env here from ntproc.c.
2653         
2654         * process.c (Fprocess_send_region):
2655         Takes an optional fourth argument, BUFFER, which should fix some
2656         problems with call-process.
2657         
2658         * syscommctrl.h:
2659         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
2660         
2661         * syswindows.h:
2662         Move ICC_BAR_CLASSES to syscommctrl.h.
2663         Add preliminary macros for MSWindows/Mule.  More to come.
2664
2665         * unexnt.c:
2666         * unexnt.c (unexec):
2667         open_output_file moved to nt.c.
2668
2669
2670 2000-05-05  Andy Piper  <andy@xemacs.org>
2671
2672         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
2673         instance from the frame cache also since GC may catch up too late
2674         to make frame deletion sane.
2675
2676 2000-05-04  Andy Piper  <andy@xemacs.org>
2677
2678         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
2679         (x_finalize_image_instance): ungcpro on deletion.
2680
2681         * glyphs.c (image_instantiator_format_create): give pointers a
2682         query geometry method so that the geometry is at least set.
2683
2684         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
2685         initialize layouts if using widgets.
2686
2687 2000-05-03  Andy Piper  <andy@xemacs.org>
2688
2689         * nt.c: remove bogus reference to sysmmsystem.h
2690
2691         * gui-x.c (popup_selection_callback): fix no selection abort.
2692
2693 2000-05-02  Andy Piper  <andy@xemacs.org>
2694
2695         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
2696         (mswindows_widget_instantiate): ditto.
2697
2698         * glyphs-widget.c (initialize_widget_image_instance): initialize
2699         children correctly.
2700         (widget_instantiate): cope with children and items in the same
2701         instance.
2702
2703         * glyphs.c (mark_image_instance): cope with children as a first
2704         class member.
2705         (image_instance_equal): ditto.
2706         (image_instance_hash): ditto.
2707         (image_instance_changed): ditto.
2708
2709 2000-04-30  Andy Piper  <andy@xemacs.org>
2710
2711         * glyphs.c (subwindow_query_geometry): new function. Return some
2712         defaults.
2713         (subwindow_instantiate): don't assign dimensions if none have been
2714         given.
2715         (image_instantiator_format_create): add subwindow_query_geometry.
2716         (print_image_instance): cope with layouts as widgets.
2717
2718 2000-04-29  Andy Piper  <andy@xemacs.org>
2719
2720         * frame.c (delete_frame_internal): call
2721         free_frame_subwindow_instance_cache so that all subwindows are
2722         finalized before their parent.
2723         (mark_frame): remove subwindow_cachels.
2724         (Fmake_frame): remove subwindow_cachel manipulation.
2725         (allocate_frame_core): subwindow_instance_cache is a weak list.
2726         (delete_frame_internal): set subwindow_instance_cache to nil.
2727
2728         * glyphs-msw.c (mswindows_finalize_image_instance): make double
2729         finalization safe.
2730         (mswindows_finalize_image_instance): use the device
2731         not the domain as the domain may have died already.
2732
2733         * glyphs-x.c (x_finalize_image_instance): ditto.
2734         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
2735         HEIGHT.
2736
2737         * redisplay-output.c (redisplay_unmap_subwindows): update for
2738         subwindow instance cache as a weak list.
2739         (redisplay_unmap_subwindows_maybe): ditto.
2740         (redisplay_unmap_subwindows_except_us): ditto.
2741
2742         * glyphs.c (unmap_subwindow): error checking will check the domain
2743         so don't deal with it here. Don't use cachels anymore.
2744         (map_subwindow): ditto.
2745         (update_subwindow_cachel_data): remove old accessor names.
2746         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
2747         (Fresize_subwindow): don't update cachel.
2748         (mark_subwindow_cachels):
2749         (update_subwindow_cachel_data):
2750         (add_subwindow_cachel):
2751         (get_subwindow_cachel_index):
2752         (update_subwindow_cachel):
2753         (reset_subwindow_cachels):
2754         (mark_subwindow_cachels_as_not_updated): deleted.
2755         (cache_subwindow_instance_in_frame_maybe): new function. Add a
2756         subwindow instance to the frame cache.
2757         (find_matching_subwindow): update for subwindow instance cache as
2758         a weak list.
2759         (update_widget_instances): ditto.
2760         (image_instance_type_to_mask):inlined.
2761         (free_frame_subwindow_instance_cache): new function. finalize all
2762         subwindows that are instantiated.
2763
2764         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
2765         of cachel information.
2766         (IMAGE_INSTANCE_DISPLAY_X):
2767         (IMAGE_INSTANCE_DISPLAY_Y):
2768         (IMAGE_INSTANCE_DISPLAY_WIDTH):
2769         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
2770         (XIMAGE_INSTANCE_DISPLAY_X):
2771         (XIMAGE_INSTANCE_DISPLAY_Y):
2772         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
2773         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.  
2774         remove subwindow_cachel structure and function references.
2775         (image_instance_type_to_mask): inline from glyphs.c
2776
2777         * redisplay.c (redisplay_frame): remove subwindow_cachel
2778         references.
2779
2780         * frame.h (struct frame): remove subwindow_cachels.
2781         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
2782
2783         * frameslots.h: add subwindow_instance_cache.
2784
2785         * window.c (replace_window): check subwindow cache of replacement.
2786         (window_unmap_subwindows_cache_mapper):
2787         (window_unmap_subwindows): new functions. Unmap all subwindows
2788         cached on this window.
2789         (mark_window_as_deleted): unmap all subwindows.
2790
2791 2000-04-27  Andy Piper  <andy@xemacs.org>
2792
2793         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
2794
2795         * glyphs-widget.c (widget_layout): return something.
2796         (layout_layout): return something. Fail if not intialized.
2797         (layout_query_geometry): ditto.
2798         (image_instantiator_native_layout): new function. Initialized the
2799         native layout type.
2800         (widget_instantiate): don't do layout stuff here.
2801
2802         * glyphs.c (instantiate_image_instantiator): reorded calling or
2803         instantiate and post_instantiate with layout in between.
2804         (image_instance_layout): be more selective about deciding whether
2805         the layout has been done or not.
2806
2807         * glyphs.h (struct image_instantiator_methods): return a value
2808         from layout_method.
2809
2810 2000-04-26  Andy Piper  <andy@xemacs.org>
2811
2812         * glyphs.c (allocate_image_instance): make initial width and
2813         height unspecified. Set initialized to 0.
2814
2815         * syscommctrl.h new file. Encapsulates commctrl.h.
2816
2817         * syswindows.h new file. Encapsulates windows.h.
2818
2819         * ntplay.c: use new syswindows.h and syscommctrl.h header.
2820         * nt.c: ditto.
2821         * console-msw.h: ditto.
2822         
2823         * redisplay-tty.c (tty_output_display_block): remove layout references.
2824
2825         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
2826         window handle rather than just the frame.
2827
2828         * glyphs.c (mark_image_instance): remove layout references.
2829         (print_image_instance): ditto.
2830         (image_instance_equal): ditto.
2831         (image_instance_hash): ditto.
2832         (decode_image_instance_type): ditto.
2833         (encode_image_instance_type): ditto.
2834         (image_instantiate): ditto.
2835         (allocate_glyph): ditto.
2836         (Fimage_instance_height): ditto.
2837         (Fimage_instance_width): ditto.
2838         (update_subwindow): ditto.
2839
2840         * redisplay-x.c (x_output_display_block): recode for layouts as
2841         widgets.
2842
2843         * redisplay-output.c (redisplay_output_layout): recode for layouts
2844         as widgets.
2845         (compare_runes): remove layout references.
2846
2847         * redisplay-msw.c (mswindows_output_display_block): recode for
2848         layouts as widgets.
2849
2850         * glyphs-widget.c (image_instantiator_layout): remove
2851         layout_possible_dest_types.
2852         (layout_possible_dest_types): deleted.
2853
2854         * glyphs.h (image_instance_type): remove layout references.
2855         (struct Lisp_Image_Instance): ditto. Add initialized flag.
2856         (IMAGE_INSTANCE_INITIALIZED): new accessor.
2857         (XIMAGE_INSTANCE_INITIALIZED): ditto.
2858         
2859 2000-04-25  Andy Piper  <andy@xemacs.org>
2860
2861         * glyphs-widget.c (image_instantiator_buttons):
2862         (image_instantiator_edit_fields):
2863         (image_instantiator_combo_box):
2864         (image_instantiator_scrollbar):
2865         (image_instantiator_progress_guage):
2866         (image_instantiator_tree_view):
2867         (image_instantiator_tab_control):
2868         (image_instantiator_labels):
2869         (image_instantiator_layout): call default post_instantiate method.
2870         (widget_post_instantiate): new function. Simply lays out the
2871         widgets.
2872
2873         * glyphs.h (struct image_instantiator_methods): add
2874         post_instantiate method.
2875
2876         * glyphs.c (instantiate_image_instantiator): add post_instantiate
2877         method calls.
2878
2879 2000-04-23  Andy Piper  <andy@xemacs.org>
2880
2881         * glyphs.h (struct image_instantiator_methods): add
2882         decode_domain_method.
2883         (struct Lisp_Image_Instance): remove subwindow frame - it can be
2884         derived from the domain.
2885         (IMAGE_INSTANCE_FRAME): new accessor.
2886         (XIMAGE_INSTANCE_FRAME): ditto.
2887
2888         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
2889         instead of _SUBWINDOW_FRAME.
2890         (finalize_image_instance): ditto.
2891         (Fimage_instance_foreground): ditto.
2892         (Fimage_instance_background): ditto.
2893         (image_instantiate): ditto.
2894         (update_subwindow_cachel): ditto.
2895         (update_subwindow): ditto.
2896         (unmap_subwindow): ditto.
2897         (map_subwindow): ditto
2898         (subwindow_instantiate): ditto.
2899         * glyphs-msw.c (mswindows_update_widget): ditto.
2900         (mswindows_progress_gauge_instantiate): ditto.
2901         (mswindows_tab_control_update): ditto.
2902         * glyphs-x.c (x_update_widget): ditto.
2903         (x_widget_instantiate): ditto.
2904         (x_tab_control_instantiate): ditto.
2905         (x_tab_control_update): ditto.
2906         * event-msw.c (mswindows_wnd_proc): ditto
2907
2908         * glyphs-widget.c (image_instantiator_layout): use
2909         subwindow_decode_domain.
2910         (image_instantiator_buttons): ditto.
2911         (image_instantiator_edit_fields): ditto.
2912         (image_instantiator_combo_box): ditto.
2913         (image_instantiator_scrollbar): ditto.
2914         (image_instantiator_progress_guage): ditto.
2915         (image_instantiator_tree_view): ditto.
2916         (image_instantiator_tab_control): ditto.
2917         (image_instantiator_labels): ditto.
2918         (image_instantiator_layout): ditto.
2919
2920         * glyphs.c: add instance error checking to many functions.
2921         (instantiate_image_instantiator): decode device from cache_domain.
2922         (image_instantiate): partially rewrite by using
2923         decode_image_instantiator_domain to determine what domain the
2924         instance needs to be cached in.
2925         (decode_image_instantiator_domain): new function. Determine what
2926         domain the image needs to be cached in.
2927         (check_window_subwindow_cache): new error checking function.
2928         (check_instance_cache_mapper): ditto.
2929         (check_image_instance_structure): ditto.
2930         (subwindow_decode_domain): new function. Encodes a window as a
2931         subwindow's cache domain.
2932         (image_instantiator_format_create): use it for text and
2933         subwindows.
2934
2935 2000-04-21  Andy Piper  <andy@xemacs.org>
2936
2937         * glyphs.c (image_instance_device): new function.
2938         (image_instance_frame): new function.
2939         (image_instance_window): new function.
2940         (image_instance_live_p): new function.
2941
2942         * window.c (mark_window_as_deleted): reset the subwindow_instance_
2943         cache to nil.
2944
2945         * glyphs.h (struct Lisp_Image_Instance): device->domain.
2946         (IMAGE_INSTANCE_DOMAIN): new accessor.
2947         (XIMAGE_INSTANCE_DOMAIN): ditto.
2948
2949         * glyphs-x.c (x_finalize_image_instance): device->domain.
2950
2951         * glyphs-msw.c (init_image_instance_geometry): device->domain.
2952         (mswindows_finalize_image_instance): ditto.
2953
2954         * glyphs-eimage.c (jpeg_instantiate): device->domain.
2955         (gif_instantiate): ditto.
2956         (png_instantiate): ditto.
2957         (tiff_instantiate): ditto.
2958
2959         * glyphs.c (instantiate_image_instantiator): use domain rather
2960         than device.
2961         (mark_image_instance): device -> domain.
2962         (print_image_instance): ditto.
2963         (finalize_image_instance): ditto.
2964         (image_instance_equal): ditto.
2965         (allocate_image_instance): ditto.
2966         (Fcolorize_image_instance): ditto.
2967         (query_string_geometry): ditto.
2968         (image_instantiate): ditto
2969         (query_string_font): ditto.
2970         (image_instantiate): ditto.
2971         (update_subwindow): ditto.
2972         (unmap_subwindow): ditto.
2973         (map_subwindow): ditto.
2974         (subwindow_instantiate): ditto.
2975
2976         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
2977         (DOMAIN_FRAME): ditto.
2978         (DOMAIN_WINDOW): ditto.
2979         (DOMAIN_LIVE_P): ditto.
2980         (XDOMAIN_DEVICE): ditto.
2981         (XDOMAIN_FRAME): ditto.
2982         (XDOMAIN_WINDOW): ditto.
2983
2984         * specifier.c (Fvalid_specifier_domain_p): add image instances as
2985         a valid specifier domain.
2986
2987 2000-04-19  Andy Piper  <andy@xemacs.org>
2988
2989         * glyphs-widget.c (syms_of_glyphs_widget): remove
2990         widget-callback-current-channel.
2991         (vars_of_glyphs_widget): ditto.
2992         * glyphs.h: ditto
2993
2994         * gui.c (get_gui_callback): revert to previous behaviour.
2995
2996 2000-04-18  Andy Piper  <andy@xemacs.org>
2997
2998         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
2999         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
3000         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
3001
3002         * glyphs.c (image_instance_equal): add margin_width.
3003         (image_instance_hash): ditto.
3004
3005         * glyphs-widget.c (widget_instantiate): deal with margin-width.
3006         (layout_query_geometry): ditto.
3007         (layout_layout): ditto.
3008         (syms_of_glyphs_widget): add margin-width.
3009         (image_instantiator_layout): allow margin-width.
3010
3011         * glyphs.c (update_widget_instances): make a normal function.
3012         (syms_of_glyphs): remove Qupdate_widget_instances.
3013         * glyphs.h: ditto.
3014
3015         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
3016         so that we don't corrupt ideas about the last event or
3017         command. Remove widget-callback-current-channel fiddling.
3018         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
3019
3020 2000-05-01  Martin Buchholz <martin@xemacs.org>
3021
3022         * XEmacs 21.2.33 is released.
3023
3024 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
3025
3026         * make-src-depend: Allow dots in header file name.
3027
3028 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
3029
3030         * mule-charset.h (struct charset_lookup): Add
3031         next_allocated_1_byte_leading_byte and
3032         next_allocated_2_byte_leading_byte.
3033         * mule-charset.c: Move above two variables so that those values
3034         will be dumped.
3035
3036 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
3037
3038         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
3039         when string length is zero.
3040         (find_charsets_in_emchar_string): Ditto.
3041
3042 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
3043
3044         * lisp.h: extern Qdialog and Qmenubar.
3045
3046         * gui-x.c: added events.h.
3047                 also fixed typo which made the file uncompilable.
3048
3049         * general.c: Added Qmenubar and Qdialog
3050
3051 2000-04-28  Ben Wing  <ben@xemacs.org>
3052
3053         * frame-msw.c (mswindows_init_frame_1):
3054         * frame-msw.c (mswindows_mark_frame):
3055         * event-msw.c (mswindows_enqueue_dispatch_event):
3056         * console-msw.h:
3057         * console-msw.h (struct mswindows_frame):
3058         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
3059         there are now three hash tables for callbacks.
3060         mswindows_enqueue_dispatch_event is no longer static.
3061         
3062         * dialog-x.c (maybe_run_dbox_text_callback):
3063         * dialog-x.c (dbox_descriptor_to_widget_value):
3064         switch to new cons3 form for callbacks.
3065         
3066         * glyphs-msw.c (mswindows_register_gui_item):
3067         * glyphs-msw.c (mswindows_widget_instantiate):
3068         * glyphs-msw.c (add_tree_item):
3069         * glyphs-msw.c (add_tab_item):
3070         new image instance parameter, so it can be passed to callback-ex.
3071         respect :callback-ex as well as :callback.
3072         
3073         * glyphs-widget.c (VALID_GUI_KEYWORDS):
3074         add :callback-ex.
3075         
3076         * glyphs.c (print_image_instance):
3077         prettify, e.g. now prints widget type.
3078         
3079         * gui-x.h:
3080         certain funs have new image instance parameter.
3081         
3082         * gui.c:
3083         * gui.c (get_gui_callback):
3084         * gui.c (gui_item_add_keyval_pair):
3085         * gui.c (gui_item_init):
3086         * gui.c (gui_add_item_keywords_to_plist):
3087         * gui.c (mark_gui_item):
3088         * gui.c (gui_item_hash):
3089         * gui.c (gui_item_equal):
3090         * gui.c (copy_gui_item):
3091         * gui.c (syms_of_gui):
3092         recognize callback-ex in a number of places.
3093         also, fix the annoying "can't get out of yes-no dialog" bug.
3094         
3095         * gui.h:
3096         * gui.h (struct Lisp_Gui_Item):
3097         recognize callback-ex in a number of places.
3098
3099         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
3100         new parameter in button_item_to_widget_value.
3101         
3102         * glyphs-x.c (x_update_widget):
3103         * glyphs-x.c (x_button_instantiate):
3104         * glyphs-x.c (x_button_update):
3105         * glyphs-x.c (x_progress_gauge_instantiate):
3106         * glyphs-x.c (x_edit_field_instantiate):
3107         * glyphs-x.c (x_combo_box_instantiate):
3108         * glyphs-x.c (x_tab_control_instantiate):
3109         * glyphs-x.c (x_label_instantiate):
3110         new image instance parameter in various places.
3111         
3112         * event-Xt.c:
3113         * event-Xt.c (enqueue_Xt_dispatch_event):
3114         this fun gets exported.
3115         
3116         * gui-msw.c:
3117         * gui-msw.c (mswindows_handle_gui_wm_command):
3118         handle both :callback and :callback-ex, and generate our own
3119         event because it's one of the callback-ex arguments.
3120         
3121         * gui-x.c:
3122         * gui-x.c (popup_selection_callback):
3123         handle both :callback and :callback-ex, and generate our own
3124         event because it's one of the callback-ex arguments.
3125         * gui-x.c (button_item_to_widget_value):
3126         * gui-x.c (gui_items_to_widget_values_1):
3127         * gui-x.c (gui_item_children_to_widget_values):
3128         * gui-x.c (gui_items_to_widget_values):
3129         new image instance parameter in various places.
3130
3131         * fns.c (Freplace_list):
3132         fix small typo in doc string.
3133         
3134         * lisp.h:
3135         declare enqueue_Xt_dispatch_event.
3136
3137 2000-04-28  Ben Wing  <ben@xemacs.org>
3138
3139         * buffer.c:
3140         * buffer.c (Frecord_buffer):
3141         * buffer.c (syms_of_buffer):
3142         delete record-buffer-hook.
3143         
3144         * fns.c:
3145         * fns.c (Freplace_list):
3146         * fns.c (syms_of_fns):
3147         new primitive replace-list.
3148         
3149         * frameslots.h:
3150         slot for old buffer-alist.
3151         
3152         * lisp.h:
3153         exfun replace-list.
3154         
3155         * redisplay.c:
3156         * redisplay.c (redisplay_frame):
3157         * redisplay.c (syms_of_redisplay):
3158         * redisplay.c (vars_of_redisplay):
3159         new hook buffer-list-changed-hook.
3160         call it.
3161
3162 2000-04-27  Ben Wing  <ben@xemacs.org>
3163
3164         * extents.h: extern in_modeline_generation.
3165
3166         * redisplay.c (generate_formatted_string_db): set
3167         in_modeline_generation.
3168
3169         * extents.c (extent_changed_for_redisplay): don't mark redisplay
3170         flags if in modeline generation.  otherwise frame-modified-tick
3171         is ticked far too often.
3172         Declare in_modeline_generation.
3173
3174 2000-04-26  Ben Wing  <ben@xemacs.org>
3175
3176         * emacs.c (vars_of_emacs): document quick-build "error-checking"
3177         option.
3178         (vars_of_emacs): add quick-build as an error-checking option.
3179         A bit kludgy, but there doesn't seem much point in creating
3180         a real var for this.
3181
3182         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
3183
3184 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
3185
3186         * redisplay.h (struct display_line): Add a new variable,
3187         line_continuation.
3188
3189         * redisplay.c (create_text_block): Set dl->line_continuation if
3190         the line continues.
3191         (create_string_text_block): Ditto.
3192         (regenerate_window_incrementally): Use line_continuation instead
3193         of searching continuation glyph.
3194         (add_margin_runes): Call add_glyph_rune.
3195         (add_glyph_rune): Handle margin glyph.
3196
3197 2000-04-20  Martin Buchholz  <martin@xemacs.org>
3198
3199         * filelock.c (fill_in_lock_file_name): 
3200         ANSIfy.
3201         Check for IS_ANY_SEP instead of '/'.
3202         (lock_file_1): 
3203         Avoid generating gratuitous garbage.  Call user_login_name() directly.
3204         Never check errno without first seeing that system call failed.
3205         (unlock_file): Add GCPRO.
3206         (Flock_buffer): Fix docstring.
3207         (Ffile_locked_p): Fix docstring.  Add GCPRO.
3208
3209 2000-04-19  Martin Buchholz  <martin@xemacs.org>
3210
3211         * sysdep.c (get_pty_max_bytes): 
3212         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
3213         strings longer than 252 bytes.
3214
3215         * md5.c: Unconditionally include ANSI header <limits.h>
3216
3217         * glyphs-x.c (convert_EImage_to_XImage): 
3218         * lisp-union.h (union Lisp_Object): 
3219         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
3220
3221 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
3222
3223         * filelock.c (current_lock_owner): Remove unused variable o, p.
3224
3225 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
3226
3227         * callint.c: Remove multiply defined symbol Qlet
3228         (syms_of_callint): ditto.
3229
3230 2000-04-14  Andy Piper  <andy@xemacs.org>
3231
3232         * general.c (syms_of_general): add last-command, this-command, let
3233         and funcall.
3234
3235         * lisp.h: declare various symbols.
3236
3237         * glyphs.h: declare Qwidget_callback_current_channel;
3238
3239         * glyphs-widget.c (syms_of_glyphs_widget): add
3240         Qgui_callback_current_channel.
3241         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
3242
3243         * gui-msw.c (mswindows_handle_gui_wm_command): bind
3244         widget-callback-current-channel when invoking the interactive
3245         arg. Also bind last-command and next-command when invoking the
3246         widget updates.
3247         * gui-x.c (popup_selection_callback): ditto.
3248
3249         * gui.c (get_gui_callback): massage args so that we are always
3250         calling eval. This allows us to add our own variable bindings
3251         outside.
3252
3253         * glyphs-x.c (x_button_instantiate): use
3254         gui_items_to_widget_values since this is GC safe.
3255         (x_progress_gauge_instantiate): ditto.
3256         (x_edit_field_instantiate): ditto.
3257         (x_label_instantiate): ditto.
3258
3259         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
3260         (emacs_Xt_event_widget_focus_out): new function
3261         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
3262         focus.
3263         (emacs_Xt_event_add_widget_actions): new function. add focus
3264         functions as actions.
3265         (init_event_Xt_late): use it.
3266
3267 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
3268
3269         * event-stream.c (Fdispatch_event): Doc fix.
3270
3271 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
3272
3273         * postgresql.c: Remove all references to PQsetenv*.
3274
3275         * postgresql.h: Remove references to PGsetenvHandler object.
3276         * lrecord.h (lrecord_type): Ditto.
3277
3278 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
3279
3280         * glyphs-msw.h (struct mswindows_image_instance_data): Added
3281         real_heigh and real_width members, and accessor macros for these.
3282
3283         * glyphs-msw.c (init_image_instance_geometry): New function.
3284         (init_image_instance_from_dibitmap): Use it.
3285         (mswindows_resource_instantiate): Use it.
3286         (init_image_instance_from_xbm_inline): Use it.
3287         (mswindows_initialize_image_instance_mask): Use real bitmap
3288         geometry.
3289         (mswindows_create_resized_bitmap): Ditto.
3290         (mswindows_create_resized_mask): Ditto.
3291         
3292         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
3293         and bitmap to their surface size.
3294
3295 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
3296
3297         * process-unix.c (unix_send_process): Guard against process MIA
3298         after Faccept_process_output.
3299
3300 2000-04-11  Ben Wing  <ben@xemacs.org>
3301
3302         * eval.c (unbind_to_hairy): fix brokenness introduced by
3303         nanosecond speed improvements.
3304
3305 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
3306
3307         * sunplay.c (init_device): To play sounds correctly, the device
3308         apparently needs to be initialized at least once by XEmacs.  Make
3309         it so.
3310
3311 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
3312
3313         * redisplay.c (add_margin_runes): Add text image glyph
3314           handling.
3315
3316 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
3317
3318         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
3319         gcc is newer than 2.5.
3320
3321 2000-04-06  Colin Rafferty  <colin@xemacs.org>
3322
3323         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
3324         
3325         * fns.c (size_bit_vector):
3326         * alloc.c (size_vector):
3327         (make_vector_internal):
3328         (make_bit_vector_internal):
3329         (sweep_bit_vectors_1):
3330         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
3331
3332 2000-04-06  Andy Piper  <andy@xemacs.org>
3333
3334         * gmalloc.c (malloc): undo previous change.
3335         (malloc): ditto.
3336         (free): ditto.
3337         (realloc): ditto.
3338
3339 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
3340
3341         * line-number.c (buffer_line_number): Revert to former version.
3342
3343 2000-04-06  Andy Piper  <andy@xemacs.org>
3344
3345         * gmalloc.c (malloc): add error checking.
3346         (malloc): ditto.
3347         (free): ditto.
3348         (realloc): ditto.
3349
3350         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
3351         button_item_to_widget_value arg.
3352
3353         * glyphs-x.c (x_button_instantiate): add extra
3354         button_item_to_widget_value arg.
3355         (x_progress_gauge_instantiate): ditto.
3356         (x_edit_field_instantiate): ditto.
3357         (x_label_instantiate): ditto.
3358
3359         * gui-x.c (gui_items_to_widget_values_1): add extra
3360         button_item_to_widget_value arg.
3361         (button_item_to_widget_value): add extra menu_item_p arg.
3362
3363         * gui-x.h: change signature of button_item_to_widget_value.
3364
3365         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
3366         button_item_to_widget_value arg.
3367
3368 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
3369
3370         * buffer.h (struct buffer): auto_save_modified should be long.
3371
3372 2000-04-05  Andy Piper  <andy@xemacs.org>
3373
3374         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
3375         type.
3376         (button_query_geometry): give a little more room so that athena
3377         buttons fit.
3378
3379 2000-04-05  Andy Piper  <andy@xemacs.org>
3380
3381         * faces.c (complex_vars_of_faces): The widget face should inherit
3382         the font of the gui-element face.
3383
3384 2000-04-04  Andy Piper  <andy@xemacs.org>
3385
3386         * glyphs-x.c (x_button_update): new function. unconditionally
3387         update a button's state when the instance is dirty.
3388         (image_instantiator_format_create_glyphs_x): add x_button_update.
3389         (x_widget_instantiate): remove old resize cruft.
3390
3391 2000-04-02  Andy Piper  <andy@xemacs.org>
3392
3393         * frame.c (change_frame_size_1): The introduction of gutters means
3394         that we need to allow 0 as a potential frame dimension.
3395
3396 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
3397
3398         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
3399         image glyph if allow_cursor.
3400         (add_hscroll_rune): Don't allow cursor to border glyph.
3401         (create_text_block): Ditto.
3402
3403         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
3404         text not in buffer.
3405         (redisplay_output_layout): Call ensure_face_cachel_complete for
3406         text image glyph.
3407
3408
3409 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
3410
3411         * redisplay.c (add_glyph_rune): Adding text image as text runes.
3412
3413         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
3414         not in buffer
3415
3416         * redisplay-tty.c (tty_output_display_block): Delete the routine
3417         for text image glyph
3418         * redisplay-x.c (x_output_display_block): ditto
3419         * redisplay-msw.c (mswindows_output_display_block): ditto
3420
3421 2000-02-02  Mike Alexander  <mta@arbortext.com>
3422
3423         Note: Some of these were committed by accident as part of other
3424         patches.
3425         
3426         * regex.c (regex_compile): Avoid compiler warnings.
3427
3428         * ntproc.c (sys_spawnve): Avoid compiler warnings.
3429
3430         * nt.h: Declare term_ntproc correctly.
3431
3432         * nt.c: Remove incorrect declaration of get_home_directory which
3433         is declared correctly in lisp.h.
3434
3435         * keymap.c (get_keyelt): Avoid compiler warnings.
3436         (raw_lookup_key_mapper): Avoid compiler warnings.
3437
3438         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
3439
3440         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
3441
3442         * filemode.c (mode_string): Avoid compiler warnings.
3443
3444         * file-coding.c (Fcoding_system_aliasee): Add return statement to
3445         avoid warning.
3446
3447         * events-mod.h: Undef some things that winuser.h defines differently.
3448
3449         * data.c (Faset): Avoid compiler warnings.
3450
3451         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
3452
3453 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
3454
3455         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
3456         Fall through to simple beep on error.
3457         Replace "extern" by real header file.
3458
3459         * linuxplay.c: Use nativesound.h
3460         (play_sound_data): Return error code. Be less verbose on error.
3461
3462         * sunplay.c: Use nativesound.h
3463         (play_sound_data): Return error code. Be less verbose on error.
3464
3465         * ntplay.c: Use nativesound.h
3466         (play_sound_data): Return fake error code
3467
3468         * sgiplay.c: Use nativesound.h
3469         (play_sound_data): Return error code
3470
3471         * hpplay.c: Use nativesound.h, partially implement
3472         new error code. Break compilation until finished.
3473         (play_sound_data): error code.
3474
3475         * nativesound.h (play_sound_file): 
3476           (play_sound_data): Prototype in new header.
3477
3478 2000-03-31  Andy Piper  <andy@xemacs.org>
3479
3480         * glyphs-widget.c: (button_query_geometry): new function. Adjust
3481         for toggle and radio buttons.
3482         (image_instantiator_buttons): use it.
3483
3484 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
3485
3486         * scrollbar-x.c (x_update_vertical_scrollbar_callback): 
3487         (x_update_horizontal_scrollbar_callback): Return if no mirror was
3488         found. Scrollbar event probably belonged to some old config.
3489
3490 2000-03-31  Andy Piper  <andy@xemacs.org>
3491
3492         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
3493         than 1.
3494         (initialize_widget_image_instance): default layout to
3495         LAYOUT_HORIZONTAL rather than 0.
3496         (widget_instantiate): reverse the item list at the end rather than
3497         every iteration.
3498         (layout_layout): re-code for the border text at the front of the
3499         item list rather than at the end.
3500         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
3501         provided by the user.
3502         (widget_query_geometry): comment.
3503
3504 2000-03-30  Andy Piper  <andy@xemacs.org>
3505
3506         * glyphs-widget.c (image_instantiator_layout): allow standard
3507         widget keywords in layouts.
3508
3509         * gutter.c (output_gutter): cope with nil gutter contents.
3510
3511         * frame.c (Fset_frame_properties): add gutter docs.
3512
3513 2000-03-29  Andy Piper  <andy@xemacs.org>
3514
3515         * toolbar-msw.c (TBSTYLE_FLAT): add.
3516         (mswindows_output_toolbar): minor fiddling.
3517
3518 2000-03-29  Andy Piper  <andy@xemacs.org>
3519
3520         * gutter.c (output_gutter): force gutter size recalculation if
3521         what we are trying to display won't fit.
3522         (update_gutter_geometry): new function. A per-gutter version of
3523         update_frame_gutter_geometry.
3524         (update_frame_gutter_geometry): use it.
3525         (redraw_exposed_gutter): add extra debugging output.
3526
3527 2000-03-28  Mike Alexander  <mta@arbortext.com>
3528
3529         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
3530         (pdump_file_unmap): Implement it on Windows
3531         (pdump_file_get): Save alocated handles for pdump_file_unmap
3532
3533 2000-03-28  Andy Piper  <andy@xemacs.org>
3534
3535         * gui.c (get_gui_callback): treat Quit specially.
3536
3537 2000-03-27  Andy Piper  <andy@xemacs.org>
3538
3539         * glyphs.c (image_instantiate): be careful to check in the same
3540         way we assigned.
3541
3542 2000-03-27  Didier Verna  <didier@xemacs.org>
3543
3544         * config.h.in: define the proper SMART_INCLUDE macro.
3545         handle renaming of `foo_h_path' to `foo_h_file'.
3546
3547         * database.c: ditto.
3548
3549         * emacs.c: ditto.
3550
3551         * linuxplay.c: ditto.
3552
3553         * terminfo.c: ditto.
3554
3555         * tooltalk.h: ditto.
3556
3557 2000-03-27  Andy Piper  <andy@xemacs.org>
3558
3559         * glyphs-msw.c (mswindows_update_widget): make sure the widget
3560         gets updated whenever the face might have changed.
3561
3562 2000-03-26  Mike Alexander  <mta@arbortext.com>
3563
3564         * dumper.c (pdump_resource_free): Fix the comment.
3565
3566 2000-03-21  Olivier Galibert  <galibert@pobox.com>
3567
3568         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
3569
3570 2000-03-22  Mike Alexander  <mta@arbortext.com>
3571
3572         * dumper.c: Include Windows headers on Windows
3573         (pdump_resource_free): Add a body to the function
3574         (pdump_load): exe_name -> exe_path and add some comments.
3575
3576 2000-03-25  Mike Alexander  <mta@arbortext.com>
3577
3578         * gui.c (copy_gui_item_tree): Return a value in all cases
3579
3580 2000-03-21  Didier Verna  <didier@xemacs.org>
3581
3582         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
3583         lwlib/config.h.in.
3584         (SMART_INCLUDE): new macro.
3585         (POSTGRES_INCLUDE): new macro to include postgresql headers from
3586         the proper location.
3587
3588         * postgresql.c: use it.
3589
3590         * inline.c: ditto.
3591
3592 2000-03-24  Andy Piper  <andy@xemacs.org>
3593
3594         * gutter.c (redraw_exposed_gutters): must be "in display" when we
3595         do this.
3596
3597 2000-03-24  Andy Piper  <andy@xemacs.org>
3598
3599         * redisplay-output.c (compare_runes): use image_instance_changed
3600         to detect changes. Do not depend on glyphs_changed, only depend on
3601         dirtiness.
3602          (redisplay_output_layout): add debug messages.
3603         (compare_runes): ditto.
3604
3605         * glyphs.h: declare new functions.
3606         (struct Lisp_Image_Instance): remove percent and associated
3607         accessors.
3608
3609         * gui.h: declare new copying functions.
3610
3611         * gui.c (copy_gui_item_tree): new function.
3612         (copy_gui_item): new function.
3613         (gui_item_id_hash): revert to standard hash.
3614         (gui_item_hash): ditto.
3615         (gui_item_hash_internal): deleted.
3616         (mark_gui_item): mark value.
3617         (gui_item_add_keyval_pair): add value.
3618         (gui_item_init): ditto.
3619         (gui_add_item_keywords_to_plist): ditto.
3620         (gui_item_equal): ditto.
3621         (syms_of_gui): add Q_value.
3622
3623         * glyphs-x.c (x_progress_gauge_update): use pending items and
3624         value for setting the state.
3625         (x_update_widget): don't set items from pending here.
3626
3627         * glyphs-widget.c (update_widget): update items here.
3628         (progress_gauge_set_property): use items for storing value. Put
3629         new value in pending items.
3630
3631         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
3632         items for new value. Convert percent -> value.
3633         (mswindows_tab_control_update): don't update items here.
3634
3635         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
3636         (update_subwindow): ditto.
3637         (image_instance_changed): new function. Compare hash values and
3638         past and present widget items.
3639         (image_instantiate): We more careful about where we instantiate
3640         things.
3641         (image_instantiate): add error checking.
3642
3643         * gutter.c (syms_of_gutter): use -hook.
3644
3645 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
3646
3647         * console-tty.c (Fset_console_tty_input_coding_system): Use
3648         Qkeyboard.
3649         (Fset_console_tty_output_coding_system): Use Qterminal.
3650         (tty_init_console): Use Qkeyboard and Qterminal.
3651
3652 2000-03-21  Ben Wing  <ben@xemacs.org>
3653
3654         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
3655         From Mike Alexander <mta@arbortext.com>.
3656
3657 2000-03-21  Ben Wing  <ben@xemacs.org>
3658
3659         * event-msw.c (mswindows_need_event): Horrible kludge to fix
3660         process brokenness.  Proper implementation to come.
3661         * callproc.c:
3662         Rename call-process-internal to old-call-process-internal.
3663         New impl. in process.el.
3664
3665 2000-03-21  Martin Buchholz  <martin@xemacs.org>
3666
3667         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
3668
3669 2000-03-20  Andy Piper  <andy@xemacs.org>
3670
3671         * glyphs.c (full_list_hash): make hashes of the same elements in
3672         different orders return different values.
3673
3674 2000-03-20  Martin Buchholz <martin@xemacs.org>
3675
3676         * XEmacs 21.2.32 is released.
3677
3678 2000-03-20  Martin Buchholz  <martin@xemacs.org>
3679
3680         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
3681         (DFC_MALLOC_USE_CONVERTED_DATA):
3682         Add aliasing-safe casts to allow use with char* or unsigned char*
3683         lvalues.
3684
3685         * eldap.c (Fldap_open):
3686         (Fldap_search_basic):
3687         (Fldap_add):
3688         (Fldap_modify):
3689         Make C++-compilable.
3690         Make sure GCPRO'ed variables are initialized.
3691         Use temp variables to avoid repeated calls to Flength.
3692
3693 2000-03-16  Martin Buchholz  <martin@xemacs.org>
3694
3695         * sysfile.h:
3696         Make sure PATH_MAX is always defined.
3697         Include limits.h for PATH_MAX.
3698         Deprecate use of MAXPATHLEN.
3699
3700 2000-03-10  Martin Buchholz  <martin@xemacs.org>
3701
3702         * emacs.c: Add reinit_vars_of_fileio.
3703         * symsinit.h: Add reinit_vars_of_fileio.
3704         * fileio.c (reinit_vars_of_fileio): New.
3705         * fileio.c (Fmake_temp_name):
3706         Initialize temp_name random number from microseconds to make
3707         collisions even less likely.  Initialize always at process startup
3708         time.  (make-temp-name) used to return the same file name twice in
3709         a row when PDUMP.
3710         Random stylistic fiddling.
3711         Comment fixes.
3712
3713 2000-03-20  Andy Piper  <andy@xemacs.org>
3714
3715         * glyphs.c (image_instantiate): allow text glyphs to be
3716         instantiated in the minibuffer window.
3717
3718 2000-03-19  Andy Piper  <andy@xemacs.org>
3719
3720         * glyphs.c (image_instance_hash): be careful about which items we
3721         hash on.
3722
3723         * glyphs-widget.c (tab_control_set_property): record into pending
3724         items rather than the actual items.
3725
3726         * glyphs-x.c (x_update_widget): use pending items to update with.
3727
3728         * glyphs-msw.c (mswindows_tab_control_update): use pending items
3729         to update with.
3730
3731         * glyphs.c (mark_image_instance): mark pending items.
3732
3733         * window.c (Fset_window_configuration): record the buffer.
3734         (Fselect_window): totally revert previous change which breaks many
3735         things.
3736
3737 2000-03-18  Andy Piper  <andy@xemacs.org>
3738
3739         * glyphs-msw.c (mswindows_tab_control_update): force selected
3740         item.
3741
3742         * glyphs.c (image_instantiate): don't allow the minibuffer as a
3743         window domain cache, otherwise we get inconsistencies at
3744         startup. There is something fishy at startup which can lead to the
3745         minibuffer being the selected window when the gutter content is
3746         instantiated.
3747
3748         * gui.c (parse_gui_item_tree_list): add probably unneccessary
3749         gcpros.
3750         (parse_gui_item_tree_children): ditto.
3751         (parse_gui_item_tree_item): ditto.
3752
3753         * glyphs.c (Fupdate_widget_instances): return something.
3754
3755 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
3756
3757         * window.c (Fselect_window): Undo 2000-03-17 change.
3758
3759 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
3760
3761         * postgresql.c (Fpq_setenv): Remove this turkey when linking
3762         against v7.0 libraries.  Insta-coredump city until the postgres
3763         folks fix it.
3764
3765 2000-03-17  Andy Piper  <andy@xemacs.org>
3766
3767         * faces.c (complex_vars_of_faces): don't give the widget face an
3768         inherited background pixmap.
3769
3770         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
3771         selected item.
3772
3773         * event-stream.c (Fdispatch_non_command_events): return something.
3774
3775         * gutter.c (output_gutter): use widget face.
3776         (clear_gutter): ditto.
3777
3778         * NEWS: adjust again.
3779
3780         * window.c (Fselect_window): make sure this runs to completion to
3781         avoid oddities with Fset_window_configuration.
3782         (Fcurrent_window_configuration): in general do not save the
3783         minibuffer as the selected window.
3784
3785         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
3786
3787 2000-03-16  Olivier Galibert  <galibert@pobox.com>
3788
3789         * emacs.c (Frunning_temacs_p): Revert previous patch.
3790         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
3791
3792 2000-03-16  Andy Piper  <andy@xemacs.org>
3793
3794         * glyphs-x.c (x_tab_control_update): if no widget values then
3795         return.
3796
3797         * NEWS: update for new features.
3798
3799         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
3800         synthetic event to the native system.
3801         (reinit_vars_of_event_Xt): set force_event_pending to
3802         emacs_Xt_force_event_pending.
3803
3804         * events.h (struct event_stream): add force_event_pending.
3805
3806         * specifier.c (recompute_one_cached_specifier_in_window): add
3807         comment.
3808
3809         * redisplay.c (redisplay_frame): don't call
3810         update_frame_subwindows. Reset subwindow cachels when
3811         subwindows_changed, removing this was an optimization too far.
3812
3813         * redisplay-output.c (compare_runes): reorganize so that we catch
3814         glyph changes when we want them. Set optimize_output when this
3815         would help layouts.
3816         (redisplay_output_layout): remove frame_really_changed, use
3817         optimize_output instead.
3818
3819         * redisplay-msw.c (mswindows_output_display_block): reset
3820         optimize_output after outputting a glyph.
3821         * redisplay-x.c (x_output_display_block): ditto.
3822         * redisplay-tty.c (tty_output_display_block): ditto.
3823
3824         * gutter.c: (specifier_vars_of_gutter): use new spec changed
3825         functions.
3826         (gutter_specs_changed): do specific gutter positions.
3827         (top_gutter_specs_changed): new function. Only update the
3828         specified gutter specs.
3829         (bottom_gutter_specs_changed): ditto.
3830         (left_gutter_specs_changed): ditto.
3831         (right_gutter_specs_changed): ditto.
3832
3833         * gui.c (gui_item_hash_internal): new function, does a real hash.
3834         (gui_item_id_hash): use it.
3835         (gui_item_hash): hash the eval'ed gui_item.
3836
3837         * gui-x.c (popup_selection_callback): send an eval event to call
3838         Fupdate_widget_instances.
3839
3840         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
3841         to call Fupdate_widget_instances.
3842
3843         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
3844         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
3845
3846         * glyphs.c: (update_frame_subwindows): deleted.
3847         (Fupdate_widget_instances): new function for updating the dirty
3848         state of widgets that might have changed.
3849         (syms_of_glyphs): add Qupdate_widget_instances.
3850         (full_list_hash): hash a list completely.
3851         (image_instance_hash): use it for items and properties.
3852
3853         * frame-msw.c (mswindows_size_frame_internal): remove unused
3854         variable.
3855
3856         * faces.h (struct face_cachel): fix comment.
3857
3858         * event-stream.c (Fdispatch_non_command_events): new
3859         function. Process non-command events, forcing an event cycle
3860         beforehand.
3861         (syms_of_event_stream): declare.
3862         (event_stream_force_event_pending): new function. Force an event
3863         on the native event queue so that an event cycle will occur next
3864         time we check.
3865
3866         * event-msw.c:
3867         (struct ntpipe_shove_stream):
3868         (mswindows_enqueue_dispatch_event):
3869         (mswindows_dequeue_dispatch_event):
3870         (mswindows_cancel_dispatch_event):
3871         (mswindows_pump_outstanding_events):
3872         (mswindows_drain_windows_queue):
3873         (mswindows_handle_paint):
3874         (mswindows_wnd_proc):
3875         (mswindows_key_to_emacs_keysym):
3876         (get_process_input_waitable):
3877         (emacs_mswindows_delete_stream_pair): re-indent file.
3878         (mswindows_need_event): do not process further fds if the windows
3879         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
3880         fixes the 100% cpu problem.
3881         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
3882
3883 2000-03-15  Olivier Galibert  <galibert@pobox.com>
3884
3885         * alloc.h: New.
3886         * dumper.h: New.
3887         * dumper.c: New.
3888
3889         * emacs.c: Moved dump file searching to dumper.c.
3890         (Frunning_temacs_p): Fixed.
3891
3892         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
3893         last_lrecord_type_index_assigned.
3894
3895 2000-02-20  Olivier Galibert  <galibert@pobox.com>
3896
3897         * symsinit.h: Added reinit parameter to init_console_stream
3898         declaration.
3899
3900         * lisp.h: Added file parameter to pdump_load declaration.
3901
3902         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
3903         support.  Added dump file searching.
3904
3905         * config.h.in: Added EMACS_PROGNAME.
3906
3907         * console-stream.c (init_console_stream): Fix reinitialisation
3908         when running from temacs.
3909
3910         * alloc.c (pdump): Add id support.
3911         (pdump_load): Add file parameter and signature/id support.
3912
3913         * Makefile.in.in: Add full pdump support.
3914
3915 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
3916
3917         * postgresql.c: Update documentation to reflect latest code
3918         status.
3919         (print_result): Show tuple counts in printed representation when
3920         appropriate.
3921         (Fpq_put_nbytes): MULE-ize.
3922         (Fpq_get_line_async): Ditto.
3923
3924 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
3925
3926         * postgresql.c (Fpq_lo_import): Fix return value.
3927         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
3928
3929 2000-03-13  Ben Wing  <ben@xemacs.org>
3930
3931         * alloc.c (pdump_load):
3932         Fix compile warning under mswin.
3933
3934 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
3935
3936         * postgresql.c: Mule-ization, bug fixes.
3937         Use PG_CODING to encapsulate coding system name changes.
3938         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
3939         (pg-coding-system): Create.
3940
3941         (Fpq_conn_defaults): Mule-ize.
3942         (Fpq_connectdb): Mule-ize & bug fix.
3943         (Fpq_connect_start): Mule-ize.
3944         (Fpq_set_client_encoding): Mule-ize.
3945         (Fpq_finish): Document `DEAD' connection status.
3946         (Fpq_clear): Ditto.
3947         (Fpq_pgconn): Mule-ize.
3948         (Fpq_exec): Mule-ize & bug fix.
3949         (Fpq_send_query): Ditto.
3950         (Fpq_get_result): Ditto.
3951         (Fpq_res_status): Mule-ize.
3952         (Fpq_result_error_message): Mule-ize.
3953         (Fpq_ntuples): fix comments.
3954         (Fpq_fname): Mule-ize.
3955         (Fpq_fnumber): Mule-ize.
3956         (Fpq_ftype): fix comments.
3957         (Fpq_get_value): Mule-ize.
3958         (Fpq_cmd_status): Ditto.
3959         (Fpq_cmd_tuples): Ditto.
3960         (Fpq_oid_value): Ditto.
3961         (Fpq_notifies): Ditto.
3962         (Fpq_lo_import): Ditto.
3963         (Fpq_lo_export): Ditto.
3964         (Fpq_get_line): Ditto.
3965         (Fpq_put_line): Mule-ize and bug fix.
3966         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
3967
3968 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
3969
3970         * postgresql.c (vars_of_postgresql): Mule-ize.
3971         (Fpq_conn_defaults): Ditto.
3972
3973 2000-03-12  Ben Wing  <ben@xemacs.org>
3974
3975         * alloc.c (Fmake_byte_code):
3976         * alloc.c (debug_string_purity_print):
3977         * alloc.c (pdump_backtrace):
3978         * alloc.c (pdump_get_indirect_count):
3979         * alloc.c (pdump_register_sub):
3980         * alloc.c (pdump_register_object):
3981         * alloc.c (pdump_register_struct):
3982         * alloc.c (pdump_dump_data):
3983         * alloc.c (pdump_reloc_one):
3984         Minor cleanups.
3985
3986         * console-msw.c:
3987         * console-msw.c (GetConsoleHwnd):
3988         * console-msw.c (msw_hide_console):
3989         * console-msw.c (msw_show_console):
3990         * console-msw.c (msw_ensure_console_buffered):
3991         * console-msw.c (msw_output_console_string):
3992         * console-msw.c (console_type_create_mswindows):
3993
3994         a) Added functions to manipulate the console window for use with
3995         shell support.
3996
3997         b) Added support for writing text to the console, which is now
3998         used under Windows when xemacs is not being run non-interactively,
3999         to write text that would otherwise be destined for stdout because
4000         under these circumstances, text written to stdout tends to
4001         disappear and not be seen.
4002
4003         * console-msw.h:
4004         * event-Xt.c:
4005         * event-Xt.c (x_event_to_emacs_event):
4006         * event-Xt.c (describe_event_window):
4007         * events-mod.h (XEMACS_MOD_CONTROL):
4008         * events.c:
4009         * events.c (Fmake_event):
4010         * events.c (character_to_event):
4011         * events.c (event_to_character):
4012         * events.c (format_event_object):
4013         * events.c (Fevent_modifiers):
4014         * events.h:
4015         * events.h (struct key_data):
4016         * events.h (struct button_data):
4017         * events.h (struct misc_user_data):
4018         * frame-x.c (Fcde_start_drag_internal):
4019         * frame-x.c (Foffix_start_drag_internal):
4020         * gpmevent.c (Freceive_gpm_event):
4021         * keymap.c:
4022         * keymap.c (bucky_sym_to_bucky_bit):
4023         * keymap.c (control_meta_superify):
4024         * keymap.c (make_key_description):
4025         * keymap.c (keymap_lookup_directly):
4026         * keymap.c (create_bucky_submap):
4027         * keymap.c (keymap_store):
4028         * keymap.c (define_key_check_and_coerce_keysym):
4029         * keymap.c (define_key_parser):
4030         * keymap.c (define_key_alternate_name):
4031         * keymap.c (Fdefine_key):
4032         * keymap.c (raw_lookup_key_mapper):
4033         * keymap.c (struct map_keymap_unsorted_closure):
4034         * keymap.c (map_keymap_unsorted_mapper):
4035         * keymap.c (map_keymap_sort_predicate):
4036         * keymap.c (map_keymap_sorted):
4037         * keymap.c (accessible_keymaps_mapper_1):
4038         * keymap.c (where_is_recursive_mapper):
4039         * keymap.c (describe_map_mapper):
4040         * keymap.c (describe_map_sort_predicate):
4041         * keymap.c (describe_map):
4042         * keymap.c (complex_vars_of_keymap):
4043         And a number of other files, the key modifier preprocessor
4044         constants that xemacs uses have names that conflict with constants
4045         defined under MS Windows for other purposes, so they were renamed
4046         to begin with the prefix XEMACS_. The variables that hold such
4047         modifiers were changed to consistently be of type int to fix
4048         various compile warnings.
4049
4050         * console.c (complex_vars_of_console):
4051         * device.c:
4052         * device-msw.c:
4053         * device-msw.c (mswindows_finish_init_device):
4054         * device-msw.c (msw_get_workspace_coords):
4055         * device-msw.c (mswindows_device_system_metrics):
4056         and various other files, added support for a new
4057         device property called offset-workspace which returns the position
4058         of the upper left corner of the workspace area and goes along with
4059         the existing size-workspace property.
4060
4061         * dialog-msw.c:
4062         * dialog-msw.c (push_bufbyte_string_as_unicode):
4063         * dialog-msw.c (mswindows_popup_dialog_box):
4064         Added support for XEmacs-style accelerator specifications in
4065         button text.  Note: I didn't add support for this under X Windows,
4066         and somebody needs to do this.
4067
4068         * dialog.c:
4069         * dialog.c (Fpopup_dialog_box):
4070         Documented the support for accelerators that was just mentioned.
4071
4072         editfns.c (get_home_directory): Changed behavior under Windows
4073         when HOME not defined; former behavior was irretrievably broken.
4074
4075         * emacs.c:
4076         * emacs.c (main_1):
4077         * emacs.c (main):
4078         * minibuf.c (clear_echo_area_internal):
4079         * minibuf.c (echo_area_append):
4080         * print.c:
4081         * print.c (std_handle_out_external):
4082         * print.c (std_handle_out_va):
4083         * print.c (fatal):
4084         * print.c (write_string_to_stdio_stream):
4085         * print.c (output_string):
4086         * print.c (debug_print):
4087         * print.c (debug_backtrace):
4088         * print.c (debug_short_backtrace):
4089         Cleaned up the code that prints text to stdout so that this can be
4090         changed to output into a console window instead under MS Windows,
4091         as described above.
4092
4093         * eval.c:
4094         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
4095         * eval.c (internal_catch):
4096         * eval.c (unwind_to_catch):
4097         * eval.c (throw_or_bomb_out):
4098         * eval.c (condition_case_1):
4099         * eval.c (signal_1):
4100         * eval.c (check_error_state_sanity):
4101         * eval.c (call_with_suspended_errors_1):
4102         * eval.c (call_with_suspended_errors):
4103         * eval.c (reinit_vars_of_eval):
4104         Added code to catch throw loops and check for a pesky bug that may
4105         be gone now.
4106
4107         * event-msw.c:
4108         * event-msw.c (key_needs_default_processing_p):
4109         * event-msw.c (mswindows_wnd_proc):
4110         * event-msw.c (mswindows_modifier_state):
4111         * event-msw.c (emacs_mswindows_quit_p):
4112         * event-msw.c (vars_of_event_mswindows):
4113         a) Added support for using the alt key to select menu items as is
4114         standard under MS Windows.  This is controlled using the variable
4115         menu-accelerator-enabled, just like under X Windows.  There is an
4116         option on the options menu to turn this support on.  I really
4117         think that it should be on by default under Windows, but I'm not
4118         going to make this change yet.
4119
4120         b)  Added support for dynamic display size changes under Windows.
4121
4122         * event-stream.c:
4123         * event-stream.c (maybe_echo_keys):
4124         * event-stream.c (Fnext_event):
4125         * event-stream.c (command_builder_find_leaf):
4126         * event-stream.c (lookup_command_event):
4127         * event-stream.c (execute_command_event):
4128         * event-stream.c (pre_command_hook):
4129         * event-stream.c (post_command_hook):
4130         * event-stream.c (syms_of_event_stream):
4131         * event-stream.c (vars_of_event_stream):
4132         * event-stream.c (complex_vars_of_event_stream):
4133         * events.h (struct command_builder):
4134
4135         a) Tried to clean up a little bit the horribly written x-specific
4136         accelerator code that crept into this file.  I moved this code
4137         into menubar-x.c where it belongs. I also needed to move the
4138         command builder structure into the file events.h because it is
4139         accessed directly by this accelerator code.  What I didn't do, but
4140         which should be done at some point, is to properly abstract this
4141         code using device methods instead of the kludgy way that it
4142         currently hooks into the event code.
4143
4144         b) Added the lisp variables this-command-properties and
4145         last-command- properties, which should be used to synchronize two
4146         adjacent commands in preference to playing games with the variable
4147         this-command, which is typically what happens.
4148
4149         c) Added some slightly nasty code to hook into the lisp support
4150         for shifted- motion-key selection.  This is actually necessary for
4151         somewhat complicated reasons, which are described in
4152         simple.el. (NB: I think the proper thing would be to have the code
4153         that calls the pre and post command hooks also call out to generic
4154         lisp functions in simple.el, where all built-in stuff could be
4155         added.  I will think about this more.)
4156
4157         * event-unixoid.c (poll_fds_for_input):
4158         * lread.c (readchar):
4159         * redisplay-tty.c (tty_clear_frame):
4160         * redisplay-x.c (x_get_gc):
4161         * signal.c (interrupt_signal):
4162         And a whole bunch of other files: fixed up places that printed
4163         directly to stderr to instead call the function stderr_out so that
4164         the changes I made under Windows work correctly.
4165
4166         * filemode.c (mode_string):
4167         Warning fixes.
4168
4169         * frame-msw.c:
4170         * frame-msw.c (mswindows_size_frame_internal):
4171         Fixed the computation of frame size and position to keep the frame
4172         within the workspace area, rather than within the physical
4173         dimensions of the screen, so that the frame doesn't overlap window
4174         manager decorations, such as the start menu and toolbar, typically
4175         at the bottom of the screen.
4176
4177         * frame.c (vars_of_frame):
4178         Changed the default frame title format under MS Windows to consist
4179         of buffername-XEmacs, which is standard under MS Windows.  I think
4180         it might be a good idea to change this everywhere because I think
4181         it is superior to the current frame title format, but this is the
4182         kind of change that is likely to cause some people to get annoyed,
4183         so I'm not making it.
4184
4185         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
4186
4187         * gui-msw.c (mswindows_handle_gui_wm_command):
4188         Fixed compile warnings.
4189
4190         * gui-x.c:
4191         * gui-x.c (strdup_and_add_accel):
4192         * gui-x.c (button_item_to_widget_value):
4193         * gui-x.h:
4194         Added code to automatically put an accelerator onto the beginning
4195         of menu items that don't have one as is now the standard, and is
4196         described more later.  Also fixed things so that the menu item
4197         name can be an evaluated expression, again a new standard.
4198
4199         * gui.c:
4200         * gui.c (gui_item_add_keyval_pair):
4201         * gui.c (make_gui_item_from_keywords_internal):
4202         * gui.c (gui_add_item_keywords_to_plist):
4203         * gui.c (gui_item_accelerator):
4204         * gui.c (gui_name_accelerator):
4205         * gui.c (gui_item_included_p):
4206         * gui.c (gui_item_display_flush_left):
4207         * gui.c (gui_item_display_flush_right):
4208         * gui.c (parse_gui_item_tree_item):
4209         * gui.c (parse_gui_item_tree_children):
4210         * gui.c (parse_gui_item_tree_list):
4211         Mule-ized.  Cleanup.  GCPRO addition.
4212
4213         * line-number.c (buffer_line_number):
4214         * lisp.h:
4215         * lisp.h (EMACS_INT_MAX):
4216         Added the manifest constant EMACS_INT_MIN corresponding to the
4217         existing constant EMACS_INT_MAX.  This is partially to fix compile
4218         warnings under Windows, and partly for cleanliness.
4219
4220         * menubar-msw.c:
4221         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
4222         * menubar-msw.c (msw_translate_menu_or_dialog_item):
4223         * menubar-msw.c (displayable_menu_item):
4224         * menubar-msw.c (populate_menu_add_item):
4225         * menubar-msw.c (populate_or_checksum_helper):
4226         * menubar-msw.c (populate_menu):
4227         * menubar-msw.c (update_frame_menubar_maybe):
4228         * menubar-msw.c (prune_menubar):
4229         * menubar-msw.c (msw_char_is_accelerator):
4230         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
4231         * menubar-msw.c (mswindows_handle_wm_command):
4232         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
4233         * menubar-msw.c (mswindows_handle_wm_initmenu):
4234         * menubar-msw.c (mswindows_update_frame_menubars):
4235         * menubar-msw.c (mswindows_free_frame_menubars):
4236         * menubar-msw.c (mswindows_popup_menu):
4237         Fixed a bug in handling accelerators where an extra character
4238         would be displayed in the menu item.  Also generalized the
4239         function displayable_menu_item because it is now used by the
4240         dialog box code as well.  And finally, added code in the functions
4241         that create the menubar to extract a list of accelerators for the
4242         top level menubar, which is used in the event code to determine
4243         whether a particular alt-key combination should be used to invoke
4244         a menu item, or should be passed through to access the standard
4245         XEmacs keymap binding for this key combination.
4246
4247         Much needed GCPROing.
4248
4249         * menubar-x.c:
4250         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
4251         * menubar-x.c (menu_item_descriptor_to_widget_value):
4252         * menubar-x.c (restore_in_menu_callback):
4253         * menubar-x.c (x_popup_menu):
4254         * menubar-x.c (menu_move_up):
4255         * menubar-x.c (menu_move_down):
4256         * menubar-x.c (menu_move_left):
4257         * menubar-x.c (menu_move_right):
4258         * menubar-x.c (menu_select_item):
4259         * menubar-x.c (command_builder_operate_menu_accelerator):
4260         * menubar-x.c (menu_accelerator_junk_on_error):
4261         * menubar-x.c (command_builder_find_menu_accelerator):
4262         * menubar-x.c (Faccelerate_menu):
4263         * menubar.h:
4264         Moved a whole bunch of code here that was previously in
4265         event-stream.c as described above.  There is also code connected
4266         to the new standard of adding an accelerator to the beginning of
4267         menu items that don't have one as described above and below.
4268
4269         * menubar.c:
4270         * menubar.c (menu_parse_submenu_keywords):
4271         * menubar.c (Fmenu_find_real_submenu):
4272         * menubar.c (Fnormalize_menu_item_name):
4273         * menubar.c (syms_of_menubar):
4274         * menubar.c (vars_of_menubar):
4275         * menubar.c (complex_vars_of_menubar):
4276
4277         a) Cleaned up a bunch of documentation and improved it.
4278
4279         b) XEmacs now automatically adds an accelerator onto the beginning
4280         of any menu items that don't have one.  I did this because there
4281         will inevitably be some menu items on the main menubar that don't
4282         have accelerators on them because the package that adds that
4283         particular menu item hasn't yet been fixed up to have accelerators
4284         in them and it looked rather strange to have some items with and
4285         some items without accelerators, especially since even in items
4286         without accelerators, you can, at least under windows, still
4287         access the item through an accelerator corresponding to the first
4288         character in the item's name.  If people don't like this behavior,
4289         I can add a variable to turn it off optionally, but I'm not sure
4290         this is a good idea because we really do need to have accelerators
4291         on all of the menu items, and if a package doesn't like the
4292         accelerators being put on the first character, then it should put
4293         the accelerators where they belong.
4294
4295         c) I made a behavior change, which is that the descriptor that
4296         specifies the text of the menu item, which formerly was just a
4297         string, can now also be an evaluated expression.  This makes this
4298         descriptor parallel with all of the others, which could also be
4299         evaluated expressions.  This also obviates the need for the
4300         keyword :label, which was previously listed in the documentation
4301         as unimplemented, and which was for the same purpose.
4302
4303         d) GCPROing.
4304
4305         * ntproc.c:
4306         * ntproc.c (new_child):
4307         * ntproc.c (sys_spawnve):
4308         * ntproc.c (find_child_console):
4309         * ntproc.c (sys_kill):
4310         Fixed compile warnings.  By the way, this file should really go
4311         away entirely, and this will happen as soon as Kirill makes his
4312         final round of process cleanups, which affect the function
4313         call-process.
4314
4315         * process-nt.c:
4316         * process-nt.c (struct nt_process_data):
4317         * process-nt.c (find_process_from_pid):
4318         * process-nt.c (send_signal_the_nt_way):
4319         * process-nt.c (enable_child_signals):
4320         * process-nt.c (find_child_console):
4321         * process-nt.c (send_signal_the_95_way):
4322         * process-nt.c (nt_finalize_process_data):
4323         * process-nt.c (ensure_console_window_exists):
4324         * process-nt.c (nt_create_process):
4325         * process-nt.c (nt_kill_child_process):
4326         * process-nt.c (nt_kill_process_by_pid):
4327         * process-nt.c (nt_open_network_stream):
4328         * process-nt.c (vars_of_process_nt):
4329         Copied over code from Emacs 20.5 to correctly send signals to sub-
4330         processes under Windows 95.  Also added code to automatically
4331         create and hide console window when a sub-process is created under
4332         Windows 95, which obviates the need for the separate runemacs.exe
4333         executable, and finally implemented some variables that were
4334         implemented in Emacs 20.5, but previously not in XEmacs.  These
4335         include mswindows- start-process-share-console and
4336         mswindows-start-process-inherit-error-mode. (Both of these only
4337         apply to Windows 95.)
4338
4339         * regex.c (regex_compile): Fixed a compile warning.
4340
4341         * select-msw.c:
4342         * select-msw.c (mswindows_own_selection):
4343         * select-msw.c (mswindows_get_foreign_selection):
4344         * select-msw.c (mswindows_disown_selection):
4345         * select-msw.c (console_type_create_select_mswindows):
4346         * select-msw.c (syms_of_select_mswindows):
4347         Cleaned up the file and implemented the device method
4348         selection_exists_p, which had accidentally been left out.  Also
4349         removed four lisp functions that were remnants from before the
4350         time when the selection code was properly device abstracted.
4351         These functions are no longer needed because there are generic
4352         equivalents, and because they were added recently and don't exist
4353         in FSF Emacs, I don't think there's any problem with just deleting
4354         them.
4355
4356         * sysdep.c:
4357         * sysdep.c (sys_subshell):
4358         Fixed a compile warning, although in this case there's probably
4359         something wrong with this code, and it ought to be looked into
4360         more thoroughly by somebody who understands it.
4361
4362         * window.c:
4363         * window.c (Fwindow_text_area_height):
4364         * window.c (Fwindow_width):
4365         * window.c (Fwindow_full_width):
4366         * window.c (Fwindow_pixel_width):
4367         * window.c (debug_print_window):
4368         * window.c (syms_of_window):
4369         Added functions window-text-area-height and window-full-width,
4370         which are functions for returning various width and height
4371         characteristics of a window. (One of these functions is necessary
4372         for making the file dialog box work correctly, and the other one
4373         was added for completeness.)  Also added a table to the
4374         documentation for window-height which describes the entire scheme
4375         for accessing width and height characteristics of a window.
4376
4377 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
4378
4379         * nt.c (fstat): Added a comment for another problem with
4380         non-encapsulated [f]stat(), reported by Adrian Aichner
4381         <aichner@ecf.teradyne.com>.
4382
4383 2000-03-11  Andy Piper  <andy@xemacs.org>
4384
4385         * window.c (make_dummy_parent): initialize subwindow instance
4386         cache.
4387         (Fset_window_configuration): zero extent_modiff.
4388
4389 2000-03-10  Andy Piper  <andy@xemacs.org>
4390
4391         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
4392         more changes can be triggered.
4393         (Fredisplay_frame): ditto.
4394         (Fredraw_device): ditto.
4395         (Fredisplay_device): ditto.
4396         (redisplay_frame): make non-static.
4397         (redisplay_frame): call update_frame_gutter_geometry outside of
4398         display proper.
4399
4400         * gutter.h: declare update_frame_gutter_geometry.
4401
4402         * redisplay.h: declare redisplay_frame.
4403
4404         * gutter.c (update_frame_gutter_geometry): move geometry changes
4405         in update_frame_gutters here. Geometry changes can only occur
4406         outside of redisplay.
4407         (update_frame_gutters): remove geometry change code.
4408         (Fredisplay_gutter_area): make sure that we are in display when we
4409         update and that we have flushed any size changes.
4410
4411 2000-03-11  Andy Piper  <andy@xemacs.org>
4412
4413         * alloc.c (pdump_dump_data): remove i & count shadows.
4414
4415 2000-02-27  Mike Alexander  <mta@arbortext.com>
4416
4417         * sysdep.h: Declare pdump_read_file
4418
4419         * sysdep.c (pdump_read_file): New function
4420
4421         * alloc.c (pdump_load): Call pdump_read_file to get the portable
4422         dump data
4423
4424 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
4425
4426         * lrecord.h: add `lrecord_type_pgsetenv'.
4427
4428 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
4429
4430         * symsinit.h: declare (vars|syms)_of* functions.
4431         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
4432
4433 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
4434
4435         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
4436
4437         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
4438         GCCs.
4439
4440         * emacs.c (main_1): Call postgres initialization code.
4441
4442         * postgresql.h: New file.  PostgreSQL RDBMS support.
4443         * postgresql.c: New file.
4444
4445 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
4446
4447         * redisplay-output.c (redisplay_output_display_block): Disable
4448         redundant code.
4449
4450 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
4451
4452         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
4453         (Fcanna_henkan_next): Ditto.
4454         (Fcanna_bunsetu_henkou): Ditto.
4455         (Fcanna_henkan_kakutei): Ditto.
4456         (Fcanna_henkan_end): Ditto.
4457         (Fcanna_henkan_quit): Ditto.
4458         (Fcanna_henkan_next): Set retun value correctly.
4459         (c2mu): Use unsigned char instead of signed char.
4460
4461 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
4462
4463         * emacs.c (main_1): Always call syms_of_gui.
4464         * inline.c: include gui.h
4465
4466 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
4467
4468         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
4469         converted to Lisp_Object.
4470         (Qtop_bottom): New variable.
4471         (syms_of_redisplay): Initialize it.
4472         * redisplay.h (Vvisible_bell): Ditto.
4473         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
4474         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
4475         only flash top and bottom.
4476
4477 2000-03-08  Andy Piper  <andy@xemacs.org>
4478
4479         * buffer.c (Frename_buffer): record new buffer name the right way.
4480
4481 2000-03-08  Andy Piper  <andy@xemacs.org>
4482
4483         * glyphs.c (update_subwindow): increase hash depth so that widget
4484         items get picked up properly.
4485
4486         * redisplay-output.c (compare_runes): increase hash depth so that
4487         widget items get picked up properly.
4488
4489 2000-03-08  Andy Piper  <andy@xemacs.org>
4490
4491         * gutter.c (output_gutter): add some debug.
4492
4493         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
4494         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
4495         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
4496
4497         * redisplay-output.c (compare_runes): use display_hash to
4498         determine if glyphs really are not the same.
4499
4500         * glyphs.c (update_subwindow): check display_hash to see if
4501         anything really needs to be updated. If not then do
4502         nothing. Record the display_hash after updating.
4503         (image_instance_equal): compare the image_instance face also.
4504
4505 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
4506
4507         * redisplay.h: Fix comment style.
4508
4509 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
4510
4511         * consle-msw.h (struct mswindows_frame):
4512         Added new member paint_pending to indicate whether a WM_PAINT
4513         magic event has been queued for this frame.
4514
4515         * event-msw.c (mswindows_drain_windows_queue):
4516         Don't queue a WM_PAINT magic event if one is already queued.
4517         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
4518
4519         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
4520
4521 2000-03-07  Didier Verna  <didier@xemacs.org>
4522
4523         * dired.c: #include `regex.h' after `sysfile.h'.
4524
4525 2000-03-06  Martin Buchholz  <martin@xemacs.org>
4526
4527         * sound.c (init_nas_sound): Fix compiler warning.
4528
4529         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
4530         (FREE_STRUCT_P):
4531         (MARK_STRUCT_AS_FREE):
4532         (MARK_STRUCT_AS_NOT_FREE):
4533         Make `gcc -fstrict-aliasing' work properly.
4534
4535 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
4536
4537         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
4538         (mswindows_delete_device): Call CoUnnitialize().
4539
4540         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
4541
4542 2000-02-25    <CraigL@DyCon.com>
4543
4544         * process-nt.c: MinGW now has <shellapi.h>, but still needs
4545         <errno.h>.
4546
4547         * sysdep.c: This extern declaration for environ prevents MinGW
4548         from finding the variable in CRTDLL.DLL.
4549
4550         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
4551         windows headers.
4552         (SHGFI_EXETYPE): ..
4553         (WM_MOUSEWHEEL): ..
4554         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
4555         definitions.
4556         (MMRESULT): Removed, now defined in cygwin's windows headers.
4557         (TIMECAPS): ..
4558         (uid_t,gid_t,pid_t,ssize_t): ..
4559         (_timeb): Removed, MinGW defines both _timeb and timeb.
4560         (HAVE_H_ERRNO): Added.
4561         (HAVE_TZNAME): Added, configure is not detecting this.
4562
4563 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
4564
4565         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
4566         * syntax.c (syntax_match): Use it.
4567
4568         * cmds.c: Import auto-fill-chars from FSF Emacs.
4569         (Vauto_fill_chars): New variables.
4570         (internal_self_insert): Check Vauto_fill_chars.
4571         (vars_of_cmds):
4572         Declare auto-fill-chars as a Lisp variable and initialize it.
4573
4574 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
4575
4576         * fileio.c (Fmake_symbolic_link):
4577         (Ffile_symlink_p):
4578         Run handlers even if local machine doesn't have symlinks.
4579
4580 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
4581
4582         * event-msw.c (mswindows_drain_windows_queue):
4583         Don't generate paint magic events for non-XEmacs frames.
4584
4585 2000-03-05  Andy Piper  <andy@xemacs.org>
4586
4587         * redisplay.c (redisplay_frame): generate_displayable_area and
4588         friends assumes that we are not in GC, we therefore have to make
4589         sure that this doesn't happen.
4590
4591         * gutter.c (calculate_gutter_size): generate_displayable_area
4592         assumes that we are not in GC, we therefore have to make sure that
4593         this doesn't happen.
4594
4595 2000-03-05  Martin Buchholz  <martin@xemacs.org>
4596
4597         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
4598
4599 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
4600
4601         * redisplay.c (regenerate_window): Make sure we set a sane value
4602         for end_pos even if we jump out of the loop.
4603         (regenerate_window): Answer Ben's question :-).
4604         (start_end_of_last_line): Add may_error argument.
4605         (start_of_last_line):
4606         (end_of_last_line): Pass may_error = 0.
4607         (end_of_last_line_may_error): New function.
4608         (pixel_to_glyph_translation): Use it, so we don't crash in
4609         event_to_glyph.
4610
4611 2000-03-04  Andy Piper  <andy@xemacs.org>
4612
4613         * window.h (struct window): add gutter_extent_modiff.
4614
4615         * window.c (allocate_window): zero out gutter_extent_modiff.
4616
4617         * redisplay.h: declare sync_display_line_structs.
4618
4619         * redisplay.c (add_glyph_rune): add a better comment.
4620
4621         * redisplay-output.c (sync_display_line_structs): made non-static.
4622         (compare_runes): remove unneccesary glyph cachel access.
4623
4624         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
4625
4626         * gutter.c (output_gutter): don't output the gutter if extent
4627         changes only involve extents in buffers. use 4 sets of display
4628         lines.
4629         (gutter_extent_signal_changed_region_maybe): new function. Mark
4630         extents in gutters as changed.
4631         (update_frame_gutters): use 4 sets of display lines.
4632         (reset_gutter_display_lines): ditto.
4633         (free_frame_gutters): ditto.
4634         (redraw_exposed_gutter): force output of gutters.
4635
4636         * frame.h (struct frame): add 4 sets of gutter display lines.
4637
4638         * extents.c: (extent_changed_for_redisplay): signal changes to
4639         extents in strings in the gutter as well as extents in buffers.
4640
4641 2000-03-02  Andy Piper  <andy@xemacs.org>
4642
4643         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
4644
4645         * frame.c (Fmake_frame): make sure the gutters get initialized
4646         after the frame is visible.
4647         (set_frame_selected_window): re-arrange compilation macros a
4648         little.
4649         (change_frame_size_1): mark gutters changed.
4650
4651         * device.c (Fset_device_class): mark gutters changed.
4652
4653 2000-03-01  Andy Piper  <andy@xemacs.org>
4654
4655         * window.c (window_top_frame_gutter_height): deleted.
4656         (window_bottom_frame_gutter_height): ditto.
4657         (window_left_frame_gutter_height): ditto.
4658         (window_right_frame_gutter_height): ditto.
4659         (window_top_gutter_height): don't use them.
4660         (window_bottom_gutter_height): ditto.
4661         (window_left_gutter_width): ditto.
4662         (window_right_gutter_width): ditto.
4663         (Fsplit_window): ditto.
4664         (Fwindow_pixel_edges): don't use border dimensions here.
4665
4666         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
4667         (update_scrollbar_instance): ditto.
4668
4669         * redisplay.c (generate_modeline): don't take gutters into account.
4670         (generate_modeline): ditto.
4671         (redisplay_frame): small gutter display optimisation.
4672
4673         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
4674
4675         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
4676         gutters into account.
4677
4678         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
4679         for window position and type.
4680
4681         * gutter.c (get_gutter_coords): fix for frame gutters.
4682         (update_frame_gutters): update frame geometry if the gutters have
4683         changed.
4684         (init_frame_gutters): record current gutter geometries.
4685
4686         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
4687         var.
4688         (mswindows_widget_instantiate): ditto.
4689
4690         * frame.h (struct frame): add current_gutter_bounds.
4691
4692         * frame.c (change_frame_size_1): position window and minibuffer
4693         appropriately taking into account the frame gutters.
4694
4695         * frame-x.c: (x_initialize_frame_size): take into account the
4696         frame gutters.
4697
4698 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
4699
4700         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
4701
4702 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
4703
4704         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
4705
4706 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
4707
4708         * file-coding.c (reset_decoding_stream): Clear previous
4709         detection state when autodetect.
4710
4711 2000-02-29  Didier Verna  <didier@xemacs.org>
4712
4713         * extents.c (set_extent_glyph_1): don't require extents to be
4714         attached.
4715
4716 2000-02-27  Andy Piper  <andy@xemacs.org>
4717
4718         * gutter.c (Fset_default_gutter_position): don't default left and
4719         right gutter visibility to t.
4720         (Fset_default_gutter_position): run
4721         default-gutter-position-changed-hook.
4722         (syms_of_gutter): add default-gutter-position-changed-hook.
4723
4724 2000-02-26  Andy Piper  <andy@xemacs.org>
4725
4726         * specifier.c (Fmake_specifier): add gutter references.
4727
4728         * gutter.h (RAW_WINDOW_GUTTER): new macro.
4729
4730         * lisp.h: declare Fvalid_plist_p.
4731
4732         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
4733         as changed.
4734         (default_gutter_visible_p_changed_in_window): invalidate gutter as
4735         well as its visibility so that it gets reconstructed.
4736         (construct_window_gutter_spec): new function. Construct a string
4737         to be displayed in the gutter from a plist of strings. Take care
4738         to only use elements that are declared as visible.
4739         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
4740         WINDOW_GUTTER.
4741         (gutter_validate): allow plists of strings in the specifier.
4742         (gutter_specs_changed): construct the real_gutter from the gutter
4743         specs using construct_window_gutter_spec.
4744         (gutter_visible_validate): gutter-visible is a new specifier type.
4745         (Fgutter_visible_specifier_p): new function for the new specifier.
4746         (syms_of_gutter): declare gutter-visible and
4747         Fgutter_visible_specifier_p.
4748         (specifier_type_create_gutter): intitalize new gutter-visible
4749         specifier.
4750         (reinit_specifier_type_create_gutter): ditto.
4751         (specifier_vars_of_gutter): use new specifier type for gutter
4752         visibility.
4753         (init_frame_gutters): construct real_gutter correctly.
4754         (Fgutter_specifier_p): beef up documentation.
4755         (Fgutter_size_specifier_p): ditto.
4756
4757         * winslots.h: add real_gutter slots.
4758
4759 2000-02-25  Andy Piper  <andy@xemacs.org>
4760
4761         * device-msw.c: Be kind to older cygwin versions. From Raymond
4762         Toy <toy@rtp.ericsson.se>.
4763
4764         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
4765         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
4766
4767 2000-02-25  Martin Buchholz  <martin@xemacs.org>
4768
4769         * elhash.c (MARK_OBJ): Practice macro hygiene.
4770
4771 2000-02-24  Martin Buchholz  <martin@xemacs.org>
4772
4773         * miscplay.c: s/__inline__/inline/g;
4774         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
4775         (get_device_compdc): INLINE ==> static inline
4776         * *.[ch]: Change INLINE to INLINE_HEADER globally.
4777         find -name '*.h' | \
4778         xargs global-replace \
4779         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
4780
4781 2000-02-25  Andy Piper  <andy@xemacs.org>
4782
4783         * window.c (window_top_frame_gutter_height): new function.
4784         (window_top_window_gutter_height): ditto.
4785         (window_top_gutter_height): use them.
4786         (window_bottom_frame_gutter_height): new function.
4787         (window_bottom_window_gutter_height): ditto.
4788         (window_bottom_gutter_height): use them.
4789         (window_left_window_gutter_width): new function.
4790         (window_left_frame_gutter_width): ditto.
4791         (window_left_gutter_width): use them.
4792         (window_right_window_gutter_width): new function.
4793         (window_right_frame_gutter_width): ditto.
4794         (window_right_gutter_width): use them.
4795         (window_pixel_height): new function. calulate window pixel height
4796         with frame gutter involvement.
4797         (Fsplit_window): calculate new sizes taking frame gutters into
4798         account.
4799         (window_char_height_to_pixel_height): don't include frame gutters.
4800         (window_char_height): use window_pixel_height.
4801         (window_pixheight): rename from window_pixel_height.
4802         (change_window_height): use it.
4803         (window_pixel_height_to_char_height): don't include frame gutters.
4804         (window_char_width_to_pixel_width): ditto.
4805
4806 2000-02-25  Andy Piper  <andy@xemacs.org>
4807
4808         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
4809         if it is.
4810
4811 2000-02-24  Martin Buchholz  <martin@xemacs.org>
4812
4813         * alloc.c (staticpro):
4814         (staticpro_nodump):
4815         (dumpstruct):
4816         (dumpopaque):
4817         (pdump_wire):
4818         (pdump_wire_list):
4819         (compact_string_chars):
4820         (pdump_dump_wired):
4821         Convert:  if (foo) abort();  ==>  assert (! foo);
4822
4823         * eldap.c (Fldap_search_basic):
4824         (Fldap_add):
4825         (Fldap_modify):
4826         (Fldap_delete):
4827         Fix compiler warnings, and possible crashes if (random) return
4828         value were to be used.
4829
4830 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
4831
4832         * device-msw.c: Workaround ResetDC failure.
4833
4834         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
4835         applying a devmode.
4836
4837         * redisplay-msw.c (get_frame_dc): Added start_page_p.
4838         (mswindows_text_width): Do not start printer page.
4839
4840         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
4841
4842         * glyphs-msw.c: Added image methods to msprinter console and
4843         msprinter-specific image instantiation.
4844
4845 2000-02-20  Mike Alexander  <mta@arbortext.com>
4846
4847         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
4848         to avoid crashes when selection-sets-clipboard is on
4849         (mswindows_own_selection): ditto
4850
4851 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
4852
4853         * glyphs-msw.c:
4854         * redisplay-msw.c (get_frame_dc):
4855         (get_frame_compdc):
4856         * console-msw.h:
4857         * device-msw.c (mswindows_init_device):
4858         (mswindows_delete_device):
4859         (msprinter_init_device):
4860         (msprinter_delete_device):
4861         * frame-msw.c (mswindows_init_frame_1):
4862         (mswindows_delete_frame):
4863         (msprinter_init_frame_3):
4864         (msprinter_delete_frame): Move compatible DC to device object from
4865         frame object, for both mswindows and msprinter. Only one at a time
4866         is needed, it is a real waste to have one per frame!
4867
4868 2000-02-23  Andy Piper  <andy@xemacs.org>
4869
4870         * glyphs.c: add dynamic width and height elements.
4871         (image_instance_equal): ditto.
4872
4873         * glyphs-widget.c (widget_query_geometry): calculate width and
4874         height dynamically if required.
4875         (initialize_widget_image_instance): initialize dynamic dimensions.
4876         (widget_instantiate): pick-up dynamic dimensions.
4877
4878         * glyphs.h (struct Lisp_Image_Instance): add width and height for
4879         dynamic determination. Add appropriate macros.
4880
4881         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
4882         dimensions safe.
4883         (WINDOW_GUTTER_SIZE): ditto.
4884         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
4885
4886         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
4887         inline.
4888         (get_frame_dc): ditto.
4889
4890         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
4891         here.
4892
4893 2000-02-23  Martin Buchholz <martin@xemacs.org>
4894
4895         * XEmacs 21.2.31 is released.
4896
4897 2000-02-22  Ben Wing <ben@xemacs.org>
4898
4899         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
4900
4901 2000-02-22  Andy Piper  <andy@xemacs.org>
4902
4903         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
4904
4905 2000-02-21  Mike Sperber <mike@xemacs.org>
4906
4907         * .dbxrc:
4908         * .gdbinit:
4909         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
4910         variables.
4911
4912 2000-02-21  Mike Sperber <mike@xemacs.org>
4913
4914         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
4915
4916 2000-02-21  Martin Buchholz <martin@xemacs.org>
4917
4918         * XEmacs 21.2.30 is released.
4919
4920 2000-02-20  Martin Buchholz  <martin@xemacs.org>
4921
4922         Performance hacking.
4923         * *.c (syms_of_*):
4924         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
4925         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
4926         * emacs.c (main_1):
4927         * lisp.h (DEFUN):
4928         * console.c (DEFVAR_CONSOLE_LOCAL_1):
4929         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
4930         * symeval.h (DEFVAR_SYMVAL_FWD):
4931         * symbols.c (guts_of_unbound_marker):
4932         Make all c_readonly objects also lisp_readonly and marked for life.
4933         * lrecord.h (struct lrecord_implementation):
4934         Document flags better.
4935         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
4936         * lrecord.h (DECLARE_LRECORD):
4937         * lrecord.h (XSETRECORD):
4938         * lrecord.h (RECORDP):
4939         * lrecord.h (RECORD_TYPEP):
4940         * lrecord.h (RECORD_MARKER): New.
4941         * lrecord.h (error_check_*):
4942         * lrecord.h (CONCHECK_NONRECORD):
4943         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
4944         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
4945         * lrecord.h (set_lheader_implementation):
4946         * lrecord.h (enum lrecord_type): New.
4947         * symeval.h (SYMBOL_VALUE_MAGIC_P):
4948         * alloc.c (disksave_object_finalization_1):
4949         * alloc.c (mark_object):
4950         * alloc.c (lrecord_type_index):
4951         * alloc.c (tick_lcrecord_stats):
4952         * alloc.c (Fgarbage_collect):
4953         * alloc.c (init_alloc_once_early):
4954         * alloc.c (pdump_load):
4955         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
4956         * alloc.c (lrecord_type_index): Delete.
4957         Make lisp object type indexes be constant.
4958           Makes (byte-compile) 5% faster.
4959         Put all marker functions into their own array.
4960           Makes (garbage-collect) 5% faster.
4961         Optimize SYMBOL_VALUE_MAGIC_P.
4962           Makes (byte-compile) 2-3% faster.
4963         * config.h.in (gc_checking_assert): New.
4964         * alloc.c: Use gc_checking_assert().
4965         * .dbxrc: Make compatible with new object type implementation.
4966         * .gdbinit: Make compatible with new object type implementation.
4967         * alloc.c: Delete all symbols defined only for debugging, such as
4968         Lisp_Type_Vector and lrecord_charset.
4969
4970 2000-02-21  Andy Piper  <andy@xemacs.org>
4971
4972         * gui-msw.c (Fmswindows_shell_execute): fix file location
4973         problems.
4974
4975         * buffer.c (Fkill_buffer): remove buffer from alist buffer
4976         unshowing so that set_window_buffer doesn't undo
4977         kill_buffer_hook's hard work.
4978
4979         * glyphs-widget.c (tab_control_query_geometry): don't count the
4980         first item when calculating geometry.
4981
4982         * glyphs.c (map_subwindow): remove redundant code.
4983         (update_frame_subwindows): be more circumspect about when to
4984         update subwindows.
4985
4986         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
4987         when items haven't changed. Update faces if faces have changed as
4988         well as just the widget face.
4989         (x_tab_control_update): Update faces if faces have changed as well
4990         as just the widget face.
4991
4992 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
4993
4994         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
4995         registration.
4996         (build_syscolor_string): Use mswindows_color_to_string to try to
4997         get a named color.
4998         (mswindows_device_system_metrics): Reverse the foreground and
4999         background colors so that they match the documentation.
5000
5001         * objects-msw.c: (mswindows_X_color_map): tweak some values so
5002         they match the default Windows palette.
5003         (mswindows_color_to_string): New function.
5004
5005 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
5006
5007         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
5008
5009 2000-02-18  Olivier Galibert  <galibert@pobox.com>
5010
5011         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
5012         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
5013
5014         * symbols.c (init_symbols_once_early): Removed obsolete
5015         DATA_SEG_BITS related kludge.
5016         (defvar_magic): Ditto.
5017
5018         * malloc.c: Removed obsolete DATA_SEG_BITS
5019         * ralloc.c: Ditto.
5020         * mem-limits.h: Ditto.
5021
5022         * Makefile.in.in: Removed obsolete HAVE_SHM
5023         * emacs.c: Ditto.
5024
5025 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
5026
5027         *  device-msw.c (mswindows_delete_device): Free DDE string
5028         handles.
5029
5030 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
5031
5032         * keymap.c (get_keyelt):
5033         * unexnt.c (unexec):
5034         * vm-limit.c (memory_warnings):
5035         * ntheap.c (recreate_heap):
5036         * ntheap.h (UNINIT_PTR):
5037         * select-msw.c (Fmswindows_get_clipboard):
5038         (Fmswindows_set_clipboard):
5039         * objects-msw.h (MSWINDOWS_BAD_HFONT):
5040         * objects-msw.c:
5041         * menubar-msw.c (displayable_menu_item):
5042         * glyphs-msw.c:
5043         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
5044         * sysdep.c (sys_subshell):
5045         * process-nt.c (nt_create_process):
5046         * nt.c (normalize_filename):
5047         (dostounix_filename):
5048         (unixtodos_filename):
5049         * ntproc.c (win32_executable_type):
5050         * ntplay.c (play_sound_data_1):
5051         (play_sound_file):
5052         * editfns.c (get_home_directory):
5053         * event-msw.c (struct winsock_stream):
5054         (mswindows_dde_callback):
5055         * device-msw.c (msprinter_init_device):
5056         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
5057
5058         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
5059         mswindows_clear_toolbar were swapped!
5060
5061         * objects-msw.c:(colormap_t):
5062         (fontmap_t):
5063         * emacs.c (struct standard_args): Fixed const jumble.
5064
5065         * glyphs-widget.c (update_widget): Fixed comparison notation.
5066
5067         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
5068
5069         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
5070         __declspec(noreturn) syntax.
5071
5072 2000-02-19  Martin Buchholz  <martin@xemacs.org>
5073
5074         * eldap.c (Fldap_open):
5075         (Fldap_search_basic):
5076         (Fldap_add):
5077         (Fldap_modify):
5078         Use new coding system conversion macros.
5079
5080 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
5081
5082         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
5083
5084 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
5085
5086         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
5087         (Fldap_add, Fldap_modify, Fldap_delete): New functions
5088
5089         * eldap.c (Qadd, Qreplace): New constant symbols
5090         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
5091         interruptions by XEmacs signals
5092         Remove unnecessary calls to slow_down_interrupts and
5093         speed_up_interrupts
5094         (Fldap_search_basic): Renamed from Fldap_search_internal
5095         Added new optional parameter VERBOSE that triggers the
5096         display of progress messages
5097         Remove unnecessary calls to slow_down_interrupts and
5098         speed_up_interrupts
5099         LDAP result code analysis rewritten
5100         (Fldap_add, Fldap_modify, Fldap_delete): New functions
5101         (syms_of_eldap): Define the new symbols and functions
5102
5103
5104 2000-02-17  Martin Buchholz  <martin@xemacs.org>
5105
5106         * realpath.c: Determine PATH_MAX maximally portably.
5107
5108         * insdel.c (bytecount_to_charcount): Optimize.
5109         The function used to be optimized for entirely ASCII sequences.
5110         Now it is optimized for successive characters from the same
5111         charset.  This also wins big for _mostly_ ASCII sequences.
5112
5113         * fileio.c (Ffile_truename): convert return from realpath() using
5114         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
5115         - Rewrite GCPROing slightly.
5116
5117         * sysdep.c (sys_open): Do filename conversion, like all other
5118         sys_* functions.  Fixes bug:
5119         (let ((file-name-coding-system 'iso-8859-2))
5120            (write-region x y latin2-name))
5121         ==> writes filename using internal encoding.
5122
5123 2000-02-18  Martin Buchholz  <martin@xemacs.org>
5124
5125         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
5126         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
5127         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
5128         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
5129         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
5130         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
5131         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
5132         (CONST_IF_NOT_DEBUG): Delete.
5133         * alloc.c (this_one_is_unmarkable): Delete.
5134         (mark_object): Don't check for this_one_is_unmarkable. Use the
5135         c_readonly flag instead.
5136         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
5137
5138 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
5139
5140         * event-msw.c (mswindows_drain_windows_queue):
5141         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
5142         away redundant repaint events.
5143
5144 2000-02-17  Andy Piper  <andy@xemacs.org>
5145
5146         * redisplay.h: declare mark_redisplay_structs.
5147
5148         * redisplay.c (redisplay_window):
5149         (redisplay_frame): don't check subwindows_state_changed.
5150         (mark_redisplay): mark gutters here.
5151
5152         * glyphs.c: (instantiate_image_instantiator): always layout if we
5153         haven't done so already.
5154         (allocate_image_instance): don't mark as dirty.
5155         (update_subwindow): bind inhibit_quit.
5156
5157         * gutter.c (mark_gutters): new function.
5158
5159         * glyphs-x.c (x_update_widget): Always resize to get round a
5160         widget bug.
5161
5162         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
5163         breaking absolutely everything.
5164
5165         * gutter.h: declare mark_gutters.
5166
5167 2000-02-16  Martin Buchholz <martin@xemacs.org>
5168
5169         * XEmacs 21.2.29 is released.
5170
5171 2000-02-15  Olivier Galibert  <galibert@pobox.com>
5172
5173         * fns.c (size_bit_vector): Fix computation of the size.
5174
5175 2000-02-15  Martin Buchholz  <martin@xemacs.org>
5176
5177         * *.[ch]: Change CONST to const globally.
5178         find -name '*.[ch]' | \
5179         xargs global-replace \
5180         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
5181         - Remove vestigial references to CONST_IS_LOSING
5182
5183 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
5184
5185         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
5186         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
5187         events instead of dispatching them directly.
5188         (mswindows_handle_paint): New function to do repainting.
5189         (mswindows_wnd_proc):
5190         (emacs_mswindows_handle_magic_event): Call above function.
5191
5192 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
5193
5194         * objects-msw.c (mswindows_create_font_variant): Return the new
5195         font handle.
5196         (initialize_font_instance): Get font metrics from the underlined
5197         variant of the font to cope with the case where the underlined
5198         font has a bigger descent.
5199
5200 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
5201
5202         * gui.c (gui_item_accelerator): Return the first underlined
5203         character in item name.
5204
5205 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
5206
5207         * lisp.h: Added Qprinter.
5208
5209         * general.c (syms_of_general): Initialized it.
5210
5211         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
5212         (get_frame_dc):
5213         (get_frame_compdc): Made inline.
5214
5215         * console.h (struct console_methods): Added eject_page method.
5216
5217         * frame.h: Added FRAME_DISPLAY_P and friends.
5218         Aligned backslahes in many macros in more readable fashion.
5219         Added page_number to struct frame, and an accessor macro
5220         for it.
5221
5222         * defice.h: Added DEVICE_DISPLAY_P and friends.
5223
5224         * device.c (Fdevice_printer_p): Used these.
5225
5226         * frame.c (allocate_frame_core): Initialize page number.
5227         (Fprint_job_page_number):
5228         (Fprint_job_eject_page): Implemented.
5229
5230         * frame-msw.c (msprinter_eject_page): Added method.
5231         (msprinter_start_page): Added.
5232
5233         * window.c (Fwindow_truncated_p): Fixed docstring.
5234         (Fwindow_last_line_visible_height): Implemented.
5235
5236 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
5237
5238         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
5239
5240 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
5241
5242         * syntax.c (scan_words): Always advance at least one character.
5243
5244 2000-02-13  Andy Piper  <andy@xemacs.org>
5245
5246         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
5247         to make sure the glyph is in the cachels.
5248
5249         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
5250         global image instance flag.
5251         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
5252         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
5253
5254         * glyphs.c (allocate_image_instance): set dirty bits correctly.
5255         (Fset_image_instance_property): mark layout as changed.
5256         (invalidate_glyph_geometry_maybe): mark layout as changed.
5257         (glyph_width): use new NEEDS_LAYOUT macro.
5258         (glyph_ascent): ditto.
5259         (glyph_descent): ditto.
5260         (glyph_height): ditto.
5261         (image_instance_layout): mark layout as clean after laying out.
5262         (update_subwindow): don't mark layout as clean here.
5263
5264         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
5265         should no longer be needed.
5266
5267         * glyphs-x.c (x_update_widget): sanitize asserts.
5268         (x_finalize_image_instance): sanitize assignment to widgets.
5269
5270         * glyphs-widget.c (widget_instantiate): don't need to clear the
5271         layout flag here.
5272
5273 2000-02-13  Martin Buchholz  <martin@xemacs.org>
5274
5275         * sysdep.c (getcwd): Use standard prototype.
5276         * sysdep.h (getcwd): Use standard prototype.
5277
5278         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
5279         (sequence, start, end).
5280         Remove redundant type checking.
5281         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
5282         view of `caller-protects') to avoid a crash where the real fix was
5283         found elsewhere.
5284
5285 2000-02-12  Martin Buchholz  <martin@xemacs.org>
5286
5287         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
5288
5289         * s/sol2.h: Remove feature macro initialization.
5290
5291         * alloc.c (alloc_lcrecord): Add more type checking assertions.
5292         (vector_hash): New.  Code from internal_hash.
5293         * lrecord.h:
5294         Fix up allocation subsystem comments.
5295
5296         * config.h.in: Add __EXTENSIONS__ for Solaris.
5297
5298         * systime.h (EMACS_GETTIMEOFDAY): New.
5299         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
5300         Remove Solaris-specific code.
5301         Use void* for the (ignored) second arg for gettimeofday().
5302
5303         * elhash.c (hash_table_hash): Implement it, finally.
5304         * elhash.c:  Use hashcode_t.
5305
5306         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
5307         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
5308
5309         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
5310         * fns.c (size_bit_vector):
5311         * alloc.c (size_vector):
5312         (make_vector_internal):
5313         (make_bit_vector_internal):
5314         (sweep_bit_vectors_1):
5315         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
5316
5317 2000-02-10  Martin Buchholz  <martin@xemacs.org>
5318
5319         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
5320         Include strings.h to avoid warnings for bzero and strcasecmp.
5321
5322 2000-02-10  Olivier Galibert  <galibert@pobox.com>
5323
5324         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
5325         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
5326
5327         * fns.c (size_bit_vector): New.  Declare bit vectors as a
5328         sequence.
5329
5330 2000-02-10  Olivier Galibert  <galibert@pobox.com>
5331
5332         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
5333         use a value field instead.
5334         (symbol_value_forward_forward): Use value field.
5335         (DEFVAR_SYMVAL_FWD): Use value field.
5336         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
5337         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
5338         (DEFVAR_CONST_INT): Ditto.
5339         (DEFVAR_BOOL): Ditto.
5340         (DEFVAR_CONST_BOOL): Ditto.
5341         (DEFVAR_INT_MAGIC): Ditto.
5342         (DEFVAR_BOOL_MAGIC): Ditto.
5343
5344         * symbols.c (guts_of_unbound_marker): Use value field.
5345         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
5346         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
5347
5348         * lisp.h: Declare dumpopaque and noninteractive1.
5349
5350         * alloc.c (dumpopaque): Added.
5351         (pdump_dump_opaquevec): Added.
5352         (pdump): Call pdump_dump_opaquevec to dump opaque data.
5353         (pdump_load): Reload opaque data.  Sync noninteractive1 with
5354         noninteractive.
5355
5356 2000-02-10  Andy Piper  <andy@xemacs.org>
5357
5358         * glyphs.c (image_instance_layout): if the size changes, mark it
5359         as such.
5360
5361         * redisplay-output.c (redisplay_output_layout): Update the
5362         subwindow here.
5363         (redisplay_output_subwindow): ditto.
5364
5365         * glyphs.c (update_subwindow): make sure we reset flags for
5366         layouts as well as everything else.
5367
5368         * glyphs-widget.c (layout_layout): don't need to set the instances
5369         dimensions here.
5370
5371 2000-02-09  Martin Buchholz  <martin@xemacs.org>
5372
5373         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
5374         not HAVE_DLOPEN, which is a lower-level thing.
5375
5376         * .cvsignore: Ignore gmon.out
5377
5378 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
5379
5380         * .cvsignore: Ignore portable dumper xemacs.dmp file
5381
5382 2000-02-09  Andy Piper  <andy@xemacs.org>
5383
5384         * redisplay-output.c (redisplay_output_layout): be more clever
5385         about when we output based on the changed flags.
5386
5387         * glyphs.h (struct image_instantiator_methods): add update_method.
5388         (struct Lisp_Image_Instance): add changed flags. Declare new
5389         macros for manipulating them.
5390
5391         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
5392         (image_instance_parent_glyph): find an image_instance's parent
5393         glyph or image_instance.
5394         (image_instance_layout): mark the size as changed.
5395         (set_image_instance_dirty_p): new function. mark an image
5396         instance, plus all of its parents, as dirty.
5397         (Fset_image_instance_property): use it.
5398         (Fglyph_animated_timeout_handler): use it.
5399         (update_subwindow): call update_widget and device methods for
5400         update_subwindow. Mark all changed flags as clean.
5401         (Fresize_subwindow): mark size as changed.
5402
5403         * glyphs-x.c (x_finalize_image_instance): try and detect gc
5404         failures.
5405         (x_update_subwindow): only resize subwindows here.
5406         (x_update_widget): new function. Update all changed properties of
5407         a widget.
5408         (x_resize_subwindow): deleted.
5409         (x_widget_set_property): deleted.
5410         (x_progress_gauge_set_property): deleted.
5411         (x_progress_gauge_update): new function. Implement recorded
5412         changes.
5413         (x_tab_control_update): ditto.
5414         (x_tab_control_set_property): deleted.
5415         (console_type_create_glyphs_x): declare new functions.
5416         (image_instantiator_format_create_glyphs_x): ditto.
5417
5418         * glyphs-widget.c (widget_set_property): mark text changed.
5419         (update_widget): new function. Update properties of a widget.
5420         (widget_instantiate): for layouts make sure we set their
5421         children's parent correctly.
5422         (tab_control_set_property): new function. Record changes that will
5423         take place under redisplay's control.
5424         (progress_gauge_set_property): ditto.
5425         (image_instantiator_progress_guage): declare new functions.
5426         (image_instantiator_tab_control): ditto.
5427
5428         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
5429         now.
5430         (mswindows_update_widget): new function. Update all properties on
5431         a widget that have changed.
5432         (mswindows_button_update): new function. Update a button's set
5433         state.
5434         (mswindows_tab_control_update): new function. Update the items in
5435         a tab.
5436         (mswindows_tab_control_set_property): deleted.
5437         (mswindows_progress_gauge_update): new function. Update the
5438         progress gauge's progress.
5439         (mswindows_widget_set_property): deleted. This is all done
5440         asynchronously now.
5441         (mswindows_progress_gauge_set_property): ditto.
5442         (console_type_create_glyphs_mswindows): declare new methods.
5443         (image_instantiator_format_create_glyphs_mswindows): ditto.
5444
5445         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
5446         (msprinter_set_frame_properties): ditto.
5447
5448         * console.h (struct console_methods): Add update_widget_method.
5449
5450 2000-02-09  Andy Piper  <andy@xemacs.org>
5451
5452         * gui-msw.c (Fmswindows_shell_execute): Make
5453         mswindows-shell-execute industrial strength.
5454
5455 2000-02-08  Martin Buchholz  <martin@xemacs.org>
5456
5457         * lrecord.h: Make macro argument `props' match member function `plist'.
5458         * fns.c (Fget):
5459         * fns.c (Fput):
5460         * fns.c (Fremprop):
5461         * fns.c (Fobject_plist):
5462         * alloc.c:
5463         * symbols.c:
5464         Object property list frobbing cleanup.
5465         - Allow any lisp object (compared with `eq'), not just symbols, as
5466           keys in object plists.
5467         - Move symbol plist frobbing into symbols.c, where it belongs.
5468         - Move string plist frobbing into alloc.c, where it belongs.
5469         - Everything's an lrecord now, so no need to test for symbolp, etc.
5470         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
5471
5472         * extents.c: Reorder code to remove declarations.
5473
5474         * frame.h (store_in_alist): Remove useless declaration.
5475
5476 2000-02-07  Martin Buchholz  <martin@xemacs.org>
5477
5478         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
5479         * config.h.in: Add HAVE_XCONVERTCASE.
5480
5481 2000-02-07  Andy Piper  <andy@xemacs.org>
5482
5483         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
5484         it breaks many things.
5485
5486 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
5487
5488         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
5489         actually can start a common comment type.
5490         * src/syntax.h (SYNTAX_END_P): ditto for end.
5491
5492 2000-02-07  Martin Buchholz <martin@xemacs.org>
5493
5494         * XEmacs 21.2.28 is released.
5495
5496 2000-02-06  Martin Buchholz  <martin@xemacs.org>
5497
5498         * event-Xt.c (x_keysym_to_character): New.
5499         (maybe_define_x_key_as_self_inserting_character): New.
5500         (x_has_keysym): New.
5501         Auto-define all keys on the keyboard as self-insert-key.
5502
5503 2000-02-02  Martin Buchholz  <martin@xemacs.org>
5504
5505         * menubar.c (vars_of_menubar): A small code simplification.
5506
5507         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
5508
5509         * ExternalShell.c:
5510         * ExternalClient.c:
5511         * EmacsShell-sub.c:
5512         * EmacsManager.c:
5513         * EmacsFrame.c:
5514         Use consistent style for specifying X resources.
5515
5516         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
5517         This makes (dontusethis-set-symbol-value-handler) actually usable.
5518
5519         * lrecord.h (lrecord_decription_type):
5520         * alloc.c (pdump_register_sub):
5521         (pdump_dump_data):
5522         (pdump_reloc_one):
5523         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
5524         Comply with XEmacs coding style.
5525         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
5526         args, and XD_LISP_OBJECT_ARRAY with 3 args.
5527
5528         * keymap.c (Faccessible_keymaps):
5529         Make (accessible-keymaps map "\C-h") do the Right Thing.
5530         Make (accessible-keymaps map []) do the Right Thing.
5531         Make (accessible-keymaps map "") do the Right Thing.
5532         (check_keymap_definition_loop): New function.
5533         (keymap_store_internal): Keep luser from shooting self in foot,
5534           via (define-key ctl-x-4-map "p" global-map).
5535         Remove fullness slot from struct Lisp_Keymap, since hash tables
5536         are now reliable.
5537         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
5538
5539 2000-01-30  Martin Buchholz  <martin@xemacs.org>
5540
5541         * redisplay.c (init_redisplay): Fix small memory leak.
5542         * elhash.h:
5543         * elhash.c (pdump_reorganize_hash_table):
5544         Rename from reorganize_hash_table. Change prototype.
5545         Reuse the original memory for hentries.  Save 100k.
5546         * alloc.c (PDUMP_READ): new macro.
5547         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
5548         * alloc.c: No need to #ifndef before #undef.
5549
5550         * print.c: Allow debug_print() to print readably by modifying
5551         debug_print_readably.  Use consistent variable names.
5552
5553         * .dbxrc: Try to get things to work even if stopped in a function
5554         without source available by explicitly specifying source files.
5555 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
5556
5557         * unexnt.c (_start): Removed bogus code which caused loading heap
5558         from differrent executable file.
5559         Removed bogus assignment to _fmode, which caused inconsistencies.
5560
5561 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
5562
5563         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
5564         Have spawnve encapsulation regard DONT_ENCAPSULATE.
5565         Do not preliminary `#define signal sigset'.
5566
5567         * systime.h: Do not prototype environ on windows nt and cygwin,
5568         this conflicts with system header.
5569
5570         * syssignal.h: Use correct define for WINDOWSNT
5571
5572         * sysdep.h: Do not prototype environ on windows nt, this conflicts
5573         with system header.
5574
5575         * sysdep.c (near start of file): Fixed commentary and rearranged
5576         ifdefs in readable order.
5577         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
5578         (start_of_text):
5579         (end_of_text):
5580         (end_of_data): Do not compile in if using PDUMP.
5581
5582         * symsinit.h: Protptyped vars_of_nt().
5583
5584         * ntproc.c (windows9x_p): Added, instead of os_subtype.
5585         (find_child_console): Use it.
5586         (sys_kill): Use it.
5587
5588         * ntheap.h: Do not extern os_subtype.
5589
5590         * ntheap.c (cache_system_info): Do not cache unneeded:
5591         nt_major_version, nt_minor_version and os_subtype.
5592         (recreate_heap): Do not compile in when PDUMPing.
5593
5594         * nt.c (geteuid and friends): Use the new varibale
5595         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
5596         (init_user_info): Removed the above mentioned hackery.
5597         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
5598         stat has been fixed in the C runtime.
5599         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
5600
5601         * file-coding.c (struct file_coding_dump): Do not define
5602         ucs_to_mule_table in the struct if not MULE.
5603         (struct struct lrecord_description fcd_description_1): Do not dump
5604         the above.
5605
5606         * emacs.c (main_1): Call vars_of_nt().
5607         (right before Fdump_emacs_data): Don't need lastfile if using both
5608         portabe dumper and system malloc.
5609
5610         * alloc.c (Fmemory_limit): Conditionalized out.
5611         (pdump): Use OPEN_BINARY for the portable dump file.
5612         (pdump_load): Ditto.
5613
5614 2000-02-02  Mike Alexander  <mta@arbortext.com>
5615
5616         * nt.c (convert_time): Set tm_isdst before calling mktime and
5617         avoid calling it at all if the compiler supports 64 bit integers.
5618         Also initialize utc_base_ft before using it.
5619
5620 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
5621
5622         * frame.c (change_frame_size_1): Take f->internal_border_width
5623         into consideration when calculating the width of the frame.
5624
5625 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
5626
5627         * window.c (frame_min_height):
5628         (frame_size_valid_p):
5629         (frame_pixsize_valid_p): Added.
5630         (check_frame_size): Generalized.
5631
5632         * window.h: Prototyped the above.
5633
5634         * lisp.h:
5635         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
5636         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
5637         Deleted Vwin32_* and Vbinary_process_* unused variables.
5638
5639         * device-msw.c (msprinter_init_device): Do not get printer font
5640         list; Added DEVMODE functions.
5641
5642         * frame-msw.c: Added lots of printer code.
5643
5644         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
5645         general.c.
5646
5647         * console-msw.h: Added more msprinter device private slots.
5648
5649 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
5650
5651         * event-msw.c (key_needs_default_processing_p): Added.
5652         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
5653
5654 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
5655
5656         * glyphs.c (image_instance_layout): Mark image instance as clean
5657         after layout.
5658         (glyph_dirty_p): Removed redundant function.
5659         (invalidate_glyph_geometry_maybe): Added.
5660         (update_glyph_cachel_data): Call it.
5661
5662         * glyphs.h: Prototyped it.
5663
5664         * redisplay.c (add_glyph_rune): Call it.
5665         (redisplay_window): Reset glyphs cachels when frame faces has
5666         changed, thus forcing recomputation of built-in border glyphs.
5667
5668 2000-01-30  Martin Buchholz  <martin@xemacs.org>
5669
5670         * Makefile.in.in: Make portable dumper and purify play well together.
5671         Add imperfect, but better than nothing, support for pdump.
5672         Remove xemacs.dmp when temacs is re-generated.
5673         Don't ignore errors when dumping xemacs.
5674
5675         * symbols.c (maybe_call_magic_handler): Remove one magic number.
5676
5677 2000-01-28  Andy Piper  <andy@xemacs.org>
5678
5679         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
5680         (setup_normal_frame): ditto.
5681         (setup_frame_without_minibuffer): ditto.
5682         (setup_minibuffer_frame): ditto.
5683         (delete_frame_internal): ditto.
5684         (Fmake_frame_invisible): ditto.
5685         (Ficonify_frame): ditto.
5686
5687         * window.h: change Fset_window_buffer signature.
5688
5689         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
5690         (Fset_window_buffer): allow recording of buffer if the window is
5691         the selected window.
5692         (window_loop): Use new Fset_window signature.
5693
5694 2000-01-23  Daniel Pittman  <daniel@danann.net>
5695
5696         * config.h.in: Added template for `HAVE_ATHENA_3D'
5697
5698 2000-01-29  Andy Piper  <andy@xemacs.org>
5699
5700         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
5701
5702         * gutter.c (output_gutter): Don't output if the window isn't live.
5703
5704 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
5705
5706         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
5707         of 01/12/00: Moved SetFocus back here where it belongs.
5708
5709 2000-01-23  Andy Piper  <andy@xemacs.org>
5710
5711         * s/cygwin32.h: declare printer things.
5712
5713 2000-01-26  Andy Piper  <andy@xemacs.org>
5714
5715         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
5716         Alexander.
5717
5718 2000-01-24  Andy Piper  <andy@xemacs.org>
5719
5720         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
5721         (mswindows_button_instantiate): Make sure glyph is a pixmap.
5722
5723         * glyphs-widget.c (widget_instantiate): Avoid shadows.
5724
5725         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
5726
5727         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
5728
5729         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
5730         (mswindows_output_display_block): Avoid local shadows.
5731
5732         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
5733         (mswindows_enqueue_mouse_button_event): ditto.
5734         (mswindows_handle_gui_wm_command): remove declaration.
5735
5736         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
5737         warnings.
5738
5739         * console-msw.h: Avoid shadows.
5740         (mswindows_get_toolbar_button_text):
5741         (emacs_mswindows_create_stream_pair):
5742         (emacs_mswindows_delete_stream_pair):
5743         (mswindows_handle_toolbar_wm_command): declare.
5744
5745         * device-msw.c (build_syscolor_string): Avoid shadows.
5746
5747 2000-01-23  Andy Piper  <andy@xemacs.org>
5748
5749         * glyphs-widget.c (widget_instantiate): reverse the items for
5750         layouts so that children are in the expected order.
5751
5752 2000-01-28  Martin Buchholz  <martin@xemacs.org>
5753
5754         * ralloc.c: safe_bcopy ==> memmove
5755         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
5756         * s/msdos.h: Remove BCOPY macros.
5757         * insdel.c (gap_right): Remove BCOPY conditional code.
5758         * insdel.c (gap_left): Remove BCOPY conditional code.
5759         XEmacs demands a working ANSI C compiler - hence memmove.
5760
5761         * regex.c (regex_compile): Remove accidental use of trigraphs.
5762
5763 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
5764
5765         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
5766         event timestamp.
5767
5768 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
5769
5770         * event-msw.c (mswindows_drain_windows_queue): Added the
5771         parameter.
5772         (mswindows_need_event): Commented the call to
5773         mswindows_drain_windows_queue().
5774         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
5775         only.
5776
5777         * console-msw.h: Moved a few function prototypes here from
5778         event-msw.c.
5779
5780         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
5781         parameter from unsigned short to unsigned long.
5782         (Fmswindows_shell_execute): Added return value.
5783
5784 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
5785
5786         * sysdep.c (init_system_name):
5787           process-unix.c (unix_canonicalized_host_name):
5788         Don't call freeaddrinfo() if getaddrinfo() fails.
5789
5790         * process-unix.c (unix_open_unix_network_stream):
5791         Moved the code to get a port # into address loop.
5792
5793 2000-01-27  Martin Buchholz  <martin@xemacs.org>
5794
5795         * buffer.c (reinit_vars_of_buffer):
5796         The right place to initialize conversion_in_dynarr and
5797         conversion_out_dynarr.
5798
5799         * alloc.c (pdump): Use the real open() till sys_open() is functional.
5800
5801         * process-unix.c (unix_canonicalize_host_name): Muleize.
5802         (unix_open_network_stream): Muleize.
5803
5804         * buffer.h: Fix up prototypes for ralloc.c functions.
5805
5806 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
5807         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
5808         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
5809                 instead of gethostbyname()
5810         * process-unix.c: In unix_canonicalize_host_name() and
5811                 unix_open_network_stream(), add code to use getaddrinfo()
5812                 instead of gethostbyname().
5813
5814 2000-01-27  Daniel Pittman <daniel@danann.net>
5815
5816         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
5817         libs when built with flat Athena.
5818
5819 2000-01-27  Martin Buchholz  <martin@xemacs.org>
5820
5821         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
5822         Use coding standards for function prototypes.
5823
5824 2000-01-25  Martin Buchholz  <martin@xemacs.org>
5825
5826         * dialog-msw.c (push_lisp_string_as_unicode):
5827         * doc.c (unparesseuxify_doc_string):
5828         * dired.c (Fuser_name_completion_1):
5829         * dired.c (Fuser_name_all_completions):
5830         * dired.c (free_user_cache):
5831         * dired.c (user_name_completion):
5832         * console-x.c (get_display_arg_connection):
5833         * minibuf.c (clear_echo_area_internal):
5834         * minibuf.c (echo_area_append):
5835         * eldap.c (Fldap_open):
5836         * eldap.c (Fldap_search_internal):
5837         * frame-x.c (x_set_frame_text_value):
5838         * frame-x.c (x_set_frame_properties):
5839         * frame-x.c (x_create_widgets):
5840         * redisplay-tty.c (term_get_fkeys_1):
5841         * objects-x.c (x_parse_nearest_color):
5842         * objects-x.c (x_valid_color_name_p):
5843         * objects-x.c (x_initialize_font_instance):
5844         * objects-x.c (x_list_fonts):
5845         * objects-x.c (x_find_charset_font):
5846         * tooltalk.c (Fadd_tooltalk_message_arg):
5847         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
5848         * tooltalk.c (Fadd_tooltalk_pattern_arg):
5849         * process-unix.c (unix_create_process):
5850         * ntproc.c (sys_spawnve):
5851         * sound.c (Fplay_sound_file):
5852         * sound.c (Fplay_sound):
5853         * buffer.c (init_initial_directory):
5854         * buffer.c (init_buffer):
5855         * editfns.c (init_editfns):
5856         * editfns.c (Ftemp_directory):
5857         * editfns.c (Fuser_full_name):
5858         * editfns.c (uncache_home_directory):
5859         * editfns.c (get_home_directory):
5860         * editfns.c (Fuser_home_directory):
5861         * editfns.c (Fformat_time_string):
5862         * editfns.c (Fcurrent_time_string):
5863         * gui-x.c (button_item_to_widget_value):
5864         * database.c (Fopen_database):
5865         * event-Xt.c (x_to_emacs_keysym):
5866         * event-Xt.c (x_event_to_emacs_event):
5867         * event-Xt.c (describe_event_window):
5868         * event-msw.c (mswindows_wnd_proc):
5869         * glyphs-eimage.c (jpeg_instantiate):
5870         * glyphs-eimage.c (gif_instantiate):
5871         * glyphs-eimage.c (png_instantiate):
5872         * glyphs-eimage.c (tiff_instantiate):
5873         * glyphs-x.c (xbm_instantiate_1):
5874         * glyphs-x.c (x_xbm_instantiate):
5875         * glyphs-x.c (x_xface_instantiate):
5876         * glyphs-x.c (autodetect_instantiate):
5877         * glyphs-x.c (cursor_font_instantiate):
5878         * glyphs-x.c (x_widget_instantiate):
5879         * glyphs-x.c (x_widget_set_property):
5880         * glyphs-x.c (x_widget_property):
5881         * glyphs-x.c (BUILD_GLYPH_INST):
5882         * print.c (write_string_to_stdio_stream):
5883         * print.c (output_string):
5884         * print.c (Falternate_debugging_output):
5885         * print.c (Fexternal_debugging_output):
5886         * glyphs-msw.c (extract_xpm_color_names):
5887         * glyphs-msw.c (mswindows_xpm_instantiate):
5888         * glyphs-msw.c (bmp_instantiate):
5889         * glyphs-msw.c (resource_name_to_resource):
5890         * glyphs-msw.c (mswindows_resource_instantiate):
5891         * glyphs-msw.c (xbm_instantiate_1):
5892         * glyphs-msw.c (mswindows_xbm_instantiate):
5893         * glyphs-msw.c (mswindows_xface_instantiate):
5894         * glyphs-msw.c (mswindows_widget_instantiate):
5895         * glyphs-msw.c (add_tree_item):
5896         * glyphs-msw.c (add_tab_item):
5897         * glyphs-msw.c (mswindows_combo_box_instantiate):
5898         * glyphs-msw.c (mswindows_widget_property):
5899         * glyphs-msw.c (mswindows_combo_box_property):
5900         * glyphs-msw.c (mswindows_widget_set_property):
5901         * console.c (stuff_buffered_input):
5902         * objects-msw.c (mswindows_initialize_color_instance):
5903         * objects-msw.c (mswindows_valid_color_name_p):
5904         * objects-msw.c (mswindows_list_fonts):
5905         * objects-msw.c (mswindows_font_instance_truename):
5906         * bytecode.c (optimize_compiled_function):
5907         * select-x.c (symbol_to_x_atom):
5908         * select-x.c (x_atom_to_symbol):
5909         * select-x.c (hack_motif_clipboard_selection):
5910         * select-x.c (selection_data_to_lisp_data):
5911         * select-x.c (lisp_data_to_selection_data):
5912         * select-x.c (Fx_get_cutbuffer_internal):
5913         * select-x.c (Fx_store_cutbuffer_internal):
5914         * buffer.h (TO_EXTERNAL_FORMAT): New function.
5915         * buffer.h (TO_INTERNAL_FORMAT): New function.
5916         * emacs.c (make_arg_list_1):
5917         * emacs.c (make_argc_argv):
5918         * emacs.c (main_1):
5919         * emacs.c (Fdump_emacs):
5920         * emacs.c (split_string_by_emchar_1):
5921         * file-coding.h:
5922         * lisp.h:
5923         * lstream.h:
5924         * symsinit.h:
5925         * device-x.c (x_init_device):
5926         * device-x.c (Fx_valid_keysym_name_p):
5927         * device-x.c (Fx_get_font_path):
5928         * device-x.c (Fx_set_font_path):
5929         * glyphs.c (bitmap_to_lisp_data):
5930         * glyphs.c (pixmap_to_lisp_data):
5931         * alloc.c (make_ext_string): Use coding system arguments.  Update
5932         all callers.
5933         * alloc.c (build_string):
5934         * callproc.c (child_setup):
5935         * callproc.c (init_callproc):
5936         * fileio.c (lisp_strerror):
5937         * fileio.c (directory_file_name):
5938         * fileio.c (Fexpand_file_name):
5939         * fileio.c (Ffile_truename):
5940         * fileio.c (Fsysnetunam):
5941         * fileio.c (Fdo_auto_save):
5942         * sysdep.c (sys_readdir):
5943         * tests.c: New file.  Allow adding C tests.
5944         Replace GET_* macros with a more comprehensible and flexible
5945         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
5946         Modify all calls.
5947         Any coding system can be used to do format conversion.
5948         Eliminate enum external_data_format.
5949         Eliminate convert_to_external_format.
5950         Eliminate convert_to_internal_format.
5951         Make sure file-name, keyboard, terminal, and ctext are always
5952         defined as coding systems or aliases.  Make
5953         file-name-coding-system, terminal-coding-system, and
5954         keyboard-coding-system magical variables that are equivalent to
5955         defining the corresponding coding system aliases.
5956
5957         * file-coding.c (Fcoding_system_canonical_name_p): New function.
5958         * file-coding.c (Fcoding_system_alias_p): New function.
5959         * file-coding.c (Fcoding_system_aliasee): New function.
5960         * file-coding.c (append_suffix_to_symbol): New function.
5961         * file-coding.c (dangling_coding_system_alias_p): New function.
5962         * file-coding.c (Ffind_coding_system):
5963         * file-coding.c (Fcopy_coding_system):
5964         * file-coding.c (encode_coding_no_conversion):
5965         * file-coding.c (syms_of_file_coding):
5966         * file-coding.c (vars_of_file_coding):
5967         Rewrite coding system alias code.
5968         Allow nested aliases, like symbolic links.
5969         Allow redefinition of coding system aliases.
5970         Prevent existence of dangling coding system aliases.
5971
5972         * dired.c (Fuser_name_completion_1):
5973         * dired.c (Fuser_name_all_completions):
5974         A crash would happen if user did QUIT in the middle of building
5975         user_name_cache.  Remove redundant code in mainline and unwind_protect.
5976
5977         * lisp.h:
5978         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
5979
5980         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
5981         an unsigned char *.  Update all callers.
5982
5983 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
5984
5985         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
5986
5987 2000-01-25  Martin Buchholz  <martin@xemacs.org>
5988
5989         * elhash.c (hentry_description): Use more portable definition.
5990         (resize_hash_table): Initialize new hentries using
5991         xnew_array_and_zero, thereby simplifying the code.
5992
5993         * mule-charset.c (make_charset): Make sure entire object is
5994         intialized, to avoid Purify warnings.
5995
5996         * alloc.c (resize_string): Fix unlikely crash with big strings.
5997
5998 2000-01-24  Martin Buchholz  <martin@xemacs.org>
5999
6000         * realpath.c (xrealpath):
6001         Don't call getwd().
6002
6003 2000-01-25  Martin Buchholz  <martin@xemacs.org>
6004
6005         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
6006
6007 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
6008
6009         * unexelfsgi.c (unexec): Change the way we decide which segment
6010         should be extended.
6011
6012         Assumption that .bss section should be outside the PT_LOADable
6013         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
6014         it's present) is inside the 'data' segment. This would fail the
6015         test which was used to find a segment to grow and cover new
6016         heap. Instead of this assumption, I created another one - on IRIX
6017         the segment to grow should start below .bss and it's address
6018         should extent above the end of .bss. Once this segment is
6019         identified, it's grown to accommodate the new heap and new
6020         zero-length .bss section is added at the end of .data2.
6021
6022 2000-01-25  Martin Buchholz  <martin@xemacs.org>
6023
6024         * eval.c (Feval): Wrong number of arguments should use original
6025         function, not the indirect_function version of it.
6026
6027 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
6028
6029         * glyphs-x.c (x_button_instantiate): Don't add image if
6030         it is not a pixmap.
6031         (x_locate_pixmap_file): Call Fexpand_file_name when file name
6032         is relative.
6033
6034 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
6035
6036         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
6037         declaration.
6038         (DEFVAR_INT_MAGIC): Ditto.
6039         (DEFVAR_BOOL_MAGIC): Ditto.
6040         * glyphs.h: Reindent backslash.
6041
6042 2000-01-24  Martin Buchholz  <martin@xemacs.org>
6043
6044         * glyphs-widget.c (layout_query_geometry):
6045         (layout_layout): Use correct types for gheight, gwidth.
6046
6047 2000-01-24  Martin Buchholz  <martin@xemacs.org>
6048
6049         * EmacsManager.c (QueryGeometry): Purified.
6050
6051 2000-01-23  Martin Buchholz  <martin@xemacs.org>
6052
6053         * alloc.c (make_float): Make sure entire object is intialized, to
6054         avoid Purify warnings.
6055         (pdump_register_sub): Remove useless assignment.
6056         (pdump): Use xmalloc, not malloc.
6057         (pdump_load): Use xmalloc, not malloc.
6058
6059 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6060
6061         * callproc.c:
6062         * dired-msw.c:
6063         * fileio.c:
6064         * process-nt.c:
6065         * redisplay-msw.c:
6066         * sysdep.c: Removed redundant #include <windows.h>
6067
6068 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6069
6070         * frame.c (delete_frame_internal): Do not delete device when its
6071         implementation so declares.
6072         (delete_frame_internal): Set device selected frame to nil when
6073         last frame goes away.
6074
6075         * device-msw.c (msprinter_device_system_metrics): Implemented.
6076         (mswindows_device_system_metrics): Added 'device-dpi property.
6077
6078         * device.c: (Fdevice_printer_p): Added.
6079         Added 'offset-workspace device metric.
6080
6081         * console.h (device_metrics): Declared DM_offset_workspace.
6082
6083 2000-01-23  Martin Buchholz  <martin@xemacs.org>
6084
6085         * fileio.c (Ffile_truename): Remove pointless and confusing
6086         initialization of elen.
6087
6088         * glyphs-widget.c: Compiler warning fixes.
6089
6090 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
6091
6092         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
6093         instead of a Lisp_Object as argument to make it consistent with
6094         the other LIVE_P macros.
6095         (CHECK_LIVE_PROCESS): New macro.
6096
6097         * process.c: Declare Qprocess_live_p.
6098         (Fprocess_live_p): New function.
6099         (create_process): Use PROCESS_LIVE_P.
6100         (read_process_output): Ditto.
6101         (set_process_filter): Ditto.
6102         (Fdelete_process): Ditto.
6103         (kill_buffer_processes): Ditto
6104         (process_send_signal): Use CHECK_LIVE_PROCESS.
6105         (Fprocess_input_coding_system): Check whether process is still
6106         alive (fix PR#1061).
6107         (Fprocess_output_coding_system): Ditto.
6108         (Fprocess_coding_system): Ditto.
6109         (Fset_process_input_coding_system): Ditto.
6110         (Fset_process_output_coding_system): Ditto.
6111
6112 2000-01-23  Andy Piper  <andy@xemacs.org>
6113
6114         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
6115         layout and widget.
6116
6117         * glyphs.c (mark_image_instance): take into account changed
6118         image_instance format.
6119         (image_instance_equal): ditto.
6120         (image_instance_hash): ditto.
6121
6122         * glyphs-widget.c (widget_instantiate): Incorporate layout
6123         instantiation here. Delay layout of the layout until later.
6124         (layout_instantiate): deleted.
6125         (layout_query_geometry): new function. get the geometry of a
6126         layout.
6127         (layout_layout): layout a layout dynamically.
6128         (image_instantiator_widget): New function - splitting up
6129         image_instantiator_format_create_glyphs_widget for netwinder
6130         compilation.
6131         (image_instantiator_buttons):
6132         (image_instantiator_edit_fields):
6133         (image_instantiator_combo_box):
6134         (image_instantiator_scrollbar):
6135         (image_instantiator_progress_guage):
6136         (image_instantiator_tree_view):
6137         (image_instantiator_tab_control):
6138         (image_instantiator_labels):
6139         (image_instantiator_layout): ditto.
6140         (image_instantiator_format_create_glyphs_widget): Call preceeding
6141         functions.
6142
6143 2000-01-22  Martin Buchholz  <martin@xemacs.org>
6144
6145         * process.c (Fset_process_coding_system):
6146         * device-x.c (Fx_keysym_hash_table):
6147         Docstring fixes.
6148
6149         * lstream.c (Lstream_write): Return documented value, not 0.
6150
6151         * fileio.c (directory_file_name):
6152         (Fsubstitute_in_file_name):
6153         (Fsubstitute_insert_file_contents_internal):
6154         (Fwrite_region_internal):
6155         * emacs.c:
6156         * sysdep.c:
6157         * getloadavg.c:
6158         * systty.h:
6159         Remove vestigial APOLLO-conditional code.
6160
6161 2000-01-21  Martin Buchholz  <martin@xemacs.org>
6162
6163         * getpagesize.h: Add guard macros.
6164         * libsst.h: Add guard macros.
6165         * libst.h: Add guard macros.
6166         * line-number.h: Add guard macros.
6167         * ndir.h: Add guard macros.
6168         * sysfloat.h: Add guard macros.
6169         * sysfile.h: Add guard macros.
6170         * sysproc.h: Add guard macros.
6171         * syswait.h: Add guard macros.
6172         * xintrinsic.h: Add guard macros.
6173         * xintrinsicp.h: Add guard macros.
6174         * xmmanager.h: Add guard macros.
6175         * xmmanagerp.h: Add guard macros.
6176         * xmprimitive.h: Add guard macros.
6177         * xmu.h: Add guard macros.
6178         * gpmevent.h: Add copyright statement. Add guard macros.
6179         * miscplay.h: Add guard macros.
6180         * *.h: Use consistent C-standards-approved guard macro names.
6181
6182         * opaque.c (make_opaque): Switch parameter order.
6183         * opaque.h (make_opaque): Switch parameter order.
6184         Update all callers.
6185         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
6186
6187         * config.h.in (type_checking_assert): Added.
6188         (bufpos_checking_assert): Added.
6189
6190 2000-01-21  Martin Buchholz  <martin@xemacs.org>
6191
6192         * alloc.c: Harmless pdump changes.
6193         - Use countof().
6194         - spell alignment correctly.
6195         * sysdep.c: Use countof()
6196
6197 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6198
6199         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
6200         initially_selected_for_input() console method, default to 0.
6201         (semi_canonicalize_console_connection): Try to delegate to
6202         canonicalize_console_connection if no such console method.
6203         (canonicalize_console_connection): Vice versa.
6204         (print_console): Do not print nil connection.
6205
6206         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
6207         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
6208         (XDEVIMPF_FRAMELESS_OK): Added.
6209         (CONSOLE_INHERITS_METHOD): Added.
6210
6211         * console-msw.c (mswindows_canonicalize_console_connection):
6212         Added.
6213         (mswindows_canonicalize_device_connection): Added.
6214
6215         * console-msw.h (struct msprinter_device): Added this struct and
6216         accessor macros.
6217         (mswindows_device): Made fontlist a lisp object.
6218
6219         * device.c (semi_canonicalize_device_connection):  Try to delegate
6220         to canonicalize_device_connection if no such console method.
6221         (canonicalize_device_connection): Vice versa.
6222         (print_device): Do not print nil connection.
6223
6224         * device-msw.c (mswindows_init_device): Call InitCommonControls
6225         when have widgets.
6226         (mswindows_delete_device): Removed fontlist deallocation.
6227         (mswindows_mark_device): Added.
6228
6229         * events.c (event_equal): Added abort() at unreached code.
6230         (event_hash): Ditto.
6231
6232         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
6233         fallback tags of Windows devices.
6234
6235         * general.c (syms_of_general): Initialized Qmsprinter.
6236
6237         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
6238         of fallback tags of Windows devices.
6239
6240         * lisp.h: Declared Qmsprinter.
6241
6242         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
6243         of strings.
6244         (mswindows_list_fonts): Ditto.
6245         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
6246         that it can be used by both mswindows and msprinter devices.
6247         (initialize_font_instance): Added.
6248         (mswindows_initialize_font_instance): Use it.
6249         (msprinter_initialize_font_instance): Added.
6250
6251         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
6252         and implementation flags check.
6253         (redisplay_without_hooks): Changed the call to the above.
6254         (Fredraw_device): Ditto.
6255         (Fredisplay_device): Ditto.
6256
6257         * redisplay-msw.c (get_frame_dc): Implemented.
6258         (get_frame_compdc): Implemented.
6259         (many functions): Use the two functions above to get device
6260         contexts, ether for a window or a printer.
6261
6262 2000-01-21  Olivier Galibert  <galibert@pobox.com>
6263
6264         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
6265         initialization here.
6266         (init_symbols_once_early): Call it.
6267         * emacs.c (main_1): Call it.
6268         * symsinit.h: Declare it.
6269
6270 2000-01-19  Olivier Galibert  <galibert@pobox.com>
6271
6272         * alloc.c: Use a lrecord_header * in the backtrace instead of a
6273         Lisp_Object.
6274         (pdump_backtrace): Ditto.
6275         (pdump_register_object): Ditto.  Cleanup use of the pointers.
6276         (pdump_get_entry): Abort if trying to register a null pointer.
6277         (pdump_dump_data): Cleanup types when relocating.
6278         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
6279         (pdump_dump_rtables): Remove bad casts.
6280         (pdump_load): Cleanup relocation w.r.t union type.  Use a
6281         Lisp_Object instead of a EMACS_INT for the hashtable
6282         reorganization.
6283
6284 2000-01-20  Martin Buchholz  <martin@xemacs.org>
6285
6286         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
6287
6288         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
6289
6290         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
6291
6292         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
6293
6294 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6295
6296         * faces.h (FACE_STRIKETHRU_P): Added.
6297
6298         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
6299         of font variants.
6300
6301         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
6302         (mswindows_set_dc_font): New function, aware of font variants,
6303         separated from mswindows_update_dc.
6304
6305         * objects-msw.h (struct mswindows_font_instance_data): Added
6306         definition.
6307
6308         * objects-msw.c (mswindows_finalize_font_instance): Delete all
6309         cached fonts and the data structure.
6310         (mswindows_initialize_font_instance): Added creation of font data
6311         structure.
6312         (mswindows_print_font_instance): Print at least something.
6313         (mswindows_create_font_variant): Implemented.
6314         (mswindows_get_hfont): Implemented.
6315
6316 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
6317
6318         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
6319         prototyping problem with msvc.
6320
6321         * emacs.c (main_1): added syms_of_gui_mswindows() call
6322
6323         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
6324         syms_of_gui_mswindows() function
6325
6326         * symsinit.h: added the prototype for syms_of_gui_mswindows()
6327
6328 2000-01-18  Martin Buchholz <martin@xemacs.org>
6329
6330         * XEmacs 21.2.27 is released.
6331
6332 2000-01-18  Martin Buchholz  <martin@xemacs.org>
6333
6334         * glyphs-eimage.c (struct tiff_error_struct):
6335         (tiff_error_func):
6336         (tiff_warning_func):
6337         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
6338
6339         * unexmips.c:
6340         * unexhp9k3.c:
6341         * unexfreebsd.c:
6342         * unexec.c: Remove vestigial Lucid C code.
6343         * unexalpha.c:
6344         * unexaix.c:
6345         * termcap.c:
6346         * libsst.c: Ansify.
6347         Remove declarations of errno and strerror().
6348
6349         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
6350
6351         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
6352
6353 2000-01-16  Martin Buchholz  <martin@xemacs.org>
6354
6355         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
6356         Optimize.
6357
6358 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
6359
6360         * md5.c:
6361         * file-coding.c:
6362         * file-coding.h:
6363         Change enum eol_type to eol_type_t.
6364
6365 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
6366
6367         * gui.c (get_gui_callback): Check cons before accessing car.
6368
6369 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
6370
6371         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
6372         (XSETSPECIFIER_TYPE): Ditto.
6373
6374 2000-01-17  Didier Verna  <didier@xemacs.org>
6375
6376         * redisplay.c (generate_fstring_runes): compute string size in
6377         characters, not bytes.
6378
6379 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
6380
6381         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
6382
6383 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
6384
6385         * print.c (print_error_message): Call print_prepare().
6386
6387 2000-01-14  Martin Buchholz  <martin@xemacs.org>
6388
6389         * .dbxrc: Renamed from dbxrc.
6390
6391         * events.c (event_to_character):
6392         Use `assert (foo)' instead of `if (!foo) abort()'
6393
6394         * .gdbinit (xtype): Add documentation.
6395         * .gdbinit (check-temacs): New function.
6396         * .gdbinit (check-xemacs): New function.
6397         * dbxrc (check-xemacs): New function.
6398         * dbxrc (check-xemacs): New function.
6399
6400 2000-01-14  Andy Piper  <andy@xemacs.org>
6401
6402         * glyphs-widget.c (widget_query_geometry): Make sure that we
6403         calculate default dimensions correctly.
6404
6405 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6406
6407         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
6408
6409         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
6410         pdump_wire'd variable.
6411
6412         * emacs.c: (main_1): Conditionalized calls to
6413         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
6414
6415 2000-01-13  Martin Buchholz  <martin@xemacs.org>
6416
6417         * window.c (Fset_window_configuration):
6418         * sysdep.c (_start):
6419         * input-method-motif.c (res):
6420         * event-Xt.c (Xt_process_to_emacs_event):
6421         Simple compiler warning fixes.
6422
6423         * bytecode.c (funcall_compiled_function): Use the original
6424         function symbol on the backtrace list in preference to the
6425         compiled_function object in error messages.
6426
6427 2000-01-13  Andy Piper  <andy@xemacs.org>
6428
6429         * glyphs-x.c (update_widget_face): Make sure we update the widget
6430         background as well as foreground.
6431
6432 2000-01-13  Andy Piper  <andy@xemacs.org>
6433
6434         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
6435         fields to subwindow.
6436         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
6437         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
6438         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
6439         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
6440
6441         * glyphs-widget.c (check_valid_tab_orientation): new function.
6442         (initialize_widget_image_instance): zero orientation and
6443         justification.
6444         (widget_instantiate): pick up orientation.
6445         (tab_control_query_geometry): return appropriate values for
6446         vertical tabs.
6447
6448         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
6449         appropriate creation flags for left, right and bottom tabs.
6450
6451         * s/cygwin32.h: add tab definitions.
6452
6453 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6454
6455         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
6456         frame upon hiding a subwindow.
6457         (mswindows_button_instantiate): Changed the push button style to
6458         BS_PUSHBUTTON.
6459         (mswindows_button_instantiate): Removed button BS_NOTIFY
6460         style.
6461         (mswindows_button_instantiate): Removed redundant check for
6462         a disabled gui item.
6463         (mswindows_button_instantiate): Made use of WS_TABSTOP
6464         consistent: "operable" controls (edit, button, tree, scroll) have
6465         this style, "display-only" ones (static, progress gauge) do
6466         not. This style is currently ignored by XEmacs though. Also,
6467         removed the WS_EX_CONTROLPARENT style - it is not for children,
6468         it is for their parents!
6469         (mswindows_edit_field_instantiate): Ditto.
6470         (mswindows_progress_gauge_instantiate): Ditto.
6471         (mswindows_tree_view_instantiate): Ditto.
6472         (mswindows_tab_control_instantiate): Ditto.
6473         (mswindows_scrollbar_instantiate): Ditto.
6474         (mswindows_combo_box_instantiate): Ditto.
6475         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
6476         style to the "clip" window.
6477         (mswindows_button_instantiate): Removed compilation warning by
6478         equally typing terms of the ?: operator.
6479
6480 2000-01-12  Didier Verna  <didier@xemacs.org>
6481
6482         * redisplay.c (generate_fstring_runes): new parameter holding the
6483         last modeline-format extent.
6484         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
6485         extent, fill the glyph block with it.
6486         (generate_fstring_runes): handle these parameters.
6487         (generate_formatted_string_db): ditto.
6488
6489         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
6490         glyphs'extents in the modeline.
6491
6492 1999-01-11  Mike Woolley  <mike@bulsara.com>
6493
6494         * ntheap.c: Reduced the reserved heap space from 1Gb down to
6495         256Mb, as a workaround for the non-starting problem many people
6496         have experienced.
6497
6498 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
6499
6500         * console-tty.c (Fset_console_tty_output_coding_system):
6501         Force redrawing tty frame.
6502
6503 2000-01-10  Didier Verna  <didier@xemacs.org>
6504
6505         * redisplay.c (generate_fstring_runes): fix size computation bug.
6506
6507 2000-01-09  William M. Perry <wmperry@aventail.com>
6508
6509         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
6510
6511 2000-01-09  Andy Piper  <andy@xemacs.org>
6512
6513         * glyphs-msw.c: index -> i to avoid shadows.
6514         (xbm_create_bitmap_from_data): make static.
6515         (check_valid_string_or_int): deleted.
6516         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
6517
6518         * glyphs-x.c (x_update_subwindow): remove unused args.
6519
6520         * glyphs.c (glyph_image_instance): return the thing. Don't set the
6521         back pointer - this is done in allocate_image_instance.
6522         (query_string_font): return Qnil to make the compiler happy.
6523         (unmap_subwindow): set to ~0 to make the compiler happy.
6524         (glyph_query_geometry): comment out until used.
6525         (glyph_layout): ditto.
6526
6527 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
6528
6529         * insdel.c (signal_after_change): Remove extraneous unbind_to().