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