Sync up with r21-4-11-chise-b1.
[chise/xemacs-chise.git] / src / ChangeLog
1 2003-03-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
4
5         * mule-charset.c (Vcharset_ucs_gb): Deleted.
6         (Qucs_gb): Deleted.
7         (syms_of_mule_charset): Delete `ucs-gb'.
8         (complex_vars_of_mule_charset): Likewise.
9
10 2003-03-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
11
12         * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
13
14         * mule-charset.c (Vcharset_ucs_cns): Deleted.
15         (Qucs_cns): Deleted.
16         (syms_of_mule_charset): Delete `ucs-cns'.
17         (complex_vars_of_mule_charset): Likewise.
18
19 2003-03-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
20
21         * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
22
23         * mule-charset.c (Vcharset_ucs_jis): Deleted.
24         (Qucs_jis): Deleted.
25         (syms_of_mule_charset): Delete `ucs-jis'.
26         (complex_vars_of_mule_charset): Likewise.
27
28 2003-03-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
29
30         * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
31
32         * mule-charset.c (Vcharset_ucs_ks): Deleted.
33         (Qucs_ks): Deleted.
34         (syms_of_mule_charset): Delete `ucs-ks'.
35         (complex_vars_of_mule_charset): Likewise.
36
37 2003-03-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
38
39         * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
40         (Qideograph_daikanwa_2): Deleted.
41         (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
42         (complex_vars_of_mule_charset): Likewise.
43
44         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
45         (LEADING_BYTE_DAIKANWA_1): Deleted.
46         (LEADING_BYTE_DAIKANWA_2): Deleted.
47         (MIN_CHAR_DAIKANWA): Deleted.
48         (MAX_CHAR_DAIKANWA): Deleted.
49
50 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
51
52         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
53         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
54         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
55
56         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
57         (Vcharset_ideograph_daikanwa): Deleted.
58         (Qideograph_hanziku_{1..12}): Deleted.
59         (Qideograph_daikanwa): Deleted.
60         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
61         Vcharset_ideograph_daikanwa.
62         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
63         `ideograph-hanziku-{1..12}'.
64         (complex_vars_of_mule_charset): Likewise.
65
66 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
67
68         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
69
70         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
71         (Qideograph_gt_pj_{1..11}): Deleted.
72         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
73         (complex_vars_of_mule_charset): Likewise.
74
75 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
76
77         * mule-charset.c (Vcharset_ucs_big5): Deleted.
78         (Vcharset_ideograph_gt): Deleted.
79         (Qucs_big5): Deleted.
80         (Qideograph_gt): Deleted.
81         (syms_of_mule_charset): Delete symbol `ucs-big5' and
82         `ideograph-gt'.
83         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
84         and `ideograph-gt'.
85
86         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
87         (LEADING_BYTE_GT): Deleted.
88         (MIN_CHAR_GT): Deleted.
89         (MAX_CHAR_GT): Deleted.
90
91 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
92
93         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
94
95 2003-01-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
96
97         * chartab.c (save_uint8_byte_table): Add new argument `filter'.
98         (save_uint16_byte_table): Likewise.
99         (save_byte_table): Likewise; convert values by it.
100         (Fput_char_attribute): Don't use `char-refs-simplify-char-specs'
101         for `ideographic-structure'.
102         (Fsave_char_attribute_table): Use `char-refs-simplify-char-specs'
103         as the filter for `ideographic-structure'.
104
105 2003-01-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
106
107         * chartab.c (put_char_composition): New function.
108         (Fput_char_attribute): Use `put_char_composition'; use
109         `Fchar_refs_simplify_char_specs' for `ideographic-structure'.
110
111         * fns.c (simplify_char_spec): New function.
112         (char_ref_simplify_spec): New function.
113         (Fchar_refs_simplify_char_specs): New function.
114         (syms_of_fns): Add new builtin function
115         `char-refs-simplify-char-specs'.
116
117 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
118
119         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
120         (Qideograph_cbeta): Deleted.
121         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
122         (complex_vars_of_mule_charset): Likewise.
123
124         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
125         (MIN_CHAR_CBETA): Comment out.
126         (MAX_CHAR_CBETA): Likewise.
127
128 2002-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
129
130         * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
131         `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
132         CHISE client feature.
133
134 2002-12-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
135
136         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
137
138 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
139
140         * mule-charset.c (charset_lookup_description_1): Use
141         `NUM_LEADING_BYTES' in UTF-2000.
142
143 2002-12-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
144
145         * char-ucs.h (GC_CHARSETP): Deleted.
146
147 2002-12-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
148
149         * char-ucs.h (MAX_CHAR_GT): Updated.
150
151 2002-12-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
152
153         * text-coding.c: Sync with XEmacs 21.4.10.
154
155 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
156
157         * mule-charset.c (Vcharset_china3_jef): Deleted.
158         (Qchina3_jef): Deleted.
159         (syms_of_mule_charset): Don't define `china3-jef'.
160         (complex_vars_of_mule_charset): Likewise.
161
162         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
163         (MIN_CHAR_CHINA3_JEF): Comment out.
164         (MAX_CHAR_CHINA3_JEF): Comment out.
165
166 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
167
168         * mule-charset.c (Vcharset_ucs_gb): New variable.
169         (Qucs_gb): New variable.
170         (syms_of_mule_charset): Add new symbol `ucs-gb'.
171         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
172
173         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
174
175 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
176
177         * mule-charset.c (charset_code_point): if a coded-charset has a
178         final-byte, don't inherit the builtin range of the mother CCS.
179
180 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
181
182         * mule-charset.c (charset_code_point): Fix problem about
183         inheritance.
184
185 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
186
187         * mule-charset.c (decode_builtin_char): Reorganized.
188
189 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
190
191         * text-coding.c (char_encode_as_entity_reference): Modify for
192         `charset_code_point'.
193         (char_encode_shift_jis): Likewise.
194         (char_encode_big5): Likewise.
195         (char_encode_utf8): Likewise.
196         (char_encode_iso2022): Likewise.
197
198         * mule-charset.c (charset_code_point): Add new argument
199         `defined_only'.
200         (Fencode_char): Add new optional argument `defined_only'.
201
202         * chartab.c (put_char_table): Modify for `charset_code_point'.
203
204         * char-ucs.h (charset_code_point): Add new argument
205         `defined_only'.
206         (encode_char_1): Modify for `charset_code_point'.
207
208 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
209
210         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
211         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
212
213 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
214
215         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
216         (Qjis_x0208): Likewise.
217         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
218         XCHARSET_FINAL(charset).
219         (charset_code_point): Modify condition for final-byte based
220         builtin-chars.
221         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
222         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
223         in UTF-2000; specify `=jis-x0208' as the mother of
224         `japanese-jisx0208-1978', `japanese-jisx0208' and
225         `japanese-jisx0208-1990' in UTF-2000.
226
227 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
228
229         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
230
231 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
232
233         * text-coding.c (decode_coding_utf16): Support UTF-16.
234         (char_encode_utf16): Fixed.
235
236 2002-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
237
238         * text-coding.c (Qutf16): New variable in MULE.
239         (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
240         (Fcoding_system_type): Add `utf-16' in MULE.
241         (struct detection_state): Add a structure for utf16 in MULE.
242         (detect_coding_type): Setup st->utf16.mask in MULE.
243         (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
244         MULE.
245         (reset_encoding_stream): Use `char_encode_utf16' and
246         `char_finish_utf16' for `CODESYS_UTF16' in MULE.
247         (detect_coding_utf16): New function [incomplete].
248         (decode_coding_utf16): New function [support only UCS-2].
249         (char_encode_utf16): New function.
250         (char_finish_utf16): New function.
251         (syms_of_file_coding): Add new symbol `utf-16'; setup
252         `coding_category_symbol[CODING_CATEGORY_UTF16]'.
253
254         * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
255         UTF-2000.
256         (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
257         (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
258
259 2002-10-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
260
261         * chartab.c (put_char_table): When a charset is specified as a
262         range in UTF-2000, don't support builtin characters.
263
264 2002-09-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
265
266         * mule-charset.c (decode_defined_char): Don't refer external
267         database if Qunbound or Qnil are found.
268         (Fsave_charset_mapping_table): Don't define it if
269         HAVE_CHISE_CLIENT is not defined.
270         (Freset_charset_mapping_table): New function.
271         (load_char_decoding_entry_maybe): Store Qnil if a character is not
272         found in external database.
273         (syms_of_mule_charset): Don't define `save-charset-mapping-table'
274         if HAVE_CHISE_CLIENT is not defined; add new builtin function
275         `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
276
277 2002-09-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
278
279         * text-coding.c (decode_coding_utf8): Check CCS is specified or
280         not.
281
282 2002-08-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
283
284         * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
285         Q_lowercase, Q_uppercase in UTF-2000.
286
287         * chartab.c (get_char_table): Add special code for the standard
288         case table to use character attribute `->downcase' and
289         `->uppercase' for case operations in UTF-2000.
290
291         * casetab.c (Qflippedcase): New variable in UTF-2000.
292         (Q_lowercase): Likewise.
293         (Q_uppercase): Likewise.
294         (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
295         and `->uppercase' in UTF-2000.
296         (complex_vars_of_casetab): Assign attribute name `downcase' to
297         downcase and CANON table of Vstandard_case_table in UTF-2000;
298         assign attribute name `flippedcase' to upcase and EQV table of
299         Vstandard_case_table in UTF-2000.
300
301 2002-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
302
303         * text-coding.c (decode_add_er_char): Support isolated-chars.
304         (char_encode_as_entity_reference): Likewise.
305
306 2002-08-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
307
308         * emacs.c (Vutf_2000_lisp_directory): New variable.
309         (Vconfigure_utf_2000_lisp_directory): Likewise.
310         (complex_vars_of_emacs): Add new variable
311         `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
312
313 2002-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
314
315         * char-ucs.h (DECODE_CHAR): Delete special code for
316         `chinese-big5-1' and `chinese-big5-2'.
317
318         * mule-charset.c (Qbig5_1): New variable in UTF-2000.
319         (Qbig5_2): Likewise.
320         (decode_defined_char): Support CONVERSION_BIG5_1 and
321         CONVERSION_BIG5_2.
322         (decode_builtin_char): Likewise.
323         (charset_code_point): Likewise.
324         (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
325         'conversion in UTF-2000.
326         (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
327         (complex_vars_of_mule_charset): Define `chinese-big5-1' and
328         `chinese-big5-2' as children of `chinese-big5'.
329
330         * char-ucs.h (CONVERSION_BIG5_1): New macro.
331         (CONVERSION_BIG5_2): New macro.
332
333 2002-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
334
335         * text-coding.c (char_encode_big5): Support entity-reference.
336
337 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
338
339         * text-coding.c (char_encode_as_entity_reference): New function.
340         (char_encode_utf8): Use `char_encode_as_entity_reference'.
341
342 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
343
344         * text-coding.c (decode_coding_big5): Support entity-reference
345         decoding feature.
346
347 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
348
349         * text-coding.c (allocate_coding_system): Initialize initial
350         charsets for CODESYS_UTF8.
351         (Fmake_coding_system): Accept charset-g0, charset-g1 and
352         charset-g2 for CODESYS_UTF8.
353         (decode_coding_utf8): Use charset-g0.
354         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
355         to force variants to map to UCS.
356
357 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
358
359         * text-coding.c (Qutf_8_mcs): New variable.
360         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
361         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
362         instead of `utf-8' in UTF-2000.
363
364 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
365
366         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
367         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
368         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
369         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
370         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
371         CONVERSION_96x96x96x96 are introduced.
372         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
373         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
374         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
375
376         * char-ucs.h (CONVERSION_94): New macro.
377         (CONVERSION_96): New macro.
378         (CONVERSION_94x94): New macro.
379         (CONVERSION_96x96): New macro.
380         (CONVERSION_94x94x94): New macro.
381         (CONVERSION_96x96x96): New macro.
382         (CONVERSION_94x94x94x60): New macro.
383         (CONVERSION_94x94x94x94): New macro.
384         (CONVERSION_96x96x96x96): New macro.
385
386 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
387
388         * chartab.c (Vcharacter_variant_table): Deleted.
389         (Fchar_variants): Use character-attribute `->ucs-variants' instead
390         of `Vcharacter_variant_table'.
391         (Fput_char_attribute): Likewise.
392         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
393         (complex_vars_of_chartab): Likewise.
394
395 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
396
397         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
398
399         * fns.c (Qideographic_structure): New variable.
400         (Qkeyword_char): New variable.
401         (ids_format_unit): New function.
402         (Fideographic_structure_to_ids): New function.
403         (syms_of_fns): Add new symbols `ideographic-structure' and
404         `:char'; add new builtin function `ideographic-structure-to-ids'.
405
406         * data.c (Fchar_ref_p): New function.
407         (syms_of_data): Add new builtin function `char-ref-p'.
408
409         * chartab.h: Add an EXFUN for `Ffind_char'.
410
411 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
412
413         * text-coding.c (Vcharacter_composition_table): Deleted.
414         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
415         in every UTF-2000.
416
417         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
418         UTF-2000.
419         (Vcharacter_composition_table): Deleted.
420         (Fget_composite_char): Use the implementation for external-DB
421         support in every UTF-2000.
422         (Fput_char_attribute): Likewise.
423         (char_attribute_system_db_file): Don't define if external-DB
424         feature is not available.
425         (Fsave_char_attribute_table): Likewise.
426         (Fmount_char_attribute_table): Likewise.
427         (Fclose_char_attribute_table): Likewise.
428         (Freset_char_attribute_table): Likewise.
429         (Fload_char_attribute_table): Likewise.
430         (syms_of_chartab): Don't define `save-char-attribute-table',
431         `mount-char-attribute-table', `reset-char-attribute-table',
432         `close-char-attribute-table' and `load-char-attribute-table' if
433         external-DB feature is not available.
434         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
435
436 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
437
438         * text-coding.c (Qcomposition): Add extern if external-DB feature
439         is supported.
440         (Vcharacter_composition_table): Don't add extern if external-DB
441         feature is supported.
442         (COMPOSE_ADD_CHAR): Modify for new data-representation of
443         character composition rule if external-DB feature is supported.
444
445         * chartab.c (Vcharacter_composition_table): Don't define if
446         external-DB feature is supported.
447         (Qcomposition): New variable.
448         (Fget_composite_char): New implementation for external-DB support.
449         (Fput_char_attribute): Use `composition' property of each
450         character instead of `Vcharacter_composition_table' to store
451         character-composition rules if external-DB feature is supported.
452         (syms_of_chartab): Add new symbol `composition'.
453         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
454         external-DB feature is supported.
455
456 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
457
458         * chartab.c (Vchar_db_stingy_mode): New variable.
459         (load_char_attribute_maybe): Close database if
460         Vchar_db_stingy_mode is not NIL.
461         (Fload_char_attribute_table_map_function): Use
462         `get_char_id_table_0' instead of `get_char_id_table'.
463         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
464
465         * chartab.h (get_char_id_table_0): New inline function.
466         (get_char_id_table): Use `get_char_id_table_0'.
467
468 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
469
470         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
471         and `COMPOSE_ADD_CHAR'.
472         (decode_coding_iso2022): Use `decode_flush_er_chars'.
473
474 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
475
476         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
477         instead of `DECODE_ADD_UCS_CHAR'.
478         (COMPOSE_ADD_CHAR): Likewise.
479
480 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
481
482         * text-coding.c (decode_flush_er_chars): New inline function.
483         (decode_add_er_char): New function.
484         (decode_coding_utf8): Use `decode_flush_er_chars' and
485         `decode_add_er_char'.
486
487 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
488
489         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
490         done before `decode_output_utf8_partial_char'.
491
492         * mule-charset.c (complex_vars_of_mule_charset): Specify
493         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
494         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
495
496 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
497
498         * mule-charset.c (decode_defined_char): New function; search
499         mother.
500         (decode_builtin_char): Don't search mother if
501         XCHARSET_MAX_CODE(charset) == 0.
502         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
503         == 0 even if code >= XCHARSET_MAX_CODE(charset).
504         (Fdecode_char): Use `decode_defined_char' instead of
505         `DECODE_DEFINED_CHAR'.
506         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
507         mother of `Vcharset_ucs_jis'.
508
509         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
510         instead of `DECODE_DEFINED_CHAR'.
511
512         * char-ucs.h (decode_defined_char): Renamed from
513         `DECODE_DEFINED_CHAR'; changed to normal function.
514         (DECODE_CHAR): Use `decode_defined_char' instead of
515         `DECODE_DEFINED_CHAR'.
516
517         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
518
519 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
520
521         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
522
523         * text-coding.c (Vcoded_charset_entity_reference_alist): New
524         variable.
525         (Quse_entity_reference): New variable.
526         (Qd): New variable.
527         (Qx): New variable.
528         (QX): New variable.
529         (coding_system_description): Add description for
530         `ccs_priority_list'.
531         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
532         (allocate_coding_system): Initialize `ccs_priority_list' in
533         UTF-2000.
534         (Fmake_coding_system): Add description about
535         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
536         (codesys).
537         (Fcoding_system_property): Accept `disable-composition' and
538         `use-entity-reference' in UTF-2000.
539         (struct decoding_stream): Add new member `er_counter' and `er_buf'
540         in UTF-2000.
541         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
542         (decode_coding_utf8): Decode entity-reference if
543         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
544         (char_encode_utf8): Encode non-Unicode characters as
545         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
546         (str->codesys).
547         (syms_of_file_coding): Add new symbols `use-entity-reference',
548         `d', `x', `X'.
549         (vars_of_file_coding): Add new variable
550         `coded-charset-entity-reference-alist'.
551         (complex_vars_of_file_coding): Declare `disable-composition' and
552         `use-entity-reference' to be coding-system-properties in UTF-2000.
553
554         * file-coding.h (struct Lisp_Coding_System): Add new member
555         `use_entity_reference' and `ccs_priority_list'.
556         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
557         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
558         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
559
560 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
561
562         * chartab.c (save_uint8_byte_table): Don't clear the table.
563         (save_uint16_byte_table): Likewise.
564         (save_byte_table): Likewise.
565         (Fmount_char_attribute_table): New function.
566         (syms_of_chartab): Add new builtin function
567         `mount-char-attribute-table'.
568
569 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
570
571         * mule-charset.c (Fsave_charset_mapping_table): Open database as
572         "w+" mode.
573         (load_char_decoding_entry_maybe): Open database as read-only mode.
574
575         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
576         open database as "w+" mode.
577         (load_char_attribute_maybe): Open database as read-only mode.
578         (Fload_char_attribute_table): Likewise.
579
580 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
581
582         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
583         (char_table_description): Delete member `db_file'.
584         (Fmake_char_table): Don't refer `ct->db_file'.
585         (Fcopy_char_table): Likewise.
586         (Fsave_char_attribute_table): Likewise.
587         (Fclose_char_attribute_table): Likewise.
588         (Freset_char_attribute_table): Likewise.
589         (load_char_attribute_maybe): Likewise.
590         (Fload_char_attribute_table): Likewise.
591
592         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
593
594 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
595
596         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
597         (Fsave_char_attribute_table): Don't check `ct->db_file' if
598         `ct->db' is living.
599         (load_char_attribute_maybe): Likewise.
600         (Fload_char_attribute_table): Likewise.
601
602 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
603
604         * chartab.c (Fclose_char_attribute_table): Set Qnil on
605         `ct->db_file' unconditionally.
606
607 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
608
609         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
610         UTF-2000.
611         (char_table_description): Add description for `db_file' and `db'
612         in UTF-2000.
613         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
614         UTF-2000.
615         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
616         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
617         (Fclose_char_attribute_table): New function.
618         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
619         (load_char_attribute_maybe): Change interface; use `cit->db_file'
620         and `cit->db'.
621         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
622         (syms_of_chartab): Add new builtin function
623         `Fclose_char_attribute_table'.
624
625 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
626
627         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
628         `db' in UTF-2000.
629         (load_char_attribute_maybe): Change interface.
630         (get_char_id_table): Modify for `load_char_attribute_maybe'.
631
632 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
633
634         * database.h: Add an EXFUN for `Fdatabase_live_p'.
635
636 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
637
638         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
639         instead of `DECODE_CHAR' for mother; don't use special code for
640         chinese-big5 to use code space of chinese-big5-1 and
641         chinese-big5-2.
642         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
643         `MAX_CHAR_BIG5_CDP' for chinese-big5.
644
645         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
646         (MAX_CHAR_BIG5_CDP): Revival.
647
648 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
649
650         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
651         the XLFD registry-encoding name of `chinese-big5'.
652
653 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
654
655         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
656         (Qchinese_big5_cdp): Deleted.
657         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
658         (complex_vars_of_mule_charset): Delete coded-charset
659         `chinese-big5-cdp'.
660
661         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
662         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
663         `CHARSET_ID_OFFSET - n' for private CCS.
664         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
665         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
666         of `MIN_LEADING_BYTE'.
667         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
668         `(CHARSET_ID_OFFSET - 97)'.
669         (MIN_CHAR_BIG5_CDP): Deleted.
670         (MAX_CHAR_BIG5_CDP): Deleted.
671
672 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
673
674         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
675
676 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
677
678         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
679         (vars_of_mule): Add new variable `utf-2000-version' [moved from
680         chartab.c].
681
682         * chartab.c (Vutf_2000_version): Moved to mule.c.
683         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
684
685 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
686
687         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
688         when HAVE_CHISE_CLIENT is not defined.
689
690         * mule.c (vars_of_mule): Provide feature `chise' when
691         HAVE_CHISE_CLIENT is defined.
692
693 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
694
695         * config.h.in (UTF2000): Add comment.
696         (HAVE_CHISE_CLIENT): New macro.
697
698 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
699
700         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
701         CONSP.
702         (Fput_char_attribute): Likewise.
703         (char_attribute_system_db_file): Encode file-name of attribute.
704         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
705         the initial value.
706
707 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
708
709         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
710         (Fsave_charset_mapping_table): Use
711         `char_attribute_system_db_file'.
712         (load_char_decoding_entry_maybe): Likewise.
713
714         * chartab.h (Qsystem_char_id): New external variable.
715         (char_attribute_system_db_file): New prototype.
716
717         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
718         (char_attribute_system_db_file): New function.
719         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
720         (Freset_char_attribute_table): Likewise.
721         (load_char_attribute_maybe): Likewise.
722         (Fload_char_attribute_table): Likewise.
723         (syms_of_chartab): Add new symbol `system-char-id'.
724
725 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
726
727         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
728         `XCHARSET_GRAPHIC(ccs)'.
729
730 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
731
732         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
733
734 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
735
736         * chartab.c (Q_ucs_variants): New variable.
737         (syms_of_chartab): Add new symbol `->ucs-variants'.
738         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
739         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
740         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
741
742         * mule-charset.c (load_char_decoding_entry_maybe): New function.
743
744         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
745         `HAVE_DATABASE' is defined.
746         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
747         `HAVE_DATABASE' is defined.
748
749 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
750
751         * chartab.c (Fsave_char_attribute_table): Don't clear internal
752         attribute-table.
753         (Freset_char_attribute_table): New function.
754         (syms_of_chartab): Add new builtin function
755         `reset-char-attribute-table'.
756
757 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
758
759         * chartab.c (load_char_attribute_maybe): Don't make directories.
760
761 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
762
763         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
764
765         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
766         for decoding-table.
767
768 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
769
770         * mule-charset.c (Fsave_charset_mapping_table): Use
771         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
772
773         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
774         instead of `XCHARSET_CHARS'.
775
776 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
777
778         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
779         (XCHARSET_BYTE_SIZE): Likewise.
780
781         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
782         mule-charset.c].
783         (XCHARSET_BYTE_SIZE): Likewise.
784
785 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
786
787         * chartab.c (Fput_char_attribute): Use exec-directory instead of
788         data-directory to store database.
789         (Fsave_char_attribute_table): Likewise.
790         (load_char_attribute_maybe): Likewise.
791         (Fload_char_attribute_table): Likewise.
792
793 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
794
795         * mule-charset.c (Fsave_charset_mapping_table): New function.
796         (syms_of_mule_charset): Add new builtin function
797         `save-charset-mapping-table'.
798
799 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
800
801         * char-ucs.h (decoding_table_check_elements): Delete prototype.
802         (get_ccs_octet_table): New inline function.
803         (put_ccs_octet_table): Likewise.
804         (decoding_table_put_char): Use `get_ccs_octet_table' and
805         `put_ccs_octet_table'.
806         (decoding_table_remove_char): Use `decoding_table_put_char'.
807         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
808
809         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
810         into encoding_table.
811         (make_charset): Use Qunbound instead Qnil as initial value of
812         decoding_table.
813
814 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
815
816         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
817         element is Qunloaded.
818         (map_over_uint16_byte_table): Likewise.
819         (map_over_byte_table): Likewise.
820         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
821         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
822         database support, load encoding-table of the specified
823         coded-charset if it is not loaded yet.
824         (save_uint8_byte_table): New function of UTF-2000 with external
825         database support.
826         (save_uint16_byte_table): Likewise.
827         (save_byte_table): Likewise.
828         (Fput_char_attribute): Don't store value into external database
829         even if the external database feature is supported in UTF-2000;
830         set `attribute' as name of char-table if the external database
831         feature is supported.
832         (Fsave_char_attribute_table): New function in UTF-2000.
833         (syms_of_chartab): Add new builtin function
834         `save-char-attribute-table' in UTF-2000.
835
836 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
837
838         * chartab.c (char_attribute_table_to_put): New variable in
839         UTF-2000.
840         (Qput_char_table_map_function): Likewise.
841         (value_to_put): Likewise.
842         (Fput_char_table_map_function): New function in UTF-2000.
843         (put_char_table): Use `Fmap_char_attribute' for
844         CHARTAB_RANGE_CHARSET in UTF-2000.
845         (Fput_char_attribute): Store symbol instead of string in
846         `XCHAR_TABLE_NAME (table)'.
847         (load_char_attribute_maybe): Likewise.
848         (syms_of_chartab): Add new symbol/function
849         `put-char-table-map-function'.
850
851 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
852
853         * database.h: Add new EXFUN for `Fmap_database'.
854
855         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
856         (syms_of_database): Likewise.
857
858         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
859         UTF-2000.
860         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
861         (XCHAR_TABLE_UNLOADED): Likewise.
862
863         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
864         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
865         HAVE_DATABASE is defined.
866         (char_attribute_table_to_load): New variable of UTF-2000 with
867         external database support.
868         (Qload_char_attribute_table_map_function): Likewise.
869         (Fload_char_attribute_table_map_function): New function of
870         UTF-2000 with external database support.
871         (Fload_char_attribute_table): New function of UTF-2000.
872         (Fmap_char_attribute): Call Fload_char_attribute_table if
873         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
874         (syms_of_chartab): Add new symbol and function
875         `load-char-attribute-table-map-function' in UTF-2000 with external
876         database support; add new function `load-char-attribute-table' in
877         UTF-2000.
878
879 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
880
881         * chartab.h (load_char_attribute_maybe): New prototype for
882         UTF-2000 with DATABASE support.
883         (get_char_id_table): Use `load_char_attribute_maybe' if
884         HAVE_DATABASE is defined.
885
886         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
887         with DATABASE support.
888
889 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
890
891         * chartab.c (Fput_char_attribute): Use S-expression as key of
892         external database.
893
894         * chartab.h (get_char_id_table): Use S-expression as key of
895         external database.
896
897 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
898
899         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
900         if an element is not loaded, load the corresponding attributes
901         from an external database.
902         (map_over_uint16_byte_table): Likewise.
903         (map_over_byte_table): Likewise.
904         (map_char_table): Modify for `map_over_uint8_byte_table',
905         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
906         element is not loaded, load the corresponding attributes from an
907         external database.
908         (Fput_char_attribute): Change initial values to Qunloaded.
909
910         * chartab.h (get_char_id_table): If a character attribute is not
911         loaded and the attribute value is not found in an external
912         database, store Qunbound as the attribute value.
913
914 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
915
916         * chartab.c (BT_UINT8_unloaded): New macro.
917         (UINT8_VALUE_P): Accept Qunloaded.
918         (UINT8_ENCODE): Likewise.
919         (UINT8_DECODE): Likewise.
920         (BT_UINT16_unloaded): New macro.
921         (UINT16_VALUE_P): Accept Qunloaded.
922         (UINT16_ENCODE): Likewise.
923         (UINT16_DECODE): Likewise.
924         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
925         BT_UINT16_unloaded.
926         (mark_char_table): Mark `ct->name' in UTF-2000.
927         (char_table_description): Add `name' in UTF-2000.
928         (Fmake_char_table): Initialize `ct->name'.
929         (Fcopy_char_table): Copy `ct->name'.
930         (Fput_char_attribute): Store value into an external database if
931         HAVE_DATABASE is defined.
932
933         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
934         UTF-2000.
935         (CHAR_TABLE_NAME): New macro in UTF-2000.
936         (XCHAR_TABLE_NAME): New macro in UTF-2000.
937         (get_char_id_table): Try to read an external database if Qunloaded
938         is stored in a table.
939
940         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
941         Qunloaded.
942
943 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
944
945         * database.h: Add EXFUN definitions for Fopen_database,
946         Fput_database, Fget_database and Fclose_database.
947
948         * data.c (Qunloaded): New variable in UTF-2000.
949
950         * lisp.h (Qunloaded): New variable in UTF-2000.
951
952 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
953
954         * mule-charset.c (put_char_ccs_code_point): Modify for
955         `decoding_table_remove_char' and `decoding_table_put_char'.
956         (remove_char_ccs): Modify for `decoding_table_remove_char'.
957
958         * char-ucs.h (decoding_table_remove_char): Change arguments to
959         hide decoding_table vector.
960         (decoding_table_put_char): Likewise.
961
962 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
963
964         * mule-charset.c (decoding_table_remove_char): Moved to
965         char-ucs.h.
966         (decoding_table_put_char): Likewise.
967
968         * char-ucs.h (decoding_table_check_elements): New prototype [moved
969         from mule-charset.c].
970         (decoding_table_remove_char): New inline function [moved from
971         mule-charset.c].
972         (decoding_table_put_char): Likewise.
973
974 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
975
976         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
977         extension.
978
979 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
980
981         * mule-charset.c (decode_builtin_char): Support mother charsets.
982
983 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
984
985         * mule-charset.c (Q94x94x60): New variable.
986         (charset_code_point): Support conversion `94x94x60'.
987         (Fmake_charset): Likewise.
988         (syms_of_mule_charset): Add new symbol `94x94x60'.
989
990         * char-ucs.h (CONVERSION_94x94x60): New macro.
991
992 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
993
994         * mule-charset.c (charset_code_point): Unify code about
995         `code-offset'.
996
997 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
998
999         * mule-charset.c (charset_code_point): Merge code about builtin
1000         characters into code about mother charsets; don't use
1001         `range_charset_code_point'.
1002         (range_charset_code_point): Deleted.
1003
1004 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1005
1006         * mule-charset.c (Qcode_offset): New variable.
1007         (Fmake_charset): Use `XUINT' to get value of `min-code' and
1008         `max-code'; accept new property `code-offset'.
1009         (syms_of_mule_charset): Add new symbol `code-offset'.
1010
1011 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1012
1013         * mule-charset.c (range_charset_code_point): Fixed.
1014
1015 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1016
1017         * mule-charset.c (decode_builtin_char): Change semantics of
1018         code-offset of coded-charset.
1019         (charset_code_point): Likewise.
1020         (range_charset_code_point): Likewise.
1021         (complex_vars_of_mule_charset): Modify for the change.
1022
1023 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1024
1025         * mule-charset.c (Fencode_char): Reverse arguments.
1026
1027         * mule-charset.c (charset_code_point): Fixed.
1028
1029 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1030
1031         * mule-charset.c (Vcharset_mojikyo): Deleted.
1032         (Vcharset_mojikyo_2022_1): Deleted.
1033         (Vcharset_mojikyo_pj_{1..21}): Deleted.
1034         (Qmin_code): New variable in UTF-2000.
1035         (Qmax_code): Likewise.
1036         (Qmother): Likewise.
1037         (Qconversion): Likewise.
1038         (Q94x60): Likewise.
1039         (Qmojikyo): Deleted.
1040         (Qmojikyo_2022_1): Deleted.
1041         (Qmojikyo_pj_{1..22}): Deleted.
1042         (mark_charset): Mark `cs->mother'.
1043         (charset_description): Add description for `mother'.
1044         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
1045         new arguments `mother' and `conversion'; use
1046         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
1047         (charset_code_point): Moved from char-ucs.h; support `mother'
1048         charset feature.
1049         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
1050         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
1051         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
1052         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
1053         allow 2 as the value of `graphic' in UTF-2000; add new properties
1054         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
1055         require `final' in UTF-2000; modify for `make_charset'.
1056         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
1057         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
1058         (Fcharset_property): Support `mother', `min-code' and `max-code'.
1059         (Fencode_char): New function.
1060         (syms_of_mule_charset): Add new builtin function `encode-char' in
1061         UTF-2000; add new symbols `min-code', `max-code', `mother',
1062         `conversion' and `94x60'; delete symbols `mojikyo',
1063         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
1064         (complex_vars_of_mule_charset): Modify for `make_charset' change;
1065         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
1066         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
1067
1068         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
1069         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
1070
1071         * char-ucs.h (Vcharset_mojikyo): Deleted.
1072         (Vcharset_mojikyo_2022_1): Deleted.
1073         (LEADING_BYTE_MOJIKYO): Deleted.
1074         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
1075         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
1076         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
1077         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
1078         add new member `mother'; add new member `conversion'.
1079         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
1080         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
1081         (CHARSET_MOTHER): New macro.
1082         (CHARSET_CONVERSION): New macro.
1083         (CONVERSION_IDENTICAL): New macro.
1084         (CONVERSION_94x60): New macro.
1085         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
1086         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
1087         (XCHARSET_MOTHER): New macro.
1088         (XCHARSET_CONVERSION): New macro.
1089         (MIN_CHAR_MOJIKYO): Deleted.
1090         (MAX_CHAR_MOJIKYO): Deleted.
1091         (DECODE_MOJIKYO_2022): Deleted.
1092         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
1093         (charset_code_point): Changed to non-inline function.
1094         (encode_char_1): Use `charset_code_point'.
1095         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
1096
1097 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1098
1099         * lread.c (read_compiled_function): Fix prototype.
1100         (read_vector): Likewise.
1101
1102 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1103
1104         * lrecord.h (struct lrecord_header): Delete `older'.
1105         (set_lheader_implementation): Delete code for `older'.
1106         (set_lheader_older_implementation): Deleted.
1107         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
1108         (OLDER_RECORD_P): Deleted.
1109         (OLDER_RECORD_HEADER_P): Deleted.
1110         (alloc_older_lcrecord): Deleted.
1111         (alloc_older_lcrecord_type): Deleted.
1112
1113         * alloc.c (all_older_lcrecords): Deleted.
1114         (alloc_older_lcrecord): Deleted.
1115         (disksave_object_finalization_1): Delete code for older objects.
1116         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
1117         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
1118
1119 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1120
1121         * mule-charset.c (decoding_table_put_char): Use `make_vector'
1122         instead of `make_older_vector'.
1123         (put_char_ccs_code_point): Likewise.
1124         (mark_charset): Mark `cs->decoding_table'.
1125         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
1126
1127         * lisp.h (make_older_vector): Deleted.
1128         (make_vector_newer): Deleted.
1129
1130         * config.h.in (HAVE_GGC): Deleted.
1131
1132         * alloc.c (make_older_vector): Deleted.
1133         (make_vector_newer_1): Deleted.
1134         (make_vector_newer): Deleted.
1135
1136 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1137
1138         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
1139         (Qideograph_daikanwa_2): New variable.
1140         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
1141         (complex_vars_of_mule_charset): Add new coded-charset
1142         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
1143         `LEADING_BYTE_DAIKANWA'.
1144
1145         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
1146         (LEADING_BYTE_DAIKANWA_1): New macro.
1147         (LEADING_BYTE_DAIKANWA_2): New macro.
1148         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
1149
1150 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1151
1152         * mule-charset.c (complex_vars_of_mule_charset): Change
1153         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
1154         the second revised version.
1155
1156 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1157
1158         * mule-charset.c (Vcharset_ucs_smp): New variable.
1159         (Vcharset_ucs_sip): New variable.
1160         (Qucs_smp): New variable.
1161         (Qucs_sip): New variable.
1162         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
1163         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
1164         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
1165         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
1166         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
1167         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
1168
1169         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
1170         (LEADING_BYTE_UCS_SIP): New macro.
1171         (MIN_CHAR_SMP): New macro.
1172         (MAX_CHAR_SMP): New macro.
1173         (MIN_CHAR_SIP): New macro.
1174         (MAX_CHAR_SIP): New macro.
1175
1176 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
1177
1178         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
1179         utf-2000.
1180
1181 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1182
1183         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
1184         value; don't store value into `encoding_table' of `Lisp_Charset'.
1185         (mark_charset): `encoding_table' was deleted.
1186         (charset_description): Likewise.
1187         (make_charset): Likewise.
1188         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
1189         `put_char_ccs_code_point'.
1190
1191         * chartab.h (Fput_char_attribute): New EXFUN.
1192
1193         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
1194         is unified with normal symbol space.
1195         (Fget_char_attribute): Likewise.
1196         (Fput_char_attribute): Likewise; behavior of
1197         `put_char_ccs_code_point' is changed.
1198
1199         * char-ucs.h: Include "elhash.h".
1200         (Vchar_attribute_hash_table): New external variable.
1201         (struct Lisp_Charset): Delete `encoding_table'.
1202         (CHARSET_ENCODING_TABLE): New implementation; refer
1203         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
1204         `Lisp_Charset'.
1205
1206 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1207
1208         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
1209         (cs) == 0.
1210
1211 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1212
1213         * text-coding.c (char_encode_big5): Prefer charset-g1 than
1214         `chinese-big5'.
1215
1216 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1217
1218         * chartab.c (uint8_byte_table_description): New constant.
1219         (uint8-byte-table): Use `uint8_byte_table_description'.
1220         (uint16_byte_table_description): New constant.
1221         (uint16-byte-table): Use `uint16_byte_table_description'.
1222
1223 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1224
1225         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
1226         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
1227
1228 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1229
1230         * mule-charset.c (Vcharset_ucs_ks): New variable.
1231         (Qucs_ks): New variable.
1232         (syms_of_mule_charset): Add new symbol `ucs-ks'.
1233         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
1234
1235         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
1236
1237 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1238
1239         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
1240         (Fdecode_char): Likewise.
1241
1242         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
1243         chartab.h.
1244         (Fdefine_char): Modify for Fdecode_char.
1245         (Ffind_char): Likewise.
1246
1247         * mule-charset.c (Fdecode_char): Add new optional argument
1248         `defined-only'.
1249         (Fdecode_builtin_char): Modify for `Fdecode_char'.
1250
1251 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1252
1253         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
1254         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
1255         (allocate_coding_system): Initialize initial-charsets of
1256         CODESYS_BIG5 in XEmacs UTF-2000.
1257         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
1258         CODESYS_BIG5 in XEmacs UTF-2000.
1259         (decode_coding_big5): Use initial-charset-g0 and -g1 of
1260         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
1261
1262         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
1263         variables.
1264         (Qideograph_hanziku_{1 .. 12}): Likewise.
1265         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
1266         .. 12}'.
1267         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
1268         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
1269         `ideograph-hanziku-{1 .. 12}'.
1270
1271         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
1272         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
1273         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
1274         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
1275         (DECODE_DEFINED_CHAR): New inline function.
1276         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
1277
1278 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1279
1280         * mule-charset.c (Vcharset_china3_jef): Renamed from
1281         `Vcharset_japanese_jef_china3'.
1282         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
1283         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
1284         `{MIN|MAX}_CHAR_JEF_CHINA3'..
1285         (syms_of_mule_charset): Rename `china3-jef' from
1286         `japanese-jef-china3'.
1287         (complex_vars_of_mule_charset): Likewise; rename
1288         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
1289
1290         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
1291         `LEADING_BYTE_JEF_CHINA3'.
1292         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
1293         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
1294
1295 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1296
1297         * mule-charset.c (encode_builtin_char_1): Comment out special code
1298         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
1299
1300         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
1301         (MAX_CHAR_MOJIKYO_0): Comment out.
1302         (MIN_CHAR_CBETA): Changed to 0x00E20000.
1303         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
1304         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
1305         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
1306
1307 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1308
1309         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
1310         (Qideograph_cbeta): New variable.
1311         (encode_builtin_char_1): Comment out special code for
1312         coded-charset `mojikyo' and `japanese-jef-china3'.
1313         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
1314         (complex_vars_of_mule_charset): Add new coded-charset
1315         `ideograph-cbeta'.
1316
1317         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
1318         (MIN_CHAR_CBETA): New macro.
1319         (MAX_CHAR_CBETA): New macro.
1320
1321 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1322
1323         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
1324         (LEADING_BYTE_JEF_CHINA3): New macro.
1325         (MIN_CHAR_JEF_CHINA3): New macro.
1326         (MAX_CHAR_JEF_CHINA3): Likewise.
1327         (DECODE_CHAR): Fixed.
1328
1329 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1330
1331         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
1332         (Qjapanese_jef_china3): New variable.
1333         (encode_builtin_char_1): Support `japanese-jef-china3'.
1334         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
1335         (complex_vars_of_mule_charset): Add new coded-charset
1336         `japanese-jef-china3'.
1337
1338 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1339
1340         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
1341         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
1342         94^4, 96^3, 96^4, 128^n and 256^n set.
1343         (put_char_table): Use `XCHARSET_CELL_RANGE'.
1344         (map_char_table): Likewise.
1345
1346 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1347
1348         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
1349         UTF-2000.
1350
1351 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1352
1353         * chartab.h (get_char_id_table): New inline function.
1354
1355         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
1356         function.
1357
1358 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1359
1360         * chartab.h (decode_char_table_range): New prototype in XEmacs
1361         UTF-2000.
1362         (put_char_id_table): New inline function in XEmacs UTF-2000.
1363
1364         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
1365         function.
1366         (decode_char_table_range): Delete static declaration in XEmacs
1367         UTF-2000.
1368
1369 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1370
1371         * chartab.c (put_char_id_table): Use `put_char_table'.
1372
1373 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1374
1375         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
1376         (map_over_uint16_byte_table): Likewise.
1377         (map_over_byte_table): Likewise.
1378         (map_char_table): Modify for `map_over_uint8_byte_table',
1379         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
1380         UTF-2000.
1381
1382 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1383
1384         * chartab.c (struct map_char_table_for_charset_arg): New
1385         structure.
1386         (map_char_table_for_charset_fun): New function.
1387         (map_char_table): Use `map_char_table' for encoding_table of
1388         `range->charset'.
1389
1390 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1391
1392         * chartab.c (map_char_table): Check a character is found in
1393         range->charset instead of non default value is defined in
1394         char-table when range is CHARTAB_RANGE_ROW.
1395
1396 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1397
1398         * chartab.c (map_char_id_table): Deleted.
1399         (Fmap_char_attribute): Use `map_char_table' instead of
1400         `map_char_id_table'.
1401
1402 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1403
1404         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
1405         UTF-2000.
1406         (update_syntax_table): Deleted in XEmacs UTF-2000.
1407
1408         * syntax.c (find_defun_start): Use `syntax_table' instead of
1409         `mirror_syntax_table' in XEmacs UTF-2000.
1410         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
1411         UTF-2000.
1412         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
1413         XEmacs UTF-2000.
1414         (Fmatching_paren): Likewise.
1415         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
1416         in XEmacs UTF-2000.
1417         (find_start_of_comment): Likewise.
1418         (find_end_of_comment): Likewise.
1419         (Fforward_comment): Likewise.
1420         (scan_lists): Likewise.
1421         (char_quoted): Likewise.
1422         (Fbackward_prefix_chars): Likewise.
1423         (scan_sexps_forward): Likewise.
1424         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
1425         (update_syntax_table): Likewise.
1426
1427         * search.c (skip_chars): Use `syntax_table' instead of
1428         `mirror_syntax_table' in XEmacs UTF-2000.
1429         (wordify): Likewise.
1430         (Freplace_match): Likewise.
1431
1432         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
1433         `mirror_syntax_table' in XEmacs UTF-2000.
1434         (WORDCHAR_P_UNSAFE): Likewise.
1435         (re_match_2_internal): Likewise.
1436
1437         * font-lock.c (find_context): Use `buf->syntax_table' instead of
1438         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1439
1440         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
1441         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
1442
1443         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
1444         XEmacs UTF-2000.
1445
1446         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
1447         UTF-2000.
1448         (print_char_table): Print `default_value' in XEmacs UTF-2000.
1449         (char_table_description): Delete `mirror_table' in XEmacs
1450         UTF-2000.
1451         (fill_char_table): Don't call `update_syntax_table' in XEmacs
1452         UTF-2000.
1453         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
1454         (Fcopy_char_table): Likewise.
1455         (put_char_table): Don't call `update_syntax_table' in XEmacs
1456         UTF-2000.
1457
1458         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
1459         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1460         (casify_region_internal): Likewise.
1461
1462         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
1463
1464         * buffer.c (common_init_complex_vars_of_buffer): Don't use
1465         `mirror_syntax_table' in XEmacs UTF-2000.
1466
1467         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
1468         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1469         (Fexpand_abbrev): Likewise.
1470
1471 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1472
1473         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
1474
1475 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1476
1477         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
1478         (map_over_uint16_byte_table): Likewise.
1479         (map_over_byte_table): Likewise.
1480         (get_char_id_table): Refer `cit->default_value'.
1481         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1482         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
1483         of character-id ranges.
1484         (mark_char_table): Mark `ct->default_value'.
1485         (char_table_description): Add `default_value'.
1486         (fill_char_table): Use `default_value'.
1487         (decode_char_table_range): Decode `nil' as
1488         `CHARTAB_RANGE_DEFAULT'.
1489         (get_char_id_table): Refer `cit->default_value'.
1490         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1491         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
1492         temporary hack; check value of char-table is bound or not.
1493         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
1494
1495         * chartab.h (struct Lisp_Char_Table): Add new member
1496         `default_value' in XEmacs UTF-2000.
1497         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
1498         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
1499         UTF-2000.
1500
1501 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1502
1503         * chartab.h (Lisp_Char_ID_Table): Deleted.
1504
1505         * chartab.c (char_table_description): Fix typo.
1506         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
1507         `Lisp_Char_ID_Table'.
1508
1509 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1510
1511         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
1512         `CHAR_ID_TABLE_P'.
1513
1514         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
1515         `CHAR_ID_TABLE_P'.
1516
1517         * chartab.h (XCHAR_ID_TABLE): Deleted.
1518         (XSETCHAR_ID_TABLE): Deleted.
1519         (CHAR_ID_TABLE_P): Deleted.
1520
1521         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
1522         `CHAR_ID_TABLE_P'.
1523         (Fget_composite_char): Likewise.
1524         (put_char_table): Likewise.
1525         (add_char_attribute_alist_mapper): Fixed.
1526         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
1527         `CHAR_ID_TABLE_P'.
1528         (Fget_char_attribute): Likewise.
1529         (Fget_char_attribute): Likewise.
1530         (Fmap_char_attribute): Likewise.
1531
1532         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
1533         `CHAR_ID_TABLE_P'.
1534         (encode_char_1): Likewise.
1535
1536 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1537
1538         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
1539         `XCHAR_ID_TABLE'.
1540
1541         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
1542         instead of `XCHAR_ID_TABLE'.
1543         (remove_char_ccs): Likewise.
1544
1545         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
1546         `XCHAR_ID_TABLE'.
1547         (Fget_composite_char): Likewise.
1548         (Fchar_variants): Likewise.
1549         (put_char_table): Likewise.
1550         (add_char_attribute_alist_mapper): Likewise.
1551         (Fchar_attribute_alist): Likewise.
1552         (Fget_char_attribute): Likewise.
1553         (Fput_char_attribute): Likewise.
1554         (Fmap_char_attribute): Likewise.
1555         (Fmap_char_attribute): Likewise.
1556
1557         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
1558         `XCHAR_ID_TABLE'.
1559         (encode_char_1): Likewise.
1560
1561 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1562
1563         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
1564         `Lisp_Char_ID_Table'.
1565         (mark_char_id_table): Deleted.
1566         (print_char_id_table): Likewise.
1567         (char_id_table_equal): Likewise.
1568         (char_id_table_hash): Likewise.
1569         (char_id_table_description): Likewise.
1570         (char_id_table): Likewise.
1571         (make_char_id_table): Use `Fmake_char_table' and
1572         `fill_char_table'.
1573         (get_char_id_table): Use `Lisp_Char_Table' instead of
1574         `Lisp_Char_ID_Table'.
1575         (put_char_id_table): Likewise.
1576         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
1577         `XCHAR_ID_TABLE'.
1578         (Fremove_char_attribute): Likewise.
1579         (syms_of_chartab): Don't define type `char-id-table'.
1580
1581         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
1582         (char_id_table): Likewise.
1583         (GC_CHAR_ID_TABLE_P): Likewise.
1584         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
1585         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
1586         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
1587         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
1588         (get_char_id_table): Use `Lisp_Char_Table' instead of
1589         `Lisp_Char_ID_Table'.
1590         (put_char_id_table_0): Likewise.
1591         (put_char_id_table): Likewise.
1592
1593 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1594
1595         * chartab.h: Lisp_Byte_Table related codes are moved from
1596         chartab.h.
1597
1598         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
1599
1600 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1601
1602         * chartab.h: Don't include "chartab.h".
1603         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
1604         (Lisp_Char_ID_Table): Likewise.
1605         (char_id_table): Likewise.
1606         (XCHAR_ID_TABLE): Likewise.
1607         (XSETCHAR_ID_TABLE): Likewise.
1608         (CHAR_ID_TABLE_P): Likewise.
1609         (GC_CHAR_ID_TABLE_P): Likewise.
1610         (get_char_id_table): Likewise.
1611
1612         * char-ucs.h: Include "chartab.h".
1613         (struct Lisp_Char_ID_Table): Moved to chartab.h.
1614         (Lisp_Char_ID_Table): Likewise.
1615         (char_id_table): Likewise.
1616         (XCHAR_ID_TABLE): Likewise.
1617         (XSETCHAR_ID_TABLE): Likewise.
1618         (CHAR_ID_TABLE_P): Likewise.
1619         (GC_CHAR_ID_TABLE_P): Likewise.
1620         (get_char_id_table): Likewise.
1621
1622 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1623
1624         * chartab.c (copy_uint8_byte_table): New function.
1625         (copy_uint16_byte_table): New function.
1626         (copy_byte_table): New function.
1627         (map_over_uint8_byte_table): Modify to avoid huge numbers of
1628         characters to call.
1629         (map_over_uint16_byte_table): Likewise.
1630         (map_over_byte_table): Likewise.
1631         (get_byte_table): Move prototype to chartab.h.
1632         (put_byte_table): Likewise.
1633         (put_char_id_table_0): Moved to chartab.h.
1634         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
1635         (char_table_entry_equal): Likewise.
1636         (char_table_entry_hash): Likewise.
1637         (char_table_entry_description): Likewise.
1638         (char_table_entry): Likewise.
1639         (make_char_table_entry): Likewise.
1640         (copy_char_table_entry): Likewise.
1641         (get_non_ascii_char_table_value): Likewise.
1642         (map_over_charset_ascii): Likewise.
1643         (map_over_charset_control_1): Likewise.
1644         (map_over_charset_row): Likewise.
1645         (map_over_other_charset): Likewise.
1646         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
1647         (print_char_table): Likewise.
1648         (char_table_equal): Likewise.
1649         (char_table_hash): Likewise.
1650         (char_table_description): Likewise.
1651         (fill_char_table): Likewise.
1652         (Fcopy_char_table): Likewise.
1653         (get_char_table): Likewise.
1654         (Fget_range_char_table): Likewise.
1655         (put_char_table): Likewise.
1656         (map_char_table): Likewise.
1657         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
1658         UTF-2000.
1659
1660 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1661
1662         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
1663         `Vauto_fill_chars' in XEmacs UTF-2000.
1664
1665         * chartab.h (get_byte_table): New prototype [moved from
1666         chartab.c].
1667         (put_byte_table): Likewise [moved from chartab.c].
1668         (put_char_id_table_0): New inline function [moved from chartab.c].
1669         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
1670         (Lisp_Char_Table_Entry): Likewise.
1671         (char_table_entry): Likewise.
1672         (XCHAR_TABLE_ENTRY): Likewise.
1673         (XSETCHAR_TABLE_ENTRY): Likewise.
1674         (CHAR_TABLE_ENTRYP): Likewise.
1675         (CHECK_CHAR_TABLE_ENTRY): Likewise.
1676         (NUM_ASCII_CHARS): Likewise.
1677         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
1678         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
1679
1680 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1681
1682         * chartab.c (get_char_id_table): Change interface.
1683         (put_char_id_table_0): New function.
1684         (put_char_id_table): Change interface; new implementation.
1685         (Fget_composite_char): Modify for interface change of
1686         `get_char_id_table'.
1687         (Fchar_variants): Likewise.
1688         (add_char_attribute_alist_mapper): Likewise.
1689         (Fchar_attribute_alist): Likewise.
1690         (Fget_char_attribute): Likewise.
1691         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
1692         as same as character as the first argument like `put-char-table';
1693         modify for interface change of `put_char_id_table'.
1694         (Fremove_char_attribute): Modify for interface change of
1695         `put_char_id_table'.
1696
1697 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1698
1699         * text-coding.c: Sync up with XEmacs 21.2.41.
1700         (COMPOSE_ADD_CHAR): Modify for interface change of
1701         `get_char_id_table'.
1702
1703         * mule-charset.c (put_char_ccs_code_point): Modify for interface
1704         change of `put_char_id_table'.
1705         (remove_char_ccs): Likewise.
1706
1707         * chartab.h (put_char_id_table): Change interface.
1708
1709         * char-ucs.h (get_char_id_table): Change interface.
1710         (charset_code_point): Modify for interface change of
1711         `get_char_id_table'.
1712         (encode_char_1): Likewise.
1713
1714 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1715
1716         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
1717         argument `ccs'.
1718         (map_over_uint16_byte_table): Likewise.
1719         (map_over_byte_table): Likewise.
1720         (map_char_id_table): Add new argument `range' like
1721         `map_char_table'.
1722         (Fmap_char_attribute): Add new argument `range' like
1723         `Fmap_char_table'.
1724
1725 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1726
1727         * chartab.c (map_over_uint8_byte_table): Change interface of
1728         mapping function to use struct chartab_range instead of Emchar.
1729         (map_over_uint16_byte_table): Likewise.
1730         (map_over_byte_table): Likewise.
1731         (map_char_id_table): Likewise.
1732         (struct slow_map_char_id_table_arg): Deleted.
1733         (slow_map_char_id_table_fun): Deleted.
1734         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
1735         function `slow_map_char_table_fun' instead of struct
1736         `slow_map_char_id_table_arg' and function
1737         `slow_map_char_id_table_fun'.
1738
1739 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1740
1741         * mule-charset.c: Move char-it-table related codes to chartab.c.
1742         (Vutf_2000_version): Moved to chartab.c.
1743         (Fdefine_char): Likewise.
1744         (Ffind_char): Likewise.
1745         (syms_of_mule_charset): Move types `uint8-byte-table',
1746         `uint16-byte-table', `byte-table' and `char-id-table' to
1747         chartab.c; move functions `char_attribute_list,
1748         `find_char_attribute_table, `char_attribute_alist,
1749         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
1750         `map_char_attribute, `define_char, `find_char, `char_variants and
1751         `get_composite_char to chartab.c; move symbols `=>ucs',
1752         `->decomposition', `compat', `isolated', `initial', `medial',
1753         `final', `vertical', `noBreak', `fraction', `super', `sub',
1754         `circle', `square', `wide', `narrow', `small' and `font' to
1755         chartab.c.
1756         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
1757         setting codes for `Vcharacter_composition_table' and
1758         `Vcharacter_variant_table' to chartab.c.
1759         (complex_vars_of_mule_charset): Move setting code for
1760         `Vchar_attribute_hash_table' to chartab.c.
1761
1762         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
1763         (make_char_id_table): New prototype.
1764         (put_char_id_table): Likewise.
1765         (Fget_char_attribute): Likewise.
1766
1767         * chartab.c: Move char-id-table related code from mule-charset.c.
1768         (Vutf_2000_version): Moved from mule-charset.c.
1769
1770         * char-ucs.h (Qucs): New external variable.
1771         (put_char_ccs_code_point): New prototype.
1772         (remove_char_ccs): Likewise.
1773
1774 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1775
1776         * mule-charset.c (Vcharset_ucs_jis): New variable.
1777         (Qucs_jis): Likewise.
1778         (syms_of_mule_charset): Add new symbol `ucs-jis'.
1779         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
1780
1781         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
1782
1783 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1784
1785         * mule-charset.c (map_over_uint8_byte_table): New function.
1786         (map_over_uint16_byte_table): Likewise.
1787         (map_over_byte_table): Likewise.
1788         (map_char_id_table): Likewise.
1789         (slow_map_char_id_table_fun): Likewise.
1790         (Fmap_char_attribute): Likewise.
1791         (syms_of_mule_charset): Add new function `map-char-attribute'.
1792
1793 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1794
1795         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
1796         (syms_of_mule_charset): Add new function `find-char'.
1797
1798 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1799
1800         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
1801         XEmacs UTF-2000.
1802         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
1803         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
1804         XEmacs UTF-2000.
1805         (complex_vars_of_mule_charset): Add new coded-charset
1806         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
1807         `ideograph-gt-pj-*'.
1808
1809         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
1810
1811 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1812
1813         * mule-charset.c (encode_builtin_char_1): Purge codes about
1814         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
1815         {MIN|MAX}_CHAR_HEBREW.
1816         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
1817         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
1818
1819         * char-ucs.h (MIN_CHAR_GREEK): Purged.
1820         (MAX_CHAR_GREEK): Purged.
1821         (MIN_CHAR_CYRILLIC): Purged.
1822         (MAX_CHAR_CYRILLIC): Purged.
1823         (MIN_CHAR_HEBREW): Commented out.
1824         (MAX_CHAR_HEBREW): Likewise.
1825
1826 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1827
1828         * mule-charset.c (Qto_ucs): New variable.
1829         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
1830         (Fdefine_char): Likewise.
1831         (syms_of_mule_charset): Add new symbol `=>ucs'.
1832
1833 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1834
1835         * mule-charset.c (Fdecode_char): Fixed.
1836
1837 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1838
1839         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
1840         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
1841         "tcvn5712-1".
1842
1843 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1844
1845         * mule-charset.c (Vcharset_ucs_big5): New variable.
1846         (Qucs_big5): Likewise.
1847         (syms_of_mule_charset): Add new symbol `ucs-big5'.
1848         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
1849
1850         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
1851
1852 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1853
1854         * mule-charset.c (decode_builtin_char): Check Big5 code range
1855         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
1856
1857 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1858
1859         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
1860         (Qchinese_gb12345): Likewise.
1861         (Fdecode_builtin_char): Fixed.
1862         (syms_of_mule_charset): Add `chinese-gb12345'.
1863         (complex_vars_of_mule_charset): Add coded-charset
1864         `chinese-gb12345'.
1865
1866         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
1867         (LEADING_BYTE_CHINESE_GB12345): New macro.
1868
1869 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1870
1871         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
1872         and `latin-viscii-upper' for `latin-viscii'.
1873
1874 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1875
1876         * mule-charset.c (Fdecode_builtin_char): Comment out
1877         regularization code for ISO-IR GR representation.
1878
1879 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1880
1881         * mule-charset.c (decode_builtin_char): New function; renamed from
1882         `make_builtin_char'; return -1 instead of signal.
1883         (Fdecode_builtin_char): Use `decode_builtin_char'.
1884
1885         * char-ucs.h (decode_builtin_char): New prototype; renamed from
1886         `make_builtin_char'.
1887         (DECODE_CHAR): Use `decode_builtin_char' instead of
1888         `make_builtin_char'; use mapping table of `chinese-big5' for
1889         `chinese-big5-{1,2}'.
1890
1891 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1892
1893         * text-coding.c (char_encode_big5): New function.
1894         (char_finish_big5): Likewise.
1895         (reset_encoding_stream): Use `char_encode_big5' and
1896         `char_finish_big5' for CODESYS_BIG5.
1897         (mule_encode): Don't use `encode_coding_big5'.
1898         (encode_coding_big5): Deleted.
1899
1900 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1901
1902         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
1903         0x81- in XEmacs UTF-2000.
1904         (detect_coding_big5): Likewise.
1905
1906 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1907
1908         * mule-charset.c (Fdefine_char): Don't use a CCS property to
1909         generate character-id if the CCS property does not have
1910         corresponding predefined character.
1911         (make_builtin_char): Return -1 if corresponding predefined
1912         character is not found.
1913         (Fdecode_char): Return nil if corresponding character is not
1914         found.
1915         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
1916         don't map to builtin ucs space.
1917
1918 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1919
1920         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
1921         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
1922
1923 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1924
1925         * mule-charset.c (Vcharset_ideograph_gt): New variable.
1926         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
1927         (Qideograph_gt): Likewise.
1928         (Qideograph_gt_pj_{1..11}): Likewise.
1929         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
1930         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
1931         `ideograph-gt-pj-11'.
1932         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
1933         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
1934         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
1935
1936         * char-ucs.h (LEADING_BYTE_GT): New macro.
1937         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
1938         (MIN_CHAR_GT): Likewise.
1939         (MAX_CHAR_GT): Likewise.
1940
1941 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1942
1943         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
1944         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
1945
1946         * doprnt.c (unsigned_int_converters): Add `c'.
1947         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
1948
1949         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
1950         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
1951         `MIN_CHAR_MOJIKYO'.
1952         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
1953         (MAX_CHAR_MOJIKYO_0): New macro.
1954         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
1955
1956 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1957
1958         * mule-charset.c (Fdefine_char): Delete cemented out code.
1959         (encode_builtin_char_1): Modify for new allocation of builtin
1960         Mojikyo characters.
1961
1962         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
1963
1964 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1965
1966         * mule-charset.c (Vcharset_ucs_cns): New variable.
1967         (Qucs_cns): New variable.
1968         (syms_of_mule_charset): Add new symbol `ucs-cns'.
1969         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
1970
1971 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1972
1973         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
1974
1975 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
1976
1977         * search.c (search_buffer): Make `charset_base_code' as
1978         character-id >> 6 to eliminate the corresponding last byte in
1979         UTF-8 representation [I'm not sure it is right thing].
1980         (boyer_moore): Likewise.
1981
1982 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
1983
1984         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
1985         representation in MULE.
1986
1987 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1988
1989         * text-coding.c (Fmake_coding_system): Use
1990         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
1991         `EXTERNAL_PROPERTY_LIST_LOOP'.
1992
1993 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1994
1995         * text-coding.c (decode_output_utf8_partial_char): New function.
1996         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
1997
1998 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1999
2000         * text-coding.c (decode_coding_utf8): Output original byte
2001         sequence if it is broken; change order of conditions.
2002
2003         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
2004         of conditions.
2005
2006         * mb-multibyte.h (BYTE_ASCII_P):
2007         Use bit ops for char-signedness safety.
2008         (BYTE_C0_P): Use bit ops for char-signedness safety.
2009         (BYTE_C1_P): Use bit ops for char-signedness safety.
2010
2011         * character.h: (XCHAR_OR_CHAR_INT):
2012         Always use inline function.
2013         Remove redundant type checking assert() - XINT will abort quite
2014         nicely.
2015
2016 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2017
2018         * text-coding.c: (Fencode_shift_jis_char):
2019         (Fencode_big5_char):
2020         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
2021         Replace 0 with '\0' when working with bytes.
2022         Replace initial "(" with "\(" in docstrings.
2023
2024         (Fmake_coding_system):
2025         When type is ccl and value is vector, register it with a proper
2026         symbol.  And checks whether the given ccl program is valid.
2027         (mule_decode): When calling ccl_driver, if src indicates
2028         NULL pointer, set an empty string instead.
2029         (mule_encode): Likewise.
2030
2031         (detect_eol_type):
2032         (detect_coding_sjis):
2033         (decode_coding_sjis):
2034         (detect_coding_big5):
2035         (decode_coding_big5):
2036         (detect_coding_ucs4):
2037         (decode_coding_ucs4):
2038         (detect_coding_utf8):
2039         (decode_coding_utf8):
2040         (detect_coding_iso2022):
2041         (decode_coding_iso2022):
2042         (decode_coding_no_conversion):
2043         (mule_decode):
2044         Make all detecting and decoding functions take an Extbyte * arg.
2045         (text_encode_generic):
2046         (encode_coding_big5):
2047         (encode_coding_no_conversion):
2048         (mule_encode):
2049         Make all encoding functions take a Bufbyte * arg.
2050         Use size_t instead of unsigned int for memory sizes.
2051         Only cast to unsigned char whenever dereferencing Extbyte *.
2052
2053         (struct lrecord_description fcd_description_1): Use countof.
2054         (complex_vars_of_file_coding):
2055         Use countof instead of sizeof.
2056         Use CHECK_NATNUM instead of CHECK_INT.
2057
2058 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2059
2060         * mule-charset.c (Fget_char_attribute): Add new optional argument
2061         `default-value'.
2062         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
2063         (remove_char_ccs): Likewise.
2064
2065 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2066
2067         * text-coding.c (char_encode_shift_jis): New implementation in
2068         UTF-2000.
2069         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
2070         ...)'.
2071
2072         * mule-charset.c (Vcharset_chinese_big5): New variable in
2073         UTF-2000.
2074         (Qchinese_big5): New variable in UTF-2000.
2075         (BIG5_SAME_ROW): New macro in UTF-2000.
2076         (make_builtin_char): Use builtin characters of
2077         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
2078         characters of `Vcharset_chinese_big5'.
2079         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
2080         (complex_vars_of_mule_charset): Add new coded-charset
2081         `chinese-big5' in UTF-2000.
2082
2083         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
2084         (Vcharset_chinese_big5): New external variable declaration.
2085         (Vcharset_japanese_jisx0208_1990): Likewise.
2086
2087 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2088
2089         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
2090         function.
2091         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
2092
2093 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2094
2095         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
2096         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
2097         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
2098         `mojikyo-pj-*'.
2099
2100 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2101
2102         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
2103
2104 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2105
2106         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2107         to 0.17.
2108
2109 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2110
2111         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
2112         for `CHARSET_BY_ATTRIBUTES'.
2113         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2114         `CHARSET_BY_ATTRIBUTES'.
2115
2116         * text-coding.c (struct decoding_stream): Rename member `CH' to
2117         `CPOS'.
2118         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
2119         (decode_coding_sjis): Likewise.
2120         (decode_coding_big5): Likewise.
2121         (decode_coding_ucs4): Likewise.
2122         (decode_coding_utf8): Likewise.
2123         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2124         `CHARSET_BY_ATTRIBUTES'.
2125         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
2126         `str->counter'; decode 3, 4 bytes sets.
2127         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
2128         sets.
2129         (decode_coding_no_conversion): Use `str->cpos' instead of
2130         `str->ch'.
2131
2132         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
2133         (Qmojikyo_2022_1): New variable.
2134         (make_charset): Don't use `CHARSET_TYPE_*'.
2135         (range_charset_code_point): Support coded-charset
2136         `mojikyo-2022-1'.
2137         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
2138         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
2139         `CHARSET_BY_ATTRIBUTES'.
2140         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
2141         `CHARSET_BY_ATTRIBUTES'.
2142         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
2143         (complex_vars_of_mule_charset): Add new coded-charset
2144         `mojikyo-2022-1'.
2145
2146         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
2147         interface; changed to inline function.
2148
2149         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
2150         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
2151         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
2152         (CHARSET_TYPE_94): Deleted.
2153         (CHARSET_TYPE_94X94): Deleted.
2154         (CHARSET_TYPE_96): Deleted.
2155         (CHARSET_TYPE_96X96): Deleted.
2156         (CHARSET_TYPE_128): Deleted.
2157         (CHARSET_TYPE_128X128): Deleted.
2158         (CHARSET_TYPE_256): Deleted.
2159         (CHARSET_TYPE_256X256): Deleted.
2160         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
2161         to inline function.
2162         (DECODE_MOJIKYO_2022): New inline function.
2163         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
2164         `Vcharset_mojikyo_2022_1'.
2165
2166 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2167
2168         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
2169         instead of `EQ'.
2170         (put_byte_table): Likewise.
2171         (char_id_table_equal): Use `get_byte_table' [new implementation].
2172
2173 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2174
2175         * mule-charset.c: Include <limits.h> in UTF-2000.
2176         (BT_UINT8_MIN): New macro in UTF-2000.
2177         (BT_UINT8_MAX): New macro in UTF-2000.
2178         (BT_UINT8_t): New macro in UTF-2000.
2179         (BT_UINT8_nil): New macro in UTF-2000.
2180         (BT_UINT8_unbound): New macro in UTF-2000.
2181         (INT_UINT8_P): New inline function in UTF-2000.
2182         (UINT8_VALUE_P): New inline function in UTF-2000.
2183         (UINT8_ENCODE): New inline function in UTF-2000.
2184         (UINT8_DECODE): New inline function in UTF-2000.
2185         (mark_uint8_byte_table): New function in UTF-2000.
2186         (print_uint8_byte_table): New function in UTF-2000.
2187         (uint8_byte_table_equal): New function in UTF-2000.
2188         (uint8_byte_table_hash): New function in UTF-2000.
2189         (make_uint8_byte_table): New function in UTF-2000.
2190         (uint8_byte_table_same_value_p): New function in UTF-2000.
2191         (BT_UINT16_MIN): New macro in UTF-2000.
2192         (BT_UINT16_MAX): New macro in UTF-2000.
2193         (BT_UINT16_t): New macro in UTF-2000.
2194         (BT_UINT16_nil): New macro in UTF-2000.
2195         (BT_UINT16_unbound): New macro in UTF-2000.
2196         (INT_UINT16_P): New inline function in UTF-2000.
2197         (UINT16_VALUE_P): New inline function in UTF-2000.
2198         (UINT16_ENCODE): New inline function in UTF-2000.
2199         (UINT16_DECODE): New inline function in UTF-2000.
2200         (UINT8_TO_UINT16): New inline function in UTF-2000.
2201         (mark_uint16_byte_table): New function in UTF-2000.
2202         (print_uint16_byte_table): New function in UTF-2000.
2203         (uint16_byte_table_equal): New function in UTF-2000.
2204         (uint16_byte_table_hash): New function in UTF-2000.
2205         (make_uint16_byte_table): New function in UTF-2000.
2206         (uint16_byte_table_same_value_p): New function in UTF-2000.
2207         (print_byte_table): New function in UTF-2000.
2208         (byte-table): Use `print_byte_table' as printer.
2209         (make_byte_table): Delete second argument `older'.
2210         (byte_table_same_value_p): New function in UTF-2000.
2211         (copy_byte_table): Deleted.
2212         (get_byte_table): New function in UTF-2000.
2213         (put_byte_table): New function in UTF-2000.
2214         (print_char_id_table): New function in UTF-2000.
2215         (char-id-table): Use `print_char_id_table' as printer.
2216         (make_char_id_table): Delete second argument `older'.
2217         (get_char_id_table): Use `get_byte_table [new implementation].
2218         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
2219         implementation].
2220         (Ffind_char_attribute_table): New function in UTF-2000.
2221         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2222         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
2223         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
2224         (syms_of_mule_charset): Add new function
2225         `find-char-attribute-table' in UTF-2000.
2226
2227         * lrecord.h (enum lrecord_type): Add
2228         `lrecord_type_uint16_byte_table' and
2229         `lrecord_type_uint8_byte_table'.
2230
2231         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
2232         (Lisp_Uint8_Byte_Table): New type.
2233         (XUINT8_BYTE_TABLE): New macro.
2234         (XSETUINT8_BYTE_TABLE): New macro.
2235         (UINT8_BYTE_TABLE_P): New macro.
2236         (GC_UINT8_BYTE_TABLE_P): New macro.
2237         (struct Lisp_Uint16_Byte_Table): New structure.
2238         (Lisp_Uint16_Byte_Table): New type.
2239         (XUINT16_BYTE_TABLE): New macro.
2240         (XSETUINT16_BYTE_TABLE): New macro.
2241         (UINT16_BYTE_TABLE_P): New macro.
2242         (GC_UINT16_BYTE_TABLE_P): New macro.
2243
2244 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2245
2246         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
2247         (Vcharacter_ideographic_strokes_table): Deleted.
2248         (Vcharacter_total_strokes_table): Deleted.
2249         (Vcharacter_morohashi_daikanwa_table): Deleted.
2250         (Vcharacter_decomposition_table): Deleted.
2251         (Qname): Deleted because it is duplicated.
2252         (Qideographic_radical): Deleted.
2253         (Qideographic_strokes): Deleted.
2254         (Qtotal_strokes): Deleted.
2255         (Qmorohashi_daikanwa): Deleted.
2256         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
2257         `ideographic-radical', `ideographic-strokes', `total-strokes',
2258         `morohashi-daikanwa' and `->decomposition'.
2259         (Fget_char_attribute): Likewise.
2260         (Fput_char_attribute): Likewise; use `make-vector' instead of
2261         `make_older_vector' for `->decomposition' value.
2262         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
2263         `ideograph-daikanwa'.
2264         (syms_of_mule_charset): Delete builtin symbols `name',
2265         `ideographic-radical', `ideographic-strokes', `total-strokes' and
2266         `morohashi-daikanwa'.
2267         (vars_of_mule_charset): Don't setup
2268         `Vcharacter_ideographic_radical_table',
2269         `Vcharacter_ideographic_strokes_table',
2270         `Vcharacter_total_strokes_table',
2271         `Vcharacter_morohashi_daikanwa_table' and
2272         `Vcharacter_decomposition_table'.
2273
2274 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2275
2276         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
2277         `make_older_vector', `make_vector_newer_1' and
2278         `make_vector_newer'.
2279
2280         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
2281         `make_older_vector' and `make_vector_newer'.
2282
2283         * config.h.in (HAVE_GGC): New macro.
2284
2285 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2286
2287         * mule-charset.c (struct char_attribute_list_closure): New
2288         structure in UTF-2000.
2289         (add_char_attribute_to_list_mapper): New function in UTF-2000.
2290         (Fchar_attribute_list): Likewise.
2291         (Fset_charset_mapping_table): Use `make_vector_newer'.
2292         (Fdecode_builtin_char): New function in UTF-2000.
2293         (syms_of_mule_charset): Add new function `char-attribute-list' and
2294         `decode-builtin-char' in UTF-2000.
2295
2296         * lisp.h (make_vector_newer): New prototype.
2297
2298         * alloc.c (make_vector_newer_1): New function.
2299         (make_vector_newer): New function.
2300
2301 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2302
2303         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
2304         50100)'.
2305
2306 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2307
2308         * mule-charset.c (Vchar_attribute_hash_table): New variable.
2309         (Vcharacter_attribute_table): Deleted.
2310         (Vcharacter_name_table): Deleted.
2311         (put_char_attribute): Deleted.
2312         (remove_char_attribute): Deleted.
2313         (struct char_attribute_alist_closure): New structure.
2314         (add_char_attribute_alist_mapper): New function.
2315         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
2316         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
2317         (Fget_char_attribute): Likewise.
2318         (Fput_char_attribute): Likewise.
2319         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
2320         of `remove_char_attribute'.
2321         (Fdefine_char): Return character.
2322         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
2323         and `Vcharacter_name_table'.
2324         (complex_vars_of_mule_charset): Likewise
2325         `Vchar_attribute_hash_table'.
2326
2327 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2328
2329         * character.h (CHARC_CHARSET): New macro.
2330         (CHARC_CHARSET_ID): New macro.
2331         (CHARC_CODE_POINT): New macro.
2332         (CHARC_COLUMNS): New macro.
2333         (CHARC_TO_CHAR): New inline function.
2334         (CHARC_EQ): New inline function.
2335         (CHARC_ASCII_EQ): New inline function.
2336         (CHARC_IS_SPACE): New inline function.
2337         (ASCII_TO_CHARC): New inline function.
2338
2339         * char-ucs.h (encode_char_2): Deleted.
2340         (ENCODE_CHAR): Use `encode_char_1' again.
2341         (breakup_char_1): Likewise.
2342         (CHAR_TO_CHARC): New inline function.
2343
2344         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
2345
2346 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2347
2348         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
2349         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
2350         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
2351         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
2352         (create_string_text_block): Use `CHARC_ASCII_EQ' and
2353         `CHARC_IS_SPACE'.
2354         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
2355
2356         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
2357         `CHARC_CODE_POINT'.
2358         (x_output_display_block): Use `CHARC_CHARSET' and
2359         `CHARC_ASCII_EQ'.
2360
2361         * redisplay-tty.c (tty_output_display_block): Use
2362         `CHARC_ASCII_EQ'.
2363         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
2364
2365         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
2366
2367         * insdel.c (find_charsets_in_charc_string): Use
2368         `CHARC_CHARSET_ID'.
2369         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
2370         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
2371         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
2372         (convert_charc_string_into_malloced_string): Likewise.
2373
2374 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2375
2376         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
2377         instead of <Emchar_dynarr *> for buf; use
2378         `convert_bufbyte_string_into_charc_dynarr' instead of
2379         `convert_bufbyte_string_into_emchar_dynarr'; use
2380         `find_charsets_in_charc_string' instead of
2381         `find_charsets_in_emchar_string'.
2382
2383         * redisplay.h:
2384         - Include "character.h".
2385         (struct rune): New member `cglyph'; delete member `chr'.
2386
2387         * redisplay.c (redisplay_text_width_charc_string): New function;
2388         delete `redisplay_text_width_emchar_string'.
2389         (rtw_charc_dynarr): New variable; renamed from
2390         `rtw_emchar_dynarr'.
2391         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
2392         `rtw_emchar_dynarr'; use
2393         `convert_bufbyte_string_into_charc_dynarr' instead of
2394         `convert_bufbyte_string_into_emchar_dynarr'; use
2395         `redisplay_text_width_charc_string' instead of
2396         `redisplay_text_width_emchar_string'.
2397         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
2398         instead of `rtw_emchar_dynarr'; use
2399         `convert_bufbyte_string_into_charc_dynarr' instead of
2400         `convert_bufbyte_string_into_emchar_dynarr'.
2401         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
2402         `redisplay_text_width_charc_string' instead of
2403         `redisplay_text_width_emchar_string'.
2404         (create_text_block): Modify for <struct rune> change.
2405         (generate_formatted_string_db): Likewise.
2406         (create_string_text_block): Likewise.
2407         (pixel_to_glyph_translation): Likewise.
2408
2409         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
2410         instead of <const Emchar *>.
2411         (x_text_width): Likewise.
2412         (x_output_display_block): Use <Charc_dynarr *> instead
2413         <Emchar_dynarr *>; modify for <structure rune> change.
2414         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
2415         *>.
2416
2417         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
2418         <const Emchar *>; use `charc_string_displayed_columns' instead of
2419         `emchar_string_displayed_columns'.
2420         (tty_output_display_block): Use <Charc_dynarr *> instead of
2421         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
2422         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
2423         (tty_output_charc_dynarr_dynarr): New variable; renamed from
2424         `tty_output_emchar_dynarr_dynarr'.
2425         (tty_output_charc_dynarr): New function; delete
2426         `tty_output_charc_dynarr'.
2427
2428         * redisplay-output.c (compare_runes): Modify for `struct rune'.
2429         (redisplay_output_layout): Use <Charc_dynarr *> instead of
2430         <Emchar_dynarr *> for buf; use
2431         `convert_bufbyte_string_into_charc_dynarr' instead of
2432         `convert_bufbyte_string_into_emchar_dynarr'.
2433
2434         * frame.c (title_string_charc_dynarr): New variable; renamed from
2435         `title_string_emchar_dynarr'.
2436         (generate_title_string): Use `title_string_charc_dynarr' instead
2437         of `title_string_emchar_dynarr'; use
2438         `convert_charc_string_into_malloced_string' instead of
2439         `convert_emchar_string_into_malloced_string'.
2440         (init_frame): Use `title_string_charc_dynarr' instead of
2441         `title_string_emchar_dynarr'.
2442
2443         * console.h:
2444         - Include "character.h".
2445         (struct console_methods): Use <const Charc *> instead of <const
2446         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
2447         <Emchar_dynarr *> in output_string_method.
2448
2449         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
2450         <Emchar_dynarr *>.
2451
2452         * console-stream.c (stream_text_width): Use <const Charc *>
2453         instead of <const Emchar *>.
2454
2455         * character.h (Charc_dynarr): New type.
2456
2457         * char-ucs.h (structure Charc): New structure; define new type
2458         `Charc'.
2459
2460         * char-lb.h (DECODE_CHAR): New inline function.
2461         (encode_char_1): New inline function.
2462         (ENCODE_CHAR): New macro.
2463         (structure Charc): New structure; define new type `Charc'.
2464
2465         * char-1byte.h (Vcharset_control_1): New macro.
2466         (Vcharset_latin_iso8859_1): New macro.
2467         (DECODE_CHAR): New inline function.
2468         (encode_char_1): New inline function.
2469         (ENCODE_CHAR): New macro.
2470         (structure Charc): New structure; define new type `Charc'.
2471
2472         * insdel.c (find_charsets_in_charc_string): New function; delete
2473         `find_charsets_in_emchar_string'.
2474         (charc_string_displayed_columns): New function; delete
2475         `emchar_string_displayed_columns'.
2476         (convert_bufbyte_string_into_charc_dynarr): New function; delete
2477         `convert_bufbyte_string_into_emchar_dynarr'.
2478         (convert_charc_string_into_bufbyte_dynarr): New function; delete
2479         `convert_charc_string_into_bufbyte_dynarr'.
2480         (convert_charc_string_into_malloced_string): New function; delete
2481         `convert_charc_string_into_malloced_string'.
2482
2483         * buffer.h (find_charsets_in_charc_string): New prototype; delete
2484         `find_charsets_in_emchar_string'.
2485         (charc_string_displayed_columns): New prototype; delete
2486         `emchar_string_displayed_columns'.
2487         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
2488         `convert_charc_string_into_bufbyte_dynarr'.
2489         (convert_charc_string_into_malloced_string): New prototype; delete
2490         `convert_charc_string_into_malloced_string'.
2491
2492 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2493
2494         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
2495
2496 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2497
2498         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
2499
2500         * char-ucs.h: Use <short> for <Charset_ID>.
2501
2502         * mule-charset.h, char-1byte.h: Use <unsigned char> for
2503         <Charset_ID>.
2504
2505 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2506
2507         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2508         to 0.16.
2509
2510 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2511
2512         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
2513         variable.
2514         (Qmorohashi_daikanwa): New variable.
2515         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
2516         for `morohashi-daikanwa' attribute.
2517         (Fget_char_attribute): Likewise.
2518         (Fput_char_attribute): Likewise.
2519         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
2520         has the same value of `ideograph-daikanwa'.
2521         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
2522         (vars_of_mule_charset): Setup
2523         `Vcharacter_morohashi_daikanwa_table'.
2524
2525 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2526
2527         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
2528         attributes.
2529         (add_charset_to_list_mapper): Add `key' instead of
2530         `XCHARSET_NAME (value)' to return aliases.
2531
2532 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2533
2534         * mule-charset.c (Vcharacter_ideographic_radical_table): New
2535         variable.
2536         (Vcharacter_ideographic_strokes_table): New variable.
2537         (Qideographic_radical): New variable.
2538         (Qideographic_strokes): New variable.
2539         (Fchar_attribute_alist): Use
2540         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
2541         attribute; use `Vcharacter_ideographic_strokes_table' for
2542         `ideographic-strokes' attribute.
2543         (Fget_char_attribute): Likewise.
2544         (Fput_char_attribute): Likewise.
2545         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
2546         `ideographic-strokes'.
2547         (vars_of_mule_charset): Setup
2548         `Vcharacter_ideographic_radical_table' and
2549         `Vcharacter_ideographic_strokes_table'.
2550
2551 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2552
2553         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
2554         (Qtotal_strokes): New variable.
2555         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
2556         `total-strokes' attribute.
2557         (Fget_char_attribute): Likewise.
2558         (Fput_char_attribute): Likewise.
2559         (syms_of_mule_charset): Add new symbol `total-strokes'.
2560         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
2561
2562 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2563
2564         * mule-charset.c (Vcharacter_decomposition_table): New variable.
2565         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
2566         are found.
2567         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
2568         `->decomposition' attribute.
2569         (Fput_char_attribute): Likewise.
2570         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
2571
2572 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2573
2574         * mule-charset.c (decoding_table_check_elements): New function.
2575         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
2576
2577 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2578
2579         * mule-charset.c (Fset_charset_mapping_table): Use
2580         `put_char_ccs_code_point'.
2581
2582 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2583
2584         * mule-charset.c (decoding_table_put_char): New inline function.
2585         (put_char_ccs_code_point): Use `decoding_table_put_char'.
2586
2587 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2588
2589         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
2590         (XCHARSET_BYTE_SIZE): New macro.
2591         (decoding_table_remove_char): New inline function.
2592         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
2593         `decoding_table_remove_char'.
2594         (remove_char_ccs): Use `decoding_table_remove_char'.
2595         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
2596
2597 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2598
2599         * mule-charset.c (Vcharacter_name_table): New variable.
2600         (Qname): New variable.
2601         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
2602         attribute.
2603         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
2604         `Vcharacter_name_table' for `name' attribute.
2605         (Fremove_char_attribute): Use function `remove_char_ccs'.
2606         (put_char_ccs_code_point): New function.
2607         (remove_char_ccs): New function.
2608         (syms_of_mule_charset): Add new symbol `name'.
2609         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
2610
2611 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2612
2613         * mule-charset.c (make_byte_table): Add new argument `older'.
2614         (make_char_id_table): Likewise.
2615         (copy_char_id_table): Comment out because it is not used.
2616         (put_char_id_table): Modify for `make_byte_table'.
2617         (Fput_char_attribute): Make encoding_table as older object;
2618         inherit older bit of `Vcharacter_composition_table'.
2619         (mark_charset): Don't mark `cs->encoding_table'.
2620         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
2621         normal object; make `Vcharacter_composition_table' as an older
2622         object; delete staticpro for `Vcharacter_composition_table'; make
2623         `Vcharacter_variant_table' as a normal object.
2624
2625         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
2626         (mark_object): Don't check older object in UTF-2000.
2627
2628         * lrecord.h (struct lrecord_header): Add new member `older' in
2629         UTF-2000.
2630         (set_lheader_implementation): Setup `SLI_header->older' in
2631         UTF-2000.
2632         (set_lheader_older_implementation): New macro in UTF-2000.
2633         (OLDER_RECORD_P): New macro in UTF-2000.
2634         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
2635         (alloc_older_lcrecord): New prototype in UTF-2000.
2636         (alloc_older_lcrecord_type): New macro in UTF-2000.
2637
2638 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2639
2640         * mule-charset.c (byte_table_description): Use
2641         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
2642         (char_id_table_description): Delete bogus `, 1'.
2643         (Fget_char_attribute): Refer encoding_table of each coded-charset
2644         to get value of coded-charset attribute of a character.
2645         (Fput_char_attribute): Use `make_older_vector' instead of
2646         `make_vector'; use encoding_table of each coded-charset to store
2647         value of coded-charset attribute of a character.
2648         (Fremove_char_attribute): Use encoding_table of each coded-charset
2649         to store value of coded-charset attribute of a character.
2650         (mark_charset): Mark `cs->encoding_table'; don't mark
2651         `cs->decoding_table'.
2652         (charset_description): Add description of new member
2653         `encoding_table'.
2654         (make_charset): Initialize `encoding_table'.
2655
2656         * char-ucs.h (struct Lisp_Charset): Add new member
2657         `encoding_table'.
2658         (CHARSET_ENCODING_TABLE): New macro.
2659         (XCHARSET_ENCODING_TABLE): New macro.
2660         (charset_code_point): New implementation.
2661         (encode_char_1): Likewise.
2662
2663         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
2664         (disksave_object_finalization_1): Call finalizers of
2665         `all_older_lcrecords' in UTF-2000.
2666         (make_older_vector): New function in UTF-2000.
2667         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
2668         UTF-2000.
2669
2670         * lisp.h (make_older_vector): New prototype in UTF-2000.
2671
2672 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2673
2674         * lrecord.h (enum lrecord_type): Rename
2675         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
2676
2677         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
2678         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
2679         `get_char_code_table'.
2680
2681         * mule-charset.c (mark_char_id_table): Renamed from
2682         `mark_char_code_table'.
2683         (char_id_table_equal): Renamed from `char_code_table_equal'.
2684         (char_id_table_hash): Renamed from `char_code_table_hash'.
2685         (make_char_id_table): Renamed from `make_char_code_table'.
2686         (copy_char_id_table): Renamed from `copy_char_code_table'.
2687         (get_char_id_table): Renamed from `get_char_code_table'.
2688         (put_char_id_table): Renamed from `put_char_code_table'.
2689         (to_char_id): Renamed from `to_char_code'.
2690
2691         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
2692         `Lisp_Char_Code_Table'.
2693         (char_id_table): Renamed from `char_code_table'.
2694         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
2695         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
2696         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
2697         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
2698         (get_char_id_table): Renamed from `get_char_code_table'.
2699
2700 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2701
2702         * lrecord.h (enum lrecord_type): Rename
2703         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
2704
2705         * mule-charset.c (mark_byte_table): Renamed from
2706         `mark_char_byte_table'.
2707         (byte_table_equal): Renamed from `char_byte_table_equal'.
2708         (byte_table_hash): Renamed from `byte_table_hash'.
2709         (make_byte_table): Renamed from `make_byte_table'.
2710         (copy_byte_table): Renamed from `copy_char_byte_table'.
2711
2712         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
2713         `Lisp_Char_Byte_Table'.
2714         (byte_table): Renamed from `char_byte_table'.
2715         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
2716         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
2717         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
2718         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
2719
2720 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2721
2722         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
2723         (dfc_convert_to_internal_format): Likewise.
2724         
2725         * text-coding.c (Fcoding_system_canonical_name_p): New function.
2726         * text-coding.c (Fcoding_system_alias_p): New function.
2727         * text-coding.c (Fcoding_system_aliasee): New function.
2728         * text-coding.c (append_suffix_to_symbol): New function.
2729         * text-coding.c (dangling_coding_system_alias_p): New function.
2730         * text-coding.c (Ffind_coding_system):
2731         * text-coding.c (Fcopy_coding_system):
2732         * text-coding.c (encode_coding_no_conversion):
2733         * text-coding.c (syms_of_file_coding):
2734         * text-coding.c (vars_of_file_coding):
2735         Rewrite coding system alias code.
2736         Allow nested aliases, like symbolic links.
2737         Allow redefinition of coding system aliases.
2738         Prevent existence of dangling coding system aliases.
2739         Eliminate convert_to_external_format.
2740         Eliminate convert_to_internal_format.
2741         
2742         * text-coding.c: Change enum eol_type to eol_type_t.
2743
2744 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2745
2746         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
2747         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2748
2749         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
2750         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2751
2752 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2753
2754         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
2755         `ideograph-daikanwa'.
2756
2757         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
2758         (Vcharset_ucs_bmp): Likewise.
2759         (Vcharset_mojikyo): Add new extern variable definition.
2760         (Vcharset_latin_iso8859_2): Deleted because it is not used.
2761         (Vcharset_latin_iso8859_3): Likewise.
2762         (Vcharset_latin_iso8859_4): Likewise.
2763         (Vcharset_latin_iso8859_9): Likewise.
2764         (Vcharset_latin_viscii_lower): Likewise.
2765         (Vcharset_latin_viscii_upper): Likewise.
2766         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
2767         `mojikyo' code-point is used to decode.
2768         (encode_char_2): New function [to convert `mojikyo' code-point to
2769         Mojikyo font encoding].
2770         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
2771         (breakup_char_1): Likewise.
2772         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
2773
2774 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2775
2776         * text-coding.c (Fmake_coding_system): Add document about
2777         `disable-composition' property.
2778
2779 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2780
2781         * text-coding.c (Qdisable_composition): New variable; delete
2782         `Qcomposite'.
2783         (Fmake_coding_system): Add new property `disable-composite';
2784         delete property `composite'.
2785         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
2786         instead of `!CODING_SYSTEM_COMPOSITE'.
2787         (syms_of_file_coding): Add new symbol `disable-composition';
2788         delete symbol `composite'.
2789
2790         * file-coding.h (struct Lisp_Coding_System): Add
2791         `disable_composition'; delete `enable_composition'.
2792         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2793         `CODING_SYSTEM_COMPOSITE'.
2794         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2795         `XCODING_SYSTEM_COMPOSITE'.
2796
2797 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2798
2799         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2800         to 0.15.
2801
2802 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2803
2804         * text-coding.c (Qcomposite): New variable.
2805         (Fmake_coding_system): Add new property `composite'.
2806         (struct decoding_stream): Add `combined_char_count',
2807         `combined_chars' and `combining_table' in UTF-2000.
2808         (COMPOSE_FLUSH_CHARS): New macro.
2809         (COMPOSE_ADD_CHAR): New macro.
2810         (reset_decoding_stream): Reset `str->combined_char_count' and
2811         `str->combining_table' in UTF-2000.
2812         (decode_coding_iso2022): Modify for character-decomposition.
2813         (syms_of_file_coding): Add new symbol `composite'.
2814
2815 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2816
2817         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
2818         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
2819         of `Vcharacter_composition_table' if `->decomposition' property
2820         has only 1 element.
2821         (Qlatin_tcvn5712): New variable.
2822         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
2823         (complex_vars_of_mule_charset): Add new coded-charset
2824         `latin-tcvn5712'.
2825
2826         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
2827
2828 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2829
2830         * file-coding.h (struct Lisp_Coding_System): Add
2831         `enable_composition'.
2832         (CODING_SYSTEM_COMPOSITE): New macro.
2833         (XCODING_SYSTEM_COMPOSITE): New macro.
2834
2835 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
2836
2837         * mule-canna.c (c2mu): Fix problem with UTF-2000.
2838
2839 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
2840
2841         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
2842         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
2843
2844 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
2845
2846         * mule-charset.c (Vcharset_mojikyo): New variable.
2847         (Fdefine_char): Don't use coded-charset which does not have
2848         non-builtin character range to allocate character-id.
2849         (Qmojikyo): New variable.
2850         (syms_of_mule_charset): Add new symbol `mojikyo'.
2851         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
2852
2853         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
2854         (LEADING_BYTE_MOJIKYO): New macro.
2855         (MIN_CHAR_MOJIKYO): New macro.
2856         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
2857         (MAX_CHAR_MOJIKYO): New macro.
2858
2859 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
2860
2861         * mule-charset.c (remove_char_attribute): Fixed.
2862
2863 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
2864
2865         * mule-charset.c (remove_char_attribute): New function.
2866         (Fremove_char_attribute): New function.
2867         (encode_builtin_char_1): Comment out builtin-support for
2868         greek-iso8859-7 and cyrillic-iso8859-5.
2869         (Fdecode_char): Check `code' is an integer.
2870         (syms_of_mule_charset): Add `remove-char-attribute'.
2871         (MIN_CHAR_GREEK): Deleted.
2872         (MAX_CHAR_GREEK): Likewise.
2873         (MIN_CHAR_CYRILLIC): Likewise.
2874         (MAX_CHAR_CYRILLIC): Likewise.
2875         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
2876         MAX_CHAR_GREEK for `greek-iso8859-7'.
2877
2878         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
2879         (MAX_CHAR_GREEK): Likewise.
2880         (MIN_CHAR_CYRILLIC): Likewise.
2881         (MAX_CHAR_CYRILLIC): Likewise.
2882
2883 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
2884
2885         * mule-charset.c (Fdefine_char): Fix problem when new code-point
2886         format is used without `ucs' property.
2887         (Fdecode_char): Fix problem with GR representation.
2888         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
2889         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
2890
2891 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
2892
2893         * mule-charset.c (make_builtin_char): New function.
2894         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
2895         (Fset_charset_mapping_table): Modify for new representation of
2896         code-point.
2897         (Fdecode_char): New function.
2898         (syms_of_mule_charset): Add new builtin function `decode-char' in
2899         UTF-2000.
2900
2901         * char-ucs.h (make_builtin_char): New prototype.
2902         (DECODE_CHAR): New inline function.
2903         (MAKE_CHAR): Use `DECODE_CHAR'.
2904
2905 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
2906
2907         * text-coding.c (parse_charset_conversion_specs): Use
2908         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
2909         `XCHARSET_TYPE'.
2910         (iso2022_designate): Likewise.
2911
2912         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
2913         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
2914
2915         * mule-charset.c (Vcharset_ucs): New variable.
2916         (print_charset): Change design; use `CHARSET_CHARS' and
2917         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
2918         (make_charset): Change signature to specify `chars' and
2919         `dimension' instead of `type'.
2920         (range_charset_code_point): Modify for 256^n-set.
2921         (encode_builtin_char_1): Encode as `ucs' in default.
2922         (Fmake_charset): Modify for `make_charset'.
2923         (Fmake_reverse_direction_charset): Likewise.
2924         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
2925         UTF-2000.
2926         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
2927         for `make_charset'.
2928
2929         * char-ucs.h (Vcharset_ucs): New variable.
2930         (LEADING_BYTE_UCS): New macro.
2931         (struct Lisp_Charset): Delete `type'; change type of `dimension'
2932         and `chars' to `unsigned short' from `unsigned int'.
2933         (CHARSET_TYPE): Deleted.
2934         (XCHARSET_TYPE): Deleted.
2935
2936 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
2937
2938         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
2939
2940         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
2941         (ENCODE_CHAR): New macro.
2942
2943 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
2944
2945         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2946         to 0.14 (Kawachi-Katakami).
2947
2948 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
2949
2950         * text-coding.c (char_encode_shift_jis): Modify for
2951         `charset_code_point'.
2952         (char_encode_iso2022): Likewise.
2953
2954         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
2955         (integer) instead of list of <Lisp_Object>s (integers) as the
2956         format of code-point of a coded-charset.
2957         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2958         (encode_builtin_char_1): New function; delete
2959         `split_builtin_char'.
2960         (charset_code_point): Return <int> instead of <Lisp_Object>.
2961         (Fsplit_char): Don't use `SPLIT_CHAR'.
2962
2963         * char-ucs.h (encode_builtin_char_1): New prototype; delete
2964         prototype for `split_builtin_char'.
2965         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2966         (charset_code_point): Likewise.
2967         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
2968         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
2969
2970 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
2971
2972         * mule-charset.c (complex_vars_of_mule_charset): Don't define
2973         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
2974
2975 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2976
2977         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
2978
2979         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
2980         (MAX_CHAR_OBS_94x94): Deleted.
2981
2982 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2983
2984         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
2985
2986         * char-ucs.h (MAX_CHAR_BMP): New macro.
2987
2988 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2989
2990         * text-coding.c: Sync with r21-2-24.
2991
2992 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
2993
2994         * file-coding.c: Modify for UTF-2000.
2995
2996 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2997
2998         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2999         to 0.13 (Takaida).
3000
3001 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3002
3003         * mule-charset.c (split_builtin_char): Delete builtin support for
3004         `katakana-jisx0201'.
3005         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
3006         BMP area in builtin representation.
3007
3008         * char-ucs.h (MAKE_CHAR): Delete builtin support for
3009         `Vcharset_katakana_jisx0201'.
3010
3011 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
3012
3013         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
3014         (Qisolated): New variable.
3015         (Qinitial): New variable.
3016         (Qmedial): New variable.
3017         (Qfinal): New variable.
3018         (Qvertical): New variable.
3019         (Qsmall): New variable.
3020         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
3021         `Qvertical' and `Qsmall'.
3022         (Qmojikyo_pj_[1 .. 21]): New variable.
3023         (syms_of_mule_charset): Add new symbols `isolated', `initial',
3024         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
3025         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
3026         .. 21]'.
3027
3028 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
3029
3030         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
3031         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
3032         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
3033
3034 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3035
3036         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
3037         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
3038         BMP.
3039         (Qjapanese_jisx0208_1990): New variable.
3040         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
3041         (complex_vars_of_mule_charset): Add new coded-charset
3042         `japanese-jisx0208-1990'.
3043
3044         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
3045         (MIN_CHAR_JIS_X0208_1990): New macro.
3046         (MAX_CHAR_JIS_X0208_1990): New macro.
3047
3048 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3049
3050         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
3051         coded-charset is not found.
3052
3053 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3054
3055         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
3056         (Fdefine_char): Use `Fmake_char'.
3057
3058 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3059
3060         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
3061         (Vcharset_hiragana_jisx0208): Deleted.
3062         (Vcharset_katakana_jisx0208): Deleted.
3063         (Qideograph_daikanwa): New variable.
3064         (Qhiragana_jisx0208): Deleted.
3065         (Qkatakana_jisx0208): Deleted.
3066         (split_builtin_char): Split `ideograph-daikanwa'.
3067         (Fsplit_char): New implementation for UTF-2000.
3068         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
3069         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
3070         (complex_vars_of_mule_charset): Add new coded-charset
3071         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
3072         `katakana-jisx0208'.
3073
3074         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
3075         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
3076         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
3077         (MIN_CHAR_DAIKANWA): New macro.
3078         (MAX_CHAR_DAIKANWA): New macro.
3079
3080 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3081
3082         * data.c (Fstring_to_number): Don't recognize floating point if
3083         base is not 10.
3084
3085 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3086
3087         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
3088
3089 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3090
3091         * mule-charset.c (Qsquare): New variable.
3092         (to_char_code): Add `Qsquare'.
3093         (syms_of_mule_charset): Add new symbol `square'.
3094
3095 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3096
3097         * mule-charset.c (Qcircle): New variable.
3098         (to_char_code): Add `Qcircle'.
3099         (syms_of_mule_charset): Add new symbol `circle'.
3100
3101 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3102
3103         * mule-charset.c (Qfont): New variable.
3104         (to_char_code): Add `Qfont'.
3105         (syms_of_mule_charset): Add new symbol `font'.
3106
3107 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3108
3109         * mule-charset.c (Qsub): New variable.
3110         (to_char_code): Add `Qsub'.
3111         (syms_of_mule_charset): Add new symbol `sub'.
3112
3113 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3114
3115         * mule-charset.c (Fput_char_attribute): Convert each element of
3116         VALUE to GL position if ATTRIBUTE is a GR-set,
3117
3118 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3119
3120         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
3121         coded-charset is a GR-set.
3122
3123 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3124
3125         * mule-charset.c (Fput_char_attribute): Check each element of
3126         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
3127
3128 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3129
3130         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
3131         UTF-2000.
3132         (Qethiopic_ucs): New variable in UTF-2000.
3133         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
3134         (complex_vars_of_mule_charset): Add new coded-charset
3135         `ethiopic-ucs' in UTF-2000.
3136
3137         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
3138         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3139         9)'.
3140         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3141         10)'.
3142         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
3143
3144 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
3145
3146         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
3147         `ascii'.
3148
3149 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3150
3151         * mule-charset.c (Vcharacter_variant_table): New variable.
3152         (Q_ucs): New variable.
3153         (Fchar_variants): New function.
3154         (Fput_char_attribute): Register `->ucs' value to
3155         `Vcharacter_variant_table'.
3156         (syms_of_mule_charset): Add new function `char-variants' and new
3157         symbol `->ucs'.
3158         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
3159
3160 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3161
3162         * mule-charset.c (get_char_code_table): Allow negative character
3163         code.
3164         (put_char_code_table): Likewise.
3165         (Vcharacter_composition_table): New variable.
3166         (Q_decomposition): New variable.
3167         (Qwide): New variable.
3168         (Qnarrow): New variable.
3169         (Qcompat): New variable.
3170         (QnoBreak): New variable.
3171         (Qsuper): New variable.
3172         (Qfraction): New variable.
3173         (to_char_code): New function.
3174         (Fget_composite_char): New function.
3175         (Fput_char_attribute): Register `->decomposition' value to
3176         `Vcharacter_composition_table'.
3177         (syms_of_mule_charset): Add new function `get-composite-char', new
3178         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
3179         `super' and `fraction'.
3180         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
3181
3182 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3183
3184         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
3185         character; copy the return value.
3186
3187 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3188
3189         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
3190
3191         * mule-charset.c (range_charset_code_point): Must use make_int.
3192         (split_builtin_char): New function.
3193
3194 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3195
3196         * mule-charset.c (char_byte_table): Change name from
3197         "char-code-table" to "char-byte-table".
3198         (mark_char_code_table): New function.
3199         (char_code_table_equal): New function.
3200         (char_code_table_hash): New function.
3201         (char_code_table_description): New constant.
3202         (char_code_table): New type.
3203         (make_char_code_table): New function.
3204         (copy_char_code_table): New function.
3205         (get_char_code_table): Modify for `char_code_table' type.
3206         (put_char_code_table): Likewise.
3207         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
3208         (Kashiwara).
3209
3210         * char-ucs.h (char_code_table): New type.
3211         (XCHAR_CODE_TABLE): New macro.
3212         (XSETCHAR_CODE_TABLE): New macro.
3213         (CHAR_CODE_TABLE_P): New macro.
3214         (GC_CHAR_CODE_TABLE_P): New macro.
3215         (struct Lisp_Char_Code_Table): New structure.
3216
3217 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3218
3219         * mule-charset.c (Fmake_charset): Setup byte_offset for
3220         {94|96}^n-set.
3221
3222 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3223
3224         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
3225         character.
3226
3227 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3228
3229         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
3230         is found.
3231
3232 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3233
3234         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
3235         charset, it is regarded as a charset.
3236         (put_char_attribute): New function in UTF-2000.
3237         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
3238         charset, mapping-table of the charset is modified.
3239         (Fdefine_char): New function in UTF-2000.
3240         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
3241         `Fput_char_attribute'.
3242         (syms_of_mule_charset): Add new function `define-char' and new
3243         symbol `ucs' in UTF-2000.
3244         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
3245
3246 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3247
3248         * mule-charset.c (Fcharset_name): Define `byte_offset' in
3249         non-UTF-2000 configuration.
3250
3251 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3252
3253         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
3254         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
3255
3256         * mule-charset.c (mark_charset): `cs->encoding_table' has been
3257         deleted.
3258         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
3259         (Fset_charset_mapping_table): Likewise.
3260
3261         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
3262         (CHARSET_ENCODING_TABLE): Delete.
3263         (XCHARSET_ENCODING_TABLE): Delete.
3264         (charset_code_point): New interface.
3265
3266 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3267
3268         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
3269         instead of `charset_get_byte1' and `charset_get_byte2'.
3270
3271         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
3272         (charset_get_byte2): Deleted.
3273
3274 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3275
3276         * char-ucs.h (SPLIT_CHAR): New inline function.
3277         (breakup_char_1): Use `SPLIT_CHAR'.
3278
3279         * mule-charset.c (range_charset_code_point): New function.
3280         (charset_code_point): New function.
3281
3282         * char-ucs.h (range_charset_code_point): New interface.
3283         (breakup_char_1): Use `range_charset_code_point'.
3284
3285 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3286
3287         * mule-charset.c (Fmake_charset): Delete unused local variable
3288         `code_offset'.
3289
3290         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
3291         (breakup_char_1): Find a charset and code-point in
3292         `Vcharacter_attribute_table'.
3293
3294 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3295
3296         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3297         to 0.10 (Yao).
3298
3299 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
3300
3301         * mule-charset.c (Vcharacter_attribute_table): New variable.
3302         (Fchar_attribute_alist): New function.
3303         (Fget_char_attribute): New function.
3304         (Fput_char_attribute): New function.
3305         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
3306         too.
3307         (syms_of_mule_charset): Add new function `char-attribute-alist',
3308         `get-char-attribute' and `put-char-attribute'.
3309         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
3310
3311 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
3312
3313         * mule-charset.c (Fmake_charset): Just use
3314         `get_unallocated_leading_byte'.
3315
3316         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
3317         sets; don't use final-byte based number for private sets.
3318
3319 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3320
3321         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
3322         integer.
3323
3324 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3325
3326         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3327         to 0.9.
3328
3329 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3330
3331         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
3332         of `CHAR_LEADING_BYTE' in UTF-2000.
3333
3334         * insdel.c (find_charsets_in_bufbyte_string): Use
3335         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
3336         (find_charsets_in_emchar_string): Likewise.
3337
3338         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
3339         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
3340
3341         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
3342         (CHAR_CHARSET_ID): New macro.
3343
3344 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3345
3346         * chartab.c (get_char_table): Don't use type `Charset_ID' for
3347         charset-id - MIN_LEADING_BYTE.
3348         (put_char_table): Likewise.
3349
3350 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3351
3352         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
3353         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
3354         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
3355         (CHARSET_ID_OFFSET): New macro.
3356         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
3357         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
3358         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
3359         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
3360         4).
3361         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
3362         5).
3363         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
3364         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
3365         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
3366         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
3367         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
3368
3369 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3370
3371         * mule-charset.c (next_allocated_leading_byte): New variable in
3372         UTF-2000.
3373         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
3374         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
3375         (get_unallocated_leading_byte): Simply use
3376         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
3377         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
3378         UTF-2000.
3379
3380         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
3381         (MAX_LEADING_BYTE_PRIVATE): New macro.
3382         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
3383         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
3384
3385 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3386
3387         * mule-charset.c (Fmake_charset): Allocate final-byte based
3388         charset-id for 94-set, 96-set and 94x94-set.
3389
3390 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3391
3392         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
3393         ambiguous `else'.
3394         (Fmake_charset): Likewise.
3395         (complex_vars_of_mule_charset): Modify the font registry of
3396         `ucs-bmp' not to match `Ethiopic-Unicode'.
3397
3398 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3399
3400         * mule-charset.c (complex_vars_of_mule_charset): Add font
3401         registory of `ucs-bmp'.
3402
3403 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3404
3405         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
3406         coded-charsets in `default-coded-charset-priority-list' when
3407         breaking up a character.
3408
3409         * mule-charset.c (Vcharset_latin_viscii): New variable.
3410         (Qlatin_viscii): New variable.
3411         (make_charset): Don't use `decoding_table'.
3412         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
3413         byte_offset.
3414         (Fset_charset_mapping_table): New implementation.
3415         (syms_of_mule_charset): Add new symbol `latin-viscii'.
3416         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
3417         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
3418         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
3419         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
3420         charset `latin_viscii'.
3421
3422         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
3423         (CHARSET_TYPE_94X94): Change to 1 from 2.
3424         (CHARSET_TYPE_96): Change to 2 from 1.
3425         (CHARSET_TYPE_128): New macro.
3426         (CHARSET_TYPE_128X128): Change to 5 from 4.
3427         (CHARSET_TYPE_256): New macro.
3428         (CHARSET_TYPE_256X256): Change to 7 from 5.
3429         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
3430
3431 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3432
3433         * text-coding.c (char_encode_shift_jis): Refer
3434         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
3435         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
3436
3437         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
3438         (char_byte_table_equal): New function in UTF-2000.
3439         (char_byte_table_hash): New function in UTF-2000.
3440         (char_byte_table_description): New constant in UTF-2000.
3441         (char_byte_table): New type in UTF-2000.
3442         (make_char_byte_table): New function in UTF-2000.
3443         (copy_char_byte_table): New function in UTF-2000.
3444         (make_char_code_table): New macro in UTF-2000.
3445         (get_char_code_table): New function in UTF-2000.
3446         (put_char_code_table): New function in UTF-2000.
3447         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3448         (charset_description): Add setting in UTF-2000.
3449         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
3450         `CHARSET_TO_BYTE1_TABLE(cs)'.
3451         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
3452         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
3453         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
3454         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
3455         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
3456         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
3457         `CHARSET_TO_BYTE2_TABLE(cs)'.
3458
3459         * char-ucs.h (char_byte_table): New type.
3460         (XCHAR_BYTE_TABLE): New macro.
3461         (XSETCHAR_BYTE_TABLE): New macro.
3462         (CHAR_BYTE_TABLE_P): New macro.
3463         (GC_CHAR_BYTE_TABLE_P): New macro.
3464         (struct Lisp_Char_Byte_Table): New structure.
3465         (get_char_code_table): New interface.
3466         (Emchar_to_byte_table): Deleted.
3467         (get_byte_from_character_table): Deleted.
3468         (struct Lisp_Charset): Add `encoding_table'; delete
3469         `to_byte1_table' and `to_byte2_table'.
3470         (CHARSET_ENCODING_TABLE): New macro.
3471         (CHARSET_TO_BYTE1_TABLE): Deleted.
3472         (CHARSET_TO_BYTE2_TABLE): Deleted.
3473         (XCHARSET_ENCODING_TABLE): New macro.
3474         (XCHARSET_TO_BYTE1_TABLE): Deleted.
3475         (XCHARSET_TO_BYTE2_TABLE): Deleted.
3476
3477 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3478
3479         * mule-charset.c (syms_of_mule_charset): Delete charset alias
3480         `vietnamese-viscii-*'.
3481
3482 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3483
3484         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
3485         (Qvietnamese_viscii_upper): New variable.
3486         (Fdefine_charset_alias): New function.
3487         (syms_of_mule_charset): Add new function `define-charset-alias'.
3488         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
3489         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
3490         `latin-viscii-*'.
3491
3492 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
3493
3494         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
3495         (MAX_CHAR_OBS_94x94): New macro.
3496         (breakup_char_1): Support obsolete XEmacs-UCS private code space
3497         for 94x94 sets.
3498
3499         * mule-charset.c (put_byte_from_character_table): Change unit size
3500         from 128 to 256.
3501         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
3502         not defined.
3503         (Fmake_reverse_direction_charset): Modify dummy argument of
3504         `make_charset' for non-UTF-2000 environment.
3505
3506 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3507
3508         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
3509
3510         * mule-charset.c (destroy_byte_from_character_table): New macro.
3511         (latin_jisx0201_to_ucs): Deleted.
3512         (latin_iso8859_2_to_ucs): Deleted.
3513         (latin_iso8859_3_to_ucs): Deleted.
3514         (latin_iso8859_4_to_ucs): Deleted.
3515         (latin_iso8859_9_to_ucs): Deleted.
3516         (latin_viscii_lower_to_ucs): Deleted.
3517         (latin_viscii_upper_to_ucs): Deleted.
3518         (mark_charset): Mark `cs->decoding_table'.
3519         (Fcharset_mapping_table): Fix DOC-string.
3520         (Fset_charset_mapping_table): New function.
3521         (syms_of_mule_charset): Add nwe function
3522         `set-charset-mapping-table'.
3523         (complex_vars_of_mule_charset): Don't setup and use
3524         `latin_*_to_ucs'.
3525
3526 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3527
3528         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
3529         charset.
3530
3531 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3532
3533         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
3534         (Vcharset_katakana_jisx0208): New variable.
3535         (Qhiragana_jisx0208): New variable.
3536         (Qkatakana_jisx0208): New variable.
3537         (make_charset): Add new argument `byte_offset'.
3538         (charset_get_byte1): Modify for new coded-charset definition; use
3539         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3540         `XCHARSET_BYTE_OFFSET'.
3541         (Fmake_charset): Modify for `make_charset'.
3542         (Fmake_reverse_direction_charset): Likewise.
3543         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
3544         `katakana-jisx0208'.
3545         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
3546         `.'  in font registry of charset `katakana-jisx0201',
3547         `latin-jisx0201', `vietnamese-viscii-lower' and
3548         `vietnamese-viscii-upper'; modify DOC-string of charset
3549         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
3550         registry of charset `japanese-jisx0208' not to use font for JIS
3551         X0208:1990; add new charset `hiragana-jisx0208' and
3552         `katakana-jisx0208'.
3553
3554         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
3555         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
3556         (struct Lisp_Charset): Add `byte_offset'.
3557         (CHARSET_BYTE_OFFSET): New macro.
3558         (XCHARSET_UCS_MIN): New macro.
3559         (XCHARSET_UCS_MAX): New macro.
3560         (XCHARSET_CODE_OFFSET): New macro.
3561         (XCHARSET_BYTE_OFFSET): New macro.
3562         (MIN_CHAR_HIRAGANA): New macro.
3563         (MAX_CHAR_HIRAGANA): New macro.
3564         (MIN_CHAR_KATAKANA): New macro.
3565         (MAX_CHAR_KATAKANA): New macro.
3566         (MAKE_CHAR): Modify for new coded-charset definition; use
3567         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3568         `XCHARSET_BYTE_OFFSET'.
3569
3570 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3571
3572         * mule-charset.c (CHAR96): Deleted.
3573         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
3574         <Lisp_Object>.
3575         (latin_iso8859_2_to_ucs): Likewise.
3576         (latin_iso8859_3_to_ucs): Likewise.
3577         (latin_iso8859_4_to_ucs): Likewise.
3578         (latin_iso8859_9_to_ucs): Likewise.
3579         (latin_viscii_lower_to_ucs): Likewise.
3580         (latin_viscii_upper_to_ucs): Likewise.
3581         (latin_tcvn5712_to_ucs): Commented out.
3582         (make_charset): Change type of argument `decoding_table' from
3583         <Emchar*> to <Lisp_Object> [vector of characters].
3584         (Fmake_charset): Modify for `make_charset'.
3585         (Fmake_reverse_direction_charset): Likewise.
3586         (Fcharset_mapping_table): New function in UTF-2000.
3587         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
3588         UTF-2000.
3589         (complex_vars_of_mule_charset): Modify for type change of
3590         `*_to_ucs'; modify for `make_charset'.
3591
3592         * char-ucs.h (struct Lisp_Charset): Change type of
3593         `decoding_table' from <Emchar*> to <Lisp_Object>.
3594         (MAKE_CHAR): Modify for new specification of `decoding_table'.
3595
3596 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
3597
3598         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
3599         error with non-UTF-2000-Mule.
3600
3601 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
3602
3603         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
3604         in lisp again].
3605         (Vcharset_chinese_cns11643_4): Likewise.
3606         (Vcharset_chinese_cns11643_5): Likewise.
3607         (Vcharset_chinese_cns11643_6): Likewise.
3608         (Vcharset_chinese_cns11643_7): Likewise.
3609         (Qchinese_cns11643_3): Likewise.
3610         (Qchinese_cns11643_4): Likewise.
3611         (Qchinese_cns11643_5): Likewise.
3612         (Qchinese_cns11643_6): Likewise.
3613         (Qchinese_cns11643_7): Likewise.
3614         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
3615         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3616         and `chinese-cns11643-7' to lisp/mule/chinese.el.
3617         (complex_vars_of_mule_charset): Likewise.
3618
3619 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3620
3621         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
3622         96-set.
3623         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
3624         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
3625
3626 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3627
3628         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
3629         0xFF60.
3630         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
3631         (breakup_char_1): Likewise.
3632
3633         * text-coding.c (char_encode_iso2022): Keep designated charsets if
3634         one of them includes the specified character.
3635
3636 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3637
3638         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
3639
3640 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3641
3642         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
3643
3644 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3645
3646         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
3647         definition for non-UTF-2000 Mule.
3648         (latin_iso8859_3_to_ucs): Likewise.
3649         (latin_iso8859_4_to_ucs): Likewise.
3650         (latin_iso8859_9_to_ucs): Likewise.
3651         (latin_jisx0201_to_ucs): Likewise.
3652         (MIN_CHAR_THAI): Likewise.
3653         (MAX_CHAR_THAI): Likewise.
3654         (MIN_CHAR_GREEK): Likewise.
3655         (MAX_CHAR_GREEK): Likewise.
3656         (MIN_CHAR_HEBREW): Likewise.
3657         (MAX_CHAR_HEBREW): Likewise.
3658         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
3659         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
3660         (MIN_CHAR_CYRILLIC): Likewise.
3661         (MAX_CHAR_CYRILLIC): Likewise.
3662
3663 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3664
3665         * char-ucs.h (breakup_char_1): Use
3666         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
3667         thai-tis620 and katakana-jisx0201 area.
3668
3669 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3670
3671         * char-ucs.h (breakup_char_1): Use
3672         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
3673         area.
3674
3675         * text-coding.c (reset_encoding_stream): Fixed.
3676         (char_encode_ucs4): Delete `& 255'.
3677
3678         * char-ucs.h (breakup_char_1): Use
3679         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
3680
3681 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3682
3683         * file-coding.c (Fmake_coding_system): Don't set up
3684         `codesys->fixed.size'.
3685         (encode_coding_no_conversion): Don't refer
3686         `str->codesys->fixed.size'.
3687
3688 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3689
3690         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
3691         (latin_a_char_to_byte1): Deleted.
3692         (latin_a_char_to_byte2): Deleted.
3693
3694 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3695
3696         * mule-charset.c (make_charset): Add new argument `ucs_min',
3697         `ucs_max' and `code_offset'.
3698         (charset_get_byte1): New implementation [delete specific charset
3699         depended implementations].
3700         (Fmake_charset): Modify for `make_charset'.
3701         (Fmake_reverse_direction_charset): Likewise.
3702         (complex_vars_of_mule_charset): Likewise.
3703
3704         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
3705         `code_offset'.
3706         (CHARSET_UCS_MIN): New macro.
3707         (CHARSET_UCS_MAX): New macro.
3708         (CHARSET_CODE_OFFSET): New macro.
3709         (MAKE_CHAR): Delete charset depended definitions [except
3710         katakana-jisx0201].
3711
3712 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
3713
3714         * char-ucs.h (breakup_char_1): Use
3715         `Vdefault_coded_charset_priority_list' for C0-Controls,
3716         Basic-Latin, C1-Controls and Latin-1-Supplement area.
3717
3718 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3719
3720         * char-ucs.h (charset_get_byte1): New function.
3721         (XCHARSET_GET_BYTE1): Deleted.
3722         (charset_get_byte2): New function.
3723         (XCHARSET_GET_BYTE2): Deleted.
3724         (Vdefault_coded_charset_priority_list): New external variable.
3725         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
3726         `Vdefault_preferred_coded_charset_list'.
3727
3728         * mule-charset.c (charset_get_byte1): New function.
3729         (charset_get_byte2): New function.
3730         (Vdefault_coded_charset_priority_list): New variable.
3731         (vars_of_mule_charset): Add new variable
3732         `default-coded-charset-priority-list'.
3733
3734 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3735
3736         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
3737         (XCHARSET_GET_BYTE2): New inline function.
3738         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
3739         `XCHARSET_GET_BYTE2'.
3740
3741 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3742
3743         * mule-charset.c (make_charset): Initialize
3744         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
3745         NULL if table is not defined.
3746
3747 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3748
3749         * text-coding.c (char_encode_shift_jis): Use
3750         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
3751         `ucs_to_latin_jisx0201'.
3752
3753         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
3754         (ucs_to_latin_iso8859_2): Deleted.
3755         (ucs_to_latin_iso8859_3): Deleted.
3756         (ucs_to_latin_iso8859_4): Deleted.
3757         (ucs_to_latin_iso8859_9): Deleted.
3758         (ucs_to_latin_viscii_lower): Deleted.
3759         (ucs_to_latin_viscii_upper): Deleted.
3760         (ucs_to_latin_tcvn5712): Deleted.
3761         (make_charset): Add new argument `decoding_table'; set up
3762         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
3763         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
3764         `decoding_table' is defined in UTF-2000.
3765         (Fmake_charset): Modify for `make_charset'.
3766         (Fmake_reverse_direction_charset): Likewise.
3767         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
3768         and `GENERATE_96_SET'.
3769
3770         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
3771         (ucs_to_latin_jisx0201): Deleted.
3772         (latin_iso8859_2_to_ucs): Deleted.
3773         (ucs_to_latin_iso8859_2): Deleted.
3774         (latin_iso8859_3_to_ucs): Deleted.
3775         (ucs_to_latin_iso8859_3): Deleted.
3776         (latin_iso8859_4_to_ucs): Deleted.
3777         (ucs_to_latin_iso8859_4): Deleted.
3778         (latin_iso8859_9_to_ucs): Deleted.
3779         (ucs_to_latin_iso8859_9): Deleted.
3780         (latin_viscii_lower_to_ucs): Deleted.
3781         (ucs_to_latin_viscii_lower): Deleted.
3782         (latin_viscii_upper_to_ucs): Deleted.
3783         (ucs_to_latin_viscii_upper): Deleted.
3784         (struct Lisp_Charset): Renamed `encoding_table' to
3785         `to_byte1_table'; add `to_byte2_table'.
3786         (CHARSET_DECODING_TABLE): New macro.
3787         (CHARSET_TO_BYTE1_TABLE): New macro.
3788         (CHARSET_TO_BYTE2_TABLE): New macro.
3789         (XCHARSET_DECODING_TABLE): New macro.
3790         (XCHARSET_TO_BYTE1_TABLE): New macro.
3791         (XCHARSET_TO_BYTE2_TABLE): New macro.
3792         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
3793         tables.
3794         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
3795         don't use `ucs_to_*' tables.
3796
3797 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3798
3799         * text-coding.c (Fmake_coding_system): Don't set up
3800         `codesys->fixed.size'.
3801         (encode_coding_no_conversion): Use `if' instead of `switch'.
3802
3803         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
3804
3805 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3806
3807         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
3808         (Fmake_charset): Modify for `make_charset'.
3809         (Fmake_reverse_direction_charset): Likewise.
3810         (complex_vars_of_mule_charset): Likewise.
3811
3812 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3813
3814         * text-coding.c (char_encode_shift_jis): Use table
3815         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
3816
3817 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3818
3819         * text-coding.c (text_encode_generic): Use `if' instead of
3820         `switch'.
3821         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
3822         decode JIS-Latin.
3823
3824 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3825
3826         * text-coding.c (encode_coding_sjis): Deleted.
3827         (char_encode_shift_jis): New function.
3828         (char_finish_shift_jis): New function.
3829         (reset_encoding_stream): Set up `encode_char' and `finish' for
3830         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
3831         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
3832         (char_encode_utf8): Treat `eol_type'.
3833
3834 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3835
3836         * file-coding.c (decode_coding_iso2022): Use
3837         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
3838
3839 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3840
3841         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3842         to 0.7 (Hirano).
3843
3844 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3845
3846         * char-lb.h (CHAR_COLUMNS): New macro.
3847
3848 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3849
3850         * text-coding.c (char_encode_ucs4): New function.
3851         (char_finish_ucs4): New function.
3852         (encode_coding_ucs4): Deleted.
3853         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
3854         (text_encode_generic): Delete local variable `charset' and `half'.
3855         (ucs_to_mule_table): Deleted.
3856         (mule_to_ucs_table): Deleted.
3857         (Fset_ucs_char): Deleted.
3858         (ucs_to_char): Deleted.
3859         (Fucs_char): Deleted.
3860         (Fset_char_ucs): Deleted.
3861         (Fchar_ucs): Deleted.
3862         (decode_ucs4): Deleted.
3863         (mule_char_to_ucs4): Deleted.
3864         (encode_ucs4): Deleted.
3865         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
3866         (decode_coding_utf8): Likewise.
3867         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
3868         (char_encode_iso2022): Fixed.
3869         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
3870         `Fset_char_ucs' and `Fchar_ucs'.
3871         (complex_vars_of_file_coding): Don't initialize
3872         `ucs_to_mule_table'.
3873
3874         * objects-tty.c (tty_initialize_font_instance): Don't use
3875         `XCHARSET_COLUMNS'.
3876
3877         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
3878         UTF-2000.
3879
3880         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
3881         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3882
3883         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
3884         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3885         (emchar_string_displayed_columns): Likewise.
3886
3887         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
3888         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3889         (string_column_at_point): Likewise.
3890         (Fmove_to_column): Likewise.
3891
3892         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
3893         `encoding_table' and `decoding_table'.
3894         (CHARSET_REP_BYTES): Deleted.
3895         (XCHARSET_REP_BYTES): Deleted.
3896         (XCHARSET_COLUMNS): Deleted.
3897         (CHAR_COLUMNS): New macro.
3898         (lookup_composite_char): Deleted unconditionally.
3899         (composite_char_string): Likewise.
3900
3901 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3902
3903         * char-ucs.h (Emchar_to_byte_table): New type.
3904         (get_byte_from_character_table): New function interface.
3905         (Vcharset_latin_jisx0201): New variable.
3906         (latin_jisx0201_to_ucs): New variable.
3907         (ucs_to_latin_jisx0201): New variable.
3908         (Vcharset_latin_iso8859_2): New variable.
3909         (latin_iso8859_2_to_ucs): New variable.
3910         (ucs_to_latin_iso8859_2): New variable.
3911         (Vcharset_latin_iso8859_3): New variable.
3912         (latin_iso8859_3_to_ucs): New variable.
3913         (ucs_to_latin_iso8859_3): New variable.
3914         (Vcharset_latin_iso8859_4): New variable.
3915         (latin_iso8859_4_to_ucs): New variable.
3916         (ucs_to_latin_iso8859_4): New variable.
3917         (Vcharset_latin_iso8859_9): New variable.
3918         (latin_iso8859_9_to_ucs): New variable.
3919         (ucs_to_latin_iso8859_9): New variable.
3920         (Vcharset_latin_viscii_lower): New variable.
3921         (latin_viscii_lower_to_ucs): New variable.
3922         (ucs_to_latin_viscii_lower): New variable.
3923         (Vcharset_latin_viscii_upper): New variable.
3924         (latin_viscii_upper_to_ucs): New variable.
3925         (ucs_to_latin_viscii_upper): New variable.
3926         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
3927         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
3928         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
3929         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
3930         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
3931         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
3932         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
3933         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
3934         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
3935         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
3936
3937         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
3938         (Vcharset_latin_viscii_upper): New variable.
3939         (make_byte_from_character_table): New function.
3940         (put_byte_from_character_table): New function.
3941         (get_byte_from_character_table): New function.
3942         (CHAR96): New macro.
3943         (ucs_to_latin_jisx0201): New variable.
3944         (latin_jisx0201_to_ucs): New variable.
3945         (ucs_to_latin_iso8859_2): New variable.
3946         (latin_iso8859_2_to_ucs): New variable.
3947         (ucs_to_latin_iso8859_3): New variable.
3948         (latin_iso8859_3_to_ucs): New variable.
3949         (ucs_to_latin_iso8859_4): New variable.
3950         (latin_iso8859_4_to_ucs): New variable.
3951         (ucs_to_latin_iso8859_9): New variable.
3952         (latin_iso8859_9_to_ucs): New variable.
3953         (ucs_to_latin_viscii_lower): New variable.
3954         (latin_viscii_lower_to_ucs): New variable.
3955         (ucs_to_latin_viscii_upper): New variable.
3956         (latin_viscii_upper_to_ucs): New variable.
3957         (ucs_to_latin_tcvn5712): New variable.
3958         (latin_tcvn5712_to_ucs): New variable.
3959         (Qlatin_viscii_lower): New variable.
3960         (Qlatin_viscii_upper): New variable.
3961         (syms_of_mule_charset): Set up new symbol
3962         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
3963         (complex_vars_of_mule_charset): Set up new charset
3964         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
3965         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
3966         `ucs_to_<CHARSET>' tables.
3967
3968 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
3969
3970         * text-coding.c: New file.
3971
3972 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3973
3974         * mule-charset.c (Fmake_char): Fix problem of 256-set.
3975
3976         * char-ucs.h (Vcharset_ucs_bmp): New variable.
3977         (MAKE_CHAR): Modify for `ucs-bmp'.
3978         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
3979         non-MULE characters of BMP.
3980
3981 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
3982
3983         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3984         to 0.6.
3985
3986 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3987
3988         * lstream.h:
3989         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
3990         - Include character.h for `CHAR_ASCII_P'.
3991
3992         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
3993
3994         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
3995         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
3996
3997         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
3998         (BYTE_C0_P): Likewise.
3999         (BYTE_C1_P): Likewise.
4000         (Lstream_get_emchar_1): Likewise.
4001         (Lstream_fput_emchar): Likewise.
4002         (Lstream_funget_emchar): Likewise.
4003         (copy_internal_to_external): Likewise.
4004         (copy_external_to_internal): Likewise.
4005
4006         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
4007         (BYTE_C0_P): Likewise.
4008         (BYTE_C1_P): Likewise.
4009         (Lstream_get_emchar_1): Likewise.
4010         (Lstream_fput_emchar): Likewise.
4011         (Lstream_funget_emchar): Likewise.
4012         (copy_internal_to_external): Likewise.
4013         (copy_external_to_internal): Likewise.
4014
4015         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
4016         (REP_BYTES_BY_FIRST_BYTE): Likewise.
4017
4018         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
4019         (BYTE_ASCII_P): Moved to mb-1byte.h.
4020
4021 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4022
4023         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
4024
4025         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
4026         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
4027         (VALID_CHARPTR_P): Moved to mb-*byte.h.
4028         (VALIDATE_CHARPTR_BACKWARD): Likewise.
4029         (VALIDATE_CHARPTR_FORWARD): Likewise.
4030         (simple_charptr_emchar): Moved to mb-multibyte.h.
4031         (simple_set_charptr_emchar): Likewise.
4032         (simple_charptr_copy_char): Likewise.
4033         (non_ascii_charptr_emchar): Likewise.
4034         (non_ascii_set_charptr_emchar): Likewise.
4035         (non_ascii_charptr_copy_char): Likewise.
4036         (charptr_emchar): Moved to mb-*byte.h.
4037         (set_charptr_emchar): Likewise.
4038         (charptr_copy_char): Likewise.
4039
4040         * mb-1byte.h, mb-multibyte.h: New files.
4041
4042 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4043
4044         * mb-utf-8.h (MULTIBYTE): New macro.
4045         (MAX_EMCHAR_LEN): Moved from buffer.h.
4046         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
4047
4048         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
4049
4050         * mb-lb.h, multibyte.h: New files.
4051
4052         * char-1byte.h (Charset_ID): Moved from buffer.h.
4053         (MIN_LEADING_BYTE): Likewise.
4054         (LEADING_BYTE_ASCII): Likewise.
4055         (NUM_LEADING_BYTES): Likewise.
4056         (CHARSETP): Likewise.
4057         (CHARSET_BY_LEADING_BYTE): Likewise.
4058         (XCHARSET_LEADING_BYTE): Likewise.
4059         (XCHARSET_GRAPHIC): Likewise.
4060         (XCHARSET_COLUMNS): Likewise.
4061         (XCHARSET_DIMENSION): Likewise.
4062         (CHAR_CHARSET): Likewise.
4063         (CHAR_LEADING_BYTE): Likewise.
4064         (BREAKUP_CHAR): Likewise.
4065         (Vcharset_ascii): Likewise.
4066
4067         * buffer.h: Include multibyte.h unconditionally.
4068         (VALID_CHARPTR_P): Moved to multibyte.h.
4069         (ASSERT_VALID_CHARPTR): Likewise.
4070         (REAL_INC_CHARPTR): Likewise.
4071         (REAL_INC_CHARBYTIND): Likewise.
4072         (REAL_DEC_CHARPTR): Likewise.
4073         (INC_CHARPTR): Likewise.
4074         (INC_CHARBYTIND): Likewise.
4075         (DEC_CHARPTR): Likewise.
4076         (VALIDATE_CHARPTR_BACKWARD): Likewise.
4077         (VALIDATE_CHARPTR_FORWARD): Likewise.
4078         (charptr_n_addr): Likewise.
4079         (MAX_EMCHAR_LEN): Moved to mb-*.h.
4080         (simple_charptr_emchar): Moved to multibyte.h.
4081         (simple_set_charptr_emchar): Likewise.
4082         (simple_charptr_copy_char): Likewise.
4083         (non_ascii_charptr_emchar): Likewise.
4084         (non_ascii_set_charptr_emchar): Likewise.
4085         (non_ascii_charptr_copy_char): Likewise.
4086         (charptr_emchar): Likewise.
4087         (set_charptr_emchar): Likewise.
4088         (charptr_copy_char): Likewise.
4089         (charptr_emchar_n): Likewise.
4090         (Charset_ID): Moved to char-1byte.h.
4091         (Vcharset_ascii): Likewise.
4092         (CHAR_CHARSET): Likewise.
4093         (CHAR_LEADING_BYTE): Likewise.
4094         (LEADING_BYTE_ASCII): Likewise.
4095         (NUM_LEADING_BYTES): Likewise.
4096         (MIN_LEADING_BYTE): Likewise.
4097         (CHARSETP): Likewise.
4098         (CHARSET_BY_LEADING_BYTE): Likewise.
4099         (XCHARSET_LEADING_BYTE): Likewise.
4100         (XCHARSET_GRAPHIC): Likewise.
4101         (XCHARSET_COLUMNS): Likewise.
4102         (XCHARSET_DIMENSION): Likewise.
4103         (BREAKUP_CHAR): Likewise.
4104
4105 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4106
4107         * character.h: Add document about interface for characters.
4108
4109         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
4110         (MAKE_CHAR): Delete comment about
4111         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
4112         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
4113         (BREAKUP_CHAR): Modify name of arguments.
4114         (CHAR_CHARSET): Modify name of argument.
4115
4116         * buffer.h: Delete document about Emchar accessors.
4117
4118 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4119
4120         * character.h (CHAR_INTP): Moved from buffer.h
4121         (CHAR_OR_CHAR_INTP): Likewise.
4122         (XCHAR_OR_CHAR_INT): Likewise.
4123         (CHECK_CHAR_COERCE_INT): Likewise.
4124
4125         * buffer.h (CHAR_INTP): Moved to character.h
4126         (CHAR_OR_CHAR_INTP): Likewise.
4127         (XCHAR_OR_CHAR_INT): Likewise.
4128         (CHECK_CHAR_COERCE_INT): Likewise.
4129
4130 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4131
4132         * character.h:
4133         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
4134         - Include char-1byte.h, char-lb.h or char-ucs.h.
4135
4136         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
4137
4138         * buffer.h: Include character unconditionally.
4139         (valid_char_p): Moved to char-*.h.
4140         (non_ascii_valid_char_p): Moved to char-lb.h.
4141
4142         * char-1byte.h, char-lb.h, char-ucs.h: New files.
4143
4144 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4145
4146         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
4147         in UTF-2000 because it is not ported yet and not to use
4148         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
4149         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
4150         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
4151
4152         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
4153         (CHAR_ASCII_P): Moved from character.h.
4154
4155         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
4156         (CHAR_ASCII_P): Likewise.
4157         (CHAR_FIELD1_MASK): Deleted.
4158         (CHAR_FIELD2_MASK): Deleted.
4159         (CHAR_FIELD3_MASK): Deleted.
4160         (MAX_CHAR_BASIC_LATIN): New macro.
4161         (CHAR_FIELD1): Deleted.
4162         (CHAR_FIELD2_INTERNAL): Deleted.
4163         (CHAR_FIELD3_INTERNAL): Deleted.
4164         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
4165         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
4166         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
4167         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
4168         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
4169         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
4170         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
4171         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
4172         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
4173         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
4174         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
4175         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
4176         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
4177         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
4178         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
4179         (MIN_CHAR_COMPOSITION): Deleted.
4180         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
4181         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
4182
4183 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
4184
4185         * buffer.h: Include mb-utf-8.h in UTF-2000.
4186
4187         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
4188
4189         * mb-utf-8.h: New file.
4190
4191 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
4192
4193         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
4194         instead of `int'.
4195
4196         * mule-charset.h, buffer.h (Charset_ID): New type.
4197
4198 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
4199
4200         * mule-canna.c (c2mu): Use `MAKE_CHAR',
4201         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
4202         instead of `MULE_CHAR_PRIVATE_OFFSET',
4203         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
4204         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
4205         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
4206
4207         * character.h (Vcharset_japanese_jisx0212): New variable
4208         definition.
4209
4210 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
4211
4212         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
4213         (charset_by_attributes): Delete array about direction.
4214         (latin_a_char_to_charset): New variable in UTF-2000.
4215         (latin_a_char_to_byte1): New variable in UTF-2000.
4216         (latin_a_char_to_byte2): New variable in UTF-2000.
4217         (Qucs_bmp): New variable.
4218         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
4219         `Bufbyte'.
4220         (next_allocated_2_byte_leading_byte): Likewise.
4221         (non_ascii_set_charptr_emchar): Likewise.
4222         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
4223         `CHARSET_TYPE_256X256' in UTF-2000; modify for
4224         `charset_by_attributes'.
4225         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
4226         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
4227         and `CHARSET_BY_LEADING_BYTE'.
4228         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
4229         `utf-2000-version' to `vars_of_mule_charset'.
4230         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
4231         define `leading-code-private-11' in UTF-2000; move setting of
4232         `utf-2000-version' from `syms_of_mule_charset'.
4233         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
4234         UTF-2000.
4235
4236         * character.h (Charset_ID): New type.
4237         (LEADING_BYTE_UCS_BMP): New macro.
4238         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
4239         (CHARSET_ID_OFFSET_94): New macro.
4240         (MIN_CHARSET_ID_PRIVATE_94): New macro.
4241         (MAX_CHARSET_ID_PRIVATE_94): New macro.
4242         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
4243         final-byte.
4244         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
4245         (LEADING_BYTE_LATIN_JISX0201): Likewise.
4246         (CHARSET_ID_OFFSET_96): New macro.
4247         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
4248         CHARSET_ID_OFFSET_96 and final-byte.
4249         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
4250         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
4251         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
4252         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
4253         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
4254         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
4255         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
4256         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
4257         (LEADING_BYTE_THAI_TIS620): Likewise.
4258         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
4259         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
4260         (CHARSET_ID_OFFSET_94x94): New macro.
4261         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
4262         CHARSET_ID_OFFSET_94x94 and final-byte.
4263         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
4264         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
4265         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
4266         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
4267         (LEADING_BYTE_CHINESE_GB2312): Likewise.
4268         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
4269         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
4270         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
4271         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
4272         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
4273         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
4274         (CHARSET_TYPE_128X128): New macro.
4275         (CHARSET_TYPE_256X256): New macro.
4276         (XCHARSET_PRIVATE_P): Delete unconditionally.
4277         (charset_by_attributes): Delete array about direction.
4278         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
4279         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
4280         (MIN_CHAR_94): New macro.
4281         (MAX_CHAR_94): New macro.
4282         (MIN_CHAR_96): New macro.
4283         (MAX_CHAR_96): New macro.
4284         (MIN_CHAR_94x94): New macro.
4285         (MAX_CHAR_94x94): New macro.
4286         (MIN_CHAR_96x96): New macro.
4287         (MAX_CHAR_96x96): New macro.
4288         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
4289         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
4290         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
4291         - 32)'.
4292         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
4293         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
4294         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
4295         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
4296         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
4297         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
4298         `XCHARSET_LEADING_BYTE' to make code-point.
4299         (latin_a_char_to_charset): New variable.
4300         (latin_a_char_to_byte1): New variable.
4301         (latin_a_char_to_byte2): New variable.
4302         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
4303         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
4304         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
4305
4306         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
4307         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
4308         (find_charsets_in_emchar_string): Likewise.
4309         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
4310
4311         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
4312         `int'.
4313         (decode_coding_iso2022): Likewise.
4314
4315         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
4316         of `unsigned char'.
4317
4318         * redisplay.c (redisplay_text_width_emchar_string): Use
4319         `Charset_ID' instead of `unsigned char'.
4320         (redisplay_frame_text_width_string): Likewise.
4321
4322         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
4323         `unsigned char'.
4324
4325         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
4326         instead of `unsigned char'.
4327         (face_cachel_charset_font_metric_info): Likewise.
4328
4329         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
4330         (get_non_ascii_char_table_value): Likewise.
4331         (get_char_table): Likewise.
4332         (put_char_table): Likewise.
4333         (map_over_other_charset): Likewise.
4334         (map_char_table): Likewise.
4335
4336         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
4337         instead of `unsigned char'.
4338
4339 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
4340
4341         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
4342         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
4343
4344         * mule-charset.c (leading_code_private_11): Don't define in
4345         UTF-2000.
4346
4347         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
4348         in UTF-2000 because it is not ported yet and not to use
4349         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
4350
4351 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
4352
4353         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
4354
4355 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4356
4357         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
4358         in UTF-2000.
4359
4360         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
4361         of unsigned char to store leading-byte.
4362
4363         * chartab.c (get_non_ascii_char_table_value): Don't use
4364         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
4365
4366         * file-coding.c (encode_coding_big5): Delete bogus implementation
4367         in UTF2000.
4368
4369         * character.h (LEADING_BYTE_*): Delete definition for
4370         non-UTF-2000.
4371         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
4372         (LEADING_BYTE_PREFIX_P): Deleted.
4373         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
4374         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
4375         (BUFBYTE_LEADING_BYTE_P): Deleted.
4376         (CHARSET_PRIVATE_P): Deleted unconditionally.
4377         (rep_bytes_by_first_byte): Deleted unconditionally.
4378         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
4379         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
4380         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
4381         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
4382         (CHAR_FIELD2): Deleted.
4383         (CHAR_FIELD3): Deleted.
4384         (MAKE_CHAR): Delete definition for non-UTF-2000.
4385         (BREAKUP_CHAR_1_UNSAFE): Deleted.
4386         (breakup_char_1): New implementation.
4387         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
4388         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
4389
4390 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4391
4392         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
4393         condition.
4394
4395 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4396
4397         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
4398         (CHARSET_PRIVATE_P): Likewise.
4399         (XCHARSET_PRIVATE_P): Likewise.
4400         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
4401
4402         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
4403         UTF2000.
4404         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
4405
4406 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4407
4408         * character.h (LEADING_BYTE_*): Changed in UTF2000.
4409         (NUM_LEADING_BYTES): Changed from 128 to 256.
4410         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
4411         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
4412         UTF2000.
4413         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
4414
4415         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
4416         UTF2000.
4417         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
4418         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
4419         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
4420         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
4421         (Qchinese_cns11643_3): New variable in UTF2000.
4422         (Qchinese_cns11643_4): New variable in UTF2000.
4423         (Qchinese_cns11643_5): New variable in UTF2000.
4424         (Qchinese_cns11643_6): New variable in UTF2000.
4425         (Qchinese_cns11643_7): New variable in UTF2000.
4426         (syms_of_mule_charset): Define `chinese-cns11643-3',
4427         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4428         and `chinese-cns11643-7' in UTF2000.
4429         (vars_of_mule_charset): Initialize
4430         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
4431         + 1 in UTF2000.
4432         (complex_vars_of_mule_charset): Setup charset
4433         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
4434         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
4435
4436 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4437
4438         * mule-charset.c: Move setting for `leading-code-private-11' from
4439         `syms_of_mule_charset' to `vars_of_mule_charset'.
4440
4441 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4442
4443         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
4444         and `NUM_LEADING_BYTES' in assert.
4445
4446 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4447
4448         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
4449         instead of 128.
4450         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
4451         `NUM_LEADING_BYTES' instead of 128.
4452
4453 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4454
4455         * mule-charset.h (charset_by_leading_byte): Use
4456         `NUM_LEADING_BYTES' instead of 128.
4457         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
4458
4459         * mule-charset.c (charset_by_leading_byte): Use
4460         `NUM_LEADING_BYTES' instead of 128.
4461         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
4462
4463         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
4464         128.
4465
4466 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
4467
4468         * mule-charset.c (syms_of_mule_charset): Update to
4469         0.4 (Shin-Imamiya).
4470
4471 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
4472
4473         * file-coding.c (encode_coding_sjis): New implementation for
4474         UTF2000.  (decode_coding_sjis): Ditto.
4475
4476 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4477
4478         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
4479         Don't define in UTF2000.
4480
4481         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
4482         defined.
4483
4484         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4485         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
4486         MULE.
4487
4488 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4489
4490         * config.h.in (CHAR_IS_UCS4): New macro.
4491
4492         * mule-charset.c (rep_bytes_by_first_byte): Modify for
4493         conventional MULE representation.
4494         (syms_of_mule_charset): Update to 0.3 (Imamiya).
4495
4496         * mule-charset.h: Reverted to original.
4497
4498         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4499         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
4500         "mule-charset.h" if CHAR_IS_UCS4 is defined.
4501
4502         * character.h: New file.
4503
4504         * file-coding.c (Fmake_coding_system): Set 1 to
4505         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
4506         defined.
4507         (encode_coding_no_conversion): New implementation for UTF2000.
4508
4509         * file-coding.h (struct Lisp_Coding_System): Add new member
4510         `fixed.size'.
4511
4512 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
4513
4514         * file-coding.c (decode_coding_iso2022): Code-point arguments of
4515         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
4516         (encode_coding_iso2022): New implementation for UTF2000.
4517
4518 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4519
4520         * mule-canna.c (c2mu): New implementation for UTF2000.
4521         (m2c): Likewise.
4522
4523 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4524
4525         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
4526
4527 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4528
4529         * file-coding.c (reset_encoding_stream): Set 0 to
4530         `str->iso2022.current_char_boundary' in UTF2000.
4531         (encode_utf8): Don't define in UTF2000.
4532         (encode_coding_utf8): New implementation for UTF-8 representation
4533         of UTF2000.
4534         (complex_vars_of_file_coding): Define coding-system `utf-8'.
4535
4536 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4537
4538         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
4539
4540         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
4541         UTF2000.
4542         (REP_BYTES_BY_FIRST_BYTE): Likewise.
4543
4544         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
4545
4546         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
4547         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
4548         as UTF-8 in UTF2000.
4549         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
4550         (non_ascii_valid_char_p): Don't define in UTF2000.
4551         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
4552         (Lstream_get_emchar_1): Likewise.
4553         (utf-2000-version): New variable in UTF2000.
4554
4555         * lread.c (read_escape): Add new reader `u'.
4556
4557         * insdel.c (three_to_one_table): Don't define in UTF2000.
4558         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
4559         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4560         UTF2000.
4561         (bytind_to_bufpos_func): Likewise.
4562         (buffer_mule_signal_inserted_region): Likewise.
4563         (vars_of_insdel): Don't initialize `three_to_one_table'.
4564         (init_buffer_text): Use `buf->text->mule_size' instead of
4565         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4566         UTF2000.
4567
4568         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
4569         UTF-8 representation in UTF2000.
4570         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
4571         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
4572         (decode_coding_iso2022): Don't define local variable `lb' in
4573         UTF2000; don't use LEADING_BYTE in UTF2000; use
4574         `DECODE_ADD_UCS_CHAR' in UTF2000.
4575         (convert_to_external_format): Decode as UTF-8 in UTF2000.
4576
4577         * config.h.in (UTF2000): New macro.
4578
4579         * buffer.h (struct buffer_text): Add new member `mule_size' and
4580         don't add `mule_shifter' and `mule_three_p' in UTF2000.
4581         (valid_char_p): Return always 1 in UTF2000.
4582         (MAX_EMCHAR_LEN): 6 in UTF2000.
4583         (three_to_one_table): Don't define in UTF2000.
4584         (real_bufpos_to_bytind): Modify for UTF-8 representation in
4585         UTF2000.
4586         (real_bytind_to_bufpos): Likewise.
4587
4588         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
4589
4590 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4591
4592         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
4593         representation change.
4594         (Vutf_2000_version): New variable.
4595         (leading_code_private_11): New variable.
4596         (syms_of_mule_charset): Add new variables `utf-2000-version' and
4597         `leading-code-private-11'.
4598
4599         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
4600         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
4601         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
4602         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
4603         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
4604         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
4605         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
4606         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
4607         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
4608         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
4609         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
4610         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
4611         (MIN_CHAR_GREEK): New macro.
4612         (MAX_CHAR_GREEK): New macro.
4613         (MIN_CHAR_CYRILLIC): New macro.
4614         (MAX_CHAR_CYRILLIC): New macro.
4615         (MIN_CHAR_HEBREW): New macro.
4616         (MAX_CHAR_HEBREW): New macro.
4617         (MIN_CHAR_THAI): New macro.
4618         (MAX_CHAR_THAI): New macro.
4619         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
4620         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
4621         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
4622         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
4623         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
4624         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
4625         (CHAR_FIELD2): New inline function.
4626         (CHAR_FIELD3): New inline function.
4627         (MULE_CHAR_PRIVATE_OFFSET): New macro.
4628         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
4629         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
4630         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
4631         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
4632         (MIN_CHAR_COMPOSITION): Likewise.
4633         (CHAR_LEADING_BYTE): Modified for character representation change.
4634         (MAKE_CHAR): Likewise.
4635
4636         * lisp.h (Vcharset_latin_iso8859_1): New variable.
4637         (Vcharset_greek_iso8859_7): Likewise.
4638         (Vcharset_cyrillic_iso8859_5): Likewise.
4639         (Vcharset_hebrew_iso8859_8): Likewise.
4640         (Vcharset_thai_tis620): Likewise.
4641         (Vcharset_katakana_jisx0201): Likewise.
4642
4643 2003-01-03  Stephen J. Turnbull  <stephen@xemacs.org>
4644
4645         * XEmacs 21.4.11 "Native Windows TTY Support" is released.
4646
4647 2002-12-14  Ben Wing  <ben@xemacs.org>
4648
4649         * callint.c: Declaration error.
4650         * dumper.c (pdump):
4651         * dumper.c (pdump_load): Warning fix.
4652         * process.c: GCPRO error.
4653         * glyphs.c (unmap_subwindow):
4654         * glyphs.c (map_subwindow): Parenthesizing errors with ! and &&.
4655         * event-stream.c (maybe_kbd_translate): Wrong argument to
4656         character_to_event().
4657
4658         * alloc.c (garbage_collect_1):
4659         * emacs.c:
4660         * emacs.c (debug_can_access_memory):
4661         * emacs.c (fatal_error_signal):
4662         * emacs.c (mswindows_handle_hardware_exceptions):
4663         * emacs.c (main_1):
4664         * emacs.c (main):
4665         * emacs.c (assert_failed):
4666         * emacs.c (syms_of_emacs):
4667         * lisp.h:
4668         * print.c:
4669         * print.c (std_handle_out_va):
4670         * print.c (write_string_to_stdio_stream):
4671         * print.c (write_fmt_string):
4672         * print.c (printing_badness):
4673         * print.c (printing_major_badness):
4674         * print.c (print_internal):
4675         * print.c (debug_print_no_newline):
4676         * print.c (debug_backtrace):
4677         Be more defensive in handling bad values when printing.  Add code
4678         from trunk involving inhibit_non_essential_printing_operations.
4679         When going down or in debug_print(), don't do external conversion
4680         and such and try really, really hard when printing to avoid core
4681         dumping.  Add force-debugging-signal, debug_break().
4682
4683 2002-12-12  Stephen J. Turnbull  <stephen@xemacs.org>
4684
4685         * dumper.c (pdump_load): Include sysdep.h; retry with truename.
4686         Analysis and original patch by Vin Shelton <acs@xemacs.org>.
4687
4688 2002-12-02  Greg Allen  <greg_allen@westlb-systems.co.uk>
4689
4690         * database.c: Fix open_database. Berkeley DB API has changed in
4691         4.1. see: http://www.sleepycat.com/docs/ref/upgrade.4.1/fop.html
4692
4693 2002-11-26  Stephen J. Turnbull  <stephen@xemacs.org>
4694
4695         * specifier.c (Fvalid_specifier_type_p): Typo in comment.
4696
4697 2002-11-13  Stephen J. Turnbull  <stephen@xemacs.org>
4698
4699         * event-Xt.c (Xt_timeout):
4700         (Xt_timeout_callback):
4701         (emacs_Xt_add_timeout):
4702         (emacs_Xt_remove_timeout):
4703         (Xt_timeout_to_emacs_event):
4704         Turn completed_timeouts from a stack into a queue.  Fixes
4705         deadlocks <15829.21626.171573.994716@sinisa.nasamreza.org>.
4706
4707 2002-11-07  Wolfram Gloger  <wg@malloc.de>
4708
4709         * alloc.c (reinit_alloc_once_early): Disable mmap in Doug Lea malloc.
4710         * emacs.c (main): Assert that mmap'd allocation is disabled.
4711
4712 2002-10-14  Andy Piper  <andy@xemacs.org>
4713
4714         * glyphs-widget.c (layout_query_geometry): add in fiddle
4715         factor. Include border text in width layout calculation.
4716         (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10.
4717
4718 2002-11-02  Stephen J. Turnbull  <stephen@xemacs.org>
4719
4720         * XEmacs 21.4.10 "Military Intelligence" is released.
4721
4722 2002-10-17  Raymond Toy  <toy@rtp.ericsson.se>
4723
4724         * nas.c: Update for NAS 1.6 and later, from Jon Trulson.  Was
4725         using the NAS private array SoundFileInfo that no longer exists in
4726         NAS 1.6 and later.  Preserve backward compatibility with NAS 1.5a
4727         and earlier.  This is broken for some versions between 1.5a and
4728         1.5f.
4729
4730 2002-10-10  Stephen J. Turnbull  <stephen@xemacs.org>
4731
4732         * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
4733
4734         * emacs.c (shut_down_emacs): Improve crash message.
4735
4736 2002-10-09  Stephen J. Turnbull  <stephen@xemacs.org>
4737
4738         * file-coding.c (determine_real_coding_system): Check for coding
4739         cookie in first LINES_TO_CHECK lines (currently 2).  Cater to
4740         shebangs and Python PEP 263.
4741
4742 2002-10-08  Andy Piper  <andy@xemacs.org>
4743
4744         * glyphs-widget.c (layout_query_geometry): only resize dynamically
4745         if static sizes haven't been set.
4746
4747 2002-08-30  Mike Alexander  <mta@arbortext.com>
4748
4749         * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
4750         to close a socket.
4751
4752 2002-10-03  Stephen J. Turnbull  <stephen@xemacs.org>
4753
4754         * callproc.c (child_setup): 21.4 doesn't have retry_close.
4755
4756 2002-09-20  Mike Sperber <mike@xemacs.org>
4757
4758         (This partially gets back my patch from 2002-07-20 without the
4759         bug.)
4760         * callproc.c (child_setup): Remove Ben's comment noting confusion
4761         over the file descriptors >= 3: close_process_descs() doesn't
4762         close those.  Fix fd range to go up to MAXDESC-1 instead of 64.
4763         * process-unix.c (unix_create_process): Call
4764         begin_dont_check_for_quit to inhibit unwanted interaction (and
4765         thus breaking of X event synchronicity) in the child.
4766
4767 2002-09-26  Golubev I. N.  <gin@mo.msk.ru>
4768
4769         * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
4770         widget.
4771
4772 2002-08-20  Ben Sigelman  <bhsigelm@cs.brown.edu>
4773
4774         * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
4775         instead of while(XtAppPending()&XtIMXEvent).  Upon a gdm logout,
4776         the xemacs process did not exit, but looped infinitely here.  This
4777         fixes that problem.
4778
4779 2002-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
4780
4781         * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
4782         (find_context): Improve comments.
4783
4784         * regex.c (re_compile_fastmap):  Gratuitous #ifdef comment fixes.
4785         (re_match_2): An XCHAR_TABLE operation was missing.
4786
4787         Many of the following changes were inspired by Andy Piper's (now
4788         obsolete) patch to make syntax-table text property lookup optional.
4789
4790         [Documentation]
4791
4792         * syntax.h (top level): Document semantics of syntax flags.
4793         * syntax.c (comstr_start, Fforward_comment): Improve comments.
4794         * syntax.c, syntax.h (top level): Document syntax cache better in
4795         comments.
4796
4797         [Instrument syntax caching (temporary change)]
4798
4799         * syntax.h (enum syntax_cache_statistics_functions, struct
4800         syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
4801         SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
4802         * syntax.c (scan_words, Fforward_comment, scan_lists,
4803         Fbackward_prefix_characters):
4804         * font-lock.c (find_context):
4805         Use them to instrument syntax caching. 
4806         * syntax.c (struct syntax_cache_statistics, scs_statistics,
4807         syntax_cache_statistics_function_names): New type and variables.
4808         * syntax.c (update_syntax_cache): Update and report statistics.
4809
4810         [Major syntax cache optimizations]
4811
4812         syntax.c (lookup_syntax_properties): Default off.
4813
4814         * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
4815         * syntax.c (update_syntax_cache):
4816         Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
4817
4818         [Minor syntax cache optimizations and code clarifications]
4819
4820         * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
4821         SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
4822         SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
4823         SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
4824         SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
4825         (Code clarification.)
4826
4827         * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
4828         scan_lists): Compute code from syncode, use Boolean macros instead
4829         of redundant masking operations.  (Code clarification; any decent
4830         compiler can do this optimization.)
4831
4832         * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
4833         for clarity.
4834
4835         * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
4836         PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
4837         use F*_single_property_change instead of F*_extent_change.
4838         Currently F*_single_property_change is _much_ less efficient.
4839
4840         * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
4841         * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT):  Initialize
4842         syntax_cache.object properly, don't leave Qt or Qnil.
4843         (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
4844         * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
4845         tests for Qt or Qnil.
4846
4847 2002-09-21  Stephen J. Turnbull  <stephen@xemacs.org>
4848
4849         * redisplay.c (point_in_line_start_cache): 
4850         * extents.c (print_extent_1):
4851         Fix warnings.
4852
4853         * extents.c (Fset_extent_property): Document `syntax-table' property.
4854
4855         * extents.h (Fnext_single_property_change): EXFUN it.
4856
4857 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
4858
4859         * search.c (clear_unused_search_regs): New static function.
4860         (search_buffer): 
4861         (simple_search): 
4862         (boyer_moore):
4863         Use it.  Fixes "stale match data" bug reported by Martin Stjernholm.
4864         Minor clarifications in comments.
4865
4866         * regex.c (re_match_2_internal): Ensure no stale submatches.
4867
4868 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
4869
4870         * event-Xt.c (enqueue_focus_event): Add missing prototype.
4871
4872 2002-08-29  Jerry James  <james@xemacs.org>
4873
4874         * lisp.h: structrures -> structures.
4875
4876 2002-06-03  Andy Piper  <andy@xemacs.org>
4877
4878         * frame.c (frame_conversion_internal): add conversion appropriate
4879         for setting frame dimensions in pixels.
4880
4881         * console.h (struct console_methods): add device-specific widget
4882         layout functions.
4883
4884         * emacs.c (main_1): initialize glyph vars.
4885
4886         * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
4887         (handle_focus_event_2): new function. Allow focus to
4888         be set to a particular window and widget.
4889         (enqueue_focus_event): new function. Create a
4890         synthetic focus event.
4891         (emacs_Xt_handle_magic_event): call
4892         handle_focus_event_2.
4893
4894         * frame.c (Fset_frame_pixel_height): new function. Allow
4895         pixel-based sizing. Does the right thing on character-oriented
4896         displays.
4897         (Fset_frame_pixel_width): ditto.
4898         (Fset_frame_pixel_size): ditto.
4899         (syms_of_frame): declare.
4900
4901         * general-slots.h: add :vertically-justify and
4902         :horizontally-justify.
4903
4904         * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
4905         (mswindows_widget_border_width): new function.
4906         (mswindows_combo_box_instantiate): set border widths.
4907         (console_type_create_glyphs_mswindows): declare.
4908
4909         * glyphs-widget.c:
4910         (check_valid_justification): allow vertical and horizontal
4911         justification.
4912         (widget_border_width): new function. Call device methods.
4913         (widget_instance_border_width): ditto.
4914         (logical_unit_height): new function. Determine the height of a
4915         logical-unit. Logical units are intended to provide grid-like
4916         layout for subcontrols in a layout. If the layout is
4917         :vertically-justify top then subcontrols will be positioned on
4918         logical-unit boundaries, thus allowing adjacent subcontrols to
4919         line up.
4920         (widget_logical_unit_height): ditto for widgets.
4921         (redisplay_widget): misc cleanup.
4922         (widget_spacing): new function. Call device specific
4923         methods. Intended to be the default gap between adjacent widgets.
4924         (widget_query_geometry): use new spacing functions to determine
4925         appropriate geometry.
4926         (initialize_widget_image_instance): initialize horizontal and
4927         vertical justification.
4928         (widget_instantiate): use logica-units where appropriate for
4929         sizing large widgets.
4930         (button_query_geometry): use widget_instance_border_width.
4931         (tree_view_query_geometry): ditto.
4932         (tab_control_query_geometry): ditto.
4933         (edit_field_query_geometry): new function.
4934         (layout_update): pick up :justify, :horizontally-justify and
4935         :vertically-justify none of which worked previously. :justify is
4936         used as a fallback for both horizontal and vertical justification.
4937         (layout_query_geometry): use logical units to size appropriately.
4938         (layout_layout): ditto.
4939         (Fwidget_logical_to_character_width): new function. Allow users to
4940         convert from logical units to characters so that frame sizes can
4941         be set appropriately.
4942         (Fwidget_logical_to_character_height): ditto.
4943         (syms_of_glyphs_widget): declare.
4944         (image_instantiator_edit_fields): add edit_field_query_geometry.
4945         (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
4946         :horizontally-justify.
4947         (specifier_vars_of_glyphs_widget): new function. Declare
4948         Vwidget_border_width which is not yet used.
4949
4950         * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
4951         (x_widget_border_width): new function.
4952         (x_widget_instantiate): create a sensible name for widgets.
4953         (console_type_create_glyphs_x): declare x_widget_border_width.
4954
4955         * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
4956         (struct Lisp_Image_Instance): add :vertically-justify and
4957         :horizontally-justify.
4958         (LAYOUT_JUSTIFY_TOP): new.
4959         (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
4960         (ROUND_UP): new macro. Round argument up to next integral
4961         interval.
4962
4963         * redisplay-output.c (redisplay_output_layout): misc formatting.
4964
4965         * symsinit.h: declare specifier_vars_of_glyphs_widget.
4966
4967 2002-08-23  Stephen J. Turnbull  <stephen@xemacs.org>
4968
4969         * XEmacs 21.4.9 "Informed Management" is released.
4970
4971 2002-08-19  Andy Piper  <andy@xemacs.org>
4972
4973         * fileio.c (Ffile_truename): on cygwin using win32 normalize to
4974         win32 format.
4975
4976         * realpath.c (xrealpath): normalize drive spec also so that dir
4977         sep chars are not mixed on cygwin.
4978
4979 2002-08-06  Jerry James  <james@xemacs.org>
4980
4981         * window.c (Fsplit_window): Count only half of the divider width
4982         against the left window when splitting horizontally. 
4983
4984 2002-06-24  Andy Piper  <andy@xemacs.org>
4985
4986         * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
4987         toolbar was cleared.
4988
4989         * toolbar-msw.c (mswindows_clear_frame_toolbars): new
4990         function. Split out from mswindows_output_frame_toolbars.
4991         (mswindows_output_frame_toolbars): move clear pieces to
4992         mswindows_output_frame_toolbars.
4993
4994         * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
4995         out from gtk_output_frame_toolbars.
4996         (gtk_output_frame_toolbars): move clear pieces to
4997         gtk_clear_frame_toolbars.
4998
4999         * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
5000         the frame is cleared. How this ever worked before is a mystery.
5001         (x_output_frame_toolbars): Only output toolbars.
5002         (x_clear_frame_toolbars): new. Clear previous toolbar locations.
5003
5004         * gutter.c (update_gutter_geometry):
5005         Mark frame layout changed.
5006         (update_frame_gutter_geometry, update_frame_gutters):
5007         Respect frame_layout_changed.
5008
5009         * console.h (struct console_methods): add
5010         clear_frame_toolbars_method.
5011
5012         * redisplay.c (redisplay_frame): call
5013         update_frame_toolbars_geometry and re-order update_frame_toolbars.
5014
5015         * toolbar.h: declare update_frame_toolbars_geometry.
5016
5017         * toolbar.c (update_frame_toolbars_geometry): new function. Split
5018         out from update_frame_toolbars.  Call clear_frame_toolbars.
5019         (update_frame_toolbars): only output, do not change geometry.
5020
5021         * redisplay.c: add frame_layout_changed.
5022
5023         * redisplay.h: add frame_layout_changed.
5024         (CLASS_RESET_CHANGED_FLAGS): set it.
5025         (GLOBAL_RESET_CHANGED_FLAGS): ditto.
5026         (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
5027         (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
5028
5029         * device.h (struct device): add frame_layout_changed.
5030         (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
5031
5032         * frame.h (struct frame): add frame_layout_changed.
5033         (MARK_FRAME_LAYOUT_CHANGED): new.
5034
5035 2002-06-30  Mike Alexander  <mta@arbortext.com>
5036
5037         * event-msw.c (mswindows_need_event): Don't wait for a new message
5038         if the queue is not empty.  Suggested by Paul Moore.
5039
5040 2002-06-12  Andy Piper  <andy@xemacs.org>
5041
5042         * frame-msw.c (msprinter_init_frame_3): calculate the frame size
5043         for printing on accurately.
5044
5045 2002-06-09  Rick Rankin <rick_rankin@yahoo.com>
5046
5047         * event-msw.c (mswindows_wnd_proc): Add a handler for the
5048         WM_ACTIVATE message. Make sure that the frame is visible if the
5049         window is visible. This seemss to fix the problem where XEmacs
5050         appears to freeze after switching desktops with certain virtual
5051         window managers.
5052         (debug_output_mswin_message): Added code to output message
5053         parameters for WM_WINDOWPOSCHANGED, 
5054         WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
5055
5056 2002-05-25  Andy Piper  <andy@xemacs.org>
5057
5058         * select-x.c (vars_of_select_x): Fix docstring of
5059         x-selection-strict-motif-ownership
5060
5061 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5062
5063         * keymap.c (get_keymap):
5064         Add comment about do_autoload GCPROs own args.
5065
5066 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5067
5068         * bytecode.c (execute_optimized_program): check_opcode ifdef
5069         ERROR_CHECK_BYTE_CODE.
5070
5071 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5072
5073         Thanks to Ben Wing and Michael Sperber.
5074
5075         * eval.c (Fcommand_execute):
5076         (Feval):
5077         (Ffuncall):
5078         (Fmacroexpand_internal):
5079         (function_argcount):
5080         callint.c (Fcall_interactively):
5081         Add comment about do_autoload GCPROs own args.
5082
5083         * (do_autoload): GCPRO both args as well as local Lisp_Object.
5084
5085         * eval.c (Ffuncall): Extra braces to placate GCC.
5086
5087 2002-08-10  Stephen J. Turnbull  <stephen@xemacs.org>
5088
5089         * backtrace.h (grow_specpdl):
5090         (SPECPDL_RESERVE):
5091         * EmacsFrame.c (EmacsFrameSetValues):
5092         * eval.c (grow_specpdl):
5093         * ExternalShell.c (hack_event_masks_1):
5094         * glyphs-x.c (convert_EImage_to_XImage): 
5095         (x_finalize_image_instance):
5096         * ralloc.c (page_size):
5097         (r_alloc_sbrk):
5098         * xgccache.c (gc_cache_hash):
5099         Fix unsigned comparison warnings.
5100
5101 2002-07-29  Jerry James  <james@xemacs.org>
5102
5103         * lread.c (locate_file): Any nonnegative return value indicates
5104         success if MODE is nonnegative.
5105
5106 2002-08-03  Brian A Palmer  <bpalmer@rescomp.Stanford.EDU>
5107
5108         * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
5109         argument. 
5110
5111 2002-07-17  Stephen J. Turnbull  <stephen@xemacs.org>
5112
5113         * process-unix.c (unix_send_process): #ifdef the coding_stream member.
5114
5115         * dumper.c (pdump_get_indirect_count):
5116         (pdump_scan_by_alignment):
5117         (pdump_dump_root_struct_ptrs):
5118         (pdump_dump_rtables):
5119         (pdump_dump_root_objects):
5120         (pdump):
5121         * nas.c (WaveOpenDataForReading):
5122         * fns.c (print_bit_vector):
5123         * font-lock.c (SINGLE_SYNTAX_STYLE):
5124         * glyphs.c (check_for_ignored_expose):
5125         (find_matching_subwindow):
5126         * glyphs-eimage.c:
5127         * imgproc.c (get_histogram):
5128         * redisplay.c (point_in_line_start_cache):
5129         * redisplay-output.c (redisplay_unmap_subwindows):
5130         * symbols.c (defsymbol_massage_name_1):
5131         (defkeyword_massage_name):
5132         (deferror_massage_name_and_message):
5133         * redisplay-x.c (x_output_string): 
5134         * emacs.c (run_temacs_argv_size, run_temacs_args_size):
5135         * frame.h (struct frame):
5136         * filelock.c (current_lock_owner):
5137         * doprnt.c (emacs_doprnt_1):
5138         * lisp.h (struct Lisp_Bit_Vector):
5139         (DO_REALLOC):
5140         Fix warnings.
5141
5142 2002-02-13  Ben Wing  <ben@xemacs.org>
5143
5144         * event-stream.c (reset_key_echo):
5145         * event-stream.c (reset_this_command_keys):
5146         * event-stream.c (execute_command_event):
5147         If console is dead as a result of C-x 5 0, then post-command stuff
5148         needs to be careful and do only non-console-specific stuff.
5149
5150 2002-07-01  Mike Sperber <mike@xemacs.org>
5151
5152         * process-unix.c (unix_send_process): Mark coding_outstream as
5153         non-open upon SIGPIPE.
5154
5155         * event-stream.c (Fnext_event): Reorder switch cases to something
5156         that makes sense.
5157
5158 2001-08-13  Dmitry Astapov  <adept@umc.com.ua>
5159
5160         * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
5161         Don't bogusly reinitialize ascii_character property.
5162
5163 2002-07-08  Mike Sperber <mike@xemacs.org>
5164
5165         * process.c (Fstart_process_internal): Do error checking before we
5166         fork off the child, so the child can't muck with the state of the
5167         parent.
5168
5169 2002-07-08  Mike Sperber <mike@xemacs.org>
5170
5171         * ralloc.c (init_ralloc): Allocate properly for pdump.
5172
5173 2002-06-12  Andy Piper  <andy@xemacs.org>
5174
5175         * glyphs.c (query_string_geometry): check the string.
5176
5177         * glyphs-widget.c (widget_logical_unit_height): cope with nil
5178         widget names.
5179
5180 2002-06-17  Jerry James  <james@xemacs.org>
5181
5182         * sysdll.c: Remove RTLD_GLOBAL initialization.
5183         * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
5184
5185 2002-06-25  Stephen J. Turnbull  <stephen@xemacs.org>
5186
5187         * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
5188
5189 2002-05-16  Mathias Grimmberger  <mgri@zaphod.sax.de>
5190
5191         * sysdep.c (sys_rename): Make sys_rename work for the case where
5192         Windows rename sets errno to EACCES if target file exists.
5193
5194 2002-05-21  Jonathan Harris  <jonathan@xemacs.org>
5195
5196         * device-msw.c (mswindows_handle_page_setup_dialog_box):
5197         Fix detection of metric units to work on Win95
5198
5199 2002-05-21  Stephen J. Turnbull  <stephen@xemacs.org>
5200
5201         * syswindows.h: #define LOCALE_RETURN_NUMBER.  Why, I don't know.
5202
5203 2002-04-25  Andy Piper  <andy@xemacs.org>
5204
5205         * redisplay.c (create_text_block): Remove extra comment trailer.
5206
5207 2002-04-24  Andy Piper  <andy@xemacs.org>
5208
5209         * redisplay.c (create_text_block): Don't actually add propagation
5210         data if the line ends after we have added a glyph.
5211
5212 2002-04-22  Andy Piper  <andy@xemacs.org>
5213
5214         * extents.c (extent_fragment_update): check for glyphs we have
5215         previously displayed.
5216         * extents.c (print_extent_1): warning removal.
5217         * extents.h: change prototype.
5218         * redisplay-output.c (redisplay_normalize_glyph_area): calculate
5219         widths correctly for wide glyphs.
5220         * redisplay.c (position_redisplay_data_type): add end_glyph_width.
5221         * redisplay.c (prop_type): add PROP_GLYPH.
5222         * redisplay.c (struct prop_block): add glyph type
5223         * redisplay.c (add_glyph_rune): when adding part of a glyph add it
5224         to the propagation data.
5225         * redisplay.c (create_text_block): if there is a glyph in the
5226         propagation data use it to salt extent_fragment_update.
5227         * redisplay.c (create_string_text_block): ditto.
5228
5229 2002-04-13  Nix  <nix@esperi.demon.co.uk>
5230
5231         * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
5232         * redisplay-output.c (compare_runes): Compare them.
5233         * redisplay.c: Update copyright date.
5234         * redisplay.c (pos_data): Add need_baseline_computation field.
5235         * redisplay.c (add_glyph_rune): Update ascent, descent, and
5236         need_baseline_computation; zero yoffset. Set max_pixmap_height
5237         for all pixmaps, not just automatically positioned ones.
5238         * redisplay.c (calculate_yoffset): New, compute yoffset values.
5239         * redisplay.c (calculate_baseline): New, compute textual baseline.
5240         * redisplay.c (add_glyph_rune): Call them.
5241         * redisplay.c (create_text_block): Likewise.
5242         * redisplay.c (create_overlay_glyph_block): Likewise.
5243         * redisplay.c (add_margin_runes): Likewise.
5244         * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
5245
5246         * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
5247         * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
5248         * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
5249         * redisplay-msw.c (mswindows_output_string): Likewise.
5250         * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
5251         * redisplay-gtk.c (gtk_output_display_block): Likewise.
5252         * redisplay-x.c (x_output_display_block): Likewise.
5253
5254 2002-03-28  Ben Wing  <ben@xemacs.org>
5255
5256         * redisplay.c: Fixed bug in redisplay
5257         w.r.t. hscroll/truncation/continuation glyphs causing jumping up
5258         and down of the lines, since they're bigger than the line
5259         size. (It was seen most obviously when there's a horizontal scroll
5260         bar, e.g. do C-h a glyph or something like that.) The problem was
5261         that the glyph-contrib-p setting on glyphs was ignored even if it
5262         was set properly, which it wasn't until now.
5263
5264 2002-04-24  Andy Piper  <andy@xemacs.org>
5265
5266         * lisp.h (Dynarr_end): Fix definition.
5267
5268 2002-02-06  Adrian Aichner  <adrian@xemacs.org>
5269
5270         * redisplay.c (mark_redisplay): Remove call to
5271         update_frame_window_mirror.
5272
5273 2001-11-15  Andy Piper  <andy@xemacs.org>
5274
5275         * win32.c (Fmswindows_shell_execute): fix handling of URL's under
5276         cygwin (again).
5277
5278 2002-02-13  Andy Piper  <andy@xemacs.org>
5279
5280         * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
5281         we did in fact enqueue the XM_MAPFRAME event.
5282
5283 2002-01-15  Adrian Aichner  <adrian@xemacs.org>
5284
5285         * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
5286         to fix problem switching between virtual desktops under virtuawin
5287         virtual window manager.
5288
5289 2001-07-30  Adrian Aichner  <adrian@xemacs.org>
5290
5291         * event-msw.c: Typo fix.
5292         * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
5293         magic XM_MAPFRAME event has been sent.
5294
5295 2001-11-23  Andy Piper  <andy@xemacs.org>
5296
5297         * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
5298
5299 2001-11-21  Andy Piper  <andy@xemacs.org>
5300
5301         * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
5302         mouse events outside the frame.
5303
5304 2002-03-20  Andy Piper  <andy@xemacs.org>
5305
5306         * menubar-msw.c (mswindows_popup_menu): warning removal.
5307         * dialog-msw.c (dialog_popped_down): ditto.
5308
5309 2001-12-11  Andy Piper  <andy@xemacs.org>
5310
5311         * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
5312         * dialog-msw.c (mswindows_make_dialog_box_internal): set
5313         popup_up_p.
5314         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
5315         * menubar-msw.c (mswindows_handle_wm_command): ditto.
5316         * menubar-msw.c (mswindows_popup_menu): ditto.
5317
5318 2001-10-29  Andy Piper  <andy@xemacs.org>
5319
5320         * dialog-msw.c (handle_directory_dialog_box): quit if the user
5321         cancels.
5322
5323 2002-01-03  Andy Piper  <andy@xemacs.org>
5324
5325         * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
5326         letters.
5327         (xrealpath): ditto.
5328
5329 2002-03-29  Jonathan Harris  <jonathan@xemacs.org>
5330
5331         * device-msw.c (plist_get_margin): Add arg specifying mm or inches
5332         * device-msw.c (plist_set_margin): Fix multiplicand used for mm
5333         * device-msw.c (mswindows_handle_page_setup_dialog_box):
5334         Detect and handle case where machine is set up for metric units
5335
5336 2002-04-02  Andy Piper  <andy@xemacs.org>
5337
5338         * dired-msw.c (mswindows_get_files): 
5339         * nt.c (mswindows_stat): SetErrorMode() so that file errors are
5340         completely handled by XEmacs. Suggested by Thomas Vogler
5341         <mail@thomas-vogler.de>.
5342
5343 2001-11-14  Andy Piper  <andy@xemacs.org>
5344
5345         * nt.c (REG_ROOT): change registry key to XEmacs.
5346
5347 2002-04-27  Andy Piper  <andy@xemacs.org>
5348
5349         * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
5350
5351 2002-04-26  Andy Piper  <andy@xemacs.org>
5352
5353         * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
5354         behavior.
5355
5356 2002-03-14  Mike Alexander  <mta@arbortext.com>
5357
5358         * event-msw.c (mswindows_unwait_process): New, remove process from
5359         wait list
5360         * process-nt.c (nt_finalize_process_data): Call
5361         mswindows_unwait_process
5362         * console-msw.h: Declare mswindows_unwait_process
5363
5364 2002-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
5365
5366         * editfns.c (Fdecode_time):
5367         (Fformat_time_string):
5368         Check for invalid time.  Thanks to Nick Pakoulin <npak@ispras.ru>.
5369         (make_time): Warning elimination (change arg name).
5370
5371 2001-11-24  Andy Piper  <andy@xemacs.org>
5372
5373         * window.c (Fsplit_window): Doc return type.
5374
5375 2002-04-01  Andy Piper  <andy@xemacs.org>
5376
5377         * emacs.c (Fkill_emacs): Only output message box in interactive
5378         mode.
5379
5380 2002-04-26  Andy Piper  <andy@xemacs.org>
5381  
5382         * config.h.in: pull in 21.5.x change to stop alloca warnings under
5383         cygwin.
5384
5385 2002-03-18  Gregory Steuck  <greg-xemacs-patch@nest.cx>
5386
5387         * unexelf.c:  Use ELFSIZE or define from _LP64 to indicate a 64
5388         bit platform.
5389
5390 2002-05-09  Stephen J. Turnbull  <stephen@xemacs.org>
5391
5392         * XEmacs 21.4.8 "Honest Recruiter" is released.
5393
5394 2002-05-07  Nix  <nix@esperi.demon.co.uk>
5395
5396         Supersedes 2002-04-17 patch.
5397
5398         * process.h (PROCESS_LIVE_P): Use the process status as
5399         evidence of health, not the state of the input stream.
5400         (PROCESS_READABLE_P): Say if the process is readable
5401         from. (It may be dead nonetheless.)
5402         (CHECK_READABLE_PROCESS): Test for that condition.
5403
5404         * process.c (create_process): Use PROCESS_READABLE_P.
5405         (read_process_output, set_process_filter): Likewise.
5406
5407         * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
5408         (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
5409
5410         This code is #if 0'd, this is not the time to add new functions:
5411
5412         * process.c (Fprocess_readable_p): Report readability status.
5413         * process.c (Qprocess_readable_p): New, associated symbol...
5414         * process.c (syms_of_process): ... initialize it.
5415
5416 2002-05-04  Stephen J. Turnbull  <stephen@xemacs.org>
5417
5418         * XEmacs 21.4.7 "Economic Science" is released.
5419
5420 2002-04-17  Nix  <nix@esperi.demon.co.uk>
5421
5422         * process.h (PROCESS_LIVE_P): Use the process status as
5423         evidence of health, not the state of the input stream.
5424
5425 2002-04-30  Charles G. Waldman <cgw@xemacs.org>
5426
5427         * sysdep.c (sys_siglist): change "signum" to "signal"
5428
5429 2001-04-21  Martin Buchholz  <martin@xemacs.org>
5430
5431         * s/darwin.h: New file.
5432         Thanks to Greg Parker <gparker@cs.stanford.edu>.
5433         
5434 2002-04-23  Andreas Jaeger  <aj@suse.de>
5435
5436         * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
5437         which use lib64 for 64-bit libs.
5438         (START_FILES): Likewise.
5439
5440 2002-02-11  Mike Sperber  <mike@xemacs.org>
5441
5442         * device-x.c: 
5443         (x_IO_error_handler):
5444         (x_init_device): Temporarily keep device in static variable
5445         `device_being_initialized' so we can recover gracefully from
5446         internal XOpenDevice failure.  (XOpenDevice is documented to
5447         return NULL on failure, but sometimes calls the IO error handler
5448         instead.)
5449
5450 2002-01-31  John H. Palmieri  <palmieri@math.washington.edu>
5451
5452         * dired.c (Ffile_name_all_completions): Change documentation --
5453         remove reference to completion-ignored-extensions.
5454         * dired.c (vars_of_dired): Change documentation for
5455         completion-ignored-extensions -- remove reference to
5456         file-name-all-completions.
5457
5458 2002-03-06  Jerry James  <james@xemacs.org>
5459
5460         * emodules.c (emodules_load): Fix multiple loading of same module.
5461
5462 2002-01-25  Andrew Begel <abegel@cs.berkeley.edu>
5463         * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
5464         RTLD_LAZY to avoid incorrect symbol binding when using nested
5465         shared libraries on Solaris.
5466
5467 2002-02-12  Stephen J. Turnbull  <stephen@xemacs.org>
5468
5469         * fileio.c (Ffind_file_name_handler): Improve docstring.
5470
5471 2002-01-20  Stephen J. Turnbull  <stephen@xemacs.org>
5472
5473         * fns.c (Fmapconcat): Improve docstring.
5474
5475 2002-01-03  Eric Gillespie, Jr.  <epg@pretzelnet.org>
5476
5477         * device-gtk.c: Add prototype for
5478         emacs_gtk_selection_clear_event_handle.
5479         (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
5480         selection.  Setup signal handler for "selection_clear_event"
5481         (emacs_gtk_selection_clear_event_handle).
5482
5483         * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
5484         other applications owning the clipboard (based on
5485         x_handle_selection_clear).
5486
5487 2001-12-23  William M. Perry  <wmperry@gnu.org>
5488
5489         * menubar-gtk.c (gtk_popup_menu)  Add sanity checks, fix crash.
5490         
5491 2002-01-04  Martin Buchholz  <martin@xemacs.org>
5492
5493         * keymap.c (define_key_alternate_name): Parenthesize EQ.
5494
5495 2001-12-17  Stephen J. Turnbull  <stephen@xemacs.org>
5496
5497         * XEmacs 21.4.6 "Common Lisp" is released.
5498
5499 2001-12-16  Torsten Duwe  <duwe@caldera.de>
5500
5501         * search.c (Freplace_match): Add missing sub-expression functionality.
5502
5503         * buffer.c (decode_buffer): Add a check for pointer type to
5504         decode_buffer, before gcc's CSE optimization reorders a
5505         dereference in front of the allow_string test.
5506
5507 2001-11-16  Darryl Okahata  <darrylo@xemacs.org>
5508
5509         * window.c (window_loop): Fix bug that sometimes prevented
5510         window_loop() from iterating across multiple devices.  Also, at
5511         Ben's request, changed infloop-detecting code to abort() instead
5512         of silently terminating window_loop().
5513
5514 2001-11-21  Stephen J. Turnbull  <stephen@xemacs.org>
5515
5516         Based on analysis and patch by Simon Josefson <jas@extundo.com>.
5517         * editfns.c (make_time): New function.
5518         (Fencode_time): Use it instead of wasteful_word_to_lisp.
5519         * lisp.h (make_time): Prototype and comment it.
5520         * dired.c (wasteful_word_to_lisp): Deprecate.
5521         (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
5522
5523 2001-10-31  Kyle Jones  <kyle_jones@wonderworks.com>
5524
5525         * fileio.c (auto_save_1): Use current coding system, not
5526         escape-quoted.
5527
5528 2001-11-13  Ben Wing  <ben@xemacs.org>
5529
5530         * window.c:
5531         * window.c (window_truncation_on):
5532         * window.c (syms_of_window):
5533         truncate-partial-width-windows should respect the buffer being
5534         displayed, like other redisplay vars.
5535
5536 2001-11-13  Hirokazu FUKUI  <hfukui@sannet.ne.jp>
5537
5538         * event-stream.c (Fread_key_sequence): save current buffer.
5539
5540 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
5541
5542         * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
5543
5544 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
5545
5546         * alloc.c (lcrecord_stats): Add space for types defined in modules.
5547
5548 2001-10-26  Mike Alexander  <mta@arbortext.com>
5549
5550         * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
5551
5552 2001-10-25  Andy Piper  <andy@xemacs.org>
5553
5554         * ChangeLog:
5555         * dialog-msw.c (handle_directory_proc): new function.
5556          (handle_directory_dialog_box): new fucntion.
5557          (handle_file_dialog_box): use new directory dialog support.
5558          (mswindows_make_dialog_box_internal): ditto.
5559         * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
5560         handling.
5561         (mswindows_find_frame): make global.
5562         * fileio.c (Fexpand_file_name): build fix.
5563         * general-slots.h: add Qdirectory.
5564         * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
5565         handling.
5566         * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
5567         cygwin not leaving win32 paths unchanged.
5568         * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
5569         cygwin runtime to do path conversion.
5570         (Fmswindows_shell_execute): fix cygwin handling of URLs.
5571         (syms_of_win32): add new function.
5572         * window.c (window_loop): build fix.
5573
5574 2001-10-15  Andy Piper  <andy@xemacs.org>
5575
5576         (Fmswindows_shell_execute): fix handling of URL's under cygwin.
5577
5578 2001-10-23  Stephen J. Turnbull  <stephen@xemacs.org>
5579
5580         * XEmacs 21.4.5 "Civil Service" is released.
5581
5582 2001-04-08  Danny Colascione  <qtmstr@optonline.net>
5583
5584         * glyphs-x.c: Force buffer-tab highlight update when moving the
5585         buffer, avoiding an ugly black border, used for keyboard focus
5586         indication, on a widget that can never have keyboard focus, the
5587         buffer tab.
5588
5589 2001-08-30  Daiki Ueno  <ueno@unixuser.org>
5590
5591         * process-unix.c (unix_open_multicast_group): Remove too much
5592         conversion between host and network byte order.
5593
5594 2001-09-10  Nix  <nix@esperi.demon.co.uk>
5595
5596         * src/buffer.c (kill_buffer): Undedicate windows showing BUF
5597         before replacing them.
5598
5599         * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
5600         operation.
5601
5602         * src/window.c (undedicate_windows): Use it.
5603         * src/window.h: Add prototype.
5604
5605 2001-09-17  Ben Wing  <ben@xemacs.org>
5606
5607         * fileio.c (normalize_filename):
5608         * fileio.c (Fexpand_file_name):
5609         Fix various C++ compile errors in Andy's recent code.
5610         
5611         * callint.c (Fcall_interactively):
5612         * editfns.c (Ftemp_directory):
5613         * editfns.c (Fuser_full_name):
5614         * emacs.c (argmatch):
5615         * lread.c (locate_file_map_suffixes):
5616         * redisplay-x.c (x_ring_bell):
5617         Fix sign-compare warnings.
5618         
5619 2001-09-08  Andy Piper  <andy@xemacs.org>
5620
5621         * fileio.c (normalize_filename): copied from nt.c
5622         * (Ffile_name_directory): enable win32 paths under cygwin.
5623         * (Ffile_name_nondirectory): ditto.
5624         * (directory_file_name): ditto.
5625         * (Fexpand_file_name): ditto.
5626         * (Ffile_truename): ditto.
5627         * (Fsubstitute_in_file_name): ditto.
5628         * (Ffile_name_absolute_p): ditto.
5629         * (Ffile_readable_p): ditto.
5630
5631 2001-09-08  Andy Piper  <andy@xemacs.org>
5632
5633         * device-msw.c (mswindows_finish_init_device): remove dde
5634         initialization.
5635         * device-msw.c (mswindows_init_dde): factor out from
5636         mswindows_finish_init_device()
5637         * device-msw.c (init_mswindows_very_early): new function
5638         initialize but don't enable dde.
5639         * emacs.c (main_1): call init_mswindows_very_early.
5640         * event-msw.c:
5641         * event-msw.c (mswindows_dde_callback): only execute when we are
5642         ready.
5643         * symsinit.h: declare init_mswindows_very_early.
5644
5645 2001-05-02  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
5646
5647         [sjt: This has been in 21.5 for months with no complaints.]
5648
5649         * console.h (struct console_methods): Added flags member.
5650         (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
5651         (CONMETH_IMPL_FLAG):
5652         (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
5653         Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
5654
5655         * device.c (window_system_pixelated_geometry): Use the above macros.
5656
5657         * device.h (DEVICE_IMPL_FLAG): Macro to check a device
5658         implememntation flag.
5659         * device.h (DEVICE_DISPLAY_P): Use it.
5660
5661         * frame.c (delete_frame_internal): Use the above macro.
5662
5663         * redisplay.c (redisplay_device): Use it.
5664         (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
5665         (redisplay_frame): Ditto.
5666
5667         * device-msw.c (mswindows_device_implementation_flags): Removed.
5668         (msprinter_device_implementation_flags): Removed.
5669         (console_type_create_device_mswindows): Removed references to
5670         implementation_flags methods, set implementation flags here.
5671         (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
5672
5673         * device-gtk.c (gtk_device_implementation_flags): Removed method.
5674         (console_type_create_device_gtk): Removed method declaration.
5675         Added commented out statement which semantically matches the
5676         commented out statement in the above removed method.
5677
5678 2001-04-14  Gordon Sadler  <gbsadler1@lcisp.com>
5679
5680         The attached patch fixes a few warnings. 
5681
5682         * src/emacs.c: prototype console_type_create_select_gtk for GTK only
5683         * src/frame-gtk.c: guard against GNOME calls in GTK only
5684         * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
5685         * src/select-gtk.c: prototype lisp_to_time
5686
5687 2001-06-08  Ben Wing  <ben@xemacs.org>
5688
5689         ------ gc-in-window-procedure fixes ------
5690         
5691         * alloc.c:
5692         * alloc.c (struct post_gc_action):
5693         * alloc.c (register_post_gc_action):
5694         * alloc.c (run_post_gc_actions):
5695         * alloc.c (garbage_collect_1):
5696         Create "post-gc actions", to avoid those dreaded "GC during window
5697         procedure" problems.
5698
5699         * event-msw.c:
5700         Abort, clean and simple, when GC in window procedure.  We want
5701         to flush these puppies out.
5702
5703         * glyphs-msw.c:
5704         * glyphs-msw.c (finalize_destroy_window):
5705         * glyphs-msw.c (mswindows_finalize_image_instance):
5706         Use a post-gc action when destroying subwindows.
5707
5708         * lisp.h:
5709         Declare register_post_gc_action().
5710
5711         * scrollbar-msw.c:
5712         * scrollbar-msw.c (unshow_that_mofo):
5713         Use a post-gc action when unshowing scrollbar windows, if in gc.
5714
5715         * redisplay.c (mark_redisplay):
5716         Add comment about the utter evilness of what's going down here.
5717
5718         ------ cygwin setitimer fixes ------
5719         
5720         * Makefile.in.in (sheap_objs):
5721         * Makefile.in.in (profile_objs):
5722         * Makefile.in.in (objs):
5723         Compile profile.c only when HAVE_SETITIMER.
5724         
5725         * nt.c (mswindows_sigset):
5726         * nt.c (mswindows_sighold):
5727         * nt.c (mswindows_sigrelse):
5728         * nt.c (mswindows_sigpause):
5729         * nt.c (mswindows_raise):
5730         * nt.c (close_file_data):
5731         Style fixes.
5732         
5733         * nt.c:
5734         Move setitimer() emulation to win32.c, because Cygwin needs it too.
5735         
5736         * profile.c:
5737         * profile.c (Fstart_profiling):
5738         * profile.c (Fstop_profiling):
5739         Make sure we don't compile if no setitimer().  Use qxe_setitimer()
5740         instead of just plain setitimer().
5741         
5742         * signal.c:
5743         * signal.c (set_one_shot_timer):
5744         * signal.c (alarm):
5745         Define qxe_setitimer() as an encapsulation around setitimer() --
5746         call setitimer() directly unless Cygwin or MS Win, in which case
5747         we use our simulated version in win32.c.
5748         
5749         * systime.h:
5750         * systime.h (struct itimerval):
5751         * systime.h (ITIMER_REAL):
5752         Prototype mswindows_setitimer() and qxe_setitimer().  Long
5753         comment about "qxe" and the policy regarding encapsulation.
5754
5755         * win32.c:
5756         * win32.c (setitimer_helper_proc):
5757         * win32.c (setitimer_helper_period):
5758         * win32.c (setitimer_helper):
5759         * win32.c (mswindows_setitimer):
5760         Move setitimer() emulation here, so Cygwin can use it.
5761         Rename a couple of functions and variables to be longer and more
5762         descriptive.  In setitimer_helper_proc(), send the signal
5763         using either mswindows_raise() or (on Cygwin) kill().  If for
5764         some reason we are still getting lockups, we'll change the kill()
5765         to directly invoke the signal handlers.
5766
5767         ------ windows shell fixes ------
5768         
5769         * callproc.c:
5770         * ntproc.c:
5771         Comments about how these two files must die.
5772
5773         * callproc.c (init_callproc):
5774         On MS Windows, init shell-file-name from SHELL, then COMSPEC,
5775         not just COMSPEC. (more correct and closer to FSF.) Don't
5776         force a value for SHELL into the environment. (Comments added
5777         to explain why not.)
5778         
5779         * nt.c (init_user_info):
5780         Don't shove a fabricated SHELL into the environment.  See above.
5781
5782 2001-06-01  Ben Wing  <ben@xemacs.org>
5783
5784         * Makefile.in.in (ldflags):
5785         eliminate that pesky "defaulting to 00401000" warning.
5786         * nt.h:
5787         eliminate warnings.
5788
5789 2001-06-15  Golubev I. N.  <gin@mo.msk.ru>
5790
5791         * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
5792         * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
5793
5794 2001-04-24  Jerry James <james@xemacs.org>
5795
5796         * faces.h: pass parameters to Fadd_spec_to_specifier in the
5797         correct order.
5798
5799 2001-06-01  Ben Wing  <ben@xemacs.org>
5800
5801         * event-msw.c (debug_mswin_messages):
5802         conditionalize the messages that were causing compile errors.
5803         (if only macros could generate #ifdef statements ...)
5804
5805 2001-07-28  Stephen J. Turnbull  <stephen@xemacs.org>
5806
5807         * XEmacs 21.4.4 "Artificial Intelligence" is released.
5808
5809 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
5810
5811         * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
5812
5813 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
5814
5815         * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
5816         * process-unix.c (unix_canonicalize_host_name):
5817         sysdep.c (init_system_name):
5818         Use it to conditionally support IPv6 canonicalization.
5819
5820 2001-05-31  Paul Stodghill  <stodghil@cs.cornell.edu>
5821
5822         * event-msw.c:
5823         Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
5824
5825 2001-05-19  Paul Krause  <paulkrause1@mediaone.net>
5826
5827         * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
5828         attempt is made to scroll when no scroll bar is available.
5829
5830 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
5831
5832         * input-method-motif.c (XIM_delete_frame): New callback.
5833         (XIM_init_frame): Register it.  (Reapplied by SJT, it somehow
5834         got deleted from 21.4.3.)
5835
5836 2001-06-01  Ben Wing  <ben@xemacs.org>
5837
5838         * nt.c (mswindows_utime):
5839         * nt.c (close_file_data):
5840         fix off-by-one-indirection error.
5841
5842 2001-05-29  Adrian Aichner  <adrian@xemacs.org>
5843
5844         * fileio.c: Include nt.h.  Remove lisp_string_set_file_times()
5845         because set_file_times() now takes Lisp_Object path, instead of
5846         char*.
5847         * nt.c: Include buffer.h.
5848         * nt.c (convert_from_time_t): New.
5849         * nt.c (mswindows_utime): New.  Use utime, since SetFileTime does
5850         not set mtime correctly.
5851         * nt.h: Declare mswindows_utime().
5852         * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
5853         path, instead of char*.
5854         * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
5855
5856 2001-05-30  Ben Wing  <ben@xemacs.org>
5857
5858         For 21.4:
5859
5860         (Stephen, just take all event-msw.c patches.  This includes
5861         the "iconify" fix below.)
5862
5863         * event-msw.c:
5864         * event-msw.c (mswindows_dequeue_dispatch_event):
5865         * event-msw.c (assert):
5866         * event-msw.c (emacs_mswindows_quit_p):
5867         * event-msw.c (debug_mswin_messages):
5868         * event-msw.c (debug_output_mswin_message):
5869         * event-msw.c (vars_of_event_mswindows):
5870         Fix yet more problems with C-g handling.
5871         Implement debug-mswindows-events.
5872         
5873 2001-05-24  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
5874
5875         * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
5876         
5877 2001-05-23  Ben Wing  <ben@xemacs.org>
5878
5879         * event-msw.c (winsock_writer):
5880         * event-msw.c (winsock_closer):
5881         prior kludgy code was clobbering the buffer, thinking it was
5882         "unused" space to store an unneeded return value; instead, use
5883         the variable we've already got staring us in the face.
5884
5885 2001-05-17  Andy Piper  <andy@xemacs.org>
5886
5887         * sysfile.h: don't assume that file attributes are boolean
5888
5889 2001-05-23  Ben Wing  <ben@xemacs.org>
5890
5891         * device-msw.c (msprinter_init_device):
5892         signal an error rather than crash with an unavailable network
5893         printer (from Mike Alexander).
5894         
5895         * event-msw.c:
5896         * event-msw.c (struct winsock_stream):
5897         * event-msw.c (winsock_writer):
5898         * event-msw.c (winsock_closer):
5899         * event-msw.c (make_winsock_stream_1):
5900         cleanup headers.  fix (hopefully) an error with data corruption
5901         when sending to a network connection.
5902
5903         * fileio.c (Fexpand_file_name): Fix evil code that attempts
5904         to handle the ~user prefix by (a) always assuming we're referencing
5905         ourselves and not even verifying the user -- hence any file with
5906         a tilde as its first char is invalid! (b) if there wasn't a slash
5907         following the filename, the pointer was set *past* the end of
5908         file and we started reading from uninitialized memory.  Now we
5909         simply treat these as files, always.
5910
5911         * buffer.c (common_init_complex_vars_of_buffer): comment change.
5912         
5913 2001-05-19  Ben Wing  <ben@xemacs.org>
5914
5915         * eval.c: doc comment about gcpro'ing in record_unwind_protect.
5916
5917         * process-nt.c:
5918         * process-nt.c (vars_of_process_nt):
5919         remove unused mswindows-quote-process-args.  rec for 21.4.
5920         
5921 2001-05-12  Ben Wing  <ben@xemacs.org>
5922
5923         * event-msw.c (mswindows_dde_callback):
5924         * event-msw.c (mswindows_wnd_proc):
5925         eliminate cygwin warnings.
5926
5927 2001-05-06  Ben Wing  <ben@xemacs.org>
5928
5929         * console-msw.h:
5930         * device-msw.c:
5931         * device-msw.c (print_dialog_worker):
5932         * device-msw.c (mswindows_handle_print_dialog_box):
5933         * device-msw.c (syms_of_device_mswindows):
5934         * dialog-msw.c (mswindows_make_dialog_box_internal):
5935         * general-slots.h:
5936         implement printing the selection when it's selected.
5937
5938 2001-05-20  Drazen Kacar  <dave@arsdigita.com>
5939
5940         * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
5941
5942 2001-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
5943
5944         * lisp.h (EMACS_INT_MAX): This should be one bit less since
5945         EMACS_INT is signed.
5946
5947 2001-04-15  Michael Lausch  <mla@1012surf.net>
5948
5949         * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
5950         gtk_widget_request_size() to give scrollbar >0 width for
5951         GTK >1.2.8.
5952
5953 2001-05-30  William M. Perry  <wmperry@gnu.org>
5954
5955         * event-gtk.c: Check for buttons as modifier keys.
5956
5957 2001-05-25  Craig Lanning  <CraigL@Knology.net>
5958
5959         * s\mingw32.h:
5960         Properly find MinGW's <process.h> inside Cygwin's restructured
5961         include directories.  Don't try to include <cygwin/version.h>
5962         since we are dropping support for MinGW in versions of Cygwin
5963         earlier than b21.
5964         * nt.c:
5965         Drop support for MinGW in versions of Cygwin before b21.
5966         * sysdep.c:
5967         Properly find MinGW's <process.h> inside Cygwin's restructured
5968         include directories.
5969         * syswindows.h:
5970         Drop support for MinGW in versions of Cygwin before b21.
5971         * unexcw.c:
5972         Even though a.out.h is no longer detected by configure, allow
5973         MinGW to use it until we figure out how to do the job with Win32.
5974
5975 2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
5976
5977         * syntax.c (find_start_of_comment):
5978         Fix `unbalanced parentheses' bug when dealing with mixed comment
5979         styles in c++/java/etc. mode
5980
5981 2001-05-29  Mike Alexander  <mta@arbortext.com>
5982
5983         * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
5984         FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
5985
5986 2001-05-17  Andrew Begel  <abegel@eecs.berkeley.edu>
5987
5988         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
5989
5990 2001-03-31  Mike Sperber <mike@xemacs.org>
5991
5992         * search.c (Freplace_match): Support FSF-style specification of
5993         match subexpression when applied to a buffer.
5994
5995 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
5996
5997         * event-stream.c (is_scrollbar_event): add missing semicolon
5998
5999 2001-05-22  Isaac Hollander  <ysh@mindspring.com>
6000
6001         * Makefile.in.in: Use TAR macro instead of hardcoding
6002           tar.  Allows use of GNU tar instead of system tar
6003
6004 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
6005
6006         * event-stream.c (is_scrollbar_event): add missing semicolon
6007
6008 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
6009
6010         * XEmacs 21.4.3 "Academic Rigor" is released.
6011
6012 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
6013
6014         * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
6015
6016 2001-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
6017
6018         * buffer.c (Vcase_fold_search): Remove obsolete
6019           comment about non ASCII case-fold-search.  This
6020           bug has been fixed by case-table changes.
6021
6022 2001-05-11  Stephen J. Turnbull  <stephen@xemacs.org>
6023
6024         * event-msw.c: Restore include of events-mod.h.
6025
6026 2001-04-22   zhaoway  <zw@debian.org>
6027
6028         * event-stream.c (is_scrollbar_event): Noop returning 0 if
6029         !HAVE_SCROLLBARS.
6030
6031 2001-05-10  Stephen J. Turnbull  <stephen@xemacs.org>
6032
6033         * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
6034
6035 2001-05-08  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>
6036
6037         * mule-charset.c (Fmake_charset): Add missing else.
6038
6039 2001-04-23  Ben Wing  <ben@xemacs.org>
6040
6041         * event-msw.c (FAKE_MOD_QUIT):
6042         * event-msw.c (mswindows_dequeue_dispatch_event):
6043         * event-msw.c (mswindows_wnd_proc):
6044         * event-msw.c (emacs_mswindows_quit_p):
6045         Get critical quit working.
6046
6047 2001-05-05  Ben Wing  <ben@xemacs.org>
6048
6049         * console-msw.h:
6050         * device-msw.c:
6051         * device-msw.c (mswindows_get_default_margin):
6052         * frame-msw.c (mswindows_size_frame_internal):
6053         * frame-msw.c (msprinter_init_frame_1):
6054         * frame-msw.c (vars_of_frame_mswindows):
6055         Change top/bottom margin defaults to 0.5 inches.
6056
6057 2001-05-01  Martin Buchholz  <martin@xemacs.org>
6058
6059         Fix link error with gcc 3.0 on Linux.
6060         * terminfo.c (UP): Remove.
6061         * terminfo.c (BC): Remove.
6062         * terminfo.c (PC): Remove.
6063         They weren't used, and in any case, these symbols should be
6064         defined in the *library*.
6065
6066 2001-05-03  Martin Buchholz  <martin@xemacs.org>
6067
6068         * s/aix4.h: Fix crash with xlc -O3.
6069         Improve comment explaining how -O3 works.
6070
6071 2001-04-15  Ben Wing  <ben@xemacs.org>
6072
6073         * event-stream.c:
6074         * event-stream.c (Fnext_event):
6075         * event-stream.c (is_scrollbar_event):
6076         * event-stream.c (execute_command_event):
6077         Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
6078         crash' problem.  His fix introduces other problems.  We filter
6079         out scrollbar events specifically, making them somewhat invisible
6080         to command-building, and not appearing in `this-command-keys'.
6081         More work is still needed (see comments in event-stream.c), but
6082         this fixes all the major problems.
6083
6084 2001-04-20  Ben Wing  <ben@xemacs.org>
6085
6086         * .cvsignore: Added stuff for Windows.
6087
6088 2001-04-28  Ben Wing  <ben@xemacs.org>
6089
6090         * buffer.c (Ferase_buffer):
6091         * editfns.c (buffer_insert1):
6092         * editfns.c (Finsert_before_markers):
6093         * editfns.c (Finsert_string):
6094         * editfns.c (Finsert_char):
6095         * editfns.c (Fdelete_region):
6096         * editfns.c (Fwiden):
6097         * editfns.c (Fnarrow_to_region):
6098         remove bogus lines setting zmacs_region_stays to 0.
6099         
6100 2001-04-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
6101
6102         * process-unix.c (unix_open_network_stream): If connect() fails
6103         invalidate file descriptor after closing it.
6104
6105 2001-03-08  Mike Alexander  <mta@arbortext.com>
6106
6107         * event-msw.c (mswindows_need_event_in_modal_loop):
6108         Don't dispatch a message if we didn't get one.
6109         (mswindows_need_event):
6110         Terminate the correct process when one exits instead of the first
6111         one on Vprocess_list and look for process termination when in
6112         mswindows_protect_modal_loop.
6113
6114 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
6115
6116         * XEmacs 21.4.1 "Copyleft" is released.
6117
6118 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
6119
6120         * input-method-motif.c (XIM_delete_frame): New callback.
6121         (XIM_init_frame): Register it.
6122
6123 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
6124
6125         * XEmacs 21.4.0 "Solid Vapor" is released.
6126
6127 2001-04-15  Ben Wing  <ben@xemacs.org>
6128
6129         * cmdloop.c (call_command_loop):
6130         Fix braino in bit-rotting code.
6131         
6132 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
6133
6134         * extents.c (Fset_extent_endpoints): Force creation of extent info
6135         in buffer_or_string.
6136
6137         * extents.c (process_extents_for_insertion_mapper): Correctly
6138         check for open-open zero-length extents.
6139
6140 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
6141
6142         * lisp.h: New typedefs Memory_count, Element_count.
6143         * regex.c:
6144         * regex.h:
6145         Sign-compare warning elimination: several unsigned -> signed.
6146         Based on work by Ben Wing <ben@xemacs.org>.
6147
6148 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
6149
6150         * XEmacs 21.2.47 "Zephir" is released.
6151
6152 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
6153
6154         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
6155
6156 2001-04-03  Mike Sperber <mike@xemacs.org>
6157
6158         * search.c: Revert previous patch due because of release.
6159
6160 2001-03-30  Ben Wing  <ben@xemacs.org>
6161
6162         * s\cygwin32.h:
6163         Add missing killpg prototype.
6164
6165         * elhash.c:
6166         Add a comment about fixing problems when a new entry is added
6167         while mapping.
6168
6169         * frame-msw.c (mswindows_init_frame_1):
6170         Fix compile warnings.
6171
6172         * menubar.c (vars_of_menubar):
6173         Provide `menu-accelerator-support' to indicate that we properly
6174         support %_ in menu specifications, so that package code can
6175         conditionalize on this (and remove %_ from menu specifications
6176         on older versions).
6177
6178         * event-msw.c:
6179         * scrollbar-msw.c:
6180         * scrollbar-msw.c (can_scroll):
6181         * scrollbar-msw.h:
6182         Fix handling of mouse wheel under Windows to follow standards --
6183         now scrolls window under pointer, not selected window.
6184
6185 2001-03-31  Mike Sperber <mike@xemacs.org>
6186
6187         * search.c (Freplace_match): Support FSF-style specification of
6188         match subexpression when applied to a buffer.
6189
6190 2001-03-15  Martin Buchholz  <martin@xemacs.org>
6191
6192         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
6193         function to modify KEYMAP, so map over a copy of the hash table.
6194
6195 2001-03-21  Martin Buchholz <martin@xemacs.org>
6196
6197         * XEmacs 21.2.46 "Urania" is released.
6198
6199 2001-03-20  Dan Holmsand  <dan@eyebee.com>
6200
6201         * realpath.c (xrealpath): Make file-truename work with symlinks to
6202         /cygdrive paths on cygwin. Always lowercase drive-letters on
6203         native windows.
6204         (cygwin_readlink): Don't try to find canonical filename unless
6205         file exists.
6206
6207 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
6208
6209         * ChangeLog: Log GTK merge.
6210
6211         * dumper.c:
6212         * select-x.c:
6213         * specifier.c:
6214         * symeval.h:
6215         Revert gratuitous whitespace changes from GTK merge.
6216
6217         * emacs.c: Document end of complex #ifdef @ l. 1495.
6218
6219
6220 2001-03-12  Andy Piper  <andy@xemacs.org>
6221
6222         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
6223         have to do likewise.
6224
6225 2001-03-12  Andy Piper  <andy@xemacs.org>
6226
6227         * sysdep.c: we only support mingw now.
6228
6229 2001-03-09  Andy Piper  <andy@xemacs.org>
6230
6231         * unexcw.c (copy_executable_and_dump_data_section): making approx
6232         overrun a warning only.
6233
6234 2001-03-10  William M. Perry  <wmperry@aventail.com>
6235
6236         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
6237         satisfy Stephen's identical-after-cpp plea.
6238
6239 2001-03-02  Ben Wing  <ben@xemacs.org>
6240
6241         * cmds.c:
6242         * cmds.c (Fforward_char):
6243         * syntax.c:
6244         * window.c:
6245
6246         Augment documentation of the most common motion commands to make
6247         note of the shifted-motion support.
6248         
6249 2001-03-02  Ben Wing  <ben@xemacs.org>
6250
6251         * nt.c (mswindows_fstat):
6252         * nt.c (mswindows_stat):
6253         * search.c (boyer_moore):
6254         Fix compile warnings under Windows.
6255         
6256         * sysdep.c (sys_readdir):
6257         Fix buggy filename-conversion code under Mule.
6258
6259 2001-03-09  William M. Perry  <wmperry@aventail.com>
6260
6261         * Makefile.in.in:
6262         * config.h.in:
6263         * console.c:
6264         * console.h:
6265         * device.c:
6266         * device.h:
6267         * dragdrop.c:
6268         * emacs.c:
6269         * event-stream.c:
6270         * events.c:
6271         * events.h:
6272         * faces.c:
6273         * frame.h:
6274         * general-slots.h:
6275         * glyphs.c:
6276         * gutter.c:
6277         * inline.c:
6278         * lisp.h:
6279         * lrecord.h:
6280         * make-src-depend:
6281         * redisplay-output.c:
6282         * redisplay.c:
6283         * symsinit.h:
6284         * sysfile.h:
6285         * toolbar.c:
6286         * window.c:
6287         The Great GTK Merge.
6288
6289         * ChangeLog.GTK:
6290         * console-gtk.c:
6291         * console-gtk.h:
6292         * device-gtk.c:
6293         * emacs-marshals.c:
6294         * emacs-widget-accessors.c:
6295         * event-gtk.c:
6296         * frame-gtk.c:
6297         * gccache-gtk.c:
6298         * gccache-gtk.h:
6299         * glade.c:
6300         * glyphs-gtk.c:
6301         * glyphs-gtk.h:
6302         * gtk-glue.c:
6303         * gtk-xemacs.c:
6304         * gtk-xemacs.h:
6305         * gui-gtk.c:
6306         * gui-gtk.h:
6307         * menubar-gtk.c:
6308         * native-gtk-toolbar.c:
6309         * objects-gtk.c:
6310         * objects-gtk.h:
6311         * redisplay-gtk.c:
6312         * scrollbar-gtk.c:
6313         * scrollbar-gtk.h:
6314         * select-gtk.c:
6315         * toolbar-gtk.c:
6316         * ui-byhand.c:
6317         * ui-gtk.c:
6318         * ui-gtk.h:
6319         The Great GTK Merge: new files.
6320
6321 2001-02-26  Ben Wing  <ben@xemacs.org>
6322
6323         Reapplied Lstream change.
6324
6325 2001-02-26  Ben Wing  <ben@xemacs.org>
6326
6327         Undid the last change, since it is more controversial than I
6328         thought.  It should be back in at some point soon.
6329         
6330 2001-02-25  Ben Wing  <ben@xemacs.org>
6331
6332         * buffer.c:
6333         * callproc.c (Fold_call_process_internal):
6334         * event-msw.c (ntpipe_slurp_reader):
6335         * event-msw.c (ntpipe_shove_writer):
6336         * event-msw.c (winsock_reader):
6337         * event-msw.c (winsock_writer):
6338         * file-coding.c:
6339         * file-coding.c (detect_eol_type):
6340         * file-coding.c (detect_coding_type):
6341         * file-coding.c (determine_real_coding_system):
6342         * file-coding.c (Fdetect_coding_region):
6343         * file-coding.c (decoding_reader):
6344         * file-coding.c (decoding_writer):
6345         * file-coding.c (mule_decode):
6346         * file-coding.c (Fdecode_coding_region):
6347         * file-coding.c (encoding_reader):
6348         * file-coding.c (encoding_writer):
6349         * file-coding.c (mule_encode):
6350         * file-coding.c (Fencode_coding_region):
6351         * file-coding.c (detect_coding_sjis):
6352         * file-coding.c (decode_coding_sjis):
6353         * file-coding.c (encode_coding_sjis):
6354         * file-coding.c (detect_coding_big5):
6355         * file-coding.c (decode_coding_big5):
6356         * file-coding.c (encode_coding_big5):
6357         * file-coding.c (detect_coding_ucs4):
6358         * file-coding.c (decode_coding_ucs4):
6359         * file-coding.c (encode_coding_ucs4):
6360         * file-coding.c (detect_coding_utf8):
6361         * file-coding.c (decode_coding_utf8):
6362         * file-coding.c (encode_coding_utf8):
6363         * file-coding.c (detect_coding_iso2022):
6364         * file-coding.c (decode_coding_iso2022):
6365         * file-coding.c (encode_coding_iso2022):
6366         * file-coding.c (decode_coding_no_conversion):
6367         * file-coding.c (encode_coding_no_conversion):
6368         * glyphs-x.c (write_lisp_string_to_temp_file):
6369         * gpmevent.c (tty_get_foreign_selection):
6370         * lisp.h:
6371         * lstream.c:
6372         * lstream.c (Lstream_flush_out):
6373         * lstream.c (Lstream_adding):
6374         * lstream.c (Lstream_write_1):
6375         * lstream.c (Lstream_write):
6376         * lstream.c (Lstream_raw_read):
6377         * lstream.c (Lstream_read_more):
6378         * lstream.c (Lstream_read):
6379         * lstream.c (Lstream_unread):
6380         * lstream.c (Lstream_fputc):
6381         * lstream.c (stdio_reader):
6382         * lstream.c (stdio_writer):
6383         * lstream.c (filedesc_reader):
6384         * lstream.c (filedesc_writer):
6385         * lstream.c (lisp_string_reader):
6386         * lstream.c (struct fixed_buffer_stream):
6387         * lstream.c (make_fixed_buffer_input_stream):
6388         * lstream.c (make_fixed_buffer_output_stream):
6389         * lstream.c (fixed_buffer_reader):
6390         * lstream.c (fixed_buffer_writer):
6391         * lstream.c (struct resizing_buffer_stream):
6392         * lstream.c (resizing_buffer_writer):
6393         * lstream.c (dynarr_writer):
6394         * lstream.c (lisp_buffer_reader):
6395         * lstream.c (lisp_buffer_writer):
6396         * lstream.h:
6397         * lstream.h (lstream_implementation):
6398         * lstream.h (struct lstream):
6399         * md5.c (Fmd5):
6400         * process-nt.c (nt_send_process):
6401         * process-unix.c (unix_send_process):
6402         
6403         Correct Lstream lossage due to mixing of signed and unsigned
6404         quantities.  All Lstream uses of size_t and ssize_t are now a
6405         single signed data type Lstream_data_count.  This fixes problems
6406         under Windows with sending large quantities of data to a process,
6407         and may well fix other subtle bugs.
6408
6409 2001-02-23  Martin Buchholz <martin@xemacs.org>
6410
6411         * XEmacs 21.2.45 "Thelxepeia" is released.
6412
6413 2001-02-21  Martin Buchholz  <martin@xemacs.org>
6414
6415         * lisp-union.h (XSETINT): 
6416         (XSETCHAR):
6417         (XSETOBJ): 
6418         Reverse previous change of 2001-02-06.
6419
6420 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
6421
6422         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
6423         buffers.
6424         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
6425         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
6426         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
6427         * regex.c (POS_AS_IN_BUFFER): removed
6428         * regex.c (re_search_2):
6429         * regex.c (re_match_2):
6430         Don't use an offset of 1 when calculating buffer positions, since
6431         `BI_BUF_BEGV' does it already.
6432
6433 2001-02-18  Wim Dumon  <wim@easics.be>
6434
6435         * insdel.c (prepare_to_modify_buffer): Also check for
6436         supersession when clash-detection is enabled. 
6437
6438 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
6439
6440         * regex.c (re_match_2_internal):
6441         Convert temp characters from 'const unsigned char' to 're_char'.
6442         Fix crashing bug with extended characters under mule.
6443         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
6444         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
6445         font-lock, pdump, and new syntax-table code.
6446         * syntax.c (find_start_of_comment):
6447         (find_end_of_comment):
6448         (forward-comment):
6449         Fix crashing bugs involving moving beyond end of buffer.
6450         * syntax.c (find_start_of_comment):
6451         Fixed logic to allow proper detection of cases where the same
6452         character is used to end both a two-char comment start and a
6453         two-char comment end sequence. Fixes `(forward-comment -1)'.
6454         * syntax.c (find_start_of_comment):
6455         Return position just past last comment-end character for all cases
6456         (previously was only done for two-char comment-end sequences).
6457         * syntax.c (forward-comment):
6458         Take value returned from `find_end_of_comment', rather than
6459         incrementing it.
6460         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
6461         Properly deal with BUFFERP (syntax_cache.object)
6462
6463 2001-02-17  Martin Buchholz  <martin@xemacs.org>
6464
6465         * alloc.c (Fgarbage_collect): 
6466         * alloc.c (make_bit_vector_from_byte_vector):
6467         -Wsign-compare-correctness.
6468
6469 2001-02-16  Martin Buchholz  <martin@xemacs.org>
6470
6471         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
6472         (XSETCHAR): Likewise.
6473         (XSETOBJ): Likewise.
6474
6475 2001-02-15  Martin Buchholz  <martin@xemacs.org>
6476
6477         * mule-canna.c (canna-func-delete_previous): 
6478         Rename to canna-func-delete-previous.
6479
6480 2001-02-14  Martin Buchholz  <martin@xemacs.org>
6481
6482         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
6483
6484 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
6485
6486         * font-lock.c (find_context): Fix C++ compile errors introduced by
6487         recent patch
6488
6489 2001-02-13  Martin Buchholz  <martin@xemacs.org>
6490
6491         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
6492         pragma, but earlier ones barf on the same pragma.
6493
6494 2001-02-06  Mike Sperber <mike@xemacs.org>
6495
6496         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
6497         `configure-mule-lisp-directory'.
6498
6499 2001-02-12  Martin Buchholz  <martin@xemacs.org>
6500
6501         Make sure dump-id.c is compiled in the same way as other .c's.
6502         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
6503         * dump-id.h: Remove.
6504         * emacs.c: Move dump-id.h into dumper.h.
6505         * dumper.h: Move dump-id.h into dumper.h.
6506         * Makefile.in.in:
6507         Use standard .c.o rule for building dump-id.o.
6508         Remove preprocessor flags from link command.
6509         Add dump-id.o to ${otherobjs} if PDUMP.
6510
6511 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
6512
6513         Port FSF 20.7 syntax table improvements.
6514         * syntax.c.
6515         * syntax.h.
6516
6517         Fixups for new syntax table stuff.
6518         * dired.c: Include syntax.c.
6519         (Fdirectory_files): Initialize regex_match_object and
6520         regex_emacs_buffer.
6521         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
6522         and Fget_char_property.
6523
6524         Use ported FSF 20.7 syntax table improvements.
6525         * font-lock.c.
6526         * regex.c.
6527         * search.c.
6528         
6529 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6530
6531         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
6532         Unixware's enum boolean from sys/types.h.
6533
6534 2001-02-10  Martin Buchholz  <martin@xemacs.org>
6535
6536         Fix support for building with latest Purify.
6537         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
6538         (PURIFY_FLAGS): Likewise.
6539
6540 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6541
6542         * fileio.c (lisp_string_set_file_times): New.
6543         * fileio.c (Fcopy_file): Use it.
6544         Fixes bug:
6545         (copy-file filename non-ascii-filename t t)
6546         ==> No such file or directory, non-ascii-filename
6547
6548 2001-02-10  Martin Buchholz  <martin@xemacs.org>
6549
6550         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
6551         USHRT_MAX seems clearer than ~0 anyways.
6552
6553 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6554
6555         dumper improvements.  Inspired by Olivier.
6556         * dumper.c (pdump_max_align): New.
6557         * dumper.c (pdump_add_entry): Use pdump_max_align.
6558         * dumper.c (pdump_get_entry_list): Likewise.
6559         * dumper.c (pdump_scan_by_alignment): Likewise.
6560         Don't iterate through unnecessary alignments.
6561         * dumper.c (pdump_file_get): No need to align result of malloc().
6562         * dumper.c (pdump_mallocadr): Remove.  
6563         The result of malloc() is guaranteed to be maximally aligned.
6564         * dumper.c: s/elmt/elt/g;
6565         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
6566         * dumper.c (pdump_alert_undump_object): Likewise.
6567         * dumper.c (pdump_align_table): 
6568         Don't support alignments > 64.
6569         Store ALIGNOF's, not shift counts, in table.
6570
6571 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6572
6573         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
6574         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
6575         * systime.h: Use HAVE_UTIME.
6576         * sysdep.c (struct utimbuf): Remove.
6577         * sysdep.c (set_file_times): Prefer utime() to utimes().
6578         * config.h.in (HAVE_UTIME): New.
6579         * config.h.in (HAVE_UTIME_H): Remove.
6580         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
6581
6582 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6583
6584         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
6585
6586 2001-02-08  Martin Buchholz  <martin@xemacs.org>
6587
6588         * s/irix6-0.h: Use the standard system memmove, not bcopy.
6589
6590 2001-02-08  Martin Buchholz <martin@xemacs.org>
6591
6592         * XEmacs 21.2.44 "Thalia" is released.
6593
6594 2001-02-06  Martin Buchholz  <martin@xemacs.org>
6595
6596         Fixes crashes in kill-emacs on some systems.
6597         * process-unix.c (unix_kill_child_process):
6598         It's OK for kill() to fail with ESRCH.
6599
6600 2001-02-07  Martin Buchholz  <martin@xemacs.org>
6601
6602         Contortions to make .gdbinit tricks work on most systems.
6603         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
6604         * alloc.c (dbg_valmask): Make non-const.
6605         * alloc.c (dbg_typemask): Make non-const.
6606         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
6607         * alloc.c (dbg_valbits): Make non-const.
6608         * alloc.c (dbg_gctypebits): Make non-const.
6609         * .gdbinit (decode_object): Make it work with AIX cc.
6610
6611 2001-02-06  Martin Buchholz  <martin@xemacs.org>
6612
6613         * elhash.c (make_general_lisp_hash_table):
6614         Use simpler and more efficient calloc to clear entries.
6615
6616 2001-02-07  Martin Buchholz  <martin@xemacs.org>
6617
6618         * window.c (window_scroll): Work around an AIX C compiler bug.
6619         Fixes 'scroll-up' does nothing problem with xlC.
6620
6621 2001-02-05  Martin Buchholz  <martin@xemacs.org>
6622
6623         * .gdbinit: Remove obsolete comment.
6624
6625 2001-01-31  Mike Alexander  <mta@arbortext.com>
6626
6627         * select.c (Fown_selection_internal): Set owned_p for device
6628         method correctly.
6629
6630 2001-02-01  Martin Buchholz  <martin@xemacs.org>
6631
6632         Port to g++ 2.97.
6633         "not" cannot be used as a macro name as it is an operator in C++
6634         * config.h.in: Stop #defining `not'.
6635         * chartab.c (check_category_char): not ==> not_p
6636         * chartab.h: Likewise.
6637         * regex.c (re_match_2_internal): Likewise.
6638
6639 2001-02-02  Martin Buchholz  <martin@xemacs.org>
6640
6641         * lisp-disunion.h: Fix up comments.
6642
6643 2001-01-31  Martin Buchholz  <martin@xemacs.org>
6644
6645         * keymap.c (define_key_check_and_coerce_keysym):
6646         (syms_of_keymap):
6647         Support mouse-6 and mouse-7 bindings in the obvious way.
6648
6649 2001-02-01  Martin Buchholz  <martin@xemacs.org>
6650
6651         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
6652
6653 2001-01-30  Martin Buchholz  <martin@xemacs.org>
6654
6655         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
6656         Previous patch missed DEFVAR_INT_MAGIC.
6657         Make sure future DEFVAR_foo use correct types.
6658         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
6659         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
6660         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
6661         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
6662         * (DEFVAR_INT): Likewise.
6663         * redisplay.c (vertical_clip): Should be of type Fixnum.
6664         * redisplay.c (horizontal_clip): Likewise.
6665         * lisp.h (dump_add_opaque_int): New.
6666         (dump_add_opaque_fixnum): New.
6667
6668 2001-01-29  Andy Piper  <andy@xemacs.org>
6669
6670         * glyphs-widget.c (check_valid_int_or_function): allow symbols
6671         since they can be eval'ed
6672
6673 2001-01-29  Martin Buchholz  <martin@xemacs.org>
6674
6675         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
6676         Oops, XEmacs redefines `class'.  Use `typename' instead.
6677
6678 2001-01-28  Martin Buchholz  <martin@xemacs.org>
6679
6680         * dumper.c: Fix C++ compile errors.
6681
6682 2001-01-29  Martin Buchholz  <martin@xemacs.org>
6683
6684         * tparam.c: Use correct prototypes.
6685
6686 2001-01-28  Martin Buchholz  <martin@xemacs.org>
6687
6688         * sysproc.h: #include util.h for NetBSD's openpty.
6689
6690 2001-01-27  Martin Buchholz  <martin@xemacs.org>
6691
6692         More 64-bit correctness.
6693         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
6694         Use a typedef `fixnum' for the type used for DEFVAR_INT.
6695         Fix up comments.
6696         This finally finishes the 64-bit SGI port.
6697         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
6698         * symbols.c: Fix up comments and type casts.
6699         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
6700         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
6701         * symeval.h (Fixnum): New type.
6702         * symeval.h (symbol_value_type): Fix up comment.
6703
6704         * commands.h:
6705         * nt.c:
6706         * emacs.c:
6707         * data.c:
6708         * redisplay.c:
6709         * abbrev.c:
6710         * dired-msw.c:
6711         * event-Xt.c:
6712         * eldap.c:
6713         * window.c:
6714         * sound.c:
6715         * event-stream.c:
6716         * eval.c:
6717         * buffer.c:
6718         * mule-canna.c: A million DEFVAR_INTs here...
6719         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
6720         * extents.c:
6721         * cmdloop.c:
6722         * lisp.h:
6723         * select-x.c:
6724         * console-x.h:
6725         * event-msw.c:
6726         * mule-wnnfns.c:
6727         * hpplay.c:
6728         * ralloc.c:
6729         * alloc.c:
6730         * keymap.c:
6731         * profile.c:
6732         s/int/Fixnum/g in DEFVAR_INT declarations.
6733
6734 2001-01-26  Martin Buchholz  <martin@xemacs.org>
6735
6736         Port pdump to SGI alignment-sensitive environment.
6737         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
6738         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
6739         properly aligned.
6740         Define and use aligned reading and writing macros.
6741         Use buffered stdio instead of posix i/o for faster dumping.
6742         Eliminate kludgy 256 byte space for header.
6743         Read and write from dump file using structs for alignment safety.
6744         * dumper.c (pdump_align_stream): New.
6745         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
6746         * dumper.c (PDUMP_READ_ALIGNED): New.
6747         * dumper.c (PDUMP_WRITE_ALIGNED): New.
6748         * dumper.c (pdump_static_Lisp_Object): New struct.
6749         * dumper.c (pdump_static_pointer): New struct.
6750         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
6751         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
6752         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
6753         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
6754
6755         * dumper.c (pdump_backtrace):
6756         * dumper.c (pdump_get_indirect_count):
6757         * dumper.c (pdump_register_object):
6758         * dumper.c (pdump_register_struct):
6759         * dumper.c (pdump_reloc_one):
6760         * dumper.c (pdump_scan_by_alignment):
6761         * dumper.c (pdump_dump_from_root_struct_ptrs):
6762         * dumper.c (pdump_dump_opaques):
6763         * dumper.c (pdump_dump_rtables):
6764         * dumper.c (pdump_dump_from_root_objects):
6765         * dumper.c (pdump):
6766         * dumper.c (pdump_load_finish):
6767         Use aligned reading and writing.
6768
6769         * dumper.c (pdump_free): Make static.
6770         * dumper.c (pdump_hFile): Likewise.
6771         * dumper.c (pdump_hMap): Likewise.
6772
6773 2001-01-26  Martin Buchholz <martin@xemacs.org>
6774
6775         * XEmacs 21.2.43 "Terspichore" is released.
6776
6777 2001-01-25  Martin Buchholz  <martin@xemacs.org>
6778
6779         Type fiddling for window_config.saved_windows_count
6780         * window.c (struct window_config): 
6781         Make saved_windows_count member unsigned.
6782         * window.c (sizeof_window_config_for_n_windows): 
6783         Make parameter unsigned.
6784         * window.c (mark_window_config):
6785         * window.c (window_config_equal):
6786         * window.c (free_window_configuration):
6787         * window.c (Fset_window_configuration):
6788         * window.c (count_windows):
6789         * window.c (Fcurrent_window_configuration):
6790         * window.c (reinit_vars_of_window):
6791         Update all callers and users.
6792
6793 2001-01-25  Martin Buchholz  <martin@xemacs.org>
6794
6795         Alignment correctness for flexible arrays.
6796         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
6797         Make alignment-correct. Add interesting comments.
6798         * alloc.c (size_vector):
6799         * alloc.c (make_vector_internal):
6800         * alloc.c (make_bit_vector_internal):
6801         * alloc.c (sweep_bit_vectors_1):
6802         * fns.c (size_bit_vector):
6803         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
6804         * window.c (sizeof_window_config_for_n_windows): 
6805         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
6806
6807 2001-01-24  Martin Buchholz  <martin@xemacs.org>
6808
6809         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
6810
6811 2001-01-23  Andy Piper  <andy@xemacs.org>
6812
6813         * select.c (Fown_selection_internal): pass owned_p
6814
6815         * select-msw.c (mswindows_own_selection): New Signature.
6816
6817         * console.h (struct console_methods): add owned_p to
6818         _own_selection.
6819
6820         * select-x.c (x_own_selection): pass owned_p
6821         (hack_motif_clipboard_selection): use owned_p
6822         (vars_of_select_x): new variable -
6823         x_selection_strict_motif_ownership.
6824
6825 2001-01-23  Martin Buchholz  <martin@xemacs.org>
6826
6827         * specifier.h (specifier_data_offset): Remove pointless parens.
6828         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
6829
6830 2001-01-24  Martin Buchholz  <martin@xemacs.org>
6831
6832         Make Lisp_Object sizeof methods be alignment-correct.
6833         pdump must restore objects to the same alignment as the C compiler
6834         assumes.  It really matters on SGIs.
6835         * lstream.c (aligned_sizeof_lstream): New.
6836         (sizeof_lstream): Use aligned_sizeof_lstream.
6837         (Lstream_new): Likewise.
6838         * opaque.c (aligned_sizeof_opaque): New.
6839         (sizeof_opaque): Use aligned_sizeof_opaque.
6840         (make_opaque): Likewise.
6841         * specifier.c (aligned_sizeof_specifier): New.
6842         (sizeof_specifier): Use aligned_sizeof_specifier.
6843         (make_specifier_internal): Likewise.
6844
6845 2001-01-23  Martin Buchholz  <martin@xemacs.org>
6846
6847         * lstream.h (struct lstream): Use max_align_t for trailing data.
6848         * specifier.h (struct Lisp_Specifier): Likewise.
6849
6850 2001-01-22  Martin Buchholz  <martin@xemacs.org>
6851
6852         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
6853         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
6854         (CCL_SUSPEND): Likewise.
6855         (CCL_INVALID_CMD): Likewise.
6856         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
6857         (ccl_driver): Likewise.
6858         (CCL_WRITE_CHAR): Macro hygiene.
6859         (CCL_WRITE_STRING): Macro hygiene.
6860
6861 2001-01-22  Martin Buchholz  <martin@xemacs.org>
6862
6863         Port "portable" dumper to SunOS 4 and HP-UX.
6864         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
6865         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
6866         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
6867
6868 2001-01-22  Martin Buchholz  <martin@xemacs.org>
6869
6870         * lisp.h (ALIGNOF): A better definition for C++.
6871
6872 2001-01-20  Martin Buchholz  <martin@xemacs.org>
6873
6874         Macro hygiene.
6875         Fix printf warnings: int format, long int arg.
6876         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
6877         (PUSH_FAILURE_POINT): Use correct printf formats.
6878         (POP_FAILURE_POINT): Use correct printf formats.  
6879         Use do {...} while (0)
6880
6881 2001-01-20  Martin Buchholz <martin@xemacs.org>
6882
6883         * XEmacs 21.2.42 "Poseidon" is released.
6884
6885 2001-01-20  Martin Buchholz  <martin@xemacs.org>
6886
6887         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
6888
6889 2001-01-19  Martin Buchholz  <martin@xemacs.org>
6890
6891         De-kludgify FIXED_TYPE free list frobbing.
6892         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
6893         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
6894         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
6895         * alloc.c (Lisp_Free): New pseudo lisp object definition.
6896         * alloc.c (LRECORD_FREE_P): New.
6897         * alloc.c (MARK_LRECORD_AS_FREE): New.
6898         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
6899         * alloc.c (STRUCT_FREE_P): Deleted.
6900         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
6901         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
6902         * alloc.c (STRING_CHARS_FREE_P): New.
6903         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
6904         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
6905         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
6906         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
6907         * alloc.c (resize_string): Use new definitions.
6908         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
6909         * alloc.c (verify_string_chars_integrity): Use new definitions.
6910         * alloc.c (compact_string_chars): Use new definitions.
6911         * alloc.c: Update monster comments.
6912         * lrecord.h (lrecord_type): Add some new lrecord types for
6913         alloc.c's use.
6914
6915 2001-01-18  Martin Buchholz  <martin@xemacs.org>
6916
6917         Improve alignment hackery.
6918         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
6919         (max_align_t): Moved from opaque.h - general purpose.
6920         (ALIGN_PTR): Use size_t, not long.
6921         * opaque.h (max_align_t): Move to lisp.h.
6922
6923 2001-01-18  Norbert Koch  <nk@LF.net>
6924
6925         * gui.h: Fix and add prototypes to fix build problems.
6926
6927 2001-01-18  Martin Buchholz  <martin@xemacs.org>
6928
6929         temacs is going away, so `dump-temacs' is now a bad name.
6930         * .dbxrc (dump-temacs): Rename to `dmp'.
6931         * .gdbinit (dump-temacs): Rename to `dmp'.
6932
6933 2001-01-17  Andy Piper  <andy@xemacs.org>
6934
6935         * glyphs.c (print_image_instance): comment to make martin happy.
6936
6937         * glyphs-x.c (x_redisplay_widget): update faces after a frame
6938         change.
6939
6940         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
6941         activation.
6942         (mswindows_tab_control_redisplay): warning suppression.
6943
6944         * glyphs-widget.c (widget_update): re-write to cope with updated
6945         items.
6946         (widget_instantiate): use new gui_item functions.
6947         (tab_control_update): deleted.
6948         (progress_gauge_update): deleted.
6949         (image_instantiator_progress_guage): take out update reference.
6950         (image_instantiator_tree_view): ditto.
6951         (image_instantiator_tab_control): ditto.
6952
6953         * gui.c (widget_gui_parse_item_keywords): new function. Do things
6954         Right the new way.
6955         (gui_item_add_keyval_pair): re-write to cope with descriptors and
6956         return whether anything was changed.
6957         (update_gui_item_keywords): as it sounds.
6958
6959         * gui.h: declare widget_gui_parse_item_keywords.
6960
6961         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
6962         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
6963
6964 2001-01-17  Martin Buchholz <martin@xemacs.org>
6965
6966         * XEmacs 21.2.41 "Polyhymnia" is released.
6967
6968 2001-01-16  Didier Verna  <didier@xemacs.org>
6969
6970         * glyphs.c (image_instantiate): don't use fallbacks when
6971         instantiating a face's background pixmap by inheritance.
6972
6973 2001-01-14  Mike Sperber <mike@xemacs.org>
6974
6975         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
6976         Conditionalize accordingly.
6977
6978 2001-01-16  Martin Buchholz  <martin@xemacs.org>
6979
6980         * dumper.c (pdump_file_get): Fix a compiler warning.
6981
6982 2001-01-15  Martin Buchholz  <martin@xemacs.org>
6983
6984         Make Purify happy when pdumping.
6985         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
6986         iniitalizing all bits of new lisp object memory.
6987         * symbols.c (Fmake_local_variable): Likewise.
6988         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
6989         * symbols.c (Fdefvaralias): Likewise.
6990         * mule-charset.c (vars_of_mule_charset): Likewise.
6991
6992 2001-01-15  Martin Buchholz  <martin@xemacs.org>
6993         Add the `-nd' flag when running pre-dump operations under the debugger.
6994         * .dbxrc (run-temacs): Add `-nd'.
6995         * .dbxrc (update-elc): Likewise.
6996         * .dbxrc (dump-temacs): Likewise.
6997         * .gdbinit (run-temacs): Likewise.
6998         * .gdbinit (check-temacs): Likewise.
6999         * .gdbinit (update-elc): Likewise.
7000         * .gdbinit (dump-temacs): Likewise.
7001
7002 2001-01-14  Martin Buchholz  <martin@xemacs.org>
7003
7004         Allow building 64-bit executables on AIX with GNU malloc, e.g.
7005         export OBJECT_MODE=64
7006         configure --pdump --use-union-type=no
7007         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
7008         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
7009
7010         * miscplay.c (sndcnv8U_2mono):
7011         Avoid two uses of `++' in the same expression.
7012         Suppresses a GCC warning.
7013
7014 2001-01-13  Martin Buchholz  <martin@xemacs.org>
7015
7016         Make sure future compilers don't miscompile alloc.c.
7017         * alloc.c:
7018         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
7019         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
7020
7021 2001-01-12  Martin Buchholz  <martin@xemacs.org>
7022
7023         * dumper.c: A little post-pdump-rename comment fixup.
7024
7025 2001-01-09  Jerry James  <james@eecs.ku.edu>
7026
7027         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
7028
7029 2001-01-13  Martin Buchholz  <martin@xemacs.org>
7030
7031         * *.[ch]: Globally rename symbols using the following `pdump-rename'
7032         script:
7033         #!/bin/sh
7034         replace_symbol () {
7035           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
7036         }
7037
7038         replace_symbol pdump_wire_lists pdump_weak_object_chains
7039         replace_symbol pdump_wire_list dump_add_weak_object_chain
7040
7041         replace_symbol pdump_wires pdump_root_objects
7042         replace_symbol pdump_wire dump_add_root_object
7043
7044         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
7045         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
7046
7047         replace_symbol dumpstructinfos pdump_root_struct_ptrs
7048         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
7049         replace_symbol dumpstructinfo pdump_root_struct_ptr
7050         replace_symbol dumpstruct dump_add_root_struct_ptr
7051
7052         replace_symbol dumpopaque dump_add_opaque
7053         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
7054         replace_symbol dumpopaqueinfos pdump_opaques
7055         replace_symbol dumpopaqueinfo pdump_opaque
7056
7057         replace_symbol nb_structdump nb_root_struct_ptrs
7058         replace_symbol nb_opaquedump nb_opaques
7059
7060         replace_symbol align_table pdump_align_table
7061         replace_symbol dump_header pdump_header
7062
7063         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
7064         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
7065
7066
7067 2001-01-12  Martin Buchholz  <martin@xemacs.org>
7068
7069         * s/aix4.h: Keep the C for AIX compiler from overaggressively
7070         optimizing bytecount_to_charcount().
7071
7072 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
7073
7074         * config.h.in:
7075         (HAVE_DLFCN_H): Removed.
7076         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
7077
7078 2001-01-06  Martin Buchholz  <martin@xemacs.org>
7079
7080         Portable dumper maintainability improvements.
7081         * alloc.c (staticpro):
7082         * alloc.c (staticpro_nodump):
7083         * alloc.c (garbage_collect_1):
7084         * alloc.c (reinit_alloc_once_early):
7085         * alloc.c (init_alloc_once_early):
7086         * alloc.c: Move dumper functions to alloc.c.
7087         * dumper.c (pdump_backtrace):
7088         * dumper.c (pdump_dump_structs):
7089         * dumper.c (pdump_dump_opaques):
7090         * dumper.c (pdump_dump_rtables):
7091         * dumper.c (pdump_dump_wired):
7092         * dumper.c (pdump):
7093         * dumper.c (pdump_load_check):
7094         * dumper.c (pdump_load_finish):
7095         * dumper.c (pdump_file_unmap):
7096         * dumper.c (pdump_file_get):
7097         * dumper.c (pdump_resource_free):
7098         * dumper.c (pdump_resource_get):
7099         * dumper.c (pdump_file_free):
7100         * dumper.c (pdump_file_try):
7101         * dumper.c (pdump_load):
7102         Remove fixed size limits on staticpro(), staticpro_nodump(),
7103         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
7104         Remove custom code for dumping lrecord_implementations_table - use
7105         dumpopaque instead.
7106         Remove (most of the) custom code for dumping staticpros - dump it
7107         like any other dynarr.
7108
7109         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
7110         * dumper.c: Moved functions from alloc.c.
7111         * alloc.c (dumpstruct): Moved to dumper.c.
7112         * alloc.c (dumpopaque): Likewise.
7113         * alloc.c (pdump_wire): Likewise.
7114         * alloc.c (pdump_wire_list): Likewise.
7115
7116         * lisp.h (Dynarr_sizeof): New.
7117         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
7118         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
7119         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
7120
7121         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
7122         * lisp.h (dumpopaque): ditto.
7123         * lisp.h (pdump_wire): ditto.
7124         * lisp.h (pdump_wire_list): ditto.
7125
7126 2001-01-09  Martin Buchholz  <martin@xemacs.org>
7127
7128         * make-src-depend (PrintPatternDeps):
7129         Use `sort' to make output independent of perl version.
7130
7131 2001-01-08  Martin Buchholz  <martin@xemacs.org>
7132
7133         Port to Netbsd 1.5.
7134         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
7135         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
7136
7137 2001-01-03  Didier Verna  <didier@xemacs.org>
7138
7139         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
7140         that `focus_frame' is alive before thinking of calling
7141         `redisplay_redraw_cursor' on it.
7142
7143 2001-01-08  Martin Buchholz <martin@xemacs.org>
7144
7145         * XEmacs 21.2.40 is released.
7146
7147 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
7148
7149         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
7150
7151 2001-01-06  Martin Buchholz  <martin@xemacs.org>
7152
7153         * alloc.c (dbg_valmask): Make const.
7154         * alloc.c (dbg_typemask): Make const.
7155         * alloc.c (dbg_USE_UNION_TYPE): Make const.
7156         * alloc.c (dbg_valbits): Make const.
7157         * alloc.c (dbg_gctypebits): Make const.
7158
7159 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
7160
7161         * redisplay-x.c (x_bevel_area):
7162         redisplay.h (struct rune):
7163         Typo fixes in comments.
7164
7165 2001-01-05  Andy Piper  <andy@xemacs.org>
7166
7167         * glyphs-x.c (x_redisplay_widget): use size changed for offset
7168         adjustment.
7169
7170         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
7171
7172 2001-01-05  Martin Buchholz  <martin@xemacs.org>
7173
7174         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
7175
7176         * mule-ccl.c (stack_idx_of_map_multiple):
7177         Non const global data must not be initialized!
7178         Found by MIYASHITA Hisashi.
7179
7180 2001-01-02  Andy Piper  <andy@xemacs.org>
7181
7182         * frame.c (change_frame_size): make sure frame size is always
7183         marked as changed.
7184
7185         * glyphs.c (image_instance_layout): minor code reuse.
7186
7187         * window.c (Fcurrent_window_configuration): revert previous
7188         change.
7189
7190 2001-01-02  Martin Buchholz  <martin@xemacs.org>
7191
7192         * glyphs.h:
7193         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
7194
7195 2000-12-31  Andy Piper  <andy@xemacs.org>
7196
7197         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
7198         when widget gets unmapped.
7199
7200         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
7201         function. Make sure widgets losing focus don't just drop it.
7202         (handle_focus_event_1): record the widget with focus.
7203
7204 2000-12-31  Andy Piper  <andy@xemacs.org>
7205
7206         * window.c (allocate_window): use
7207         make_image_instance_cache_hash_table.
7208         (make_dummy_parent): ditto.
7209         (Fset_window_configuration): ditto.
7210
7211         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
7212
7213         * glyphs.c (process_image_string_instantiator): use
7214         INSTANTIATOR_TYPE.
7215         (get_image_instantiator_governing_domain): ditto.
7216         (normalize_image_instantiator): ditto.
7217         (instantiate_image_instantiator): ditto.
7218         (make_image_instance_1): ditto.
7219         (image_instantiate): ditto. Key on glyph *and* instantiator type.
7220         (instantiator_eq_equal): new function for use with instance hash
7221         tables.
7222         (instantiator_eq_hash): ditto.
7223         (make_image_instance_cache_hash_table): create a suitable hash
7224         table for storing image instances.
7225
7226         * elhash.h (hash_table_weakness): new internal weakness type
7227         HASH_TABLE_KEY_CAR_VALUE_WEAK.
7228         declare new functions.
7229
7230         * elhash.c (finish_marking_weak_hash_tables): introduce yet
7231         another weakness type for glyphs.
7232         (make_standard_lisp_hash_table): new function split out from
7233         make_general_lisp_hash_table.
7234         (make_lisp_hash_table): call make_standard_lisp_hash_table.
7235         (hash_table_instantiate): ditto.
7236         (Fmake_hash_table): ditto.
7237
7238 2000-12-31  Martin Buchholz <martin@xemacs.org>
7239
7240         * XEmacs 21.2.39 is released.
7241
7242 2000-12-29  Andy Piper  <andy@xemacs.org>
7243
7244         * menubar.c (menubar_visible_p_changed): signal the frame changed.
7245
7246         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
7247         the frame has changed so that we pick up geometry changes such as
7248         menubar visibility.
7249
7250 2000-12-28  Andy Piper  <andy@xemacs.org>
7251
7252         * lastfile.c (my_ebss): make a char array so we can pad the
7253         bss. Fixes cygwin unexec.
7254
7255         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
7256
7257 2000-12-26  Andy Piper  <andy@xemacs.org>
7258
7259         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
7260         comments and try and be more precise about a non-/SIGIO world.
7261         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
7262         SIGIO.
7263
7264         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
7265         we don't normalize to zero width or height.
7266
7267 2000-12-24  Andy Piper  <andy@xemacs.org>
7268
7269         * Makefile.in.in (ldflags): add -mwindows when appropriate.
7270
7271 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
7272
7273         * s/sco5.h: SCO 5 has pty support.
7274
7275 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
7276
7277         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
7278         input-method-xlib.c contains whole contents of input-method-xfs.c,
7279         so we can use input-method-xlib.c's code for USE_XFONTSET
7280         using #ifdefs.
7281         * input-method-xfs.c: removed.
7282
7283 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
7284
7285         * file-coding.h (enum coding_category_type): reorder enumerators to
7286         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
7287         (now one greater than largest real coding_category_type enumerator).
7288         * file-coding.c (coding_category_symbol, coding_category_by_priority,
7289         coding_category_system, fcd_descriptihon_1, decode_coding_category,
7290         Fcoding_category_list, Fset_coding_priority_list,
7291         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
7292         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
7293
7294 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
7295
7296         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
7297         * redisplay-output.c (redisplay_output_window): Clear top of window
7298         when face is changed.
7299         * redisplay-x.c (x_redraw_exposed_window): Call
7300         redisplay_clear_top_of_window.
7301         * redisplay.h: Publish redisplay_clear_top_of_window.
7302
7303 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
7304
7305         * buffer.c (Fkill_buffer): Map over all devices.
7306         * window.c (window_loop): Remove UNSHOW_BUFFER code.
7307         (list_windows): New function.
7308         (list_all_windows): Ditto.
7309         (Freplace_buffer_in_windows): Use them.
7310
7311 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
7312
7313         * database.c (berkdb_subtype): Recognize new subtype `queue'.
7314         (Fopen_database): Use `db_create' instead of `db_open'.
7315         (syms_of_database): Initialize Qqueue.
7316
7317 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
7318
7319         * buffer.c (common_init_complex_vars_of_buffer): Initialize
7320         buffer_local_face_property.
7321         * buffer.h (struct buffer): New member buffer_local_face_property.
7322         * window.c (Fset_window_buffer):  Mark window's face as changed
7323         when buffer has buffer local face.
7324         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
7325         * objects.c (color_after_change): Set buffer_local_face_property
7326         when locale of face specifier is buffer.
7327         * objects.c (font_after_change): Ditto.
7328         * objects.c (face_boolean_after_change): Ditto.
7329         * glyphs.c (image_after_change): Ditto.
7330
7331 2000-12-09  Dan Holmsand  <dan@eyebee.com>
7332
7333         * nt.c (mswindows_fstat): Report file permissions, volume serial
7334         number, etc. Code adapted from FSF Emacs 20.7.
7335
7336 2000-12-09  Dan Holmsand  <dan@eyebee.com>
7337
7338         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
7339         of stat when we don't have symbolic links, to make sure
7340         mswindows_stat is called on mswindows.
7341
7342 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
7343
7344         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
7345
7346 2000-12-12  Martin Buchholz  <martin@xemacs.org>
7347
7348         * doprnt.c (emacs_doprnt_1): More printing fixes.
7349         Make printing of numbers compatible with libc and FSF Emacs.
7350         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
7351         Use the system printf to do most of the hard work of formatting,
7352         instead of doprnt_1().
7353         Calculate memory to allocate for format string.
7354         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
7355         (doprnt_1): Cleaner code and documentation.
7356
7357 2000-12-01  Jerry James  <james@eecs.ukans.edu>
7358
7359         * Makefile.in.in: Use the loop variable to install headers.
7360
7361 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
7362
7363         * window.c (Fsplit_window): Don't invalidate face cache.
7364
7365 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
7366
7367         * minibuf.c (Fall_completions): Undo the previous change
7368         which removed checking elements start with space.
7369
7370 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
7371
7372         * mule-canna.c: Didier suppression.
7373
7374 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
7375
7376         * mule-canna.c: rename static unsigned char buf[] to key_buffer
7377         (warning suppression).  Add English comment translations.
7378
7379 2000-12-05  Martin Buchholz  <martin@xemacs.org>
7380
7381         * unexelfsgi.c (unexec): Better test for mmap failure.
7382
7383 2000-12-05  Martin Buchholz <martin@xemacs.org>
7384
7385         * XEmacs 21.2.38 is released.
7386
7387 2000-12-05  Martin Buchholz  <martin@xemacs.org>
7388
7389         * redisplay.c (bar-cursor): Make a user variable.
7390
7391         * symsinit.h: Add init_postgresql_from_environment.
7392
7393 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
7394
7395         * regex.c: Convert to clean C.
7396
7397 2000-12-05  Dan Holmsand  <dan@eyebee.com>
7398
7399         * realpath.c:
7400         Don't #include sysfile.h. Revert to duplicating PATH_MAX
7401         initialization.
7402         (sys_readlink): renamed to system_readlink to avoid conflict with
7403         the other sys_readlink.
7404
7405 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
7406
7407         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
7408
7409 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
7410
7411         * postgresql.c (init_postgresql_from_environment): new function.
7412         (vars_of_postgresql): Move code initializing Lisp variables out and
7413         into init_postgresql_from_environment.
7414         emacs.c (main_1): Call init_postgresql_from_environment if and only
7415         if running a dumped XEmacs.
7416
7417 2000-08-31  Dan Holmsand  <dan@eyebee.com>
7418
7419         * buffer.c: Make find-file-compare-truenames default to true on
7420         windows.
7421
7422         * realpath.c (win32_abs_start):
7423         (cygwin_readlink):
7424         (win32_readlink): New functions.
7425         (xrealpath): Return really real filenames on windows.
7426
7427         * fileio.c (Ffile_truename): Make file-truename work on windows.
7428
7429 2000-11-29  Didier Verna  <didier@xemacs.org>
7430
7431         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
7432         * faces.c (update_face_cachel_data): use it.
7433         * faces.c (add_face_cachel): use it. Complete background pixmap
7434         frobbing in face cache if `update_face_cachel_data' has not done so.
7435
7436 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
7437
7438         * search.c (string_match_1): Don't set last_thing_searched
7439         when search failed.
7440
7441 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
7442
7443         * buffer.c: Include casetab.h
7444         (common_init_complex_vars_of_buffer): Use new case-table object.
7445         * buffer.h: Include casetab.h
7446         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
7447         (DOWNCASE_TABLE_OF): Ditto.
7448         * bufslots.h: Remove char-tables and add case-table.
7449         * casetab.c: Include casetab.h
7450         (CASE_TABLE_P): Removed.
7451         (mark_case_table): New function.
7452         (allocate_case_table): New function.
7453         (Fcase_table_p): Use new case-table.
7454         (case_table_char): New function.
7455         (Fget_case_table): Ditto.
7456         (Fput_case_table): Ditto.
7457         (Fput_case_table_pair): Ditto.
7458         (Fcopy_case_table): Ditto.
7459         (Fcurrent_case_table): Return case-table.
7460         (Fstandard_case_table): Return case-table.
7461         (Fset_case_table): Fix doc-string.
7462         (set_case_table): Use case-table
7463         (syms_of_casetab): DEFSUBR new functions.
7464         (complex_vars_of_casetab): Set up standard case-table.
7465         * casetab.h: New file.
7466         * editfns.c: Include casetab.h
7467         (Fcompare_buffer_substrings): Use case-table.
7468         * inline.c: Include casetab.h
7469         * lisp.h: Remove bogus extern.
7470         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
7471         * search.c: Include casetab.h
7472         (TRANSLATE_ASCII): Removed.
7473         (TRANSLATE): Unconditionally translate character.
7474         (looking_at_1): Use case-table.
7475         (string_match_1): Ditto.
7476         (fast_string_match): Ditto.
7477         (search_command): Ditto.
7478         (search_buffer): Separate boyer_moore.  Check whether
7479         boyer_moore is possible.
7480         (simple_search): New function.
7481         (boyer_moore): Separated from search_buffer. Translate char.
7482
7483 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
7484
7485         * regex.c (RE_TR_ASCII): Removed.
7486         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
7487         (PATFETCH): Call PATFETCH_RAW.
7488         (PATFETCH_RAW): Fetch Emchar.
7489         (PATUNFETCH): Decrement charptr.
7490         (GET_BUFFER_SPACE): Rename b to buf_end.
7491         (BUF_PUSH): Ditto.
7492         (BUF_PUSH_2): Ditto.
7493         (BUF_PUSH_3): Ditto.
7494         (EXTEND_BUFFER): Ditto.
7495         (SET_LIST_BIT): Ditto.
7496         (regex_compile): Ditto.  Translate non ASCII char.
7497         (compile_range): Ditto.
7498         (re_search_2): Ditto.
7499         (re_match_2_internal): Compare Emchar.
7500         (bcmp_translate): Ditto.
7501
7502 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
7503
7504         * lisp.h (basic char/int typedefs):  comment improvement.
7505
7506 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
7507
7508         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
7509         unstomp inhibit_site_lisp.  Improve comments.
7510
7511 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
7512
7513         * mule-charset.c (Fcharset_property):  improve type checking, comments.
7514
7515 2000-11-28  Andy Piper  <andy@xemacs.org>
7516
7517         * redisplay-output.c (redisplay_output_subwindow): make sure we do
7518         clipped display for windows in the gutter also.
7519         (redisplay_display_boxes_in_window_p): change semantics of return
7520         codes to be more intuitive.
7521
7522         * gutter.h: declare display_boxes_in_gutter_p.
7523
7524         * gutter.c (display_boxes_in_gutter_p): new function for
7525         redisplay.
7526
7527 2000-11-22  Andy Piper  <andy@xemacs.org>
7528
7529         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
7530         autodetect domain.
7531
7532 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
7533
7534         * callproc.c (Fold_call_process_internal):
7535         * gpm.c (Freceive_gpm_event):
7536         (tty_get_foreign_selection): Might be just warning supression.
7537         * fileio.c (Fwrite_region_internal):
7538         (Fset_visited_file_modtime):
7539         * keymap.c (event_matches_key_specifier_p):
7540         Initialize GCPROed variable.
7541
7542         * menubar-x.c (command_builder_find_menu_accelerator):
7543         Initialize before use.
7544
7545 2000-11-23  Andy Piper  <andy@xemacs.org>
7546
7547         * unexcw.c (unexec): make the resulting executable executable.
7548
7549 2000-11-21  Martin Buchholz  <martin@xemacs.org>
7550
7551         * doc.c (get_doc_string):
7552         Use size_t, not int, for result of XSTRING_LENGTH.
7553
7554         * cmds.c (Fdelete_char):
7555         * cmds.c (Fpoint_at_eol):
7556         * cmds.c (Fself_insert_command):
7557         Use EMACS_INT, not int, for result of XINT.
7558         Someday, someone will want to insert more than 2**31 identical characters.
7559
7560         * cmds.c (Fdelete_char):
7561         * cmds.c (Fdelete_backward_char):
7562         * syntax.c (Fforward_word):
7563         * syntax.c (Fforward_comment):
7564         Make COUNT argument optional, for consistency with forward-char et al.
7565
7566 2000-11-22  Martin Buchholz  <martin@xemacs.org>
7567
7568         * lisp.h:
7569         * print.c (long_to_string):
7570         Return a useful value: the pointer at end of data written.
7571
7572         * doprnt.c:
7573         Use `static const char * const' for constant strings.
7574         (union printf_arg): Delete `i', `ui' members.
7575         (get_doprnt_args):
7576         (emacs_doprnt_1):
7577         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
7578         Do all printf-ing via the `l' specifier.
7579         Use EMACS_INT instead of int.
7580         Optimize.
7581
7582 2000-11-20  Didier Verna  <didier@xemacs.org>
7583
7584         * faces.c (update_face_cachel_data): don't frob the background
7585         pixmap when the window is being created. The face is needed but
7586         does not exist yet.
7587
7588 2000-11-20  Andy Piper  <andy@xemacs.org>
7589
7590         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
7591         messing with a debug environment.
7592
7593 2000-11-20  Martin Buchholz  <martin@xemacs.org>
7594
7595         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
7596
7597 2000-11-20  Martin Buchholz  <martin@xemacs.org>
7598
7599         * casetab.c (Fcase_table_p): Fix compile error and crash.
7600
7601 2000-11-18  Philip Aston  <philipa@mail.com>
7602
7603         * s/cygwin32.h: Cygwin has SVR4-like pty support.
7604
7605 2000-11-18  Martin Buchholz  <martin@xemacs.org>
7606
7607         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
7608         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
7609
7610 2000-11-17  Martin Buchholz  <martin@xemacs.org>
7611
7612         * config.h.in: Define HAVE_ELF_H if elf.h exists.
7613         * unexelf.c: Use HAVE_ELF_H.
7614         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
7615         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
7616         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
7617         Greg Harrington <greg_harrington@hotmail.com> provided a machine
7618         for testing.
7619         So this is an unexelfsgi.c from a different line of development.
7620
7621 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
7622
7623         * regex.c (RE_TR_ASCII): New function.
7624         (RE_TRANSLATE): Call it.
7625
7626 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
7627
7628         * buffer.h (TRT_TABLE_OF): Remove assert.
7629         (IN_TRT_TABLE_DOMAIN): Removed.
7630
7631 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
7632
7633         * free-hook.c (log_gcpro):
7634         (show_gcprohist): Add support for GCPRO5.
7635
7636 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
7637
7638         * emacs.c (main_1): Improve -sd error message when --pdump=no.
7639
7640 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
7641
7642         * symeval.h: Declare flush_all_buffer_local_cache.
7643
7644         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
7645         (flush_buffer_local_cache): Added.
7646         (flush_all_buffer_local_cache): Added.
7647
7648         * lrecord.h: Remove unused XD_LO_RESET_NIL.
7649
7650         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
7651         (pdump_dump_data): Ditto.
7652         (pdump_reloc_one): Ditto.
7653         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
7654         before dumping.
7655
7656
7657 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
7658
7659         * buffer.c: Remove if 0'ed entry.
7660         * buffer.h: Rewrite TRT to use char-table.
7661         * bufslots.h: Remove mirror tables.
7662         * casetab.c: Remove mirror tables.
7663         (CASE_TABLE_P): New macro.
7664         (Fcase_table_p): Element of a case table is string or char-table.
7665         (make_mirror_trt_table): Removed.
7666         (set_case_table): Setup char-table from strings for backward
7667         compatibility.
7668         * dired.c (Fdirectory_files):
7669         * dired-msw.c: (mswindows_get_files):
7670         * lisp.h: Change prototype of re_pattern_buffer.
7671         * regex.c: (RE_TRANSLATE): New macro.
7672         (TRANSLATE_P): Ditto.
7673         Change translate to type RE_TRANSLATE_TYPE.
7674         * regex.h: Define RE_TRANSLATE_TYPE
7675         * search.c (TRANSLATE): New macro.
7676         (TRANSLATE_ASCII): New macro.
7677         Translate table is changed to Lisp_Object.
7678         (signal_failure): Inhibit return.
7679
7680 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
7681
7682         * device-msw.c:
7683         * eldap.c:
7684         * event-Xt.c:
7685         * event-stream.c:
7686         * print.c:
7687         Do UNGCPRO before return.
7688
7689 2000-11-14  Martin Buchholz <martin@xemacs.org>
7690
7691         * XEmacs 21.2.37 is released.
7692
7693 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
7694
7695         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
7696         Add comments about discarded return value.
7697
7698 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
7699
7700         * callint.c:
7701         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
7702
7703 2000-10-27  Andy Piper  <andy@xemacs.org>
7704
7705         * gutter.c (Fset_default_gutter_position): default left and right
7706         gutters to visible.
7707         (calculate_gutter_size): calculate resonable heuristic for left
7708         and right gutter sizes.
7709         (specifier_vars_of_gutter): change left and right gutter sizes to
7710         autodetect.
7711         (calculate_gutter_size_from_display_lines): new function.
7712         (output_gutter): check for resizing on left and right gutters.
7713         (clear_gutter): don't special case top and left gutters.
7714         (specifier_vars_of_gutter): use new signature for
7715         set_specifier_caching.
7716
7717         * glyphs-x.c (x_redisplay_widget): spelling fix.
7718         * glyphs.c (specifier_vars_of_glyphs):
7719         * menubar.c (specifier_vars_of_menubar):
7720         * redisplay.c (specifier_vars_of_redisplay):
7721         * toolbar.c (specifier_vars_of_toolbar):
7722         * window.c (specifier_vars_of_window):
7723         * scrollbar.c (specifier_vars_of_scrollbar):
7724         (complex_vars_of_scrollbar): use new signature for
7725         set_specifier_caching.
7726
7727         * specifier.c (set_specifier_caching): include recompute flag.
7728         (recompute_one_cached_specifier_in_window): always recompute if
7729         flag set.
7730         (recompute_one_cached_specifier_in_frame): ditto.
7731
7732         * specifier.h (struct specifier_caching): add recompute flag.
7733
7734 2000-10-24  Andy Piper  <andy@xemacs.org>
7735
7736         * unexcw.c (copy_executable_and_dump_data_section): add new
7737         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
7738         5.0 happy.
7739
7740 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
7741
7742         * console-x.h (x_device): New member modifier_release_time.
7743         * event-Xt.c (x_handle_sticky_modifiers):
7744         Bound interval modifier keys are sticky.
7745         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
7746         * events.h: extern it.
7747
7748 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
7749
7750         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
7751
7752 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
7753
7754         * event-stream.c (execute_command_event): Preserve current_events
7755         and the like when event is misc-user-event.
7756         Inhibit quit during the call to maybe_echo_keys.
7757
7758 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
7759
7760         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
7761         symlink when buffer is killed.
7762         (inhibit_clash_detection): New variable.
7763
7764 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
7765
7766         * console.c (Fset_input_method): Trigger redisplay on tty.
7767
7768 2000-11-07  Martin Buchholz  <martin@xemacs.org>
7769
7770         * process.c (Fprocess_status): Revert to previous behavior:
7771         (process-status "nosuchprocess") ==> nil
7772
7773 2000-11-06  Martin Buchholz  <martin@xemacs.org>
7774
7775         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
7776         Work around another GCC 2.95.2 optimizer bug.
7777
7778 2000-11-02  Martin Buchholz  <martin@xemacs.org>
7779
7780         * process.c (Fget_process): Use LIST_LOOP_2.
7781         (kill_buffer_processes): Use LIST_LOOP_2.
7782
7783         * minibuf.c (Fall_completions):
7784         Delete old non-functional code for FSF fourth argument.
7785
7786         * frame.c (frame_matches_frame_spec):
7787         Renamed from `frame_matches_frametype'.  Update all callers.
7788         (device_matches_device_spec):
7789         Renamed from 'device_matches_console_spec'.  Update all callers.
7790
7791         * doc.c (Fsubstitute_command_keys):
7792         Remove buffer overflow crash.  Small code cleanups.
7793
7794         * casetab.c (check_case_table): Simpler code.
7795
7796         * window.c (Freplace_buffer_in_windows):
7797         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
7798         (and similar implementation) as Fdelete_windows_on.
7799         Update all callers.
7800
7801         * alloc.c (Fmake_list):
7802         * alloc.c (make_vector):
7803         * alloc.c (Fmake_vector):
7804         * alloc.c (make_bit_vector):
7805         * alloc.c (Fmake_bit_vector):
7806         * alloc.c (Fbit_vector):
7807         * alloc.c (Fmake_string):
7808         * alloc.c (Fpurecopy):
7809         * alloc.c (Fmemory_limit):
7810         * buffer.c:
7811         * buffer.c (Fget_buffer):
7812         * buffer.c (Fkill_buffer):
7813         * buffer.c (complex_vars_of_buffer):
7814         * bytecode.c (Fcompiled_function_stack_depth):
7815         * callint.c (Fprefix_numeric_value):
7816         * event-stream.c:
7817         * event-stream.c (Fread_key_sequence):
7818         * casetab.c:
7819         * casetab.c (Fcase_table_p):
7820         * casetab.c (check_case_table):
7821         * casetab.c (Fset_case_table):
7822         * casetab.c (Fset_standard_case_table):
7823         * chartab.c:
7824         * chartab.c (Fchar_table_type):
7825         * chartab.c (Freset_char_table):
7826         * chartab.c (Fget_char_table):
7827         * chartab.c (Fget_range_char_table):
7828         * chartab.c (Fput_char_table):
7829         * chartab.c (Fmap_char_table):
7830         * chartab.c (Fcategory_table_p):
7831         * chartab.c (Fcheck_category_at):
7832         * chartab.c (Fchar_in_category_p):
7833         * chartab.c (Fcategory_table):
7834         * chartab.c (Fcopy_category_table):
7835         * chartab.c (Fset_category_table):
7836         * chartab.c (Fcategory_designator_p):
7837         * chartab.c (Fcategory_table_value_p):
7838         * cmds.c (Fdelete_char):
7839         * cmds.c (Fdelete_backward_char):
7840         * cmds.c (Fself_insert_command):
7841         * cmds.c (Fself_insert_internal):
7842         * console.c (Fvalid_console_type_p):
7843         * console.c (Fcdfw_console):
7844         * console.c (Fconsole_type):
7845         * console.c (Fconsole_name):
7846         * console.c (Fconsole_device_list):
7847         * console.c (Fconsole_on_window_system_p):
7848         * data.c:
7849         * data.c (Feq):
7850         * data.c (Fold_eq):
7851         * data.c (Fsubr_interactive):
7852         * data.c (Fchar_to_int):
7853         * data.c (Fint_to_char):
7854         * data.c (Fsetcar):
7855         * data.c (Fsetcdr):
7856         * data.c (Fnumber_to_string):
7857         * data.c (Fstring_to_number):
7858         * data.c (Frem):
7859         * database.c (mark_database):
7860         * database.c (finalize_database):
7861         * database.c (Fdatabase_live_p):
7862         * database.c (Fdatabasep):
7863         * device-x.c (Fx_get_resource):
7864         * device.c (Fdfw_device):
7865         * dired.c:
7866         * dired.c (Ffile_name_completion):
7867         * dired.c (Ffile_name_all_completions):
7868         * dired.c (Fuser_name_completion):
7869         * dired.c (Fuser_name_completion_1):
7870         * dired.c (Fuser_name_all_completions):
7871         * doc.c (Fdocumentation):
7872         * doc.c (Fdocumentation_property):
7873         * doc.c (Fsubstitute_command_keys):
7874         * editfns.c:
7875         * editfns.c (Fchar_to_string):
7876         * editfns.c (Fstring_to_char):
7877         * editfns.c (Ftemp_directory):
7878         * editfns.c (Finsert_char):
7879         * editfns.c (Fbuffer_substring_no_properties):
7880         * editfns.c (Fnarrow_to_region):
7881         * editfns.c (Fchar_equal):
7882         * editfns.c (Fchar_Equal):
7883         * editfns.c (Ftranspose_regions):
7884         * emacs.c (Fdump_emacs):
7885         * eval.c (Fthrow):
7886         * eval.c (Fcommand_execute):
7887         * eval.c (Fautoload):
7888         * eval.c (Fbacktrace):
7889         * eval.c (Fbacktrace_frame):
7890         * events.c:
7891         * events.c (Fcopy_event):
7892         * events.c (Fcharacter_to_event):
7893         * events.c (Fevent_button):
7894         * events.c (Fevent_process):
7895         * extents.c:
7896         * extents.c (Fnext_extent_change):
7897         * extents.c (Fextent_property):
7898         * faces.c (Ffacep):
7899         * faces.c (Fmake_face):
7900         * file-coding.c:
7901         * file-coding.c (Fencode_shift_jis_char):
7902         * file-coding.c (Fencode_big5_char):
7903         * fileio.c (Ffile_name_directory):
7904         * fileio.c (Ffile_name_nondirectory):
7905         * fileio.c (Ffile_name_as_directory):
7906         * fileio.c (Fdirectory_file_name):
7907         * fileio.c (Ffile_truename):
7908         * fileio.c (Fsubstitute_in_file_name):
7909         * fileio.c (Ffile_modes):
7910         * fileio.c (Fset_file_modes):
7911         * fileio.c (Fset_default_file_modes):
7912         * fileio.c (Fverify_visited_file_modtime):
7913         * floatfns.c (Facos):
7914         * floatfns.c (Fasin):
7915         * floatfns.c (Fatan):
7916         * floatfns.c (Fcos):
7917         * floatfns.c (Fsin):
7918         * floatfns.c (Ftan):
7919         * floatfns.c (Fbessel_j0):
7920         * floatfns.c (Fbessel_j1):
7921         * floatfns.c (Fbessel_jn):
7922         * floatfns.c (Fbessel_y0):
7923         * floatfns.c (Fbessel_y1):
7924         * floatfns.c (Fbessel_yn):
7925         * floatfns.c (Ferf):
7926         * floatfns.c (Ferfc):
7927         * floatfns.c (Flog_gamma):
7928         * floatfns.c (Fexp):
7929         * floatfns.c (Fexpt):
7930         * floatfns.c (Flog):
7931         * floatfns.c (Flog10):
7932         * floatfns.c (Fsqrt):
7933         * floatfns.c (Fcube_root):
7934         * floatfns.c (Facosh):
7935         * floatfns.c (Fasinh):
7936         * floatfns.c (Fatanh):
7937         * floatfns.c (Fcosh):
7938         * floatfns.c (Fsinh):
7939         * floatfns.c (Ftanh):
7940         * floatfns.c (Fabs):
7941         * floatfns.c (Ffloat):
7942         * floatfns.c (Flogb):
7943         * floatfns.c (Fceiling):
7944         * floatfns.c (Ffloor):
7945         * floatfns.c (Fround):
7946         * floatfns.c (Ftruncate):
7947         * floatfns.c (Ffceiling):
7948         * floatfns.c (Fffloor):
7949         * floatfns.c (Ffround):
7950         * floatfns.c (Fftruncate):
7951         * fns.c (Fstring_equal):
7952         * fns.c (Fstring_lessp):
7953         * fns.c (concat2):
7954         * fns.c (concat3):
7955         * fns.c (vconcat2):
7956         * fns.c (vconcat3):
7957         * fns.c (Fsubstring):
7958         * fns.c (Fassoc):
7959         * fns.c (Fold_assoc):
7960         * fns.c (assoc_no_quit):
7961         * fns.c (Fassq):
7962         * fns.c (Fold_assq):
7963         * fns.c (assq_no_quit):
7964         * fns.c (Frassoc):
7965         * fns.c (Fold_rassoc):
7966         * fns.c (Frassq):
7967         * fns.c (Fold_rassq):
7968         * fns.c (rassq_no_quit):
7969         * fns.c (Fremassoc):
7970         * fns.c (remassoc_no_quit):
7971         * fns.c (Fremassq):
7972         * fns.c (remassq_no_quit):
7973         * fns.c (Fremrassoc):
7974         * fns.c (Fremrassq):
7975         * fns.c (remrassq_no_quit):
7976         * fns.c (Fsort):
7977         * fns.c (Fplist_get):
7978         * fns.c (Fplist_put):
7979         * fns.c (Fplist_remprop):
7980         * fns.c (Fplist_member):
7981         * fns.c (Flax_plist_get):
7982         * fns.c (Flax_plist_put):
7983         * fns.c (Flax_plist_remprop):
7984         * fns.c (Flax_plist_member):
7985         * fns.c (Fequal):
7986         * fns.c (Fold_equal):
7987         * fns.c (Frequire):
7988         * fns.c (Fbase64_encode_region):
7989         * fns.c (Fbase64_encode_string):
7990         * fns.c (Fbase64_decode_region):
7991         * frame.c:
7992         * frame.c (frame_matches_frame_spec):
7993         * frame.c (device_matches_device_spec):
7994         * frame.c (next_frame):
7995         * frame.c (previous_frame):
7996         * frame.c (Fnext_frame):
7997         * frame.c (Fprevious_frame):
7998         * frame.c (Fframe_property):
7999         * frame.c (Fset_frame_height):
8000         * frame.c (Fset_frame_size):
8001         * frame.h:
8002         * glyphs.c:
8003         * glyphs.c (if):
8004         * glyphs.c (decode_error_behavior_flag):
8005         * glyphs.c (Fmake_image_instance):
8006         * indent.c (Findent_to):
8007         * intl.c (Fignore_defer_gettext):
8008         * keymap.c (Fkeymapp):
8009         * keymap.c (Flookup_key):
8010         * lread.c:
8011         * lread.c (Fload_internal):
8012         * lread.c (Feval_buffer):
8013         * lread.c (Feval_region):
8014         * macros.c (Fexecute_kbd_macro):
8015         * marker.c (set_marker_internal):
8016         * marker.c (Fset_marker):
8017         * marker.c (set_marker_restricted):
8018         * marker.c (Fcopy_marker):
8019         * marker.c (noseeum_copy_marker):
8020         * menubar.c:
8021         * menubar.c (Fpopup_menu):
8022         * minibuf.c:
8023         * mule-charset.c (Fcharset_name):
8024         * mule-charset.c (Fchar_charset):
8025         * mule-charset.c (Fchar_octet):
8026         * mule-charset.c (Fsplit_char):
8027         * mule-wnnfns.c (Fwnn_open):
8028         * mule-wnnfns.c (Fwnn_dict_comment):
8029         * mule-wnnfns.c (Fwnn_quit_henkan):
8030         * mule-wnnfns.c (Fwnn_word_toroku):
8031         * mule-wnnfns.c (Fwnn_word_sakujo):
8032         * mule-wnnfns.c (Fwnn_word_use):
8033         * mule-wnnfns.c (Fwnn_hindo_set):
8034         * objects.c:
8035         * objects.c (Fmake_color_instance):
8036         * objects.c (Fmake_font_instance):
8037         * print.c (Fwrite_char):
8038         * process.c:
8039         * process.c (mark_process):
8040         * process.c (print_process):
8041         * process.c (get_process_from_usid):
8042         * process.c (Fprocessp):
8043         * process.c (Fprocess_live_p):
8044         * process.c (Fget_process):
8045         * process.c (Fget_buffer_process):
8046         * process.c (get_process):
8047         * process.c (Fprocess_id):
8048         * process.c (Fprocess_name):
8049         * process.c (Fprocess_command):
8050         * process.c (init_process_io_handles):
8051         * process.c (start_process_unwind):
8052         * process.c (Fstart_process_internal):
8053         * process.c (Fopen_multicast_group_internal):
8054         * process.c (Fset_process_window_size):
8055         * process.c (read_process_output):
8056         * process.c (send_process):
8057         * process.c (Fprocess_tty_name):
8058         * process.c (Fset_process_buffer):
8059         * process.c (Fprocess_buffer):
8060         * process.c (Fprocess_mark):
8061         * process.c (set_process_filter):
8062         * process.c (Fset_process_filter):
8063         * process.c (Fprocess_filter):
8064         * process.c (Fprocess_send_region):
8065         * process.c (Fprocess_send_string):
8066         * process.c (exec_sentinel):
8067         * process.c (Fset_process_sentinel):
8068         * process.c (Fprocess_sentinel):
8069         * process.c (status_notify):
8070         * process.c (Fprocess_status):
8071         * process.c (Fprocess_exit_status):
8072         * process.c (process_send_signal):
8073         * process.c (Fprocess_send_eof):
8074         * process.c (deactivate_process):
8075         * process.c (remove_process):
8076         * process.c (Fdelete_process):
8077         * process.c (kill_buffer_processes):
8078         * process.c (Fprocess_kill_without_query):
8079         * process.c (Fprocess_kill_without_query_p):
8080         * rangetab.c:
8081         * rangetab.c (Fget_range_table):
8082         * rangetab.c (Fput_range_table):
8083         * rangetab.c (Fremove_range_table):
8084         * rangetab.c (Fclear_range_table):
8085         * search.c:
8086         * search.c (Fskip_chars_forward):
8087         * search.c (Fskip_chars_backward):
8088         * search.c (Fskip_syntax_forward):
8089         * search.c (Fskip_syntax_backward):
8090         * search.c (search_command):
8091         * search.c (Freplace_match):
8092         * search.c (Fregexp_quote):
8093         * select.c (Fown_selection_internal):
8094         * select.c (Fselection_owner_p):
8095         * select.c (Fselection_exists_p):
8096         * select.c (Fget_selection_internal):
8097         * specifier.c:
8098         * symbols.c:
8099         * symbols.c (Fintern):
8100         * symbols.c (Fintern_soft):
8101         * symbols.c (Funintern):
8102         * symbols.c (Fapropos_internal):
8103         * symbols.c (Fset_default):
8104         * syntax.c:
8105         * syntax.c (Fsyntax_table_p):
8106         * syntax.c (Fcopy_syntax_table):
8107         * syntax.c (Fset_syntax_table):
8108         * syntax.c (Fchar_syntax):
8109         * syntax.c (syntax_match):
8110         * syntax.c (Fmatching_paren):
8111         * syntax.c (Fforward_word):
8112         * syntax.c (scan_lists):
8113         * syntax.c (Fscan_lists):
8114         * syntax.c (Fscan_sexps):
8115         * syntax.c (Fparse_partial_sexp):
8116         * toolbar.c (Fcheck_toolbar_button_syntax):
8117         * tooltalk.doc:
8118         * window.c:
8119         * window.c (Fwindowp):
8120         * window.c (Fwindow_live_p):
8121         * window.c (Fwindow_point):
8122         * window.c (Fdelete_window):
8123         * window.c (Fnext_window):
8124         * window.c (Fprevious_window):
8125         * window.c (Fother_window):
8126         * window.c (window_loop):
8127         * window.c (Fget_lru_window):
8128         * window.c (Fsplit_window):
8129         * window.c (Fenlarge_window):
8130         * window.c (Fenlarge_window_pixels):
8131         * window.c (Fshrink_window):
8132         * window.c (Fshrink_window_pixels):
8133         * window.c (change_window_height):
8134         * window.c (Fwindow_configuration_p):
8135         * window.c (Fcurrent_window_configuration):
8136         * window.h:
8137         * casefiddle.c (casify_object):
8138         * casefiddle.c (Fupcase):
8139         * casefiddle.c (Fdowncase):
8140         * casefiddle.c (Fcapitalize):
8141         * casefiddle.c (Fupcase_initials):
8142         * casefiddle.c (casify_region_internal):
8143         * casefiddle.c (casify_region):
8144         * casefiddle.c (Fupcase_region):
8145         * casefiddle.c (Fdowncase_region):
8146         * casefiddle.c (Fcapitalize_region):
8147         * casefiddle.c (Fupcase_initials_region):
8148         * casefiddle.c (Fupcase_word):
8149         * casefiddle.c (Fdowncase_word):
8150         * casefiddle.c (Fcapitalize_word):
8151         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
8152         Replace 0 with '\0' when working with bytes.
8153         Replace initial "(" with "\(" in docstrings.
8154
8155 2000-11-01  Martin Buchholz  <martin@xemacs.org>
8156
8157         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
8158
8159         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
8160
8161 2000-10-31  Martin Buchholz  <martin@xemacs.org>
8162
8163         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
8164
8165 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
8166
8167         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
8168         correctly.
8169
8170 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
8171
8172         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
8173         (inhibit_auto_save_session): New variable.
8174         (vars_of_fileio): Declare and initialize them.
8175         * fileio.c (Fdo_auto_save): Don't create session file if
8176         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
8177
8178 2000-10-31  Martin Buchholz  <martin@xemacs.org>
8179
8180         * sgiplay.c (play_internal): C++ compilability.
8181         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
8182         * callproc.c (Fold_call_process_internal):
8183         Remove unused vars `env', `first'.
8184         * scrollbar.c (update_scrollbar_instance):
8185         #### unused var `current_window'.
8186         * redisplay-tty.c: Put currently unused vars insert_mode_on,
8187         etc. within #ifdef NOT_YET.
8188         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
8189         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
8190         * specifier.c (specifier_instance):
8191         #### unused var `tag'.
8192         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
8193
8194 2000-10-27  Martin Buchholz  <martin@xemacs.org>
8195
8196         * fns.c (Fbutlast):
8197         * fns.c (list_sort):
8198         * fns.c (Ffillarray):
8199         * fns.c (bytecode_nconc2):
8200         * fns.c (Fnconc):
8201         * fns.c (mapcar1):
8202         * fns.c (Fmapconcat):
8203         Be pedantically 64-bit correct.  For the time when someone will
8204         want to have a list with length > 2**32.
8205
8206         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
8207         Work around MIPSpro compiler bug.
8208
8209         * process-unix.c (unix_kill_child_process): Add snarky comment.
8210         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
8211
8212         * config.h.in: Oops, _getpt ==> _getpty
8213
8214 2000-10-26  Martin Buchholz  <martin@xemacs.org>
8215
8216         * config.h.in:
8217         * regex.c:
8218         Use void*, not char*, as return type of alloca().
8219
8220         * alloc.c (free_marker): Side effect inside assert expression!
8221
8222 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
8223
8224         * mule-charset.c (Fset_charset_ccl_program): To check
8225         if the given ccl program is valid, use setup_ccl_program()
8226         instead of CHECK_VECTOR().
8227         (Fmake_charset): Likewise.
8228
8229 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
8230
8231         * faces.c (get_extent_fragment_face_cache_index):
8232         Fix cachel.merged_faces memory leak.
8233
8234 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
8235
8236         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
8237         Reset MSB of octets obtained by DECODE_SJIS
8238         because of the incompatibility with Emacs.
8239         (ccl_driver)<CCL_ENCODE_SJIS>:
8240         Set MSB of octets before passing them to
8241         ENCODE_SJIS because of the incompatibility
8242         with Emacs.
8243
8244 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
8245
8246         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
8247         (DECLARE_LRECORD): Undo the last change.
8248         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
8249
8250 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
8251
8252         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
8253         the implementation to lrecord_implementations_table.
8254
8255 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
8256
8257         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
8258         initial value of `lrecord_type_##c_name' and
8259         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
8260         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
8261         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
8262         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
8263         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
8264
8265 2000-10-17  Martin Buchholz  <martin@xemacs.org>
8266
8267         * miscplay.c (sndcnv8S_2mono):
8268         (sndcnv2monounsigned):
8269         (sndcnvULaw_2linear):
8270         (sndcnv16swap):
8271         Remove implementation-defined behavior.
8272
8273 2000-10-12  Martin Buchholz  <martin@xemacs.org>
8274
8275         * input-method-xlib.c: Warning suppression.
8276
8277 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
8278
8279         * mule-ccl.c: Sync up with Emacs 21.0.90.
8280         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
8281         Do nothing.
8282         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
8283         Likewise.
8284         (ccl_driver[WriteMultibyteChar2]): Bug fix.
8285         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
8286         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
8287         leading char belongs to official 2-dimensional charset.
8288         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
8289         write the given character as is.  Otherwise,
8290         if it is a multibyte char, convert it by
8291         non_ascii_set_charptr_emchar, then write it.
8292         (CCL_WRITE_STRING): Likewise.
8293         (ccl_get_compiled_code): New function.
8294         (setup_ccl_program): When ccl_prog is invalid,
8295         return -1.
8296         (Fregister_code_conversion_map): New function.
8297         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
8298
8299         * mule-ccl.h: Sync up with Emacs 21.0.90.
8300         (Fregister_ccl_program): export it.
8301
8302         * redisplay-msw.c (separate_textual_runs):
8303         If ccl program is not valid, don't do ccl conversion.
8304
8305         * redisplay-x.c (separate_textual_runs): Ditto.
8306
8307         * file-coding.c (Fmake_coding_system):
8308         When type is ccl and value is vector, register it
8309         with a proper symbol.  And checks whether the
8310         given ccl program is valid.
8311         (mule_decode): When calling ccl_driver, if src indicates
8312         NULL pointer, set an empty string instead.
8313         (mule_encode): Likewise.
8314
8315 2000-10-11  Martin Buchholz  <martin@xemacs.org>
8316
8317         The following large batch of changes gets us back to a state of
8318         C++ compilability.  Extbyte is now a char, which means that
8319         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
8320
8321         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
8322
8323         * sound.c (Fplay_sound): Type correctness.
8324
8325         * select-x.c (hack_motif_clipboard_selection): Type correctness.
8326         (x_get_window_property): Type correctness.
8327         (receive_incremental_selection): unsigned char ==> Extbyte
8328         (selection_data_to_lisp_data): unsigned char ==> Extbyte
8329         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
8330         (Fx_store_cutbuffer_internal): Type correctness.
8331
8332         * process-unix.c (try_to_initialize_subtty): Type correctness.
8333
8334         * objects-x.c (x_print_color_instance): Type correctness.
8335         (x_print_font_instance): Type correctness.
8336         (x_list_fonts): SExtbyte ==> Extbyte.
8337         (valid_x_font_name_p): SExtbyte ==> Extbyte.
8338         (x_find_charset_font): SExtbyte ==> Extbyte.
8339         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
8340         (truename_via_XListFonts): SExtbyte ==> Extbyte.
8341         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
8342         Use bufbyte_strcmp.
8343
8344         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
8345         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
8346         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
8347         (BYTE_C0_P): Use bit ops for char-signedness safety.
8348         (BYTE_C1_P): Use bit ops for char-signedness safety.
8349         (CHARSET_BY_LEADING_BYTE):
8350         (CHARSET_BY_ATTRIBUTES):
8351         Always use inline function.
8352         Use type_checking_assert.
8353         Hide chlook.
8354
8355         * mule-charset.c (non_ascii_charptr_copy_char):
8356         Modify to work with both ASCII and non-ASCII characters.
8357         Improve docs and variable names.
8358         Replace over-clever fall-through switch with a simple loop.
8359         (Lstream_get_emchar_1):
8360         Replace over-clever fall-through switch with a simple loop.
8361
8362         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
8363         Warning suppression.
8364
8365         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
8366         the return value of Lstream_getc, which could be EOF as well.
8367
8368         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
8369
8370         * lisp.h: Make Extbyte a char, not unsigned char, so that external
8371         APIs can be used on Extbytes without casts.  Risky!
8372         (SExtbyte): Remove.
8373         (UExtbyte): Remove.
8374
8375         * input-method-xlib.c (XIM_init_device):
8376         Use Xlib.h instead of IntrinsicP.h.
8377         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
8378         which will break in X11R7.
8379         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
8380         to call XRegisterIMInstantiateCallback with correct types.
8381
8382         * gui-x.c (button_item_to_widget_value): Type correctness.
8383
8384         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
8385
8386         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
8387         (xbm_instantiate_1): Type correctness.
8388         (BUILD_GLYPH_INST):  Type correctness.
8389
8390         * fileio.c (Fsubstitute_in_file_name): Type correctness.
8391
8392         * file-coding.c:
8393         (decode_coding_sjis):
8394         (decode_coding_big5):
8395         (decode_coding_ucs4):
8396         (decode_coding_utf8):
8397         (decode_coding_iso2022):
8398         (decode_coding_no_conversion):
8399         Make all decoding functions take an Extbyte * arg.
8400         (encode_coding_sjis):
8401         (encode_coding_big5):
8402         (encode_coding_ucs4):
8403         (encode_coding_utf8):
8404         (encode_coding_iso2022):
8405         (encode_coding_no_conversion):
8406         Make all encoding functions take a Bufbyte * arg.
8407         Use size_t instead of unsigned int for memory sizes.
8408         Only cast to unsigned char whenever dereferencing Extbyte *.
8409
8410         * doc.c (unparesseuxify_doc_string): Type correctness.
8411
8412         * console-x.c (split_up_display_spec):
8413         Rewrite without using details of internal string representation.
8414         (x_semi_canonicalize_device_connection): Type correctness.
8415
8416         * config.h.in:
8417         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
8418         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
8419         (HAVE_XFREE386): Removed.
8420
8421         * buffer.h (DEC_CHARPTR): `const' correctness.
8422         (bufbyte_strcmp): New.
8423         (bufbyte_memcmp): New.
8424
8425         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
8426
8427         * buffer.h (XCHAR_OR_CHAR_INT):
8428         Always use inline function.
8429         Remove redundant type checking assert() - XINT will abort quite nicely.
8430
8431 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
8432
8433         * search.c (Freplace_match): Set newtext to an empty string.
8434
8435 2000-10-10  Martin Buchholz  <martin@xemacs.org>
8436
8437         * s/decosf1-3.h: Remove #include of stropts.h
8438         * s/ptx.h: Remove #include of stropts.h
8439         * s/usg5-4.h: Remove #include of stropts.h
8440         * sysproc.h:
8441         * config.h.in:
8442         Use stropts.h, not sys/stropts.h.
8443         Use strtio.h, not sys/strtio.h.
8444
8445 2000-10-04  Martin Buchholz <martin@xemacs.org>
8446
8447         * XEmacs 21.2.36 is released.
8448
8449 2000-09-21  Andy Piper  <andy@xemacs.org>
8450
8451         * glyphs-x.c (x_redisplay_widget): make sure non-structural
8452         changes still involve copying the widget tree.
8453         (update_widget_face): make sure a change is register in the widget
8454         tree. Call update_tab_widget_face appropriately.
8455         (update_tab_widget_face): ditto.
8456         (x_tab_control_redisplay): make sure non-structural changes still
8457         involve copying the widget tree.
8458
8459 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
8460
8461         * lread.c (locate_file): Check the path element is non-nil.
8462
8463 2000-10-02  Martin Buchholz  <martin@xemacs.org>
8464
8465         * lisp.h: Warning suppression for SCO compilers.
8466
8467         * redisplay-tty.c (reset_tty_modes): Fix crash.
8468         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
8469
8470 2000-09-27  Martin Buchholz  <martin@xemacs.org>
8471
8472         Big signal/process handling overhaul.  Bugs fixed:
8473         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
8474         M-x comint-kill-subjob should work for both values nil and t of
8475         process-connection-type. It was broken on most platforms.
8476         Testing on Irix and Cygwin still needed.  Other plaforms tested.
8477         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
8478         * process-unix.c: Signal/Process handling overhaul.
8479         (pty_name): make 64 bytes, as `expect' does, for paranoia.
8480         (allocate_pty): Use all available modern methods of allocating
8481         ptys, falling back to old style BSD allocation as a last resort.
8482         Use allegedly more secure Unix98 pty allocation by default.
8483         (allocate_pty_the_old_fashioned_way): New. the last resort.
8484         (unix_create_process): Push ptem, ldterm, ttcompat where
8485         available.  Autoconfiscate.
8486         (try_to_initialize_subtty): New.
8487         (unix_kill_child_process): Proper signal handling for ptys on most
8488         platforms, using special knowledge of AIX, BSD, etc...
8489         (unix_create_process): Always disconnect_controlling_terminal() for
8490         subprocesses, whether using ptys or not.
8491         * process.h: Remove old getpt-dependent PTY code.
8492         * process.c (Fprocess_send_signal): New, obvious generic function.
8493         (decode_signal): New.
8494         (Finterrupt_process):
8495         (Fkill_process):
8496         (Fquit_process):
8497         (Fstop_process):
8498         (Fcontinue_process):
8499         (Fsignal_process): Use decode_signal.
8500         (process_send_signal):
8501         Many docstring corrections.
8502         Allow any signal to be sent to a process object.
8503         * config.h.in: Add symbols for big signal/process overhaul.
8504         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
8505         * sysproc.h: Include process-related headers, where available:
8506         sys/stropts.h sys/strtio.h pty.h libutil.h
8507         * s/irix4-0.h:
8508         * s/irix5-0.h:
8509         * s/cygwin32.h:
8510         * s/gnu.h:
8511         * s/linux.h:
8512         * s/hpux.h:
8513         * s/aix3-1.h:
8514         Remove old S&M pty stuff.
8515         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
8516         * systty.h: Simplify cpp hackery, improve comments.
8517         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
8518
8519         * editfns.c (Fformat_time_string):
8520         Be a little more paranoid with the return value of ctime.
8521
8522         * fileio.c (check_executable):
8523         (check_writable):
8524         Use symbolic constants X_OK, W_OK.
8525
8526         * console-x.c (split_up_display_spec): Fix a warning.
8527
8528 2000-10-02  Martin Buchholz  <martin@xemacs.org>
8529
8530         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
8531         * ntproc.c (sys_spawnve): make_string ==> build_string
8532         Small clarity improvements.
8533
8534 2000-09-30  Martin Buchholz  <martin@xemacs.org>
8535
8536         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
8537
8538         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
8539
8540         * config.h.in (HAVE_STRCASECMP): Remove.
8541
8542 2000-09-29  Martin Buchholz  <martin@xemacs.org>
8543
8544         * redisplay-output.c (redisplay_output_pixmap):
8545         Cleaner and possibly more 64-bit correct code.
8546
8547 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
8548
8549         * dumper.c (pdump_load_finish): move restoration of
8550         `noninteractive1' to emacs.c (main_1).
8551         * emacs.c (main_1): protect LISP-visible command-line flags
8552         from pdump_load().
8553
8554 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
8555
8556         * Makefile.in.in (versionclean):  Use EXE_TARGET and
8557         DUMP_TARGET instead of literal program names.
8558
8559 2000-09-20  Martin Buchholz  <martin@xemacs.org>
8560
8561         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
8562
8563 2000-09-19  Martin Buchholz  <martin@xemacs.org>
8564
8565         * *: Spelling mega-patch
8566
8567 2000-09-19  Martin Buchholz  <martin@xemacs.org>
8568
8569         * fns.c (bad_bad_turtle):
8570         Delete "Eek!" comment, since we fixed the bug to which it refers.
8571
8572 2000-09-16  Martin Buchholz  <martin@xemacs.org>
8573
8574         * alloca.c: Replace REGISTER with register.
8575
8576 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
8577
8578         * file-coding.c (ucs_to_char): Use countof.
8579
8580 2000-09-16  Martin Buchholz  <martin@xemacs.org>
8581
8582         * file-coding.c: (ucs_to_char):
8583         (complex_vars_of_file_coding):
8584         Use countof instead of sizeof.
8585         Use CHECK_NATNUM instead of CHECK_INT.
8586
8587         * sysdep.c (strcasecmp): Remove.
8588         * device-x.c (ascii_strcasecmp): New.
8589         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
8590         Avoid using non-standard non-portable strcasecmp.
8591
8592 2000-09-16  Martin Buchholz  <martin@xemacs.org>
8593
8594         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
8595         * font-lock.c: remove reference to emacsfns.h.
8596         * search.c: small doc improvement.
8597         * event-Xt.c: correct file names in comments.
8598         * console-x.h Correct file names in comments.
8599         * frame.c: Correct file names in comments.
8600         * event-stream.c: remove Energize from comments.
8601
8602 2000-09-15  Martin Buchholz  <martin@xemacs.org>
8603
8604         * symeval.h (DEFERROR_STANDARD):
8605         (DEFERROR):
8606         (DEFSYMBOL):
8607         (DEFSYMBOL_NO_DUMP):
8608         (DEFSYMBOL_MULTIWORD_PREDICATE):
8609         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
8610         (DEFKEYWORD):
8611         The construct &##name is not sensible C.
8612         Fixes compilation errors with Unixware native compiler.
8613
8614 2000-09-14  Martin Buchholz  <martin@xemacs.org>
8615
8616         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
8617         (next_frame_internal): Removed.  We now just have next_frame.
8618         (next_frame):
8619         Write a simpler and cleaner one-pass algorithm.
8620         Remove called_from_delete_device arg and #ifdefed-out code.
8621         (previous_frame):
8622         Renamed from prev_frame.  Update callers.
8623         Cleaned up to have an analogous implementation to next_frame.
8624         (other_visible_frames_internal): Remove the
8625         called_from_delete_device bogus arg, and hence, remove this
8626         function.  Just use other_visible_frames().
8627
8628         * window.c (Fnext_window):
8629         Prettify docstring.
8630         Since next_frame() is guaranteed to return a frame, remove check
8631         for nil inserted in previous patch.
8632         (Fprevious_window):
8633         Prettify docstring.
8634         Make code look more like Fnext_window.
8635         (window_loop):
8636         Respect the `console' arg when iterating through windows.
8637         Fixes bug: (get-buffer-window buffer t device) not respecting
8638         the `device' arg.
8639         This function needs more work, as others have pointed out.
8640
8641         * frame.h: Rename prev_frame to previous_frame.
8642         device_matches_console_spec no longer takes a `frame' arg.
8643
8644         * s/gnu.h:
8645         * s/linux.h:
8646         * s/hpux.h:
8647         Use EMACS_BLOCK_SIGNAL instead of sigblock.
8648         From "Golubev I. N." <gin@mo.msk.ru>.
8649
8650         * make-src-depend: Fix typo.
8651
8652 2000-09-13  Martin Buchholz  <martin@xemacs.org>
8653
8654         * window.c (Fnext_window):
8655         next_frame() might return nil, not a frame.
8656         Fixes this crash:
8657         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
8658
8659         * frame.c (next_frame_internal):
8660         We've passed a frame if we've passed its device.
8661         Fixes this crash:
8662         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
8663 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
8664
8665 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
8666
8667         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
8668         Allow option to suppress accelerators in menu/dialog items.
8669         (populate_or_checksum_helper): Pass dialog title through above.
8670
8671 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
8672
8673         * event-msw.c (mswindows_key_to_emacs_keysym):
8674         Add "pause" key, fix "menu" key.
8675
8676 2000-09-09  Martin Buchholz  <martin@xemacs.org>
8677
8678         * eval.c (reinit_vars_of_eval):
8679         Increase max_lisp_eval_depth to 1000,
8680         required for thai-xtis.el to byte-compile under some circumstances.
8681
8682 2000-09-04  Martin Buchholz  <martin@xemacs.org>
8683
8684         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
8685         From Kenichi Handa.
8686
8687 2000-09-01  Martin Buchholz  <martin@xemacs.org>
8688
8689         * make-src-depend: Make the generated Makefiles smaller.
8690
8691         * s/hpux.h (SETUP_SLAVE_PTY):
8692         Provide a %d in the format string for the errno argument.
8693
8694         * editfns.c (Ftemp_directory):
8695         Warning fix.
8696         Avoid buffer overrun on very long file name.
8697
8698         * input-method-xlib.c (XIM_init_device):
8699         6th parameter of XRegisterIMInstantiateCallback has different
8700         pointer types on different OSes, so simply cast to (void *).
8701
8702         * unexhp9k800.c: Warning fixes.  Fiddly changes.
8703
8704         * sysdll.c (dll_open):
8705         shl_load will hang hard if passed a NULL filename.
8706         Simply return NULL for compatibility with dlopen.
8707         * sysdll.c: Conform to XEmacs coding standards.
8708
8709         * sysdep.c (get_pty_max_bytes):
8710         Support pty input lines longer than 512 bytes on HP-UX 10.20.
8711
8712 2000-08-31  Martin Buchholz  <martin@xemacs.org>
8713
8714         * tooltalk.c: Add #include <syssignal.h>
8715
8716 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
8717
8718         * s/hpux.h: Don't use undefined function sigunblock().
8719
8720 2000-08-31  Martin Buchholz  <martin@xemacs.org>
8721
8722         * config.h.in: Add HAVE_BALLOON_HELP.
8723         * emacs.c: Use HAVE_BALLOON_HELP.
8724         * Makefile.in.in (x_objs):
8725         Make Balloon Help conditional on finding shape.h.
8726
8727 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
8728
8729         * syntax.c (regex_emacs_buffer_p): New variable.
8730         * syntax.h (regex_emacs_buffer_p): extern.
8731         * search.c (looking_at_1):
8732         (string_match_1):
8733         (fast_string_match):
8734         (search_buffer): Set regex_emacs_buffer_p.
8735         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
8736         when before_dot, at_dot, after_dot.
8737
8738 2000-08-23  Andy Piper  <andy@xemacs.org>
8739
8740         * gui-x.c (popup_selection_callback): Only set action_occurred
8741         when we really have an image instance.
8742         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
8743
8744 2000-08-23  Andy Piper  <andy@xemacs.org>
8745
8746         * gui-msw.c (mswindows_handle_gui_wm_command): set
8747         action_occurred.
8748         * gui-x.c (popup_selection_callback): ditto.
8749
8750         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
8751         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
8752         (struct Lisp_Image_Instance): add action_occurred flag.
8753
8754         * glyphs.c (redisplay_subwindow): use action_occurred flag.
8755         (image_instance_changed): ditto.
8756         (reset_frame_subwindow_instance_cache): only unmap windows - do
8757         not remove them from the cache also.
8758
8759         * glyphs-widget.c (tab_control_update): better debug.
8760         (progress_gauge_update): ditto.
8761         (layout_update): ditto.
8762         (layout_instantiate): ditto.
8763         (tab_control_order_only_changed): cope with null pending items.
8764
8765         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
8766         debug. Force selection of an item when an action occurred. Cope
8767         with null pending_items.
8768         (mswindows_progress_gauge_redisplay): better debug.
8769         * glyphs-x.c (x_tab_control_redisplay): ditto.
8770
8771         * redisplay.c (redisplay_frame): reset the frame cache if the
8772         frame is garbaged.
8773
8774         * window.c (Fset_window_configuration): potentially re-enable
8775         frame cache reset.
8776         (window_unmap_subwindows): need to finalize instances here since
8777         it is only used in mark_window_as_deleted.
8778
8779 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
8780
8781         * nas.c (SndOpenDataForReading):
8782         nas.c (WaveOpenDataForReading):
8783         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
8784         Somehow escaped from the 2000-08-14 patch.
8785
8786 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
8787
8788         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
8789         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
8790
8791 2000-08-21  Andy Piper  <andy@xemacs.org>
8792
8793         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
8794         window if it is not already displayed.
8795
8796         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
8797         it is not already displayed.
8798
8799         * window.c (Fset_window_configuration): don't reset the frame
8800         cache.
8801
8802         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
8803         instances from the frame cache if we are actually finalizing them.
8804         (reset_frame_subwindow_instance_cache): reset frame cache only
8805         after unmapping everything.
8806         (map_subwindow): set displayed flag after mapping.
8807
8808 2000-08-21  Martin Buchholz  <martin@xemacs.org>
8809
8810         * data.c (indirect_function):
8811         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
8812
8813         * eval.c (function_argcount):
8814         Use original function when signaling errors.
8815
8816 2000-08-18  Andy Piper  <andy@xemacs.org>
8817
8818         * frame.c (delete_frame_internal): use new
8819         free_frame_subwindow_instances name.
8820
8821         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
8822         (add_tab_item): make return type correct.
8823         (mswindows_tab_control_instantiate): assert index of tab.
8824         (mswindows_tab_control_redisplay): Re-code to use
8825         gui_item_equal_sans_selected and gui_item_list_find_selected.
8826
8827         * glyphs-widget.c (tab_control_update): Correct comment.
8828
8829         * window.c (window_unmap_subwindows): use new
8830         unmap_subwindow_instance_cache_mapper.
8831         (window_unmap_subwindows_cache_mapper): deleted.
8832         (Fset_window_configuration): comparisons should now be with
8833         EQ. Preserve the subwindow instance cache across configuration
8834         changes.
8835         (allocate_window): ditto.
8836         (make_dummy_parent): ditto.
8837
8838         * glyphs.c (free_frame_subwindow_instances): rename from
8839         free_frame_subwindow_instance_cache. finalize all instances rather
8840         than just those in the display cache.
8841         (finalize_all_subwindow_instances): walk windows unmapping and
8842         finalizing subwindows.
8843         (unmap_subwindow_instance_cache_mapper): moved from
8844         window.c. Allow finalization as well as unmapping.
8845
8846         * gui.c (gui_item_list_find_selected): new function.
8847
8848         * gui.h (gui_item_list_find_selected): declare.
8849
8850         * glyphs-x.c (x_tab_control_redisplay): pick tab
8851         explicitly. Re-code to use gui_item_equal_sans_selected and
8852         gui_item_list_find_selected.
8853
8854         * glyphs-x.h: add lwlib-utils.h
8855
8856         * buffer.c (Frecord_buffer): undo previous change.
8857
8858 2000-08-09  Vin Shelton  <acs@xemacs.org>
8859
8860         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
8861         possible.  Create temporary files more securely.  The patch was
8862         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
8863         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
8864         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
8865         for details.
8866
8867 2000-08-07  Ben Wing  <ben@xemacs.org>
8868
8869         * getloadavg.c: remove duplicate (and windows-breaking)
8870         includes of fcntl.h and sys/file.h.
8871
8872         * nt.c: remove duplicate getloadavg() definition.
8873
8874         * sysdll.h (Qdll_filename_encoding): add missing stand-in
8875         encodings.
8876
8877 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
8878
8879         * eval.c (function_argcount): If function needs to be autoloaded
8880         actually use the loaded definition.
8881         GCPRO function.
8882
8883 2000-08-05  Ben Wing  <ben@xemacs.org>
8884
8885         * getloadavg.c: add prototype for getloadavg().  remove
8886         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
8887         of the code).  remove duplicate header includes.
8888
8889         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
8890
8891         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
8892         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
8893         useful load average.
8894
8895         * alloc.c (reinit_alloc_once_early): removed references to
8896         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
8897         the lisp vars are the only things referencing the malloc_sbrk_*
8898         vars, and they were already if 0'd out.  these vars only exist
8899         in the older malloc.c, which is basically unused, and they're
8900         only for informational purposes.
8901
8902         * m\*.h: removed useless VIRT_ADDR_VARIES.
8903
8904         * m\powerpc.h: removed stray NO_ARG_ARRAY.
8905
8906 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
8907
8908         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
8909         color if the image is a mono pixmap.
8910
8911 2000-07-30  Ben Wing  <ben@xemacs.org>
8912
8913         * Makefile.in.in (release):
8914         Remove stray @.
8915
8916         * buffer.c (directory_is_current_directory):
8917         * dired-msw.c (mswindows_get_files):
8918         * dired.c:
8919         * dired.c (Fdirectory_files):
8920         * dired.c (file_name_completion_stat):
8921         * dired.c (Ffile_attributes):
8922         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
8923         preprocessor tricks, to avoid problems on some machines
8924         (e.g. SCO).
8925
8926         * callproc.c (egetenv): GC docs.
8927
8928         * console-msw.h:
8929         * console-msw.h (struct mswindows_dialog_id):
8930         * lrecord.h (lrecord_type):
8931         New object for use with MSW dialogs.
8932
8933         * console.h (struct console_methods):
8934         New enable/disable frame methods, for proper modal dialogs.
8935
8936         * device-msw.c (msprinter_default_printer): Fix to follow
8937         proper Mule conventions.
8938
8939         * device-msw.c:
8940         * device-msw.c (signal_open_printer_error):
8941         * device-msw.c (msprinter_init_device):
8942         * device-msw.c (ensure_not_printing):
8943         * device-msw.c (plist_get_margin):
8944         * device-msw.c (Fmsprinter_select_settings):
8945         * device-msw.c (finalize_devmode):
8946         * device-msw.c (Fmsprinter_settings_despecialize):
8947         * device-msw.c (signal_enum_priner_error):
8948         * extents.c (decode_extent):
8949         * extents.c (decode_map_extents_flags):
8950         * extents.c (decode_extent_at_flag):
8951         * extents.c (Fextent_at):
8952         * extents.c (Fextents_at):
8953         * extents.c (symbol_to_glyph_layout):
8954         [[[[2]]]] Use structured errors.
8955
8956         * dialog-msw.c:
8957         * dialog-msw.c (mswindows_is_dialog_msg):
8958         * dialog-msw.c (mark_mswindows_dialog_id):
8959         * dialog-msw.c (dialog_proc):
8960         * dialog-msw.c (handle_question_dialog_box):
8961         * dialog-msw.c (syms_of_dialog_mswindows):
8962         Define new object to clean up marking; use it as a dialog identifier.
8963         Call new delete-dialog-box-hook.
8964
8965         * dialog-x.c (dbox_selection_callback):
8966         * dialog-x.c (dbox_descriptor_to_widget_value):
8967         * dialog-x.c (x_make_dialog_box_internal):
8968         Call new delete-dialog-box-hook.
8969         Return an id.
8970
8971         * dialog.c:
8972         * dialog.c (syms_of_dialog):
8973         * dialog.c (vars_of_dialog):
8974         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
8975
8976         * eval.c:
8977         * eval.c (signal_call_debugger):
8978         when noninteractive, output stack traces on the console instead
8979         of in a (never-seen) buffer.
8980
8981         * eval.c (signal_type_error):
8982         * eval.c (invalid_argument_2):
8983         * lisp.h:
8984         new funs for use w/structured errors.
8985
8986         * event-Xt.c:
8987         * event-Xt.c (x_to_emacs_keysym):
8988         * event-Xt.c (describe_event):
8989         * event-Xt.c (emacs_Xt_event_handler):
8990         * event-Xt.c (vars_of_event_Xt):
8991         * event-msw.c:
8992         * event-msw.c (mswindows_wnd_proc):
8993         * event-msw.c (vars_of_event_mswindows):
8994         rename {x,mswindows}-debug-events to debug-{}-events for
8995         consistency with other debug-foo variables.
8996
8997         * event-stream.c:
8998         document next-event more clearly.
8999
9000         * fileio.c (Ffile_name_directory):
9001         * fileio.c (Ffile_name_nondirectory):
9002         * fileio.c (Funhandled_file_name_directory):
9003         * fileio.c (file_name_as_directory):
9004         * fileio.c (Ffile_name_as_directory):
9005         * fileio.c (directory_file_name):
9006         * fileio.c (Fdirectory_file_name):
9007         * fileio.c (Fmake_temp_name):
9008         * fileio.c (Ffile_truename):
9009         * fileio.c (Fsubstitute_in_file_name):
9010         * fileio.c (expand_and_dir_to_file):
9011         * fileio.c (barf_or_query_if_file_exists):
9012         * fileio.c (check_executable):
9013         * fileio.c (Ffile_exists_p):
9014         * fileio.c (Ffile_writable_p):
9015         * fileio.c (Ffile_directory_p):
9016         * fileio.c (Ffile_regular_p):
9017         * fileio.c (Ffile_modes):
9018         * fileio.c (Ffile_newer_than_file_p):
9019         * fileio.c (Fverify_visited_file_modtime):
9020         * fileio.c (Fset_visited_file_modtime):
9021         * fileio.c (auto_save_1):
9022         (1). (2).
9023         fix up gcpro's.
9024
9025         * frame-msw.c:
9026         * frame-msw.c (mswindows_init_frame_1):
9027         * frame-msw.c (mswindows_enable_frame):
9028         * frame-msw.c (error_frame_unsizable):
9029         * frame-msw.c (msprinter_init_frame_1):
9030         * frame-msw.c (msprinter_init_frame_3):
9031         * frame-msw.c (console_type_create_frame_mswindows):
9032         (2).
9033         implement new enable/disable frame methods.
9034
9035         * frame-x.c:
9036         * frame-x.c (x_enable_frame):
9037         * frame-x.c (console_type_create_frame_x):
9038         implement new enable/disable frame methods.
9039
9040         * frame.c:
9041         * frame.c (Fdisable_frame):
9042         * frame.c (syms_of_frame):
9043         * frame.h (struct frame):
9044         implement new enable/disable frame methods/functions.
9045
9046         * general-slots.h:
9047         add initial-focus.
9048
9049         * glyphs-msw.c (mswindows_widget_instantiate):
9050         comment that initial-focus should be implemented.
9051
9052         * glyphs-widget.c:
9053         * glyphs-widget.c (check_valid_instantiator):
9054         * glyphs-widget.c (check_valid_orientation):
9055         * glyphs-widget.c (check_valid_tab_orientation):
9056         * glyphs-widget.c (check_valid_justification):
9057         * glyphs-widget.c (check_valid_border):
9058         * glyphs-widget.c (check_valid_callback):
9059         * glyphs-widget.c (check_valid_int_or_function):
9060         * glyphs-widget.c (check_valid_string_or_vector):
9061         * glyphs-widget.c (check_valid_item_list_1):
9062         * glyphs-widget.c (widget_validate):
9063         * glyphs-widget.c (combo_box_validate):
9064         * glyphs-widget.c (widget_instantiate):
9065         * glyphs-widget.c (syms_of_glyphs_widget):
9066         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
9067         * glyphs-widget.c (image_instantiator_combo_box):
9068         * glyphs-widget.c (image_instantiator_scrollbar):
9069         * glyphs-widget.c (image_instantiator_tab_control):
9070         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
9071         (2).
9072         support (unimplemented) keyword initial-focus.
9073         reindent long macros.
9074
9075         * glyphs-x.c (x_redisplay_widget):
9076         * glyphs-x.c (x_button_instantiate):
9077         * glyphs-x.c (x_button_redisplay):
9078         * glyphs-x.c (x_progress_gauge_instantiate):
9079         * glyphs-x.c (x_edit_field_instantiate):
9080         * glyphs-x.c (x_combo_box_instantiate):
9081         * glyphs-x.c (x_tab_control_instantiate):
9082         * glyphs-x.c (x_label_instantiate):
9083         * gui-x.c:
9084         * gui-x.c (button_item_to_widget_value):
9085         * gui-x.c (gui_items_to_widget_values_1):
9086         * gui-x.c (gui_item_children_to_widget_values):
9087         * gui-x.c (gui_items_to_widget_values):
9088         * gui-x.h:
9089         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9090         add new flag to gui-parsing routines to indicate whether
9091         accelerator specs should be supported.
9092
9093         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
9094
9095         * glyphs.h (struct Lisp_Image_Instance):
9096         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
9097         add initial-focus flag.
9098
9099         * gui.c:
9100         * gui.c (syms_of_gui):
9101         * gui.c (vars_of_gui):
9102         clean up menu-no-selection-hook.
9103
9104         * gui.h:
9105         support delete-dialog-box-hook.
9106
9107         * lread.c (Fload_internal):
9108         * lread.c (locate_file_in_directory_mapper):
9109         (1).
9110
9111         * lrecord.h:
9112         * lrecord.h (struct toolbar_button):
9113         * lrecord.h (syms_of_toolbar):
9114         document how to create a new object.
9115
9116         * menubar-msw.c (mswindows_char_is_accelerator):
9117         may be called on frames w/o menus.
9118
9119         * menubar.c (vars_of_menubar):
9120         clean up :filter docs.
9121
9122         * nt.c (readdir):
9123         * ntproc.c:
9124         (1).
9125
9126         * process-nt.c:
9127         * process-nt.c (validate_signal_number):
9128         * process-nt.c (signal_cannot_launch):
9129         * process-nt.c (nt_create_process):
9130         * process-nt.c (nt_send_process):
9131         * process-nt.c (nt_kill_child_process):
9132         * process-nt.c (nt_open_network_stream):
9133         * process-nt.c (syms_of_process_nt):
9134         (2).
9135         delete quote-handling.  call new lisp code that does it better.
9136
9137         * process-unix.c (connect_to_file_descriptor):
9138         * process-unix.c (allocate_pty):
9139         * process-unix.c (unix_send_process):
9140         * process-unix.c (unix_kill_child_process):
9141         * process-unix.c (unix_open_network_stream):
9142         * process-unix.c (unix_open_multicast_group):
9143         (1). (2).
9144
9145         * process.c:
9146         * process.c (Fstart_process_internal):
9147         (2).  need to canonicalize process path even if absolute.
9148
9149         * select-msw.c (symbol_to_ms_cf):
9150         * select-msw.c (ms_cf_to_symbol):
9151         * select-msw.c (cf_is_autofreed):
9152         * select-msw.c (mswindows_destroy_selection):
9153         * select.c:
9154         * select.c (syms_of_select):
9155         * select.h:
9156         support dibv5, fix bugs. (from Mike Alexander)
9157
9158         * select.c (Fget_selection_internal):
9159         * select.c (select_convert_out):
9160
9161         * sysdep.c:
9162         * sysdep.c (xemacs_stat):
9163         renamed.
9164
9165         * sysdep.c (mkdir):
9166         * sysdep.c (rmdir):
9167         but keep original stat() here because we provide encapsulation
9168         around these funs.
9169
9170         * sysfile.h:
9171         * sysfile.h (fstat):
9172         remove stat garbage.
9173
9174         * syswindows.h:
9175         fix X/MSW conflict.
9176         don't include tchar.h.  it's inappropriate because it makes
9177         compile-time distinctions when we want runtime distinctions.
9178         (we provide our own tchar replacements)
9179
9180         * toolbar.c:
9181         use default object printer for toolbar-button.
9182
9183         * unexcw.c:
9184         make sure we don't encapsulate.
9185
9186         * window.c (vars_of_window):
9187         emphasize that temp-buffer-show-hook is obsolete.
9188
9189 2000-08-05  Martin Buchholz  <martin@xemacs.org>
9190
9191         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
9192         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
9193
9194         * events.c (Fevent_timestamp_lessp):
9195         Not 64-bit clean.  Use EMACS_INT, not int.
9196
9197 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
9198
9199         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
9200         unsigned int and changed the last enum to
9201         lrecord_type_last_built_in_type.
9202         (lrecord_implementations_table): changed prototype to know how
9203         long the array is supposed to be.
9204         (lrecord_type_count): new unsigned int to keep track of the
9205         current number of lisp lrecord types.
9206         (DEFINE_EXTERNAL_LRECORD):
9207         (DECLARE_EXTERNAL_LRECORD): Added these two for external
9208         dynamic-modules to declare new lisp types. They are the same
9209         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
9210         int for each new type, and increment lrecord_type_count by 1.
9211
9212         * alloc.c (lrecord_implementations_table): Changed to reference
9213         lrecord_type_last_built_in_type for the size of the array.
9214         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
9215
9216 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
9217
9218         * glyphs.h (check_valid_item_list): Renamed from
9219         check_valid_item_list_1.
9220
9221 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
9222
9223         * select.c (Qselect_coerce): New.
9224         * select.c (Vselection_coercion_alist): New.
9225         * select.c (syms_of_select): Declare.
9226         * select.c (get-selection-internal): Use it.
9227         Use the new select-coerce functionality.
9228
9229         * select.c (select_coerce): New.
9230         * select.h (select_coerce): Declare.
9231         New function to coerce one type of data into another.
9232
9233 2000-08-03  Martin Buchholz  <martin@xemacs.org>
9234
9235         * callproc.c (Fcall_process_internal):
9236         (Fcall_process_internal):
9237         * process-unix.c (unix_create_process):
9238         Save and restore the value of errno, so that error messages are accurate.
9239
9240 2000-08-01  Martin Buchholz  <martin@xemacs.org>
9241
9242         * elhash.c (print_hash_table):
9243         Fix printing of hash tables to also use `key-and-value' instead of `t'.
9244         Prettify docstrings and indentation.
9245
9246 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
9247
9248         * window.c (Fwindow_pixel_edges): Subtract frame border and
9249         gutter size.
9250
9251 2000-07-31  Andy Piper  <andy@xemacs.org>
9252
9253         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
9254         will acknowledge the change.
9255
9256         * glyphs.h: declare tab_control_order_only_changed.
9257
9258         * glyphs-x.c (x_tab_control_redisplay): use
9259         tab_control_order_only_changed.
9260
9261         * glyphs-widget.c (tab_control_order_only_changed): new function.
9262
9263         * glyphs-msw.c (mswindows_tab_control_redisplay): use
9264         tab_control_order_only_changed.
9265
9266         * gui.c (gui_item_equal_sans_selected): new function.
9267         (gui_item_equal): use it.
9268
9269         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
9270         :properties in favor of :items..
9271
9272         * glyphs-widget.c (check_valid_item_list): rename from
9273         check_valid_item_list_1.
9274         (check_valid_item_list_1): renamed.
9275         (combo_box_validate): deprecate :properties in favor of :items.
9276         (widget_instantiate): ditto.
9277         (tab_control_update): ditto.
9278         (image_instantiator_combo_box): ditto.
9279         (image_instantiator_tree_view): ditto.
9280         (image_instantiator_tab_control): ditto.
9281         (layout_post_instantiate): remove dead code.
9282
9283         * print.c (debug_print_no_newline): only write to debugger if in
9284         WIN32_NATIVE.
9285
9286         * elhash.c (Fmake_hash_table): update doc string.
9287
9288         * event-msw.c (mswindows_wnd_proc): don't allow processing of
9289         messages whilst in GC. This at least stops XEmacs crashing but has
9290         the potential for wierd behaviour.
9291
9292 2000-07-31  Martin Buchholz  <martin@xemacs.org>
9293
9294         * config.h.in:
9295         Make existence of s&m files optional.
9296
9297         * s/bsd386.h: Remove HAVE_GETLOADAVG.
9298         * s/freebsd.h: Remove HAVE_GETLOADAVG.
9299         * s/gnu.h: Remove HAVE_GETLOADAVG.
9300         * s/netbsd.h: Remove HAVE_GETLOADAVG.
9301         * s/sol2.h: Remove HAVE_GETLOADAVG.
9302         * lisp.h: Remove getloadavg() declaration.
9303         * fns.c:
9304         Include <sys/loadavg.h> if available.
9305         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
9306         * config.h.in:  Group together getloadavg()-related macros.
9307         Use only configure-time tests to detect getloadavg().
9308
9309 2000-07-30  Martin Buchholz  <martin@xemacs.org>
9310
9311         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
9312
9313 2000-07-25  Andy Piper  <andy@xemacs.org>
9314
9315         * syswindows.h: add tchar.h for native builds.
9316
9317         * frame.c (syms_of_frame): remove set-glyph-image.
9318
9319         * general-slots.h: add Qset_glyph_image.
9320
9321         * glyphs-widget.c (layout_update): add domain arg to
9322         set-glyph-image.
9323         (syms_of_glyphs_widget): remove set-glyph-image.
9324
9325 2000-07-23  Ben Wing  <ben@xemacs.org>
9326
9327         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
9328         Vpopup_frame_list.
9329
9330 2000-07-22  Andy Piper  <andy@xemacs.org>
9331
9332         * symsinit.h: add syms_of_win32().
9333
9334         * gui-msw.c (syms_of_gui_mswindows): remove
9335         Fmswindows_shell_execute.
9336         (Fmswindows_shell_execute): moved to win32.c.
9337
9338         * emacs.c (main_1): add syms_of_win32 ().
9339
9340         * win32.c (init_potentially_nonexistent_functions): rewrite in
9341         compiler-friendly terms.
9342         (Fmswindows_shell_execute): move here from gui-msw.c.
9343         (syms_of_win32): new.
9344
9345         * device-msw.c (Fmswindows_printer_list): clean up args to
9346         EnumPrinters.
9347         Don't include tchar under cygwin or mingw.
9348         (msprinter_default_printer): make cygwin-friendly.
9349
9350 2000-07-21  Andy Piper  <andy@xemacs.org>
9351
9352         * glyphs-widget.c (image_instantiator_tree_view): use tab
9353         control's update function.
9354         (layout_property): new function. Retrieve items.
9355
9356         * glyphs-msw.c (mswindows_tree_view_redisplay): new
9357         function. Re-populate the tree view from the pending items.
9358
9359         * glyphs.c (instantiate_image_instantiator): Make sure the domain
9360         is designated the parent if the domain is an image instance. This
9361         is needed so that dirtiness can be cascade up the hierarchy and
9362         thus for layout children to be redisplayed correctly.
9363         (allocate_image_instance): rename glyph -> parent.
9364
9365         * redisplay.h: change redisplay_output_layout signature.
9366
9367         * redisplay-msw.c (mswindows_output_display_block): use domain
9368         arg.
9369
9370         * redisplay-x.c (x_output_display_block): use domain arg.
9371
9372 2000-07-10  Andy Piper  <andy@xemacs.org>
9373
9374         * window.c (Fset_window_configuration): add comment.
9375
9376         * redisplay-output.c (compare_runes):
9377         (redisplay_output_subwindow): redisplay rather than update subwindow.
9378         (redisplay_output_layout): ditto.
9379
9380         * redisplay-msw.c (mswindows_frame_output_end):
9381         (mswindows_frame_output_end): make defer window pos optional.
9382
9383         * lisp.h: add Flast.
9384
9385         * glyphs.h (struct image_instantiator_methods): add dest_mask top
9386         normalize method. Change update method to be for changed
9387         instantiators. Add redisplay method. Change signature of layout
9388         method.
9389         (struct Lisp_Image_Instance): add instantiator.
9390         (IMAGE_INSTANCE_INSTANTIATOR): new.
9391         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
9392         (XIMAGE_INSTANCE_INSTANTIATOR): new.
9393         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
9394
9395         * glyphs.c:
9396         (find_instantiator_differences): new function.
9397         (Fset_instantiator_property): new convenience function.
9398         (check_image_instance_structure): strictly check for vector
9399         instantiators.
9400         (normalize_image_instantiator): make non-static.
9401         (instantiate_image_instantiator): pass on dest_mask and use new
9402         signatures for image_instance_layout and friends.
9403         (mark_image_instance): mark the instantiator. Mark the subwindow
9404         face not the widget face.
9405         (image_instance_equal): add instantiator.
9406         (image_instance_hash): ditto.
9407         (allocate_image_instance): ditto.
9408         (Fset_image_instance_property): removed.
9409         (Fimage_instance_file_name): ditto.
9410         (Fcolorize_image_instance): ditto.
9411         (image_instance_layout): add offsets to be set.
9412         (update_image_instance): new function. update an image instance
9413         from its changed instantiator.
9414         (inherit_normalize): add dest_mask.
9415         (xbm_normalize): ditto.
9416         (xface_normalize): ditto.
9417         (xpm_normalize): ditto.
9418         (text_update): set_property -> update.
9419         (image_instantiate): use the glyph identity as a hash key, not the
9420         instantiator.
9421         (glyph_width): use new image_instance_layout signature.
9422         (glyph_ascent): ditto.
9423         (glyph_descent): ditto.
9424         (glyph_height): ditto.
9425         (glyph_query_geometry): ressurrect.
9426         (glyph_layout): ditto.
9427         (redisplay_subwindow): update -> redisplay.
9428         (syms_of_glyphs): add Fset_instantiator_property.
9429         (image_instantiator_format_create): set_property -> update.
9430
9431         * glyphs-x.c:
9432         (autodetect_normalize): add dest_maks to signature.
9433         (x_redisplay_subwindow): update -> redisplay.
9434         (x_redisplay_widget): ditto.
9435         (x_button_redisplay): ditto.
9436         (x_progress_gauge_redisplay): ditto.
9437         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
9438         stacking order.
9439         (console_type_create_glyphs_x): update -> redisplay.
9440         (image_instantiator_format_create_glyphs_x): ditto.
9441
9442         * glyphs-widget.c:
9443         (check_valid_instantiator): disallow glyphs in the instantiator,
9444         they must now be vectors.
9445         (check_valid_instantiator_list): ditto.
9446         (glyph_instantiator_to_glyph): use internal symbol rather than
9447         intern.
9448         (widget_update): renamed from widget_set_property. Call cascaded
9449         update methods.
9450         (redisplay_widget): renamed from update_widget.
9451         (widget_layout): image_instance_layout now takes position as well
9452         as size.
9453         (widget_normalize): ditto.
9454         (widget_instantiate): ditto.
9455         (tab_control_query_geometry) ditto.:
9456         (tab_control_update): renamed from tab_control_set_property.
9457         (progress_gauge_update): set_property -> update.
9458         (layout_normalize): rewrite so that child instantiators are
9459         normalized also.
9460         (layout_update): new function. Create glyphs from the normalized
9461         children and cope with any other layout keywords. We do not
9462         instantiate children here that will be take care of by
9463         redisplay_output_layout.
9464         (layout_instantiate): call layout_update and not much else.
9465         (layout_post_instantiate): not sure whether this is needed
9466         anymore.
9467         (layout_query_geometry): query glyph geometry rather than
9468         image_instance geometry.
9469         (layout_layout): set offsets from pass in parameters. Use glyph
9470         geometry and layout functions rather than image instance ones.
9471         (native_layout_layout): ditto.
9472         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
9473         (image_instantiator_widget): set_property -> update.
9474         (image_instantiator_buttons): ditto.
9475         (image_instantiator_progress_guage): ditto.
9476         (image_instantiator_tab_control): ditto.
9477         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
9478         (image_instantiator_layout): add update method.
9479
9480         * glyphs-msw.c (bmp_normalize):
9481         (mswindows_resource_normalize): add dest_mask so that it can be
9482         proprogated by layout_normalize.
9483         (begin_defer_window_pos): make optional because it may not be the
9484         right thing to do and it introduces differences with X.
9485         (mswindows_unmap_subwindow): ditto.
9486         (mswindows_map_subwindow): ditto.
9487         (mswindows_redisplay_subwindow): renamed from
9488         mswindows_update_subwindow.
9489         (mswindows_redisplay_widget): ditto.
9490         (mswindows_button_redisplay): renamed from
9491         mswindows_button_update. Update is now what the instantiation
9492         function does for a changed instantiator.
9493         (mswindows_progress_gauge_instantiate): set the progress value
9494         here if appropriate.
9495         (mswindows_tab_control_redisplay): cope with re-ordering of the
9496         members of the tab widget by simply selecting the new top
9497         widget. This makes things appear ok if you click on a tab.
9498         (mswindows_combo_box_instantiate): image_instance_layout now takes
9499         position as well as size.
9500         (mswindows_progress_gauge_redisplay): renamed from
9501         mswindows_progress_gauge_update.
9502         (console_type_create_glyphs_mswindows): fix update -> redisplay.
9503         (image_instantiator_format_create_glyphs_mswindows): ditto.
9504
9505         * glyphs-eimage.c (jpeg_normalize):
9506         (gif_normalize):
9507         (png_normalize):
9508         (tiff_normalize): add dest_mask so that it can be proprogated by
9509         layout_normalize.
9510
9511         * elhash.c:
9512         (print_hash_table):
9513         (hash_table_weakness_validate):
9514         (decode_hash_table_weakness):
9515         (Fhash_table_weakness):
9516         (Fhash_table_type):
9517         (syms_of_elhash): use Ben's naming scheme for hashtable types..
9518
9519         * console.h (struct console_methods): move update_* to
9520         redisplay_*.
9521
9522 2000-07-20  Ben Wing  <ben@xemacs.org>
9523
9524         * *.[ch] (XSETOBJ): remove unused middle argument.
9525         lisp-disunion.h: correct wrap_object() to one argument.
9526
9527 2000-07-15  Ben Wing  <ben@xemacs.org>
9528
9529         * s/cygwin32.h:
9530         * s/cygwin32.h (CYGWIN_CONV_PATH):
9531         Add missing logb prototype for v1.1.
9532         Use post-b20 names and alias to pre-b20 names when pre-b20.
9533
9534         * s/windowsnt.h: [5].
9535
9536 2000-07-15  Ben Wing  <ben@xemacs.org>
9537
9538         * Makefile.in.in (x_objs):
9539         * Makefile.in.in (sheap_objs):
9540         * Makefile.in.in (objs):
9541         added win32.o, cosmetic cleanups.
9542
9543         * alloc.c (Fmake_byte_code):
9544         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
9545         etc. macros which declare their own args now.
9546
9547         * alloc.c (syms_of_alloc):
9548         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
9549
9550         * buffer.c:
9551         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
9552
9553         * buffer.c (Fget_file_buffer):
9554         Fixed GCPRO problem.
9555
9556         * buffer.c (get_truename_buffer):
9557         Fixed comment about GC checking.
9558
9559         * buffer.c (syms_of_buffer):
9560         Undeclared those dedicated frame funs.
9561         [2].
9562
9563         * buffer.h:
9564         Define convenience macros for internal/external conversions.
9565         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
9566         and Qenvironment_variable_encoding for cleaner code.
9567
9568         * bufslots.h:
9569         Remove dedicated-frame; in lisp.
9570
9571         * bytecode.c (funcall_compiled_function):
9572         [1].
9573
9574         * bytecode.c (syms_of_bytecode):
9575         [2].
9576
9577         * console-msw.c:
9578         * console-msw.c (mswindows_show_console): Rewrote.
9579
9580         * console-msw.c (Fmswindows_debugging_output): New.
9581         Sends to OutputDebugString (special MSWin debugger interface).
9582
9583         * console-msw.c (Fmswindows_message_box):
9584         Fixed stupid bugs so it works when called from kill-emacs.
9585
9586         * console-msw.c (syms_of_console_mswindows):
9587         Declare Fmswindows_debugging_output.
9588
9589         * console-msw.h:
9590         New MSWin prototypes.
9591
9592         * console-msw.h (struct mswindows_frame):
9593         New entry last-click-mods for improved button-modifier support.
9594
9595         * console-msw.h (FRAME_MSWINDOWS_POPUP):
9596         New struct entry `popup' with corresponding accessor.
9597
9598         * console-x.c:
9599         * console-x.c (split_up_display_spec):
9600         * console-x.c (get_display_arg_connection):
9601         * console-x.c (x_semi_canonicalize_console_connection):
9602         * console-x.c (x_canonicalize_device_connection):
9603         [[[6]]]: Change char to more specific type.
9604         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
9605
9606         * console-x.c (x_semi_canonicalize_console_connection):
9607         * console-x.c (x_canonicalize_device_connection):
9608         [[[9]]]: Fix up error signalling to use new structured error system.
9609
9610         * console-x.h:
9611         [[[4]]]: Define codesys aliases:
9612         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
9613         Qx_color_name_encoding, Qx_display_name_encoding.
9614
9615         * console.h (struct console_methods):
9616         New method make_dialog_box_internal supersedes older
9617         popup_dialog_box method.
9618
9619         * data.c:
9620         Define many new errors, part of new structured errors.
9621
9622         * data.c (init_errors_once_early):
9623         * data.c (syms_of_data):
9624         [2].
9625
9626         * device-msw.c (mswindows_init_device):
9627         [[[5]]]: Cleanup to support NT 3.51.
9628
9629         * device-msw.c (decode_devmode): Cleanup.
9630
9631         * device-msw.c (mswindows_handle_print_setup_dialog_box):
9632         * device-msw.c (mswindows_handle_print_dialog_box):
9633         * device-msw.c (mswindows_handle_page_setup_dialog_box):
9634         * device-msw.c (syms_of_device_mswindows):
9635         Delete the dialog box primitives recently introduced by Kirill and
9636         instead interface to general dialog box interface.
9637
9638         * device-x.c:
9639         * device-x.c (compute_x_app_name):
9640         * device-x.c (x_init_device):
9641         * device-x.c (Fx_valid_keysym_name_p):
9642         * device-x.c (Fx_set_font_path):
9643         [6].
9644         [7].
9645
9646         * device.h (wrap_device): New.
9647         First of its kind; meant to replace XSETDEVICE.
9648
9649         * dialog-msw.c: Many file-dialog symbols.
9650
9651         * dialog-msw.c (mswindows_register_popup_frame): New.
9652         * dialog-msw.c (mswindows_is_dialog_msg): New.
9653         For supporting kbd traversal in dialog boxes.
9654
9655         * dialog-msw.c (dialog_proc):
9656         Support hitting ESC in dialogs.
9657
9658         * dialog-msw.c (struct):
9659         Common dialog box errors.
9660
9661         * dialog-msw.c (handle_file_dialog_box): New.
9662         Add file dialog code.
9663
9664         * dialog-msw.c (handle_question_dialog_box):
9665         Redo existing code to support new question dialog syntax.
9666
9667         * dialog-msw.c (console_type_create_dialog_mswindows):
9668         We support new dialog console method.
9669
9670         * dialog-msw.c (syms_of_dialog_mswindows):
9671         * dialog-msw.c (vars_of_dialog_mswindows):
9672         New file dialog symbols, vars.
9673
9674         * dialog-x.c:
9675         * dialog-x.c (maybe_run_dbox_text_callback):
9676         * dialog-x.c (dbox_descriptor_to_widget_value):
9677         * dialog-x.c (x_make_dialog_box_internal):
9678         * dialog-x.c (console_type_create_dialog_x):
9679         Mule-ize entire file.
9680         Redo to support question dialog syntax.
9681         [6].
9682
9683         * dialog.c:
9684         * dialog.c (Fmake_dialog_box_internal):
9685         * dialog.c (syms_of_dialog):
9686         Kill old popup-dialog-box, replace with new primitive.
9687         Just call device method or signal error.
9688
9689         * eldap.c (Fldap_open):
9690         * eldap.c (Fldap_search_basic):
9691         * eldap.c (Fldap_add):
9692         * eldap.c (Fldap_modify):
9693         [1].
9694         [7].
9695
9696         * emacs.c:
9697         * emacs.c (make_arg_list_1):
9698         * emacs.c (make_arg_list):
9699         Mule-ize call to dll_init().
9700         [6].
9701         [8].
9702
9703         * emacs.c (make_argc_argv):
9704         * emacs.c (free_argc_argv):
9705         * emacs.c (init_cmdargs):
9706         * emacs.c (main_1):
9707         * emacs.c (Fkill_emacs):
9708         * emacs.c (Fdump_emacs):
9709         Update comments about what can be used in syms_* etc.
9710         Call init_win32() when necessary.
9711         Fix up MS Win dialog box in kill-buffer to actually work right.
9712         [7].
9713
9714         * eval.c:
9715         * eval.c (For):
9716         * eval.c (Fand):
9717         * eval.c (Fprogn):
9718         * eval.c (Fprog1):
9719         * eval.c (Fprog2):
9720         * eval.c (FletX):
9721         * eval.c (Flet):
9722         * eval.c (condition_case_3):
9723         * eval.c (Feval):
9724         * eval.c (function_argcount):
9725         * eval.c (funcall_lambda):
9726         [1].
9727
9728         * eval.c (type_error): New.
9729         * eval.c (maybe_type_error): New.
9730         * eval.c (continuable_type_error): New.
9731         * eval.c (maybe_continuable_type_error): New.
9732         * eval.c (type_error_with_frob): New.
9733         * eval.c (maybe_type_error_with_frob): New.
9734         * eval.c (continuable_type_error_with_frob): New.
9735         * eval.c (maybe_continuable_type_error_with_frob): New.
9736         New functions for use with structured errors.
9737
9738         * event-Xt.c:
9739         * event-Xt.c (x_event_to_emacs_event):
9740         Buttons are now modifiers too.
9741
9742         * event-Xt.c (emacs_Xt_current_event_timestamp):
9743         Implement new event method.
9744         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
9745
9746         * event-msw.c:
9747         * event-msw.c (ntpipe_shove_writer): [5].
9748         * event-msw.c (mswindows_enqueue_mouse_button_event):
9749         * event-msw.c (mswindows_drain_windows_queue):
9750         * event-msw.c (mswindows_wnd_proc): [7].
9751         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
9752         * event-msw.c (mswindows_modifier_state):
9753         Throughout: support new button modifiers.
9754
9755         * event-msw.c (emacs_mswindows_current_event_timestamp):
9756         Implement new event method.
9757         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
9758
9759         * event-stream.c:
9760         * event-stream.c (event_stream_current_event_timestamp): New.
9761         * event-stream.c (maybe_kbd_translate): New functionality.
9762         * event-stream.c (vars_of_event_stream):
9763         Document new kbd-translate-table functionality.
9764
9765         * event-stream.c (Fcurrent_event_timestamp): New.
9766         New primitive for use in fabricated events.
9767         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
9768
9769         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
9770
9771         * events.c:
9772         * events.c (Fmake_event):
9773         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
9774         [1].
9775         [9].
9776
9777         * events.c (format_event_object): fix gcc warnings.
9778
9779         * events.c (Fevent_timestamp): Document new primitives.
9780
9781         * events.c (TIMESTAMP_HALFSPACE): New.
9782
9783         * events.c (Fevent_timestamp_lessp): New.  New primitive for
9784         comparing timestamps correctly (half-space algorithm).
9785
9786         * events.c (Fevent_modifier_bits): Doc fix.
9787
9788         * events.c (Fevent_modifiers): Major doc addition.
9789         * events.c (event_x_y_pixel_internal): Typo fix.
9790         * events.c (syms_of_events): Declare new primitives.
9791
9792         * events.h:
9793         Update long comment for button modifiers, timestamps.
9794
9795         * events.h (struct event_stream):
9796         New current_event_timestamp method.
9797
9798         * extents.c:
9799         * extents.c (extent_in_region_p):
9800         * extents.c (decode_extent):
9801         * extents.c (Fset_extent_parent):
9802         * extents.c (decode_map_extents_flags):
9803         Fix gcc warnings.
9804         [9].
9805
9806         * extents.c (struct extent_at_arg):
9807         * extents.c (decode_extent_at_flag):
9808         * extents.c (extent_at_mapper):
9809         * extents.c (extent_at_bytind):
9810         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
9811         * extents.c (Fextents_at): New primitive. [9].
9812         * extents.c (symbol_to_glyph_layout): [9].
9813         Support new primitive `extents-at'.
9814
9815
9816         * extents.c (get_text_property_bytind):
9817         extent_at_bytind has another arg.
9818         [9].
9819
9820         * extents.c (syms_of_extents): New primitive.
9821
9822         * file-coding.c (Fmake_coding_system): [1].
9823         * file-coding.c (subsidiary_coding_system): fix gcc warning
9824         * file-coding.c (syms_of_file_coding): [2].
9825
9826         * fileio.c (Fexpand_file_name):
9827         * fileio.c (Fsysnetunam):
9828         * fileio.c (Ffile_exists_p):
9829         * fileio.c (Ffile_executable_p):
9830         * fileio.c (Fverify_visited_file_modtime):
9831         Clean up GCPROing.
9832
9833         * fileio.c (syms_of_fileio): [2].
9834
9835         * filelock.c (lock_file_1):
9836         * filelock.c (current_lock_owner):
9837         * filelock.c (lock_if_free):
9838         * filelock.c (lock_file):
9839         * filelock.c (unlock_file):
9840         Clean up GCPROing.
9841
9842         * fns.c (concat): Fix gcc warning.
9843
9844         * fns.c (Fmember):
9845         * fns.c (Fold_member):
9846         * fns.c (Fmemq):
9847         * fns.c (Fold_memq):
9848         * fns.c (memq_no_quit):
9849         * fns.c (Fassoc):
9850         * fns.c (Fold_assoc):
9851         * fns.c (Fassq):
9852         * fns.c (Fold_assq):
9853         * fns.c (assq_no_quit):
9854         * fns.c (Frassoc):
9855         * fns.c (Fold_rassoc):
9856         * fns.c (Frassq):
9857         * fns.c (Fold_rassq):
9858         * fns.c (rassq_no_quit):
9859         * fns.c (Fdelete):
9860         * fns.c (Fold_delete):
9861         * fns.c (Fdelq):
9862         * fns.c (Fold_delq):
9863         * fns.c (delq_no_quit):
9864         * fns.c (Fremassoc):
9865         * fns.c (Fremassq):
9866         * fns.c (remassq_no_quit):
9867         * fns.c (Fremrassoc):
9868         * fns.c (Fremrassq):
9869         * fns.c (remrassq_no_quit):
9870         * fns.c (Freverse):
9871         * fns.c (mapcar1):
9872         [1].
9873
9874         * frame-msw.c (mswindows_init_frame_1):
9875         * frame-msw.c (mswindows_delete_frame):
9876         Register popups with dialog code so keyboard traversing works.
9877
9878         * frame-tty.c (tty_raise_frame_no_select): [1].
9879
9880         * frame-x.c:
9881         * frame-x.c (x_set_frame_text_value):
9882         * frame-x.c (x_set_frame_properties):
9883         * frame-x.c (x_create_widgets):
9884         [7].
9885
9886         * frame.c:
9887         * frame.c (Fmouse_pixel_position): Minor doc fixes.
9888
9889         * frame.h (wrap_frame): New.
9890         Macro like wrap_device.
9891
9892         * general.c:
9893         * general.c (SYMBOL):
9894         * general.c (syms_of_general):
9895         Major reorg.  This is now just a wrapper and symbols themselves
9896         are listed in general-slots.h.
9897
9898         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
9899         * glyphs-msw.c (mswindows_resource_instantiate): [5].
9900
9901         * glyphs-msw.c (mswindows_native_layout_instantiate):
9902         Add DS_CONTROL so keyboard traversal will work.
9903
9904         * glyphs-widget.c:
9905         * glyphs-widget.c (syms_of_glyphs_widget):
9906         Move some symbols to general-slots.h.
9907
9908         * glyphs-x.c:
9909         * glyphs-x.c (xbm_instantiate_1):
9910         * glyphs-x.c (x_xbm_instantiate):
9911         * glyphs-x.c (x_xface_instantiate):
9912         * glyphs-x.c (autodetect_instantiate):
9913         * glyphs-x.c (cursor_font_instantiate):
9914         * glyphs-x.c (x_update_widget):
9915         * glyphs-x.c (x_widget_instantiate):
9916         * glyphs.c (bitmap_to_lisp_data):
9917         * glyphs.c (pixmap_to_lisp_data):
9918         [7].
9919
9920         * glyphs.c (syms_of_glyphs):
9921         [2].
9922
9923         * gui-x.c:
9924         * gui-x.c (print_widget_value):
9925         * gui-x.c (menu_separator_style_and_to_external):
9926         * gui-x.c (add_accel_and_to_external):
9927         * gui-x.c (button_item_to_widget_value):
9928         * gui-x.c (gui_items_to_widget_values_1):
9929         * gui-x.c (gui_items_to_widget_values):
9930         * gui-x.c (syms_of_gui_x):
9931         * gui-x.c (vars_of_gui_x):
9932         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
9933         [9].
9934
9935         * gui-x.h:
9936         Muleize, prototype changes matching gui-x.c.
9937
9938         * gui.c:
9939         * gui.c (separator_string_p):
9940         * gui.c (gui_item_add_keyval_pair):
9941         * gui.c (make_gui_item_from_keywords_internal):
9942         * gui.c (signal_too_long_error):
9943         * gui.c (parse_gui_item_tree_item):
9944         * gui.c (syms_of_gui):
9945         * gui.c (vars_of_gui):
9946         * gui.h:
9947         menu-no-selection-hook moved here (used by MSWin).
9948         Move some symbols to general-slots.h.
9949         [6].
9950         [9].
9951
9952         * insdel.c (get_buffer_pos_char):
9953         * insdel.c (get_buffer_range_char):
9954         Add GC comments.
9955
9956         * keymap.c (keymap_lookup_directly):
9957         * keymap.c (keymap_store):
9958         * keymap.c (ensure_meta_prefix_char_keymapp):
9959         * keymap.c (describe_map):
9960         * keymap.h:
9961         Support new button modifiers.
9962
9963         * lisp-disunion.h (wrap_object):
9964         * lisp-disunion.h (XSETOBJ):
9965         Rename make_obj to wrap_object.
9966
9967         * lisp-union.h:
9968         * lisp-union.h (make_int):
9969         * lisp-union.h (make_char):
9970         Support wrap_object.
9971
9972         * lisp.h:
9973         * lisp.h (LIST_LOOP):
9974         * lisp.h (EXTERNAL_LIST_LOOP):
9975         * lisp.h (LIST_LOOP_2):
9976         * lisp.h (EXTERNAL_LIST_LOOP_1):
9977         * lisp.h (EXTERNAL_LIST_LOOP_2):
9978         * lisp.h (EXTERNAL_LIST_LOOP_3):
9979         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
9980         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
9981         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
9982         * lisp.h (EXTERNAL_ALIST_LOOP_5):
9983         * lisp.h (EXTERNAL_ALIST_LOOP_6):
9984         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
9985         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
9986         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
9987         * lisp.h (struct Lisp_Symbol):
9988         * lisp.h (maybe_continuable_error_with_frob):
9989         Fix up section comments.
9990         Add new types for char to indicate usage.
9991         Delete symbols auto-generated from general-slots.h.
9992         Add prototypes for structured error functions.
9993         Add long comments describing looping macros and change interface
9994         so that lvalues are automatically declared.
9995         Add NO_DECLARE macro in case callers want to declare lvalues
9996         themselves.
9997
9998         * lread.c (read_syntax_error):
9999         * lread.c (continuable_read_syntax_error):
10000         * lread.c (read_structure):
10001         * lread.c (sequence_reader):
10002         * lread.c (read_list_conser):
10003         * lread.c (read_compiled_function):
10004         Rename syntax_error and continuable_syntax_error to avoid clash
10005         with same-named structured error functions.
10006
10007         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
10008         * menubar-msw.c (populate_menu_add_item):
10009         * menubar-msw.c (populate_or_checksum_helper):
10010         [5].
10011         [9].
10012
10013         * menubar-x.c:
10014         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10015         Mule-ize whole file.
10016
10017         * menubar.c (Fnormalize_menu_item_name): Add optimization.
10018
10019         * mule-charset.c (Fmake_charset):
10020         * mule-wnnfns.c (Fwnn_set_param):
10021         [1].
10022
10023         * ntproc.c (create_child):
10024         * ntproc.c (Fwin32_set_current_locale):
10025         Add comments portending doom.
10026
10027         * objects-msw.c:
10028         * objects-msw.c (old_font_enum_callback_2):
10029         * objects-msw.c (font_enum_callback_1):
10030         * objects-msw.c (mswindows_enumerate_fonts):
10031         [5].
10032
10033         * objects-x.c:
10034         * objects-x.c (allocate_nearest_color):
10035         * objects-x.c (x_parse_nearest_color):
10036         * objects-x.c (x_initialize_color_instance):
10037         * objects-x.c (x_print_color_instance):
10038         * objects-x.c (x_finalize_color_instance):
10039         * objects-x.c (x_valid_color_name_p):
10040         * objects-x.c (x_initialize_font_instance):
10041         * objects-x.c (x_print_font_instance):
10042         * objects-x.c (valid_x_font_name_p):
10043         * objects-x.c (truename_via_FONT_prop):
10044         * objects-x.c (truename_via_random_props):
10045         * objects-x.c (truename_via_XListFonts):
10046         * objects-x.c (x_font_truename):
10047         * objects-x.c (x_font_instance_truename):
10048         * objects-x.c (x_font_instance_properties):
10049         * objects-x.c (x_list_fonts):
10050         * objects-x.c (x_find_charset_font):
10051         Mule-ize entire file.
10052         [7].
10053
10054         * objects-x.h:
10055         Mule-verify.
10056
10057         * print.c:
10058         * print.c (std_handle_out_external):
10059         * print.c (debug_print_no_newline):
10060         * print.c (syms_of_print):
10061         Output to all debugger kinds in debug-print.
10062         Fix console-output code under MSWin to actually work.
10063
10064         * process-nt.c (send_signal):
10065         * process-nt.c (nt_create_process):
10066         Use newer Unicode macros.
10067
10068         * process-unix.c (unix_create_process):
10069         * process-unix.c (unix_canonicalize_host_name):
10070         * process-unix.c (unix_open_network_stream):
10071         [7].
10072
10073         * scrollbar-x.c:
10074         Mule-verify.
10075
10076         * search.c (syms_of_search):
10077         [2].
10078
10079         * select-msw.c (mswindows_destroy_selection):
10080         Use LIST_LOOP_2.
10081
10082         * select-x.c (symbol_to_x_atom):
10083         [7].
10084
10085         * select.c (syms_of_select):
10086         [2].
10087
10088         * sound.c (Fplay_sound_file):
10089         [7].
10090
10091         * specifier.c:
10092         * specifier.c (decode_specifier_type):
10093         * specifier.c (Fvalid_specifier_locale_type_p):
10094         * specifier.c (check_valid_locale_or_locale_type):
10095         * specifier.c (decode_locale):
10096         * specifier.c (decode_locale_type):
10097         * specifier.c (decode_locale_list):
10098         * specifier.c (check_valid_domain):
10099         * specifier.c (decode_specifier_tag_set):
10100         * specifier.c (Fcanonicalize_tag_set):
10101         * specifier.c (Fdefine_specifier_tag):
10102         * specifier.c (Fspecifier_tag_predicate):
10103         * specifier.c (check_valid_inst_list):
10104         * specifier.c (check_valid_spec_list):
10105         * specifier.c (decode_how_to_add_specification):
10106         * specifier.c (check_modifiable_specifier):
10107         * specifier.c (specifier_add_spec):
10108         * specifier.c (boolean_validate):
10109         * specifier.c (display_table_validate):
10110         [9].
10111
10112         * specifier.c (syms_of_specifier):
10113         Move some symbols to general-slots.h.
10114         [2].
10115
10116         * symbols.c:
10117         * symbols.c (Fmapatoms):
10118         * symbols.c (Fapropos_internal):
10119         Add GCPROs.
10120
10121         * symbols.c (set_default_buffer_slot_variable):
10122         * symbols.c (set_default_console_slot_variable):
10123         [1].
10124
10125         * symbols.c (defsymbol_massage_name_1):
10126         * symbols.c (defkeyword_massage_name):
10127         * symbols.c (deferror_1):
10128         * symbols.c (deferror):
10129         * symbols.c (deferror_massage_name_and_message):
10130         * symeval.h:
10131         * symeval.h (DEFSYMBOL):
10132         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
10133
10134         * symbols.c (syms_of_symbols):
10135         [2].
10136
10137         * symsinit.h:
10138         * symsinit.h (init_win32): New.
10139         Also new is syms_of_dialog_mswindows.
10140
10141         * syswindows.h:
10142         Add new Unicode macros, missing Cygwin wide-char functions,
10143         convenience conversion macros for Qmswindows_tstr, macros for
10144         encapsulating required MSWin <-> Cygwin filename conversions,
10145         prototype for dynamically-extracted (not in NT 3.51) functions.
10146
10147         * toolbar-x.c:
10148         Mule-verify.
10149
10150         * tooltalk.c (Fadd_tooltalk_message_arg):
10151         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
10152         * tooltalk.c (Fadd_tooltalk_pattern_arg):
10153         [7].
10154
10155         * tooltalk.c (syms_of_tooltalk):
10156         [2].
10157
10158         * unexnt.c:
10159         * unexnt.c (unexec):
10160         Fix up headers, declaration of unexec() to be more standard.
10161
10162 2000-07-20  Martin Buchholz  <martin@xemacs.org>
10163
10164         * offix.h: Revert change to guard macros - they're used in offix.c!
10165
10166 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10167
10168         * lisp.h: Defsubred Fdelete.
10169
10170         * console-msw.h:  (msprinter_default_printer): Added.
10171
10172         * console-msw.c (msprinter_canonicalize_console_connection):
10173         (msprinter_canonicalize_device_connection): Added.
10174
10175         * device-msw.c (msprinter_default_printer):
10176         (Fmswingows_get_default_printer):
10177         (signal_enum_priner_error):
10178         (Fmswingows_printer_list): Added.
10179
10180 2000-07-19  Martin Buchholz <martin@xemacs.org>
10181
10182         * XEmacs 21.2.35 is released.
10183
10184 2000-07-19  Martin Buchholz  <martin@xemacs.org>
10185
10186         * select-x.c (x_handle_selection_request):
10187         Text selected in xemacs and pasted into xterm failed to appear.
10188         Spelling fixes and cosmetic changes.
10189
10190 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10191
10192         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
10193         XEmacs frame (fix for doubling chars in dialog boxes).
10194
10195 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
10196
10197         * select.c (select_convert_in, select_convert_out):
10198         Don't call intern() every time.
10199
10200         * select.c (Qselect_convert_in, Qselect_convert_out): New.
10201         * select.c (vars_of_select): Initialise them.
10202
10203 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
10204
10205         * select.c (selection-coercible-types): New.
10206
10207         * select.c (own-selection-internal):
10208         * select.c (get-selection-internal):
10209         MULE bug fix - these should default to COMPOUND_TEXT and not
10210         STRING for MULE. I think.
10211
10212         * select.c (select_convert_out): Use selection-coercible-types
10213         to find types that we can attempt to perform coercions on.
10214
10215 2000-07-18  Martin Buchholz  <martin@xemacs.org>
10216
10217         * mule-wnnfns.c:
10218         * mule-canna.c:
10219         Add coding: cookie to identify encoding.
10220
10221         * mule-canna.c (CANNA_mode_keys): make static.
10222         Use proper prototypes, even for functions of no arguments.
10223         Remove external prototype for Fding().
10224
10225         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
10226
10227         * select.c (syms_of_select): Add missing DEFSUBR.
10228
10229 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
10230
10231         * select.c (get_selection_internal, own_selection_internal):
10232         Make the type default to STRING, rather than placing a nil type
10233         into Vselection_alist.
10234
10235 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
10236
10237         * gpmevent.c (tty_selection_exists_p):
10238         * gpmevent.c (tty_own_selection):
10239         Updated parameter lists.
10240
10241 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
10242
10243         * select.h (selection-alist): Removed declaration.
10244
10245         * select.h (get_local_selection):
10246         * select.c (get_local_selection):
10247         Made static.
10248
10249         * select.h (convert_selection): Removed declaration.
10250         * select.c (convert_selection): Removed.
10251         This function belongs in Lisp.
10252
10253         * select.h (select_convert_in): Declare.
10254         * select.h (select_convert_out): Declare.
10255         * select.c (select_convert_in): New.
10256         * select.c (select_convert_out): New.
10257         New conversion functions for other files to call.
10258
10259         * select.h (select_notify_buffer_kill): Declare.
10260         * select.c (select_notify_buffer_kill): New.
10261         New functions that get called from kill-buffer.
10262
10263         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
10264         X-specific lisp code.
10265
10266         * select.h: Declare some of the lisp-visible functions for
10267         external use.
10268
10269         * select.c (clean_local_selection_data): Removed. This was
10270         a disgusting function, and previously should have been in
10271         select-x.c in any case. The functionality is now provided
10272         in select-convert-from-integer (select.el).
10273
10274         * select.c (available-selection-types): Fixed stupidity where
10275         INTEGER and ATOM got added twice. Also add STRING when we see an
10276         extent.
10277
10278         * select.c (get-selection-internal): Removed symbol stripping. No
10279         longer causes conversion when data comes from the internal cache.
10280
10281         * select.c (syms_of_select): Added new functions.
10282
10283         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
10284         error checking - previously this called abort!
10285
10286         * select-x.c (x_own_selection): Changed comment.
10287
10288         * select-x.c (x_handle_selection_request): Use select_convert_out.
10289         Don't mess with selection-alist; it's an internal variable of select.c.
10290
10291         * select-x.c (x_get_foreign_selection): Use select_convert_in.
10292
10293         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
10294         rather than messing with selection-alist.
10295
10296         * select-msw.c (mswindows_get_foreign_selection):
10297         Use TO_INTERNAL_FORMAT rather than hacking.
10298
10299 2000-07-14  Martin Buchholz  <martin@xemacs.org>
10300
10301         * process-unix.c (unix_open_multicast_group):
10302         (unix_open_multicast_group): Remove useless casts.
10303
10304 2000-07-13  Martin Buchholz  <martin@xemacs.org>
10305
10306         * sound.c (Fplay_sound): Fix `unused variable' warning.
10307
10308         * emacs.c (main): Use correct type for _environ on SCO5.
10309
10310 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
10311
10312         * console.h (own_selection_method):
10313         * console.h (selection_exists_p_method):
10314         * console.h (available_selection_types_method): New.
10315         * console.h (register_selection_data_type_method): New.
10316         * console.h (selection_data_type_name): New.
10317
10318         * console-msw.h (mswindows_destroy_selection): Declare it.  New
10319         function & alist to track GlobalAlloc()'d handles that need
10320         releasing when the clipboard data gets replaced or emptied.
10321
10322         * event-msw.c (mswindows_wnd_proc): Call it.
10323
10324         * lisp.h, general.c (Qappend): New symbol representing a
10325         `how-to-add' mode.
10326
10327         * select.c (own-selection-internal):
10328         * select.c (selection-exists-p):
10329         * select.c (available-selection-types): New.
10330         * select.c (register-selection-data-type): New.
10331         * select.c (selection-data-type-name): New.  New functions to deal
10332         with device-specific selection data formats.
10333         * select.c (selection-converter-out-alist): Renamed.
10334         * select.c (selection-converter-in-alist): New.
10335         * select.c (selection-appender-alist): New.  Added new alists.
10336         * select.c (syms_of_select, vars_of_select): Added new symbols &
10337         variables.
10338         * select.c (get_local_selection): Split.
10339         * select.c: Removed spurious type checking - selections may now be
10340         of any type, not just strings.
10341         * select.c (own-selection-internal):
10342
10343         * select.h, select.c (convert_selection): New. Created
10344         convert_selection() function based on get_local_selection().
10345         * select.h, select.c (QCF_*): New symbols representing mswindows
10346         clipboard formats.
10347         * select.h, select.c (Qreplace_all, Qreplace_existing): New
10348         symbols representing `how-to-add' modes.
10349
10350         * select-msw.c (x_sym_p): New.
10351         * select-msw.c (symbol_to_ms_cf): New.
10352         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
10353         symbols & clipboard formats. Can also handle string names.
10354         * select-msw.c (mswindows_own_selection):
10355         * select-msw.c (mswindows_selection_exists_p):
10356         Added `data-type' parameter. Use it.
10357         * select-msw.c (mswindows_available_selection_types): New.
10358         * select-msw.c (mswindows_register_selection_data_type): New.
10359         * select-msw.c (mswindows_selection_data_type_name): New.
10360         * select-msw.c (mswindows_own_selection):
10361         * select-msw.c (mswindows_get_foreign_selection):
10362         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
10363         * select-msw.c (console_create_select_mswindows): Added new methods.
10364         * select-msw.c (mswindows_destroy_selection): New.
10365         * select-msw.c (Vhandle_alist): New list.
10366         * select-msw.c (mswindows_own_selection):
10367
10368         * select-x.c (x_own_selection):
10369         * select-x.c (x_selection_exists_p):
10370         * select-x.c: Added some comments about maybe using new
10371         functionality.
10372         * select-x.c (x_own_selection):
10373
10374         * specifier.c: Remove definition of Qappend (now in general.c)
10375         * specifier.c (syms_of_specifier): Remove Qappend.
10376
10377 2000-07-12  Martin Buchholz  <martin@xemacs.org>
10378
10379         * config.h.in: Add socklen_t.
10380
10381         * s/decosf4-0.h: No special compiler flags needed or desired.
10382         In particular, undefine _BSD for DEC OSF 4.0.
10383
10384 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10385
10386         * redisplay-msw.c (msprinter_frame_output_end): Added.
10387         (console_type_create_redisplay_mswindows): Referred the above.
10388
10389         * frame.c (setup_frame_without_minibuffer): Do not create a
10390         default minibuffer frame on a printer device.
10391
10392         * frame-msw.c (apply_dc_geometry): Added.
10393         (msprinter_start_page):
10394         (msprinter_init_frame_3):
10395         (msprinter_eject_page): Use it.
10396
10397         * console-msw.h (struct msprinter_frame): Added pix_left and top,
10398         and removed residual duplex and orientation properties.
10399
10400 2000-07-11  Martin Buchholz  <martin@xemacs.org>
10401
10402         * eval.c (function_argcount): Work around a DEC CC compiler bug.
10403
10404         * unexalpha.c: Remove system prototypes from C sources!
10405
10406 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
10407
10408         * eval.c: Remove references to M-x edit-options in DEFUNs for
10409         `defvar' and `defconst'.
10410
10411 2000-07-09  Martin Buchholz  <martin@xemacs.org>
10412
10413         * config.h.in: Remove SMART_INCLUDE hackery.
10414
10415         PostgreSQL hacking:
10416         * config.h.in: Don't use SMART_INCLUDE.
10417
10418         * postgresql.h: Include libpq-fe.h here.  Fix typo.
10419         * inline.c: Simply #include "postgresql.h"
10420         * postgresql.c:
10421         - Don't use SMART_INCLUDE
10422         - Use simply "const".
10423         - Use standard doc string conventions.
10424         - Use correct type for result of PQstatus.
10425
10426 2000-07-09  Martin Buchholz  <martin@xemacs.org>
10427
10428         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
10429
10430         C++ compilation changes.
10431         * config.h.in (EXTERN_C): Define.
10432         * config.h.in (not): This is also a C++ keyword.
10433         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
10434         * cm.c: Use EXTERN_C.
10435         * redisplay-tty.c: Use EXTERN_C.
10436         * sysdep.c: Use EXTERN_C.  Remove Gould support.
10437
10438 2000-07-09  Martin Buchholz  <martin@xemacs.org>
10439
10440         * general.c: Remove duplicate definition for Qfunction.
10441
10442 2000-07-08  Ben Wing  <ben@xemacs.org>
10443
10444         * device-msw.c (msprinter_init_device):
10445         * device-msw.c (sync_printer_with_devmode):
10446         * device-msw.c (handle_devmode_changes):
10447         * device-msw.c (print_dialog_worker):
10448         * device-msw.c (Fmsprinter_apply_settings):
10449         * device-msw.c (hash_devmode):
10450         * device-msw.c (Fmsprinter_settings_despecialize):
10451         use Qmswindows_tstr, not Qctext.
10452
10453         * vm-limit.c (check_memory_limits):
10454         avoid infinite loop printing warning messages.
10455
10456 2000-07-05  Craig Lanning  <lanning@scra.org>
10457
10458         * Makefile.in.in: Add support for including the Windows resources
10459         when building with the cygwin and mingw targets.
10460
10461         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
10462         not set or not correct.
10463         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
10464         (init_initial_directory): Don't try to use $PWD on the
10465         WIN32_NATIVE target.
10466
10467         * s\cygwin32.h:
10468         [[Add -mwindows to eliminate console window.]] not required --ben
10469         (HAVE_NATIVE_SOUND): removed; now handled by configure.
10470         (MAIL_USE_POP): removed; now handled by configure.
10471
10472         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
10473         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
10474         (HAVE_NATIVE_SOUND): removed; now handled by configure.
10475         (MAIL_USE_POP): removed; now handled by configure.
10476         (ENCAPSULATE_STAT): from Dan Holmsand, added.
10477         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
10478         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
10479         constant string.
10480         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
10481         up from <winsock.h> via systime.h.
10482         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
10483         (getpagesize): from Dan Holmsand, added.
10484         Added #endif which was left dangling by Ben's mega patch; added
10485         comment to help prevent this in the future.
10486
10487         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
10488
10489 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10490
10491         * console-msw.h (struct mswindows_device): Removed unnecessary
10492         cached device geometry values.
10493         Added update_tick and an accessor macro.
10494         (Lisp_Devmode): Added lrecord declaration.
10495         (struct msprinter_device): Contain devmode as a Lisp object.
10496         Added mswindows_get_selected_frame_hwnd();
10497
10498         * console.h (struct console_methods): Indentation nitpicking.
10499
10500         * device-msw.c (mswindows_init_device): Do not initialize geometry
10501         cache. Initialize update tick.
10502         (mswindows_device_system_metrics): Ask the device for its geometry.
10503         (global_free_2_maybe):
10504         (devmode_to_hglobal):
10505         (handle_printer_changes):
10506         (ensure_not_printing):
10507         (print_dialog_worker):
10508         (Fmsprinter_print_setup_dialog):
10509         (Fmsprinter_print_dialog):
10510         (plist_get_margin):
10511         (plist_set_margin):
10512         (Fmsprinter_page_setup_dialog): Added functions.
10513         (sync_printer_with_devmode):
10514         (handle_devmode_changes):
10515         (Fmsprinter_get_settings):
10516         (Fmsprinter_select_settings):
10517         (Fmsprinter_apply_settings):
10518         (allocate_devmode):
10519         (Fmsprinter_settings_copy):
10520         (Fmsprinter_settings_despecialize):
10521         (print_devmode):
10522         (finalize_devmode):
10523         (equal_devmode):
10524         (hash_devmode): Added functions
10525         (syms_of_device_mswindows): Init devmode lrecord class.
10526
10527         * device.h: Added an exfun for find-device.
10528
10529         * event-msw.c (mswindows_wnd_proc): Do not update the cached
10530         geometry; although, recreate the device compatible DC.
10531
10532         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
10533         (msprinter_init_frame_3):
10534         (msprinter_frame_property):
10535         (msprinter_internal_frame_property_p):
10536         (msprinter_frame_properties):
10537         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
10538         print job properties (will move to device settings).
10539
10540         * lisp.h: Added symbols.
10541
10542         * general.c (syms_of_general): Declared them.
10543
10544         * hash.c (string_hash): Added.
10545
10546         * lrecord.h (lrecord_type): Added devmode lrecord type.
10547
10548 2000-07-02  Mike Sperber <mike@xemacs.org>
10549
10550         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
10551         FreeBSD 4.0.
10552
10553 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
10554
10555         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
10556         integer.
10557
10558 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
10559
10560         * data.c (Fstring_to_number): Don't recognize floating point if
10561         base is not 10.
10562
10563 2000-06-22  Martin Buchholz  <martin@xemacs.org>
10564
10565         * glyphs-widget.c (tab_control_query_geometry):
10566         (widget_query_geometry):
10567         (button_query_geometry):
10568         * glyphs.c (text_query_geometry):
10569         Enforce type correctness.
10570
10571 2000-06-18  Martin Buchholz  <martin@xemacs.org>
10572
10573         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
10574         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
10575
10576 2000-06-17  Martin Buchholz  <martin@xemacs.org>
10577
10578         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
10579         conflicts with gcc's fixincluded version of FOO.h.
10580
10581         * glyphs.h (image_instance_geometry): Remove trailing `,'
10582
10583 2000-06-08  Mike Alexander  <mta@arbortext.com>
10584
10585         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
10586         (shove_thread): Don't write the same output twice
10587         (make_ntpipe_output_stream): Increase priority of shove thread
10588         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
10589         chance to run
10590         (ntpipe_shove_closer): Don't delete the pipe until we're done with
10591         it.
10592
10593 2000-06-12  Ben Wing  <ben@xemacs.org>
10594
10595         * s\mingw32.h (sigset):
10596         * s\windowsnt.h (sigset):
10597         rename msw_ to mswindows_ for consistency with general convention.
10598
10599 2000-06-12  Ben Wing  <ben@xemacs.org>
10600
10601         * console-msw.c:
10602         * console-msw.c (mswindows_get_console_hwnd):
10603         * console-msw.c (mswindows_ensure_console_allocated):
10604         * console-msw.c (mswindows_hide_console):
10605         * console-msw.c (mswindows_show_console):
10606         * console-msw.c (mswindows_ensure_console_buffered):
10607         * console-msw.c (mswindows_output_console_string):
10608         * console-msw.c (mswindows_windows9x_p):
10609         * console-msw.h:
10610         * device-msw.c (mswindows_get_workspace_coords):
10611         * device-msw.c (mswindows_device_system_metrics):
10612         * dialog-msw.c (mswindows_popup_dialog_box):
10613         * event-msw.c (mswindows_wnd_proc):
10614         * frame-msw.c (mswindows_size_frame_internal):
10615         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
10616         * menubar-msw.c (displayable_menu_item):
10617         * menubar-msw.c (mswindows_char_is_accelerator):
10618         * nt.c:
10619         * nt.c (mswindows_sigset):
10620         * nt.c (mswindows_sigrelse):
10621         * nt.c (mswindows_sigpause):
10622         * nt.c (mswindows_raise):
10623         * nt.c (timer_proc):
10624         * ntproc.c:
10625         * ntproc.c (find_child_console):
10626         * ntproc.c (sys_kill):
10627         * print.c:
10628         * print.c (std_handle_out_external):
10629         * process-nt.c (find_child_console):
10630         * process-nt.c (send_signal_the_95_way):
10631         * process-nt.c (ensure_console_window_exists):
10632         * process-nt.c (nt_create_process):
10633         * syssignal.h:
10634         rename msw_ to mswindows_ for consistency with general convention.
10635
10636         * emacs.c:
10637         * dumper.c:
10638         include nt.h, not syswindows.h.
10639
10640         * nt.c (mswindows_fstat):
10641         * nt.c (mswindows_stat):
10642         prefix mswindows_ instead of attempting to directly override the
10643         library functions.  fix declarations.
10644
10645         * nt.h:
10646         include syswindows.h.  move some sysdep.h stuff here.
10647
10648         * ntheap.h:
10649         include syswindows.h, not <windows.h>.
10650
10651         * ntplay.c:
10652         clean up headers.
10653
10654         * sysdep.c:
10655         clean up headers.
10656
10657         * sysdep.c (sys_fstat):
10658         * sysdep.c (sys_stat):
10659         call mswindows versions when appropriate.
10660
10661         * sysdep.h:
10662         move mswin decls to nt.h.
10663
10664         * syswindows.h:
10665         add long comment describing appropriate use of the various windows
10666         headers.
10667
10668 2000-06-11  Ben Wing  <ben@xemacs.org>
10669
10670         * device-x.c: Correct doc string for sixth arg of x-get-resource.
10671
10672 2000-06-10  Ben Wing  <ben@xemacs.org>
10673
10674         * Makefile.in.in (release):
10675         Correction to make sure xemacs.exe always dumped when correct.
10676
10677         * alloca.c:
10678         * balloon_help.c:
10679         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
10680
10681         * buffer.c (set_buffer_internal):
10682         [[[[2]]]]: Remove HAVE_FEP code.
10683
10684         * buffer.c (init_initial_directory):
10685         [3].
10686
10687         * bytecode.c:
10688         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
10689         individual files.
10690
10691         * callproc.c:
10692         * callproc.c (call_process_cleanup):
10693         * callproc.c (Fold_call_process_internal):
10694         * callproc.c (child_setup):
10695         * callproc.c (getenv_internal):
10696         * callproc.c (init_callproc):
10697         * callproc.c (vars_of_callproc):
10698         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
10699         __CYGWIN32__ -> CYGWIN.
10700         DOS_NT -> WIN32_NATIVE.
10701         Remove MSDOS support/references, converting to WIN32_NATIVE
10702           where correct.
10703         __MINGW32__ -> MINGW.
10704         Fix windows.h includes.
10705         Remove bogus HAVE_NTGUI.
10706
10707         * config.h.in:
10708         [2].
10709
10710         * console-msw.c:
10711         mswindows_message_outputted added for use in allowing startup
10712         errors on the console to be seen.
10713
10714         * console-msw.c (msw_ensure_console_allocated):
10715         * console-msw.c (msw_output_console_string):
10716         * console-msw.c (DHEADER):
10717         * console-msw.c (DOPAQUE_DATA):
10718         * console-msw.c (DEVENT):
10719         * console-msw.c (DCONS):
10720         * console-msw.c (DCONSCDR):
10721         * console-msw.c (DSTRING):
10722         * console-msw.c (DVECTOR):
10723         * console-msw.c (DSYMBOL):
10724         * console-msw.c (DSYMNAME):
10725         Fix warnings.
10726
10727         * console-stream.c (stream_init_console):
10728         Fix text/binary problems.
10729
10730         * device-msw.c:
10731         * device-msw.c (mswindows_finish_init_device):
10732         * device-msw.c (mswindows_delete_device):
10733         [1].
10734
10735         * device.c (handle_asynch_device_change):
10736         [3].
10737
10738         * dgif_lib.c:
10739         * dgif_lib.c (DGifOpenFileName):
10740         * dgif_lib.c (DGifOpenFileHandle):
10741         * dgif_lib.c (DGifGetLine):
10742         * dgif_lib.c (DGifGetPixel):
10743         Added config.h/lisp.h, fix up includes.
10744         [1].
10745
10746         * dired-msw.c:
10747         [4].
10748
10749         * dired.c:
10750         * dired.c (file_name_completion):
10751         * dired.c (Ffile_attributes):
10752         * dired.c (syms_of_dired):
10753         [1].
10754
10755         * dumper.c:
10756         * dumper.c (pdump_file_unmap):
10757         * dumper.c (pdump_load):
10758         [1].
10759
10760         * editfns.c:
10761         * editfns.c (Ftemp_directory):
10762         * editfns.c (user_login_name):
10763         * editfns.c (Fuser_real_login_name):
10764         * editfns.c (get_home_directory):
10765         [1].
10766
10767         * elhash.c (finish_marking_weak_hash_tables):
10768         [[[[5]]]]: Fix GCC warnings.
10769
10770         * emacs.c:
10771         * emacs.c (mswindows_handle_hardware_exceptions):
10772         * emacs.c (make_arg_list_1):
10773         * emacs.c (main_1):
10774         * emacs.c (Fkill_emacs):
10775         * emacs.c (Fdump_emacs):
10776         [1].
10777         Fix problems with nested crashes, add long comment.
10778
10779         * event-Xt.c (init_event_Xt_late):
10780         [1].
10781
10782         * event-msw.c:
10783         * event-msw.c (mswindows_dde_callback):
10784         * event-msw.c (mswindows_handle_sticky_modifiers):
10785         * event-msw.c (mswindows_wnd_proc):
10786         [1].
10787         [5].
10788
10789         * events.c (character_to_event):
10790         [1].
10791
10792         * fileio.c:
10793         * fileio.c (Ffile_name_directory):
10794         * fileio.c (Ffile_name_nondirectory):
10795         * fileio.c (directory_file_name):
10796         * fileio.c (Fexpand_file_name):
10797         * fileio.c (Fsubstitute_in_file_name):
10798         * fileio.c (Ffile_name_absolute_p):
10799         * fileio.c (check_executable):
10800         * fileio.c (Ffile_readable_p):
10801         * fileio.c (Ffile_accessible_directory_p):
10802         * fileio.c (Ffile_modes):
10803         * fileio.c (Funix_sync):
10804         * fileio.c (vars_of_fileio):
10805         [1]. [4].
10806
10807         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
10808
10809         Expand getdefdir defn.
10810         Fix bogus rename() comment.
10811
10812         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
10813         to use standard XEmacs include files, e.g. sysfile.h, rather
10814         than system-specific includes.
10815
10816         * fns.c:
10817         * fns.c (Fsubseq):
10818         [5]. [6].
10819
10820         * frame.c (vars_of_frame):
10821         [1].
10822
10823         * getloadavg.c:
10824         * getloadavg.c (getloadavg):
10825         [1]. [6].
10826         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
10827         (We don't use it elsewhere in the code; just add a comment.)
10828
10829         * gif_io.c:
10830         [6].
10831         Add config.h.
10832
10833         * glyphs-msw.c:
10834         * glyphs-msw.c (mswindows_resource_instantiate):
10835         [1].
10836
10837         * glyphs-x.c (x_native_layout_instantiate):
10838         [5].
10839
10840         * gui-msw.c (Fmswindows_shell_execute):
10841         [1].
10842
10843         * insdel.c:
10844         [4].
10845
10846         * lisp.h:
10847         [4]. [5].
10848
10849         * lread.c (locate_file_in_directory_mapper):
10850         [1].
10851
10852         * lstream.c:
10853         [4].
10854
10855         * mem-limits.h:
10856         * mem-limits.h (get_lim_data):
10857         [1].
10858
10859         * menubar-msw.c:
10860         [4].
10861
10862         * ndir.h:
10863         [1].
10864
10865         * nt.c:
10866         * nt.c (getwd):
10867         * nt.c (closedir):
10868         * nt.c (rva_to_section):
10869         * nt.c (mswindows_executable_type):
10870         [1]. [6].
10871         Fix closedir() defn.
10872
10873         * nt.h:
10874         [[[[8]]]]: *_OK defs moved to sysfile.h.
10875
10876         * ntproc.c:
10877         [6]. [7].
10878
10879         * objects-x.c:
10880         [4].
10881
10882         * print.c:
10883         * print.c (std_handle_out_external):
10884         [1]. [4].
10885
10886         * process-nt.c:
10887         * process-nt.c (nt_create_process):
10888         [6].
10889         try to fix process quoting somewhat.
10890
10891         * process-unix.c (unix_create_process):
10892         [1].
10893
10894         * process.c:
10895         * process.c (vars_of_process):
10896         Add Vnull_device.
10897
10898         * process.h:
10899         [1].
10900
10901         * realpath.c:
10902         * realpath.c (xrealpath):
10903         [1].
10904
10905         * redisplay-tty.c (init_tty_for_redisplay):
10906         [3].
10907
10908         * redisplay.c:
10909         [4]. [6].
10910
10911         * scrollbar-msw.c:
10912         [4].
10913
10914         * sheap.c:
10915         * sheap.c (more_static_core):
10916         * sheap.c (report_sheap_usage):
10917         [5]. [6].
10918
10919         * signal.c:
10920         * signal.c (alarm_signal):
10921         [1]. [6].
10922
10923         * sound.c:
10924         [6].
10925
10926         * strftime.c:
10927         * strftime.c (zone_name):
10928         [1]. [5].
10929
10930         * symsinit.h (init_sunpro):
10931         [1].
10932
10933         * syscommctrl.h:
10934         commctrl.h not in Cygwin b20.1.
10935
10936         * sysdep.c:
10937         * sysdep.c (endif):
10938         * sysdep.c (sys_subshell):
10939         * sysdep.c (init_baud_rate):
10940         * sysdep.c (emacs_get_tty):
10941         * sysdep.c (emacs_set_tty):
10942         * sysdep.c (tty_init_sys_modes_on_device):
10943         * sysdep.c (init_system_name):
10944         * sysdep.c (sys_open):
10945         * sysdep.c (interruptible_open):
10946         * sysdep.c (sys_fopen):
10947         * sysdep.c (sys_mkdir):
10948         * sysdep.c (sys_rename):
10949         * sysdep.c (get_process_times_1):
10950         [1]. [6].
10951
10952         * sysdep.h:
10953         [1].
10954
10955         * sysdir.h:
10956         * sysdir.h (DIRENTRY_NONEMPTY):
10957         [1]. [6].
10958
10959         * sysdll.c (dll_init):
10960         * sysdll.h:
10961         [1].
10962
10963         * sysfile.h:
10964         [1]. [6]. [8].
10965         added text/binary defs.
10966
10967         * sysfloat.h:
10968         [1].
10969
10970         * sysproc.h:
10971         * sysproc.h (EDESTADDRREQ):
10972         * sysproc.h (poll_fds_for_input):
10973         [1]. [6].
10974
10975         * syspwd.h:
10976         [6].
10977
10978         * syssignal.h:
10979         [1].
10980
10981         * systime.h:
10982         [1]. [6].
10983
10984         * systty.h:
10985         [1].
10986
10987         * syswindows.h:
10988         [1].
10989         Always define WIN32_LEAN_AND_MEAN.
10990
10991         * unexcw.c (unexec):
10992         [5].
10993
10994         * unexec.c:
10995         * unexec.c (copy_text_and_data):
10996         * unexec.c (adjust_lnnoptrs):
10997         [1].
10998
10999         * unexnt.c:
11000         * unexnt.c (_start):
11001         [1].
11002
11003 2000-06-07  Ben Wing  <ben@xemacs.org>
11004
11005         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
11006         was used only as a model.  We've long since extracted any useful
11007         logic or code out of this. (I just did an exhaustive search.)
11008
11009         * s\msdos.h: Removed.
11010
11011         * s\windows95.h: Removed.
11012
11013 2000-06-10  Ben Wing  <ben@xemacs.org>
11014
11015         * s\cygwin32.h:
11016         [1]. [5].
11017         Don't use extern with fun defs.
11018
11019         * s\mingw32.h:
11020         [1]. [7].
11021         Remove nt\inc include.
11022         Remove getdisk, getdefdir. (The former is unused, the latter
11023         expanded in fileio.h.)
11024
11025         * s\windowsnt.h:
11026         * s\windowsnt.h (WIN32_NATIVE):
11027         * s\windowsnt.h (HAVE_STRCASECMP):
11028         [1]. [7].
11029         Add long comment about preprocessor changes.
11030         Remove getdisk, getdefdir. (The former is unused, the latter
11031         expanded in fileio.h.)
11032
11033 2000-06-10  Ben Wing  <ben@xemacs.org>
11034
11035         * m\arm.h:
11036         * m\delta.h:
11037         * m\intel386.h:
11038         * m\sequent.h:
11039         * m\template.h:
11040         * m\windowsnt.h:
11041         [1].
11042         Remove bogus/unused NO_SOCK_SIGIO.
11043
11044 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
11045
11046         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
11047         not an Emchar.
11048
11049 2000-06-04  Mike Sperber <mike@xemacs.org>
11050
11051         * casetab.c (set_case_table): For `set-standard-case-table',
11052         actually deposit the new case tables where the rest of XEmacs can
11053         see them.
11054
11055 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
11056
11057         * data.c (Faset): Don't cast XCHAR() to unsigned char.
11058
11059 2000-06-05  Ben Wing  <ben@xemacs.org>
11060
11061         * callproc.c (child_setup): Don't do close_load_descs() under
11062         MS Windows.  Put in a comment explaining why.
11063
11064 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
11065
11066         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
11067         Toolkit shell" which breaks `kill-compilation' on Windows NT
11068         native, retaining STDERR handling improvements.
11069
11070 2000-06-01  Andreas Jaeger  <aj@suse.de>
11071
11072         * s/s390.h: Support for S390, based on a patch by Martin
11073         Schwidefsky <schwidefsky@de.ibm.com>.
11074
11075 2000-05-30  Andy Piper  <andy@xemacs.org>
11076
11077         * window.c (allocate_window):
11078         (make_dummy_parent):
11079         (Fset_window_configuration): use new hashtable type.
11080
11081         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
11082         (struct image_instantiator_methods):
11083         (struct Lisp_Image_Instance): make instance geometry signed.
11084
11085         * glyphs.c (instantiate_image_instantiator):
11086         (image_instance_query_geometry):
11087         (image_instance_layout):
11088         (image_instance_layout):
11089         (query_string_geometry):
11090         (text_query_geometry):
11091         (image_instantiate):
11092         (image_instantiate):
11093         (cache_subwindow_instance_in_frame_maybe):
11094         (subwindow_query_geometry): make instance geometry signed.
11095
11096         * glyphs-widget.c (widget_query_geometry):
11097         (widget_layout):
11098         (button_query_geometry):
11099         (tree_view_query_geometry):
11100         (tab_control_query_geometry):
11101         (layout_query_geometry):
11102         (layout_layout):
11103         (native_layout_layout): make instance geometry signed.
11104
11105 2000-05-29  Olivier Galibert  <galibert@pobox.com>
11106
11107         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
11108         constant.
11109
11110         * general.c (syms_of_general): Add Qfull_assoc symbol.
11111
11112         * data.c (finish_marking_weak_lists): Mark full-assoc lists
11113         correctly.
11114         (decode_weak_list_type): Decode full-assoc type.
11115         (encode_weak_list_type): Encode full-assoc type.
11116         (Fmake_weak_list): Update doc string.
11117
11118 2000-05-30  Andy Piper  <andy@xemacs.org>
11119
11120         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
11121
11122         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
11123         (decode_hash_table_weakness): ditto.
11124         (Fhash_table_weakness): ditto.
11125         (Fhash_table_type): ditto.
11126         (finish_marking_weak_hash_tables): ditto.
11127         (hash_table_weakness_validate): ditto.
11128         (syms_of_elhash): ditto.
11129
11130 2000-05-28  Martin Buchholz <martin@xemacs.org>
11131
11132         * XEmacs 21.2.34 is released.
11133
11134 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
11135
11136         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
11137         start cache.
11138         (updating_line_start_cache): Gone.
11139         (regenerate_window): Replace resetting of VERTICAL_CLIP by
11140         generic code to force a minimum of 1 line laid out in the
11141         CMOTION_DISP case.
11142
11143 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
11144
11145         * glyphs.c (instantiate_image_instantiator): Check for initialized
11146         height & width no longer special cases IMAGE_NOTHING.
11147         (nothing_instantiate): Set height and width of instance.
11148
11149 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
11150
11151         * unexelf.c (unexec): Search for ".data" section.
11152         Initialize new_data2_offset from old_data_index.
11153         Remove redundant check for ElfW.
11154
11155 2000-05-23  Andy Piper  <andy@xemacs.org>
11156
11157         * glyphs.c (get_image_instantiator_governing_domain): allow more
11158         specific domains as the governing domain rather than expecting an
11159         exact match. This fixes problems with layouts.
11160
11161 2000-05-22  Andy Piper  <andy@xemacs.org>
11162
11163         * redisplay-output.c (compare_runes): check for non-images
11164
11165         * glyphs.c (set_glyph_dirty_p): ditto.
11166         (update_glyph_cachel_data): ditto.
11167
11168         * glyphs-widget.c (layout_post_instantiate): ditto.
11169         (layout_post_instantiate): ditto.
11170
11171         * event-msw.c (mswindows_wnd_proc): warning removal.
11172
11173 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
11174
11175         * s\mingw32.h: Added #undef for CLASH_DETECTION.
11176
11177         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
11178
11179         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
11180
11181         * nt.c (rva_to_section): mingw32 needs rva_to_section.
11182         (mswindows_executable_type): mingw32 now has enough headers for
11183         this to work.
11184
11185 2000-05-20  Andy Piper  <andy@xemacs.org>
11186
11187         * console-msw.c (mswindows_output_last_error): ; -> ,
11188
11189 2000-05-12  Andy Piper  <andy@xemacs.org>
11190
11191         * console-msw.c (FROB): compare ints with ints.
11192
11193 2000-05-11  Andy Piper  <andy@xemacs.org>
11194
11195         * glyphs-x.c (x_finalize_image_instance): make minimal build
11196         happy.
11197
11198 2000-05-20  Ben Wing  <ben@xemacs.org>
11199
11200         * event-Xt.c:
11201         * event-Xt.c (vars_of_event_Xt):
11202         move modifier-keys-are-sticky to event-stream.c.
11203
11204         * event-msw.c:
11205         * event-msw.c (mswindows_enqueue_mouse_button_event):
11206         * event-msw.c (key_needs_default_processing_p):
11207         * event-msw.c (XEMSW_LCONTROL):
11208         * event-msw.c (mswindows_handle_sticky_modifiers):
11209         * event-msw.c (FROB):
11210         * event-msw.c (clear_sticky_modifiers):
11211         * event-msw.c (output_modifier_keyboard_state):
11212         * event-msw.c (output_alt_keyboard_state):
11213         * event-msw.c (mswindows_wnd_proc):
11214         * event-msw.c (mswindows_modifier_state):
11215         * event-msw.c (emacs_mswindows_handle_magic_event):
11216         implement sticky modifiers.
11217
11218         * event-stream.c:
11219         * event-stream.c (vars_of_event_stream):
11220         move modifier-keys-are-sticky here.
11221
11222         * lisp.h:
11223         add CHECK_FUNCTION.
11224
11225         * rangetab.c:
11226         implement map-range-table.
11227
11228
11229 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
11230
11231         * redisplay-tty.c (reset_tty_modes):
11232         (tty_redisplay_shutdown): Adjust argument type to
11233         tty_frame_output_end.
11234
11235 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
11236
11237         * eval.c (Fbacktrace): Don't output a line with only right
11238         parenthesis.
11239
11240 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
11241
11242         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
11243         (Fpq_reset_poll): Ditto.
11244
11245 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
11246
11247         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
11248
11249 2000-05-16  Ben Wing  <ben@xemacs.org>
11250
11251         * buffer.c:
11252         * buffer.c (dfc_convert_to/from_internal_format):
11253         * buffer.c (reinit_vars_of_buffer):
11254         Fix conversion functions to allow reentrancy.
11255
11256         * console-msw.c:
11257         * console-msw.c (mswindows_output_last_error):
11258         New fun, generally useful -- output a human-readable
11259         version of GetLastError() on the console.
11260
11261         * console-msw.h:
11262         * console-msw.h (struct mswindows_frame):
11263         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
11264
11265         * console-stream.c (stream_output_begin):
11266         * console-stream.c (stream_output_end):
11267         * console-stream.c (stream_output_vertical_divider):
11268         * console-stream.c (stream_clear_region):
11269         * console-stream.c (stream_flash):
11270         * console-stream.c (console_type_create_stream):
11271         Delete blank stream methods, not needed.
11272
11273         * console.h (struct console_methods):
11274         Split begin/end methods into window and frame.
11275
11276         * event-msw.c:
11277         * event-msw.c (mswindows_handle_paint):
11278         * event-msw.c (output_alt_keyboard_state):
11279         * event-msw.c (mswindows_wnd_proc):
11280         * event-msw.c (vars_of_event_mswindows):
11281         Comment about problems with ignored-expose.
11282         Define mswindows-debug-events; not really implemented.
11283
11284         * frame-msw.c (mswindows_init_frame_1):
11285         random cleanups.
11286
11287         * glyphs-msw.c:
11288         * glyphs-msw.c (begin_defer_window_pos):
11289         * glyphs-msw.c (mswindows_unmap_subwindow):
11290         * glyphs-msw.c (mswindows_map_subwindow):
11291         * glyphs-msw.c (mswindows_resize_subwindow):
11292         Use DeferWindowPos to reduce flashing when mapping/unmapping.
11293
11294         * glyphs.c (make_image_instance_1):
11295         Fix crash.
11296
11297         * gutter.c (Fredisplay_gutter_area):
11298         Use new begin/end methods.
11299
11300         * lisp.h (Dynarr_new2):
11301         New creation fun.
11302
11303         * redisplay-msw.c:
11304         * redisplay-msw.c (mswindows_frame_output_begin):
11305         * redisplay-msw.c (mswindows_frame_output_end):
11306         * redisplay-msw.c (console_type_create_redisplay_mswindows):
11307         New begin/end methods -- handle DeferWindowPos.
11308
11309         * redisplay-output.c (redisplay_move_cursor):
11310         * redisplay-output.c (redraw_cursor_in_window):
11311         * redisplay-output.c (redisplay_update_line):
11312         * redisplay-output.c (redisplay_output_window):
11313         New begin/end methods.
11314
11315         * redisplay-tty.c:
11316         * redisplay-tty.c (tty_frame_output_begin):
11317         * redisplay-tty.c (tty_frame_output_end):
11318         * redisplay-tty.c (console_type_create_redisplay_tty):
11319         New begin/end methods.
11320
11321         * redisplay-x.c:
11322         * redisplay-x.c (x_window_output_begin):
11323         * redisplay-x.c (x_window_output_end):
11324         * redisplay-x.c (console_type_create_redisplay_x):
11325         New begin/end methods.
11326
11327         * redisplay.c (redisplay_frame):
11328         * redisplay.c (Fredisplay_echo_area):
11329         New begin/end methods.
11330         use MAYBE_DEVMETH for clear_frame; it may not exist.
11331
11332         * window.h (WINDOW_XFRAME):
11333         WINDOW_XFOO macros -- get locale and decode struct pointer.
11334
11335
11336 2000-05-12  Ben Wing  <ben@xemacs.org>
11337
11338         * emacs.c:
11339         * emacs.c (ensure_no_quitting_from_now_on):
11340         * emacs.c (fatal_error_signal):
11341         * emacs.c (mswindows_handle_hardware_exceptions):
11342         * emacs.c (main):
11343         * emacs.c (Fkill_emacs):
11344         * emacs.c (shut_down_emacs):
11345         * emacs.c (assert_failed):
11346         various improvements in fatal error handling.
11347
11348         * eval.c:
11349         move preparing_for_armageddon to emacs.c.
11350
11351         * lisp.h:
11352         declare fatal_error_in_progress.
11353
11354         * print.c:
11355         * print.c (std_handle_out_external):
11356         * print.c (std_handle_out_va):
11357         * print.c (stderr_out):
11358         * print.c (stdout_out):
11359         use console under mswin when no standard output.
11360         don't do code conversion during fatal error.
11361
11362         * scrollbar.c (Fscrollbar_page_up):
11363         * scrollbar.c (Fscrollbar_page_down):
11364         fix missing else.  reindent.
11365
11366 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
11367
11368         Emergency fix.
11369
11370         * glyphs.h (GLYPH_CACHEL_DESCENT):
11371         (GLYPH_CACHEL_DESCENT):
11372         (GLYPH_CACHEL_DESCENT):
11373         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
11374         used in case these are inline functions.
11375         Use more absurd values to error check.
11376
11377         include window.h for error check functions.
11378
11379 2000-05-11  Ben Wing  <ben@xemacs.org>
11380
11381         * cmdloop.c (Freally_early_error_handler):
11382         Display message box under windows; otherwise, message will disappear
11383         before it can be viewed.
11384
11385         * console-msw.c:
11386         * console-msw.c (Fmswindows_message_box):
11387         * console-msw.c (FROB):
11388         * console-msw.c (syms_of_console_mswindows):
11389         Define new fun `mswindows-message-box'.
11390         #### I will merge this into `popup-dialog-box'; just give me
11391         a bit of time.
11392
11393         * general.c:
11394         * general.c (syms_of_general):
11395         Some new symbols used in `mswindows-message-box'.
11396
11397         * glyphs.c:
11398         * glyphs.c (Fset_image_instance_property):
11399         put warning in this fun.
11400
11401         * glyphs.h:
11402         * glyphs.h (GLYPH_CACHEL_WIDTH):
11403         * glyphs.h (GLYPH_CACHEL_ASCENT):
11404         * glyphs.h (GLYPH_CACHEL):
11405         * glyphs.h (GLYPH_CACHEL_GLYPH):
11406         define error-checking versions to try to catch a bug i've seen --
11407         redisplay gets in an infinite loop because the glyph width of the
11408         continuation glyph is 65535.
11409
11410         * lisp.h:
11411         Extern message-box stuff.
11412
11413         * window.c (allocate_window):
11414         * window.c (make_dummy_parent):
11415         * window.c (Fset_window_configuration):
11416         Use EQUAL not EQ for subwindow caches to make them work a bit
11417         better. (Something is still very broken.)
11418
11419
11420 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
11421
11422         * glyphs.c (image_instantiate): Suppress gcc warnings.
11423         (Fmake_image_instance): Fix doc string.
11424         * specifier.c (Fmake_specifier): Ditto.
11425
11426 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
11427
11428         * paths.h.in (PATH_LOCK): Removed.
11429         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
11430         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
11431
11432 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
11433
11434         * fns.c (Ffeaturep): Update e-mail address in doc-string.
11435         Document (featurep '(and xemacs 21.02)).
11436
11437 2000-05-09  Ben Wing  <ben@xemacs.org>
11438
11439         * buffer.c (complex_vars_of_buffer):
11440         update modeline-format doc.
11441
11442         * device.h:
11443         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
11444
11445         * emacs.c:
11446         timeline of all released versions of Emacs, for use in creating
11447         authorship comments and in synching up.
11448
11449         * glyphs-widget.c (image_instantiator_buttons):
11450         * glyphs-widget.c (image_instantiator_edit_fields):
11451         * glyphs-widget.c (image_instantiator_combo_box):
11452         * glyphs-widget.c (image_instantiator_scrollbar):
11453         * glyphs-widget.c (image_instantiator_progress_guage):
11454         * glyphs-widget.c (image_instantiator_tree_view):
11455         * glyphs-widget.c (image_instantiator_tab_control):
11456         * glyphs-widget.c (image_instantiator_labels):
11457         * glyphs-widget.c (image_instantiator_layout):
11458         * glyphs-widget.c (image_instantiator_native_layout):
11459         rename decode_domain method to governing_domain.
11460
11461         * glyphs.c:
11462         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
11463         * glyphs.c (add_entry_to_device_ii_format_list):
11464         make sure we don't put an entry more than once into the list.
11465         * glyphs.c (check_instance_cache_mapper):
11466         *************************************************************
11467         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
11468         HAVE BEEN GETTING.
11469         *************************************************************
11470         * glyphs.c (get_image_instantiator_governing_domain):
11471         clean up, expand on new concept of governing domain.
11472         * glyphs.c (instantiate_image_instantiator):
11473         * glyphs.c (allocate_image_instance):
11474         use governing_domain instead of cache_domain in naming.
11475         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
11476         * glyphs.c (make_image_instance_1):
11477         * glyphs.c (Fmake_image_instance):
11478         allow for any domain (not just device), and process the
11479         governing domain correctly.  very big doc fix.
11480         * glyphs.c (Fimage_instance_domain):
11481         new primitive, to retrieve the governing domain of an image instance.
11482         * glyphs.c (image_instantiate):
11483         use new governing_domain stuff.  this fixes a crash you could get
11484         by instantiating certain widget glyphs in frame locales. (should
11485         signal an error instead of crashing.)
11486         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
11487         * glyphs.c (Fglyphp): clean up doc.
11488         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
11489         * glyphs.c (syms_of_glyphs):
11490         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
11491         * glyphs.c (image_instantiator_format_create): add some comments about
11492         bogus code.
11493         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
11494         for current-display-table. (Apparently Hrjove implemented in 1998 a
11495         design I wrote up in 1996, but didn't update the doc string.)
11496
11497         * glyphs.h: clean up a doc string.
11498         * glyphs.h (governing_domain):
11499         * glyphs.h (struct image_instantiator_methods):
11500         changes for governing_domain stuff.
11501
11502         * gutter.c:
11503         * gutter.c (Fgutter_specifier_p):
11504         * gutter.c (Fgutter_size_specifier_p):
11505         * gutter.c (Fgutter_visible_specifier_p):
11506         * objects.c:
11507         * objects.c (Fcolor_specifier_p):
11508         * objects.c (Ffont_specifier_p):
11509         * objects.c (Fface_boolean_specifier_p):
11510         doc strings moved to make-*-specifier.
11511
11512         * redisplay.c (add_disp_table_entry_runes_1):
11513         * redisplay.c (generate_fstring_runes):
11514         * redisplay.c (screen):
11515         add random comments and doc strings.
11516
11517         * specifier.c:
11518         * specifier.c (Fmake_specifier):
11519         major overhaul of this doc string.
11520
11521         * specifier.c (Fvalid_specifier_domain_p):
11522         comment about the bogosity of image instances being domains.
11523         * specifier.c (decode_domain):
11524         now non-static, used in glyphs.c.
11525         * specifier.c (specifier_instance):
11526         comment about the bogosity of image instances being domains.
11527         * specifier.c (Fgeneric_specifier_p):
11528         move doc string to make-generic-specifier.
11529         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
11530         rebackslashify.
11531
11532         * specifier.h:
11533         * specifier.h (DOMAIN_FRAME):
11534         * specifier.h (DOMAIN_LIVE_P):
11535         * specifier.h (DOMAIN_XDEVICE):
11536         rebackslashify.
11537         add comments about problems with these macros.
11538         prototype for decode_domain.
11539
11540         * toolbar.c:
11541         * toolbar.c (Ftoolbar_specifier_p):
11542         move doc string to `make-toolbar-specifier'.
11543
11544         * window.c (window_unmap_subwindows_cache_mapper):
11545         *************************************************************
11546         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
11547         HAVE BEEN GETTING.
11548         *************************************************************
11549
11550 2000-05-09  Andy Piper  <andy@xemacs.org>
11551
11552         * glyphs.h: declare reset_frame_subwindow_instance_cache.
11553
11554         * window.c (Fset_window_configuration): reset the frame subwindow
11555         cache and re-initialize the window subwindow caches.
11556
11557         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
11558
11559 2000-05-09  Ben Wing  <ben@xemacs.org>
11560
11561         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
11562         DWORD.
11563
11564 2000-04-26  Mike Woolley  <mike@bulsara.com>
11565
11566         * ntheap.c: Changed recreate_heap to limit the amount reserved
11567         for the heap to that which is actually available. Also now
11568         displays a message box (with some dignostics) in the event that
11569         it still can't start.
11570
11571 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
11572
11573         * callproc.c (Fold_call_process_internal): GCPRO path
11574
11575 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
11576
11577         Patch by Bill Perry.
11578
11579         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
11580         back data instead of #ifdef.
11581         (Fscrollbar_page_down): ditto.
11582
11583 2000-05-07  Ben Wing  <ben@xemacs.org>
11584
11585         * buffer.h:
11586         Kludge for defining Qmswindows_tstr.
11587
11588         * nt.c:
11589         * nt.c (open_input_file):
11590         * nt.c (open_output_file):
11591         * nt.c (rva_to_section):
11592         * nt.c (mswindows_executable_type):
11593         Move all memory-mapped-file routines here (some were in unexnt.c,
11594         which is bad because they are used by process-nt.c, and unexnt
11595         won't be around when portable dumping).  Synched the above routines
11596         with FSF 20.6.
11597
11598         * nt.h:
11599         Removed ifdef'd out bogus code.
11600         Fixed some prototypes.
11601
11602         * nt.h (file_data):
11603         * nt.h (OFFSET_TO_RVA):
11604         * nt.h (RVA_TO_OFFSET):
11605         * nt.h (RVA_TO_PTR):
11606         Moved the memory-mapped-file structures, macros and prototypes
11607         here, to parallel nt.c.  ntheap.h should really be removed
11608         entirely, and it's a non-portable-dumper specific file.
11609
11610         * ntheap.h (round_to_next):
11611         Moved the memory-mapped-file structures, macros and prototypes
11612         to nt.h.
11613
11614         * ntproc.c (compare_env):
11615         Moved rva_to_section and mswindows_executable_type to nt.c.
11616         Moved compare_env to process-nt.c.
11617         ntproc.c will die, one day.
11618
11619         * ntproc.c (sys_spawnve):
11620         Account for win32_ -> mswindows_.
11621
11622         * process-nt.c:
11623         * process-nt.c (struct nt_process_data):
11624         * process-nt.c (ensure_console_window_exists):
11625         * process-nt.c (compare_env):
11626         * process-nt.c (nt_create_process):
11627         * process-nt.c (nt_kill_process_by_pid):
11628         * process-nt.c (syms_of_process_nt):
11629         * process-nt.c (vars_of_process_nt):
11630         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
11631         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
11632         changes).  Eliminate our old `nt-quote-process-args' mechanism.
11633         Synch up nt_create_process with FSF 20.6 sys_spawnve.
11634         Move compare_env here from ntproc.c.
11635
11636         * process.c (Fprocess_send_region):
11637         Takes an optional fourth argument, BUFFER, which should fix some
11638         problems with call-process.
11639
11640         * syscommctrl.h:
11641         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
11642
11643         * syswindows.h:
11644         Move ICC_BAR_CLASSES to syscommctrl.h.
11645         Add preliminary macros for MSWindows/Mule.  More to come.
11646
11647         * unexnt.c:
11648         * unexnt.c (unexec):
11649         open_output_file moved to nt.c.
11650
11651
11652 2000-05-05  Andy Piper  <andy@xemacs.org>
11653
11654         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
11655         instance from the frame cache also since GC may catch up too late
11656         to make frame deletion sane.
11657
11658 2000-05-04  Andy Piper  <andy@xemacs.org>
11659
11660         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
11661         (x_finalize_image_instance): ungcpro on deletion.
11662
11663         * glyphs.c (image_instantiator_format_create): give pointers a
11664         query geometry method so that the geometry is at least set.
11665
11666         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
11667         initialize layouts if using widgets.
11668
11669 2000-05-03  Andy Piper  <andy@xemacs.org>
11670
11671         * nt.c: remove bogus reference to sysmmsystem.h
11672
11673         * gui-x.c (popup_selection_callback): fix no selection abort.
11674
11675 2000-05-02  Andy Piper  <andy@xemacs.org>
11676
11677         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
11678         (mswindows_widget_instantiate): ditto.
11679
11680         * glyphs-widget.c (initialize_widget_image_instance): initialize
11681         children correctly.
11682         (widget_instantiate): cope with children and items in the same
11683         instance.
11684
11685         * glyphs.c (mark_image_instance): cope with children as a first
11686         class member.
11687         (image_instance_equal): ditto.
11688         (image_instance_hash): ditto.
11689         (image_instance_changed): ditto.
11690
11691 2000-04-30  Andy Piper  <andy@xemacs.org>
11692
11693         * glyphs.c (subwindow_query_geometry): new function. Return some
11694         defaults.
11695         (subwindow_instantiate): don't assign dimensions if none have been
11696         given.
11697         (image_instantiator_format_create): add subwindow_query_geometry.
11698         (print_image_instance): cope with layouts as widgets.
11699
11700 2000-04-29  Andy Piper  <andy@xemacs.org>
11701
11702         * frame.c (delete_frame_internal): call
11703         free_frame_subwindow_instance_cache so that all subwindows are
11704         finalized before their parent.
11705         (mark_frame): remove subwindow_cachels.
11706         (Fmake_frame): remove subwindow_cachel manipulation.
11707         (allocate_frame_core): subwindow_instance_cache is a weak list.
11708         (delete_frame_internal): set subwindow_instance_cache to nil.
11709
11710         * glyphs-msw.c (mswindows_finalize_image_instance): make double
11711         finalization safe.
11712         (mswindows_finalize_image_instance): use the device
11713         not the domain as the domain may have died already.
11714
11715         * glyphs-x.c (x_finalize_image_instance): ditto.
11716         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
11717         HEIGHT.
11718
11719         * redisplay-output.c (redisplay_unmap_subwindows): update for
11720         subwindow instance cache as a weak list.
11721         (redisplay_unmap_subwindows_maybe): ditto.
11722         (redisplay_unmap_subwindows_except_us): ditto.
11723
11724         * glyphs.c (unmap_subwindow): error checking will check the domain
11725         so don't deal with it here. Don't use cachels anymore.
11726         (map_subwindow): ditto.
11727         (update_subwindow_cachel_data): remove old accessor names.
11728         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
11729         (Fresize_subwindow): don't update cachel.
11730         (mark_subwindow_cachels):
11731         (update_subwindow_cachel_data):
11732         (add_subwindow_cachel):
11733         (get_subwindow_cachel_index):
11734         (update_subwindow_cachel):
11735         (reset_subwindow_cachels):
11736         (mark_subwindow_cachels_as_not_updated): deleted.
11737         (cache_subwindow_instance_in_frame_maybe): new function. Add a
11738         subwindow instance to the frame cache.
11739         (find_matching_subwindow): update for subwindow instance cache as
11740         a weak list.
11741         (update_widget_instances): ditto.
11742         (image_instance_type_to_mask):inlined.
11743         (free_frame_subwindow_instance_cache): new function. finalize all
11744         subwindows that are instantiated.
11745
11746         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
11747         of cachel information.
11748         (IMAGE_INSTANCE_DISPLAY_X):
11749         (IMAGE_INSTANCE_DISPLAY_Y):
11750         (IMAGE_INSTANCE_DISPLAY_WIDTH):
11751         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
11752         (XIMAGE_INSTANCE_DISPLAY_X):
11753         (XIMAGE_INSTANCE_DISPLAY_Y):
11754         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
11755         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
11756         remove subwindow_cachel structure and function references.
11757         (image_instance_type_to_mask): inline from glyphs.c
11758
11759         * redisplay.c (redisplay_frame): remove subwindow_cachel
11760         references.
11761
11762         * frame.h (struct frame): remove subwindow_cachels.
11763         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
11764
11765         * frameslots.h: add subwindow_instance_cache.
11766
11767         * window.c (replace_window): check subwindow cache of replacement.
11768         (window_unmap_subwindows_cache_mapper):
11769         (window_unmap_subwindows): new functions. Unmap all subwindows
11770         cached on this window.
11771         (mark_window_as_deleted): unmap all subwindows.
11772
11773 2000-04-27  Andy Piper  <andy@xemacs.org>
11774
11775         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
11776
11777         * glyphs-widget.c (widget_layout): return something.
11778         (layout_layout): return something. Fail if not initialized.
11779         (layout_query_geometry): ditto.
11780         (image_instantiator_native_layout): new function. Initialized the
11781         native layout type.
11782         (widget_instantiate): don't do layout stuff here.
11783
11784         * glyphs.c (instantiate_image_instantiator): reorded calling or
11785         instantiate and post_instantiate with layout in between.
11786         (image_instance_layout): be more selective about deciding whether
11787         the layout has been done or not.
11788
11789         * glyphs.h (struct image_instantiator_methods): return a value
11790         from layout_method.
11791
11792 2000-04-26  Andy Piper  <andy@xemacs.org>
11793
11794         * glyphs.c (allocate_image_instance): make initial width and
11795         height unspecified. Set initialized to 0.
11796
11797         * syscommctrl.h new file. Encapsulates commctrl.h.
11798
11799         * syswindows.h new file. Encapsulates windows.h.
11800
11801         * ntplay.c: use new syswindows.h and syscommctrl.h header.
11802         * nt.c: ditto.
11803         * console-msw.h: ditto.
11804
11805         * redisplay-tty.c (tty_output_display_block): remove layout references.
11806
11807         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
11808         window handle rather than just the frame.
11809
11810         * glyphs.c (mark_image_instance): remove layout references.
11811         (print_image_instance): ditto.
11812         (image_instance_equal): ditto.
11813         (image_instance_hash): ditto.
11814         (decode_image_instance_type): ditto.
11815         (encode_image_instance_type): ditto.
11816         (image_instantiate): ditto.
11817         (allocate_glyph): ditto.
11818         (Fimage_instance_height): ditto.
11819         (Fimage_instance_width): ditto.
11820         (update_subwindow): ditto.
11821
11822         * redisplay-x.c (x_output_display_block): recode for layouts as
11823         widgets.
11824
11825         * redisplay-output.c (redisplay_output_layout): recode for layouts
11826         as widgets.
11827         (compare_runes): remove layout references.
11828
11829         * redisplay-msw.c (mswindows_output_display_block): recode for
11830         layouts as widgets.
11831
11832         * glyphs-widget.c (image_instantiator_layout): remove
11833         layout_possible_dest_types.
11834         (layout_possible_dest_types): deleted.
11835
11836         * glyphs.h (image_instance_type): remove layout references.
11837         (struct Lisp_Image_Instance): ditto. Add initialized flag.
11838         (IMAGE_INSTANCE_INITIALIZED): new accessor.
11839         (XIMAGE_INSTANCE_INITIALIZED): ditto.
11840
11841 2000-04-25  Andy Piper  <andy@xemacs.org>
11842
11843         * glyphs-widget.c (image_instantiator_buttons):
11844         (image_instantiator_edit_fields):
11845         (image_instantiator_combo_box):
11846         (image_instantiator_scrollbar):
11847         (image_instantiator_progress_guage):
11848         (image_instantiator_tree_view):
11849         (image_instantiator_tab_control):
11850         (image_instantiator_labels):
11851         (image_instantiator_layout): call default post_instantiate method.
11852         (widget_post_instantiate): new function. Simply lays out the
11853         widgets.
11854
11855         * glyphs.h (struct image_instantiator_methods): add
11856         post_instantiate method.
11857
11858         * glyphs.c (instantiate_image_instantiator): add post_instantiate
11859         method calls.
11860
11861 2000-04-23  Andy Piper  <andy@xemacs.org>
11862
11863         * glyphs.h (struct image_instantiator_methods): add
11864         decode_domain_method.
11865         (struct Lisp_Image_Instance): remove subwindow frame - it can be
11866         derived from the domain.
11867         (IMAGE_INSTANCE_FRAME): new accessor.
11868         (XIMAGE_INSTANCE_FRAME): ditto.
11869
11870         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
11871         instead of _SUBWINDOW_FRAME.
11872         (finalize_image_instance): ditto.
11873         (Fimage_instance_foreground): ditto.
11874         (Fimage_instance_background): ditto.
11875         (image_instantiate): ditto.
11876         (update_subwindow_cachel): ditto.
11877         (update_subwindow): ditto.
11878         (unmap_subwindow): ditto.
11879         (map_subwindow): ditto
11880         (subwindow_instantiate): ditto.
11881         * glyphs-msw.c (mswindows_update_widget): ditto.
11882         (mswindows_progress_gauge_instantiate): ditto.
11883         (mswindows_tab_control_update): ditto.
11884         * glyphs-x.c (x_update_widget): ditto.
11885         (x_widget_instantiate): ditto.
11886         (x_tab_control_instantiate): ditto.
11887         (x_tab_control_update): ditto.
11888         * event-msw.c (mswindows_wnd_proc): ditto
11889
11890         * glyphs-widget.c (image_instantiator_layout): use
11891         subwindow_decode_domain.
11892         (image_instantiator_buttons): ditto.
11893         (image_instantiator_edit_fields): ditto.
11894         (image_instantiator_combo_box): ditto.
11895         (image_instantiator_scrollbar): ditto.
11896         (image_instantiator_progress_guage): ditto.
11897         (image_instantiator_tree_view): ditto.
11898         (image_instantiator_tab_control): ditto.
11899         (image_instantiator_labels): ditto.
11900         (image_instantiator_layout): ditto.
11901
11902         * glyphs.c: add instance error checking to many functions.
11903         (instantiate_image_instantiator): decode device from cache_domain.
11904         (image_instantiate): partially rewrite by using
11905         decode_image_instantiator_domain to determine what domain the
11906         instance needs to be cached in.
11907         (decode_image_instantiator_domain): new function. Determine what
11908         domain the image needs to be cached in.
11909         (check_window_subwindow_cache): new error checking function.
11910         (check_instance_cache_mapper): ditto.
11911         (check_image_instance_structure): ditto.
11912         (subwindow_decode_domain): new function. Encodes a window as a
11913         subwindow's cache domain.
11914         (image_instantiator_format_create): use it for text and
11915         subwindows.
11916
11917 2000-04-21  Andy Piper  <andy@xemacs.org>
11918
11919         * glyphs.c (image_instance_device): new function.
11920         (image_instance_frame): new function.
11921         (image_instance_window): new function.
11922         (image_instance_live_p): new function.
11923
11924         * window.c (mark_window_as_deleted): reset the subwindow_instance_
11925         cache to nil.
11926
11927         * glyphs.h (struct Lisp_Image_Instance): device->domain.
11928         (IMAGE_INSTANCE_DOMAIN): new accessor.
11929         (XIMAGE_INSTANCE_DOMAIN): ditto.
11930
11931         * glyphs-x.c (x_finalize_image_instance): device->domain.
11932
11933         * glyphs-msw.c (init_image_instance_geometry): device->domain.
11934         (mswindows_finalize_image_instance): ditto.
11935
11936         * glyphs-eimage.c (jpeg_instantiate): device->domain.
11937         (gif_instantiate): ditto.
11938         (png_instantiate): ditto.
11939         (tiff_instantiate): ditto.
11940
11941         * glyphs.c (instantiate_image_instantiator): use domain rather
11942         than device.
11943         (mark_image_instance): device -> domain.
11944         (print_image_instance): ditto.
11945         (finalize_image_instance): ditto.
11946         (image_instance_equal): ditto.
11947         (allocate_image_instance): ditto.
11948         (Fcolorize_image_instance): ditto.
11949         (query_string_geometry): ditto.
11950         (image_instantiate): ditto
11951         (query_string_font): ditto.
11952         (image_instantiate): ditto.
11953         (update_subwindow): ditto.
11954         (unmap_subwindow): ditto.
11955         (map_subwindow): ditto.
11956         (subwindow_instantiate): ditto.
11957
11958         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
11959         (DOMAIN_FRAME): ditto.
11960         (DOMAIN_WINDOW): ditto.
11961         (DOMAIN_LIVE_P): ditto.
11962         (XDOMAIN_DEVICE): ditto.
11963         (XDOMAIN_FRAME): ditto.
11964         (XDOMAIN_WINDOW): ditto.
11965
11966         * specifier.c (Fvalid_specifier_domain_p): add image instances as
11967         a valid specifier domain.
11968
11969 2000-04-19  Andy Piper  <andy@xemacs.org>
11970
11971         * glyphs-widget.c (syms_of_glyphs_widget): remove
11972         widget-callback-current-channel.
11973         (vars_of_glyphs_widget): ditto.
11974         * glyphs.h: ditto
11975
11976         * gui.c (get_gui_callback): revert to previous behaviour.
11977
11978 2000-04-18  Andy Piper  <andy@xemacs.org>
11979
11980         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
11981         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
11982         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
11983
11984         * glyphs.c (image_instance_equal): add margin_width.
11985         (image_instance_hash): ditto.
11986
11987         * glyphs-widget.c (widget_instantiate): deal with margin-width.
11988         (layout_query_geometry): ditto.
11989         (layout_layout): ditto.
11990         (syms_of_glyphs_widget): add margin-width.
11991         (image_instantiator_layout): allow margin-width.
11992
11993         * glyphs.c (update_widget_instances): make a normal function.
11994         (syms_of_glyphs): remove Qupdate_widget_instances.
11995         * glyphs.h: ditto.
11996
11997         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
11998         so that we don't corrupt ideas about the last event or
11999         command. Remove widget-callback-current-channel fiddling.
12000         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
12001
12002 2000-05-01  Martin Buchholz <martin@xemacs.org>
12003
12004         * XEmacs 21.2.33 is released.
12005
12006 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
12007
12008         * make-src-depend: Allow dots in header file name.
12009
12010 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
12011
12012         * mule-charset.h (struct charset_lookup): Add
12013         next_allocated_1_byte_leading_byte and
12014         next_allocated_2_byte_leading_byte.
12015         * mule-charset.c: Move above two variables so that those values
12016         will be dumped.
12017
12018 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
12019
12020         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
12021         when string length is zero.
12022         (find_charsets_in_emchar_string): Ditto.
12023
12024 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
12025
12026         * lisp.h: extern Qdialog and Qmenubar.
12027
12028         * gui-x.c: added events.h.
12029                 also fixed typo which made the file uncompilable.
12030
12031         * general.c: Added Qmenubar and Qdialog
12032
12033 2000-04-28  Ben Wing  <ben@xemacs.org>
12034
12035         * frame-msw.c (mswindows_init_frame_1):
12036         * frame-msw.c (mswindows_mark_frame):
12037         * event-msw.c (mswindows_enqueue_dispatch_event):
12038         * console-msw.h:
12039         * console-msw.h (struct mswindows_frame):
12040         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
12041         there are now three hash tables for callbacks.
12042         mswindows_enqueue_dispatch_event is no longer static.
12043
12044         * dialog-x.c (maybe_run_dbox_text_callback):
12045         * dialog-x.c (dbox_descriptor_to_widget_value):
12046         switch to new cons3 form for callbacks.
12047
12048         * glyphs-msw.c (mswindows_register_gui_item):
12049         * glyphs-msw.c (mswindows_widget_instantiate):
12050         * glyphs-msw.c (add_tree_item):
12051         * glyphs-msw.c (add_tab_item):
12052         new image instance parameter, so it can be passed to callback-ex.
12053         respect :callback-ex as well as :callback.
12054
12055         * glyphs-widget.c (VALID_GUI_KEYWORDS):
12056         add :callback-ex.
12057
12058         * glyphs.c (print_image_instance):
12059         prettify, e.g. now prints widget type.
12060
12061         * gui-x.h:
12062         certain funs have new image instance parameter.
12063
12064         * gui.c:
12065         * gui.c (get_gui_callback):
12066         * gui.c (gui_item_add_keyval_pair):
12067         * gui.c (gui_item_init):
12068         * gui.c (gui_add_item_keywords_to_plist):
12069         * gui.c (mark_gui_item):
12070         * gui.c (gui_item_hash):
12071         * gui.c (gui_item_equal):
12072         * gui.c (copy_gui_item):
12073         * gui.c (syms_of_gui):
12074         recognize callback-ex in a number of places.
12075         also, fix the annoying "can't get out of yes-no dialog" bug.
12076
12077         * gui.h:
12078         * gui.h (struct Lisp_Gui_Item):
12079         recognize callback-ex in a number of places.
12080
12081         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
12082         new parameter in button_item_to_widget_value.
12083
12084         * glyphs-x.c (x_update_widget):
12085         * glyphs-x.c (x_button_instantiate):
12086         * glyphs-x.c (x_button_update):
12087         * glyphs-x.c (x_progress_gauge_instantiate):
12088         * glyphs-x.c (x_edit_field_instantiate):
12089         * glyphs-x.c (x_combo_box_instantiate):
12090         * glyphs-x.c (x_tab_control_instantiate):
12091         * glyphs-x.c (x_label_instantiate):
12092         new image instance parameter in various places.
12093
12094         * event-Xt.c:
12095         * event-Xt.c (enqueue_Xt_dispatch_event):
12096         this fun gets exported.
12097
12098         * gui-msw.c:
12099         * gui-msw.c (mswindows_handle_gui_wm_command):
12100         handle both :callback and :callback-ex, and generate our own
12101         event because it's one of the callback-ex arguments.
12102
12103         * gui-x.c:
12104         * gui-x.c (popup_selection_callback):
12105         handle both :callback and :callback-ex, and generate our own
12106         event because it's one of the callback-ex arguments.
12107         * gui-x.c (button_item_to_widget_value):
12108         * gui-x.c (gui_items_to_widget_values_1):
12109         * gui-x.c (gui_item_children_to_widget_values):
12110         * gui-x.c (gui_items_to_widget_values):
12111         new image instance parameter in various places.
12112
12113         * fns.c (Freplace_list):
12114         fix small typo in doc string.
12115
12116         * lisp.h:
12117         declare enqueue_Xt_dispatch_event.
12118
12119 2000-04-28  Ben Wing  <ben@xemacs.org>
12120
12121         * buffer.c:
12122         * buffer.c (Frecord_buffer):
12123         * buffer.c (syms_of_buffer):
12124         delete record-buffer-hook.
12125
12126         * fns.c:
12127         * fns.c (Freplace_list):
12128         * fns.c (syms_of_fns):
12129         new primitive replace-list.
12130
12131         * frameslots.h:
12132         slot for old buffer-alist.
12133
12134         * lisp.h:
12135         exfun replace-list.
12136
12137         * redisplay.c:
12138         * redisplay.c (redisplay_frame):
12139         * redisplay.c (syms_of_redisplay):
12140         * redisplay.c (vars_of_redisplay):
12141         new hook buffer-list-changed-hook.
12142         call it.
12143
12144 2000-04-27  Ben Wing  <ben@xemacs.org>
12145
12146         * extents.h: extern in_modeline_generation.
12147
12148         * redisplay.c (generate_formatted_string_db): set
12149         in_modeline_generation.
12150
12151         * extents.c (extent_changed_for_redisplay): don't mark redisplay
12152         flags if in modeline generation.  otherwise frame-modified-tick
12153         is ticked far too often.
12154         Declare in_modeline_generation.
12155
12156 2000-04-26  Ben Wing  <ben@xemacs.org>
12157
12158         * emacs.c (vars_of_emacs): document quick-build "error-checking"
12159         option.
12160         (vars_of_emacs): add quick-build as an error-checking option.
12161         A bit kludgy, but there doesn't seem much point in creating
12162         a real var for this.
12163
12164         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
12165
12166 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12167
12168         * redisplay.h (struct display_line): Add a new variable,
12169         line_continuation.
12170
12171         * redisplay.c (create_text_block): Set dl->line_continuation if
12172         the line continues.
12173         (create_string_text_block): Ditto.
12174         (regenerate_window_incrementally): Use line_continuation instead
12175         of searching continuation glyph.
12176         (add_margin_runes): Call add_glyph_rune.
12177         (add_glyph_rune): Handle margin glyph.
12178
12179 2000-04-20  Martin Buchholz  <martin@xemacs.org>
12180
12181         * filelock.c (fill_in_lock_file_name):
12182         ANSIfy.
12183         Check for IS_ANY_SEP instead of '/'.
12184         (lock_file_1):
12185         Avoid generating gratuitous garbage.  Call user_login_name() directly.
12186         Never check errno without first seeing that system call failed.
12187         (unlock_file): Add GCPRO.
12188         (Flock_buffer): Fix docstring.
12189         (Ffile_locked_p): Fix docstring.  Add GCPRO.
12190
12191 2000-04-19  Martin Buchholz  <martin@xemacs.org>
12192
12193         * sysdep.c (get_pty_max_bytes):
12194         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
12195         strings longer than 252 bytes.
12196
12197         * md5.c: Unconditionally include ANSI header <limits.h>
12198
12199         * glyphs-x.c (convert_EImage_to_XImage):
12200         * lisp-union.h (union Lisp_Object):
12201         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
12202
12203 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
12204
12205         * filelock.c (current_lock_owner): Remove unused variable o, p.
12206
12207 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
12208
12209         * callint.c: Remove multiply defined symbol Qlet
12210         (syms_of_callint): ditto.
12211
12212 2000-04-14  Andy Piper  <andy@xemacs.org>
12213
12214         * general.c (syms_of_general): add last-command, this-command, let
12215         and funcall.
12216
12217         * lisp.h: declare various symbols.
12218
12219         * glyphs.h: declare Qwidget_callback_current_channel;
12220
12221         * glyphs-widget.c (syms_of_glyphs_widget): add
12222         Qgui_callback_current_channel.
12223         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
12224
12225         * gui-msw.c (mswindows_handle_gui_wm_command): bind
12226         widget-callback-current-channel when invoking the interactive
12227         arg. Also bind last-command and next-command when invoking the
12228         widget updates.
12229         * gui-x.c (popup_selection_callback): ditto.
12230
12231         * gui.c (get_gui_callback): massage args so that we are always
12232         calling eval. This allows us to add our own variable bindings
12233         outside.
12234
12235         * glyphs-x.c (x_button_instantiate): use
12236         gui_items_to_widget_values since this is GC safe.
12237         (x_progress_gauge_instantiate): ditto.
12238         (x_edit_field_instantiate): ditto.
12239         (x_label_instantiate): ditto.
12240
12241         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
12242         (emacs_Xt_event_widget_focus_out): new function
12243         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
12244         focus.
12245         (emacs_Xt_event_add_widget_actions): new function. add focus
12246         functions as actions.
12247         (init_event_Xt_late): use it.
12248
12249 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
12250
12251         * event-stream.c (Fdispatch_event): Doc fix.
12252
12253 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
12254
12255         * postgresql.c: Remove all references to PQsetenv*.
12256
12257         * postgresql.h: Remove references to PGsetenvHandler object.
12258         * lrecord.h (lrecord_type): Ditto.
12259
12260 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12261
12262         * glyphs-msw.h (struct mswindows_image_instance_data): Added
12263         real_heigh and real_width members, and accessor macros for these.
12264
12265         * glyphs-msw.c (init_image_instance_geometry): New function.
12266         (init_image_instance_from_dibitmap): Use it.
12267         (mswindows_resource_instantiate): Use it.
12268         (init_image_instance_from_xbm_inline): Use it.
12269         (mswindows_initialize_image_instance_mask): Use real bitmap
12270         geometry.
12271         (mswindows_create_resized_bitmap): Ditto.
12272         (mswindows_create_resized_mask): Ditto.
12273
12274         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
12275         and bitmap to their surface size.
12276
12277 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
12278
12279         * process-unix.c (unix_send_process): Guard against process MIA
12280         after Faccept_process_output.
12281
12282 2000-04-11  Ben Wing  <ben@xemacs.org>
12283
12284         * eval.c (unbind_to_hairy): fix brokenness introduced by
12285         nanosecond speed improvements.
12286
12287 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
12288
12289         * sunplay.c (init_device): To play sounds correctly, the device
12290         apparently needs to be initialized at least once by XEmacs.  Make
12291         it so.
12292
12293 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12294
12295         * redisplay.c (add_margin_runes): Add text image glyph
12296           handling.
12297
12298 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
12299
12300         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
12301         gcc is newer than 2.5.
12302
12303 2000-04-06  Colin Rafferty  <colin@xemacs.org>
12304
12305         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
12306
12307         * fns.c (size_bit_vector):
12308         * alloc.c (size_vector):
12309         (make_vector_internal):
12310         (make_bit_vector_internal):
12311         (sweep_bit_vectors_1):
12312         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
12313
12314 2000-04-06  Andy Piper  <andy@xemacs.org>
12315
12316         * gmalloc.c (malloc): undo previous change.
12317         (malloc): ditto.
12318         (free): ditto.
12319         (realloc): ditto.
12320
12321 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
12322
12323         * line-number.c (buffer_line_number): Revert to former version.
12324
12325 2000-04-06  Andy Piper  <andy@xemacs.org>
12326
12327         * gmalloc.c (malloc): add error checking.
12328         (malloc): ditto.
12329         (free): ditto.
12330         (realloc): ditto.
12331
12332         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
12333         button_item_to_widget_value arg.
12334
12335         * glyphs-x.c (x_button_instantiate): add extra
12336         button_item_to_widget_value arg.
12337         (x_progress_gauge_instantiate): ditto.
12338         (x_edit_field_instantiate): ditto.
12339         (x_label_instantiate): ditto.
12340
12341         * gui-x.c (gui_items_to_widget_values_1): add extra
12342         button_item_to_widget_value arg.
12343         (button_item_to_widget_value): add extra menu_item_p arg.
12344
12345         * gui-x.h: change signature of button_item_to_widget_value.
12346
12347         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
12348         button_item_to_widget_value arg.
12349
12350 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
12351
12352         * buffer.h (struct buffer): auto_save_modified should be long.
12353
12354 2000-04-05  Andy Piper  <andy@xemacs.org>
12355
12356         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
12357         type.
12358         (button_query_geometry): give a little more room so that athena
12359         buttons fit.
12360
12361 2000-04-05  Andy Piper  <andy@xemacs.org>
12362
12363         * faces.c (complex_vars_of_faces): The widget face should inherit
12364         the font of the gui-element face.
12365
12366 2000-04-04  Andy Piper  <andy@xemacs.org>
12367
12368         * glyphs-x.c (x_button_update): new function. unconditionally
12369         update a button's state when the instance is dirty.
12370         (image_instantiator_format_create_glyphs_x): add x_button_update.
12371         (x_widget_instantiate): remove old resize cruft.
12372
12373 2000-04-02  Andy Piper  <andy@xemacs.org>
12374
12375         * frame.c (change_frame_size_1): The introduction of gutters means
12376         that we need to allow 0 as a potential frame dimension.
12377
12378 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12379
12380         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
12381         image glyph if allow_cursor.
12382         (add_hscroll_rune): Don't allow cursor to border glyph.
12383         (create_text_block): Ditto.
12384
12385         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
12386         text not in buffer.
12387         (redisplay_output_layout): Call ensure_face_cachel_complete for
12388         text image glyph.
12389
12390
12391 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12392
12393         * redisplay.c (add_glyph_rune): Adding text image as text runes.
12394
12395         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
12396         not in buffer
12397
12398         * redisplay-tty.c (tty_output_display_block): Delete the routine
12399         for text image glyph
12400         * redisplay-x.c (x_output_display_block): ditto
12401         * redisplay-msw.c (mswindows_output_display_block): ditto
12402
12403 2000-02-02  Mike Alexander  <mta@arbortext.com>
12404
12405         Note: Some of these were committed by accident as part of other
12406         patches.
12407
12408         * regex.c (regex_compile): Avoid compiler warnings.
12409
12410         * ntproc.c (sys_spawnve): Avoid compiler warnings.
12411
12412         * nt.h: Declare term_ntproc correctly.
12413
12414         * nt.c: Remove incorrect declaration of get_home_directory which
12415         is declared correctly in lisp.h.
12416
12417         * keymap.c (get_keyelt): Avoid compiler warnings.
12418         (raw_lookup_key_mapper): Avoid compiler warnings.
12419
12420         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
12421
12422         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
12423
12424         * filemode.c (mode_string): Avoid compiler warnings.
12425
12426         * file-coding.c (Fcoding_system_aliasee): Add return statement to
12427         avoid warning.
12428
12429         * events-mod.h: Undef some things that winuser.h defines differently.
12430
12431         * data.c (Faset): Avoid compiler warnings.
12432
12433         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
12434
12435 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
12436
12437         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
12438         Fall through to simple beep on error.
12439         Replace "extern" by real header file.
12440
12441         * linuxplay.c: Use nativesound.h
12442         (play_sound_data): Return error code. Be less verbose on error.
12443
12444         * sunplay.c: Use nativesound.h
12445         (play_sound_data): Return error code. Be less verbose on error.
12446
12447         * ntplay.c: Use nativesound.h
12448         (play_sound_data): Return fake error code
12449
12450         * sgiplay.c: Use nativesound.h
12451         (play_sound_data): Return error code
12452
12453         * hpplay.c: Use nativesound.h, partially implement
12454         new error code. Break compilation until finished.
12455         (play_sound_data): error code.
12456
12457         * nativesound.h (play_sound_file):
12458           (play_sound_data): Prototype in new header.
12459
12460 2000-03-31  Andy Piper  <andy@xemacs.org>
12461
12462         * glyphs-widget.c: (button_query_geometry): new function. Adjust
12463         for toggle and radio buttons.
12464         (image_instantiator_buttons): use it.
12465
12466 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
12467
12468         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
12469         (x_update_horizontal_scrollbar_callback): Return if no mirror was
12470         found. Scrollbar event probably belonged to some old config.
12471
12472 2000-03-31  Andy Piper  <andy@xemacs.org>
12473
12474         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
12475         than 1.
12476         (initialize_widget_image_instance): default layout to
12477         LAYOUT_HORIZONTAL rather than 0.
12478         (widget_instantiate): reverse the item list at the end rather than
12479         every iteration.
12480         (layout_layout): re-code for the border text at the front of the
12481         item list rather than at the end.
12482         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
12483         provided by the user.
12484         (widget_query_geometry): comment.
12485
12486 2000-03-30  Andy Piper  <andy@xemacs.org>
12487
12488         * glyphs-widget.c (image_instantiator_layout): allow standard
12489         widget keywords in layouts.
12490
12491         * gutter.c (output_gutter): cope with nil gutter contents.
12492
12493         * frame.c (Fset_frame_properties): add gutter docs.
12494
12495 2000-03-29  Andy Piper  <andy@xemacs.org>
12496
12497         * toolbar-msw.c (TBSTYLE_FLAT): add.
12498         (mswindows_output_toolbar): minor fiddling.
12499
12500 2000-03-29  Andy Piper  <andy@xemacs.org>
12501
12502         * gutter.c (output_gutter): force gutter size recalculation if
12503         what we are trying to display won't fit.
12504         (update_gutter_geometry): new function. A per-gutter version of
12505         update_frame_gutter_geometry.
12506         (update_frame_gutter_geometry): use it.
12507         (redraw_exposed_gutter): add extra debugging output.
12508
12509 2000-03-28  Mike Alexander  <mta@arbortext.com>
12510
12511         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
12512         (pdump_file_unmap): Implement it on Windows
12513         (pdump_file_get): Save alocated handles for pdump_file_unmap
12514
12515 2000-03-28  Andy Piper  <andy@xemacs.org>
12516
12517         * gui.c (get_gui_callback): treat Quit specially.
12518
12519 2000-03-27  Andy Piper  <andy@xemacs.org>
12520
12521         * glyphs.c (image_instantiate): be careful to check in the same
12522         way we assigned.
12523
12524 2000-03-27  Didier Verna  <didier@xemacs.org>
12525
12526         * config.h.in: define the proper SMART_INCLUDE macro.
12527         handle renaming of `foo_h_path' to `foo_h_file'.
12528
12529         * database.c: ditto.
12530
12531         * emacs.c: ditto.
12532
12533         * linuxplay.c: ditto.
12534
12535         * terminfo.c: ditto.
12536
12537         * tooltalk.h: ditto.
12538
12539 2000-03-27  Andy Piper  <andy@xemacs.org>
12540
12541         * glyphs-msw.c (mswindows_update_widget): make sure the widget
12542         gets updated whenever the face might have changed.
12543
12544 2000-03-26  Mike Alexander  <mta@arbortext.com>
12545
12546         * dumper.c (pdump_resource_free): Fix the comment.
12547
12548 2000-03-21  Olivier Galibert  <galibert@pobox.com>
12549
12550         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
12551
12552 2000-03-22  Mike Alexander  <mta@arbortext.com>
12553
12554         * dumper.c: Include Windows headers on Windows
12555         (pdump_resource_free): Add a body to the function
12556         (pdump_load): exe_name -> exe_path and add some comments.
12557
12558 2000-03-25  Mike Alexander  <mta@arbortext.com>
12559
12560         * gui.c (copy_gui_item_tree): Return a value in all cases
12561
12562 2000-03-21  Didier Verna  <didier@xemacs.org>
12563
12564         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
12565         lwlib/config.h.in.
12566         (SMART_INCLUDE): new macro.
12567         (POSTGRES_INCLUDE): new macro to include postgresql headers from
12568         the proper location.
12569
12570         * postgresql.c: use it.
12571
12572         * inline.c: ditto.
12573
12574 2000-03-24  Andy Piper  <andy@xemacs.org>
12575
12576         * gutter.c (redraw_exposed_gutters): must be "in display" when we
12577         do this.
12578
12579 2000-03-24  Andy Piper  <andy@xemacs.org>
12580
12581         * redisplay-output.c (compare_runes): use image_instance_changed
12582         to detect changes. Do not depend on glyphs_changed, only depend on
12583         dirtiness.
12584          (redisplay_output_layout): add debug messages.
12585         (compare_runes): ditto.
12586
12587         * glyphs.h: declare new functions.
12588         (struct Lisp_Image_Instance): remove percent and associated
12589         accessors.
12590
12591         * gui.h: declare new copying functions.
12592
12593         * gui.c (copy_gui_item_tree): new function.
12594         (copy_gui_item): new function.
12595         (gui_item_id_hash): revert to standard hash.
12596         (gui_item_hash): ditto.
12597         (gui_item_hash_internal): deleted.
12598         (mark_gui_item): mark value.
12599         (gui_item_add_keyval_pair): add value.
12600         (gui_item_init): ditto.
12601         (gui_add_item_keywords_to_plist): ditto.
12602         (gui_item_equal): ditto.
12603         (syms_of_gui): add Q_value.
12604
12605         * glyphs-x.c (x_progress_gauge_update): use pending items and
12606         value for setting the state.
12607         (x_update_widget): don't set items from pending here.
12608
12609         * glyphs-widget.c (update_widget): update items here.
12610         (progress_gauge_set_property): use items for storing value. Put
12611         new value in pending items.
12612
12613         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
12614         items for new value. Convert percent -> value.
12615         (mswindows_tab_control_update): don't update items here.
12616
12617         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
12618         (update_subwindow): ditto.
12619         (image_instance_changed): new function. Compare hash values and
12620         past and present widget items.
12621         (image_instantiate): We more careful about where we instantiate
12622         things.
12623         (image_instantiate): add error checking.
12624
12625         * gutter.c (syms_of_gutter): use -hook.
12626
12627 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
12628
12629         * console-tty.c (Fset_console_tty_input_coding_system): Use
12630         Qkeyboard.
12631         (Fset_console_tty_output_coding_system): Use Qterminal.
12632         (tty_init_console): Use Qkeyboard and Qterminal.
12633
12634 2000-03-21  Ben Wing  <ben@xemacs.org>
12635
12636         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
12637         From Mike Alexander <mta@arbortext.com>.
12638
12639 2000-03-21  Ben Wing  <ben@xemacs.org>
12640
12641         * event-msw.c (mswindows_need_event): Horrible kludge to fix
12642         process brokenness.  Proper implementation to come.
12643         * callproc.c:
12644         Rename call-process-internal to old-call-process-internal.
12645         New impl. in process.el.
12646
12647 2000-03-21  Martin Buchholz  <martin@xemacs.org>
12648
12649         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
12650
12651 2000-03-20  Andy Piper  <andy@xemacs.org>
12652
12653         * glyphs.c (full_list_hash): make hashes of the same elements in
12654         different orders return different values.
12655
12656 2000-03-20  Martin Buchholz <martin@xemacs.org>
12657
12658         * XEmacs 21.2.32 is released.
12659
12660 2000-03-20  Martin Buchholz  <martin@xemacs.org>
12661
12662         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
12663         (DFC_MALLOC_USE_CONVERTED_DATA):
12664         Add aliasing-safe casts to allow use with char* or unsigned char*
12665         lvalues.
12666
12667         * eldap.c (Fldap_open):
12668         (Fldap_search_basic):
12669         (Fldap_add):
12670         (Fldap_modify):
12671         Make C++-compilable.
12672         Make sure GCPRO'ed variables are initialized.
12673         Use temp variables to avoid repeated calls to Flength.
12674
12675 2000-03-16  Martin Buchholz  <martin@xemacs.org>
12676
12677         * sysfile.h:
12678         Make sure PATH_MAX is always defined.
12679         Include limits.h for PATH_MAX.
12680         Deprecate use of MAXPATHLEN.
12681
12682 2000-03-10  Martin Buchholz  <martin@xemacs.org>
12683
12684         * emacs.c: Add reinit_vars_of_fileio.
12685         * symsinit.h: Add reinit_vars_of_fileio.
12686         * fileio.c (reinit_vars_of_fileio): New.
12687         * fileio.c (Fmake_temp_name):
12688         Initialize temp_name random number from microseconds to make
12689         collisions even less likely.  Initialize always at process startup
12690         time.  (make-temp-name) used to return the same file name twice in
12691         a row when PDUMP.
12692         Random stylistic fiddling.
12693         Comment fixes.
12694
12695 2000-03-20  Andy Piper  <andy@xemacs.org>
12696
12697         * glyphs.c (image_instantiate): allow text glyphs to be
12698         instantiated in the minibuffer window.
12699
12700 2000-03-19  Andy Piper  <andy@xemacs.org>
12701
12702         * glyphs.c (image_instance_hash): be careful about which items we
12703         hash on.
12704
12705         * glyphs-widget.c (tab_control_set_property): record into pending
12706         items rather than the actual items.
12707
12708         * glyphs-x.c (x_update_widget): use pending items to update with.
12709
12710         * glyphs-msw.c (mswindows_tab_control_update): use pending items
12711         to update with.
12712
12713         * glyphs.c (mark_image_instance): mark pending items.
12714
12715         * window.c (Fset_window_configuration): record the buffer.
12716         (Fselect_window): totally revert previous change which breaks many
12717         things.
12718
12719 2000-03-18  Andy Piper  <andy@xemacs.org>
12720
12721         * glyphs-msw.c (mswindows_tab_control_update): force selected
12722         item.
12723
12724         * glyphs.c (image_instantiate): don't allow the minibuffer as a
12725         window domain cache, otherwise we get inconsistencies at
12726         startup. There is something fishy at startup which can lead to the
12727         minibuffer being the selected window when the gutter content is
12728         instantiated.
12729
12730         * gui.c (parse_gui_item_tree_list): add probably unnecessary
12731         gcpros.
12732         (parse_gui_item_tree_children): ditto.
12733         (parse_gui_item_tree_item): ditto.
12734
12735         * glyphs.c (Fupdate_widget_instances): return something.
12736
12737 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
12738
12739         * window.c (Fselect_window): Undo 2000-03-17 change.
12740
12741 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
12742
12743         * postgresql.c (Fpq_setenv): Remove this turkey when linking
12744         against v7.0 libraries.  Insta-coredump city until the postgres
12745         folks fix it.
12746
12747 2000-03-17  Andy Piper  <andy@xemacs.org>
12748
12749         * faces.c (complex_vars_of_faces): don't give the widget face an
12750         inherited background pixmap.
12751
12752         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
12753         selected item.
12754
12755         * event-stream.c (Fdispatch_non_command_events): return something.
12756
12757         * gutter.c (output_gutter): use widget face.
12758         (clear_gutter): ditto.
12759
12760         * NEWS: adjust again.
12761
12762         * window.c (Fselect_window): make sure this runs to completion to
12763         avoid oddities with Fset_window_configuration.
12764         (Fcurrent_window_configuration): in general do not save the
12765         minibuffer as the selected window.
12766
12767         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
12768
12769 2000-03-16  Olivier Galibert  <galibert@pobox.com>
12770
12771         * emacs.c (Frunning_temacs_p): Revert previous patch.
12772         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
12773
12774 2000-03-16  Andy Piper  <andy@xemacs.org>
12775
12776         * glyphs-x.c (x_tab_control_update): if no widget values then
12777         return.
12778
12779         * NEWS: update for new features.
12780
12781         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
12782         synthetic event to the native system.
12783         (reinit_vars_of_event_Xt): set force_event_pending to
12784         emacs_Xt_force_event_pending.
12785
12786         * events.h (struct event_stream): add force_event_pending.
12787
12788         * specifier.c (recompute_one_cached_specifier_in_window): add
12789         comment.
12790
12791         * redisplay.c (redisplay_frame): don't call
12792         update_frame_subwindows. Reset subwindow cachels when
12793         subwindows_changed, removing this was an optimization too far.
12794
12795         * redisplay-output.c (compare_runes): reorganize so that we catch
12796         glyph changes when we want them. Set optimize_output when this
12797         would help layouts.
12798         (redisplay_output_layout): remove frame_really_changed, use
12799         optimize_output instead.
12800
12801         * redisplay-msw.c (mswindows_output_display_block): reset
12802         optimize_output after outputting a glyph.
12803         * redisplay-x.c (x_output_display_block): ditto.
12804         * redisplay-tty.c (tty_output_display_block): ditto.
12805
12806         * gutter.c: (specifier_vars_of_gutter): use new spec changed
12807         functions.
12808         (gutter_specs_changed): do specific gutter positions.
12809         (top_gutter_specs_changed): new function. Only update the
12810         specified gutter specs.
12811         (bottom_gutter_specs_changed): ditto.
12812         (left_gutter_specs_changed): ditto.
12813         (right_gutter_specs_changed): ditto.
12814
12815         * gui.c (gui_item_hash_internal): new function, does a real hash.
12816         (gui_item_id_hash): use it.
12817         (gui_item_hash): hash the eval'ed gui_item.
12818
12819         * gui-x.c (popup_selection_callback): send an eval event to call
12820         Fupdate_widget_instances.
12821
12822         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
12823         to call Fupdate_widget_instances.
12824
12825         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
12826         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
12827
12828         * glyphs.c: (update_frame_subwindows): deleted.
12829         (Fupdate_widget_instances): new function for updating the dirty
12830         state of widgets that might have changed.
12831         (syms_of_glyphs): add Qupdate_widget_instances.
12832         (full_list_hash): hash a list completely.
12833         (image_instance_hash): use it for items and properties.
12834
12835         * frame-msw.c (mswindows_size_frame_internal): remove unused
12836         variable.
12837
12838         * faces.h (struct face_cachel): fix comment.
12839
12840         * event-stream.c (Fdispatch_non_command_events): new
12841         function. Process non-command events, forcing an event cycle
12842         beforehand.
12843         (syms_of_event_stream): declare.
12844         (event_stream_force_event_pending): new function. Force an event
12845         on the native event queue so that an event cycle will occur next
12846         time we check.
12847
12848         * event-msw.c:
12849         (struct ntpipe_shove_stream):
12850         (mswindows_enqueue_dispatch_event):
12851         (mswindows_dequeue_dispatch_event):
12852         (mswindows_cancel_dispatch_event):
12853         (mswindows_pump_outstanding_events):
12854         (mswindows_drain_windows_queue):
12855         (mswindows_handle_paint):
12856         (mswindows_wnd_proc):
12857         (mswindows_key_to_emacs_keysym):
12858         (get_process_input_waitable):
12859         (emacs_mswindows_delete_stream_pair): re-indent file.
12860         (mswindows_need_event): do not process further fds if the windows
12861         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
12862         fixes the 100% cpu problem.
12863         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
12864
12865 2000-03-15  Olivier Galibert  <galibert@pobox.com>
12866
12867         * alloc.h: New.
12868         * dumper.h: New.
12869         * dumper.c: New.
12870
12871         * emacs.c: Moved dump file searching to dumper.c.
12872         (Frunning_temacs_p): Fixed.
12873
12874         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
12875         last_lrecord_type_index_assigned.
12876
12877 2000-02-20  Olivier Galibert  <galibert@pobox.com>
12878
12879         * symsinit.h: Added reinit parameter to init_console_stream
12880         declaration.
12881
12882         * lisp.h: Added file parameter to pdump_load declaration.
12883
12884         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
12885         support.  Added dump file searching.
12886
12887         * config.h.in: Added EMACS_PROGNAME.
12888
12889         * console-stream.c (init_console_stream): Fix reinitialisation
12890         when running from temacs.
12891
12892         * alloc.c (pdump): Add id support.
12893         (pdump_load): Add file parameter and signature/id support.
12894
12895         * Makefile.in.in: Add full pdump support.
12896
12897 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
12898
12899         * postgresql.c: Update documentation to reflect latest code
12900         status.
12901         (print_result): Show tuple counts in printed representation when
12902         appropriate.
12903         (Fpq_put_nbytes): MULE-ize.
12904         (Fpq_get_line_async): Ditto.
12905
12906 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
12907
12908         * postgresql.c (Fpq_lo_import): Fix return value.
12909         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
12910
12911 2000-03-13  Ben Wing  <ben@xemacs.org>
12912
12913         * alloc.c (pdump_load):
12914         Fix compile warning under mswin.
12915
12916 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
12917
12918         * postgresql.c: Mule-ization, bug fixes.
12919         Use PG_CODING to encapsulate coding system name changes.
12920         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
12921         (pg-coding-system): Create.
12922
12923         (Fpq_conn_defaults): Mule-ize.
12924         (Fpq_connectdb): Mule-ize & bug fix.
12925         (Fpq_connect_start): Mule-ize.
12926         (Fpq_set_client_encoding): Mule-ize.
12927         (Fpq_finish): Document `DEAD' connection status.
12928         (Fpq_clear): Ditto.
12929         (Fpq_pgconn): Mule-ize.
12930         (Fpq_exec): Mule-ize & bug fix.
12931         (Fpq_send_query): Ditto.
12932         (Fpq_get_result): Ditto.
12933         (Fpq_res_status): Mule-ize.
12934         (Fpq_result_error_message): Mule-ize.
12935         (Fpq_ntuples): fix comments.
12936         (Fpq_fname): Mule-ize.
12937         (Fpq_fnumber): Mule-ize.
12938         (Fpq_ftype): fix comments.
12939         (Fpq_get_value): Mule-ize.
12940         (Fpq_cmd_status): Ditto.
12941         (Fpq_cmd_tuples): Ditto.
12942         (Fpq_oid_value): Ditto.
12943         (Fpq_notifies): Ditto.
12944         (Fpq_lo_import): Ditto.
12945         (Fpq_lo_export): Ditto.
12946         (Fpq_get_line): Ditto.
12947         (Fpq_put_line): Mule-ize and bug fix.
12948         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
12949
12950 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
12951
12952         * postgresql.c (vars_of_postgresql): Mule-ize.
12953         (Fpq_conn_defaults): Ditto.
12954
12955 2000-03-12  Ben Wing  <ben@xemacs.org>
12956
12957         * alloc.c (Fmake_byte_code):
12958         * alloc.c (debug_string_purity_print):
12959         * alloc.c (pdump_backtrace):
12960         * alloc.c (pdump_get_indirect_count):
12961         * alloc.c (pdump_register_sub):
12962         * alloc.c (pdump_register_object):
12963         * alloc.c (pdump_register_struct):
12964         * alloc.c (pdump_dump_data):
12965         * alloc.c (pdump_reloc_one):
12966         Minor cleanups.
12967
12968         * console-msw.c:
12969         * console-msw.c (GetConsoleHwnd):
12970         * console-msw.c (msw_hide_console):
12971         * console-msw.c (msw_show_console):
12972         * console-msw.c (msw_ensure_console_buffered):
12973         * console-msw.c (msw_output_console_string):
12974         * console-msw.c (console_type_create_mswindows):
12975
12976         a) Added functions to manipulate the console window for use with
12977         shell support.
12978
12979         b) Added support for writing text to the console, which is now
12980         used under Windows when xemacs is not being run non-interactively,
12981         to write text that would otherwise be destined for stdout because
12982         under these circumstances, text written to stdout tends to
12983         disappear and not be seen.
12984
12985         * console-msw.h:
12986         * event-Xt.c:
12987         * event-Xt.c (x_event_to_emacs_event):
12988         * event-Xt.c (describe_event_window):
12989         * events-mod.h (XEMACS_MOD_CONTROL):
12990         * events.c:
12991         * events.c (Fmake_event):
12992         * events.c (character_to_event):
12993         * events.c (event_to_character):
12994         * events.c (format_event_object):
12995         * events.c (Fevent_modifiers):
12996         * events.h:
12997         * events.h (struct key_data):
12998         * events.h (struct button_data):
12999         * events.h (struct misc_user_data):
13000         * frame-x.c (Fcde_start_drag_internal):
13001         * frame-x.c (Foffix_start_drag_internal):
13002         * gpmevent.c (Freceive_gpm_event):
13003         * keymap.c:
13004         * keymap.c (bucky_sym_to_bucky_bit):
13005         * keymap.c (control_meta_superify):
13006         * keymap.c (make_key_description):
13007         * keymap.c (keymap_lookup_directly):
13008         * keymap.c (create_bucky_submap):
13009         * keymap.c (keymap_store):
13010         * keymap.c (define_key_check_and_coerce_keysym):
13011         * keymap.c (define_key_parser):
13012         * keymap.c (define_key_alternate_name):
13013         * keymap.c (Fdefine_key):
13014         * keymap.c (raw_lookup_key_mapper):
13015         * keymap.c (struct map_keymap_unsorted_closure):
13016         * keymap.c (map_keymap_unsorted_mapper):
13017         * keymap.c (map_keymap_sort_predicate):
13018         * keymap.c (map_keymap_sorted):
13019         * keymap.c (accessible_keymaps_mapper_1):
13020         * keymap.c (where_is_recursive_mapper):
13021         * keymap.c (describe_map_mapper):
13022         * keymap.c (describe_map_sort_predicate):
13023         * keymap.c (describe_map):
13024         * keymap.c (complex_vars_of_keymap):
13025         And a number of other files, the key modifier preprocessor
13026         constants that xemacs uses have names that conflict with constants
13027         defined under MS Windows for other purposes, so they were renamed
13028         to begin with the prefix XEMACS_. The variables that hold such
13029         modifiers were changed to consistently be of type int to fix
13030         various compile warnings.
13031
13032         * console.c (complex_vars_of_console):
13033         * device.c:
13034         * device-msw.c:
13035         * device-msw.c (mswindows_finish_init_device):
13036         * device-msw.c (msw_get_workspace_coords):
13037         * device-msw.c (mswindows_device_system_metrics):
13038         and various other files, added support for a new
13039         device property called offset-workspace which returns the position
13040         of the upper left corner of the workspace area and goes along with
13041         the existing size-workspace property.
13042
13043         * dialog-msw.c:
13044         * dialog-msw.c (push_bufbyte_string_as_unicode):
13045         * dialog-msw.c (mswindows_popup_dialog_box):
13046         Added support for XEmacs-style accelerator specifications in
13047         button text.  Note: I didn't add support for this under X Windows,
13048         and somebody needs to do this.
13049
13050         * dialog.c:
13051         * dialog.c (Fpopup_dialog_box):
13052         Documented the support for accelerators that was just mentioned.
13053
13054         editfns.c (get_home_directory): Changed behavior under Windows
13055         when HOME not defined; former behavior was irretrievably broken.
13056
13057         * emacs.c:
13058         * emacs.c (main_1):
13059         * emacs.c (main):
13060         * minibuf.c (clear_echo_area_internal):
13061         * minibuf.c (echo_area_append):
13062         * print.c:
13063         * print.c (std_handle_out_external):
13064         * print.c (std_handle_out_va):
13065         * print.c (fatal):
13066         * print.c (write_string_to_stdio_stream):
13067         * print.c (output_string):
13068         * print.c (debug_print):
13069         * print.c (debug_backtrace):
13070         * print.c (debug_short_backtrace):
13071         Cleaned up the code that prints text to stdout so that this can be
13072         changed to output into a console window instead under MS Windows,
13073         as described above.
13074
13075         * eval.c:
13076         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
13077         * eval.c (internal_catch):
13078         * eval.c (unwind_to_catch):
13079         * eval.c (throw_or_bomb_out):
13080         * eval.c (condition_case_1):
13081         * eval.c (signal_1):
13082         * eval.c (check_error_state_sanity):
13083         * eval.c (call_with_suspended_errors_1):
13084         * eval.c (call_with_suspended_errors):
13085         * eval.c (reinit_vars_of_eval):
13086         Added code to catch throw loops and check for a pesky bug that may
13087         be gone now.
13088
13089         * event-msw.c:
13090         * event-msw.c (key_needs_default_processing_p):
13091         * event-msw.c (mswindows_wnd_proc):
13092         * event-msw.c (mswindows_modifier_state):
13093         * event-msw.c (emacs_mswindows_quit_p):
13094         * event-msw.c (vars_of_event_mswindows):
13095         a) Added support for using the alt key to select menu items as is
13096         standard under MS Windows.  This is controlled using the variable
13097         menu-accelerator-enabled, just like under X Windows.  There is an
13098         option on the options menu to turn this support on.  I really
13099         think that it should be on by default under Windows, but I'm not
13100         going to make this change yet.
13101
13102         b)  Added support for dynamic display size changes under Windows.
13103
13104         * event-stream.c:
13105         * event-stream.c (maybe_echo_keys):
13106         * event-stream.c (Fnext_event):
13107         * event-stream.c (command_builder_find_leaf):
13108         * event-stream.c (lookup_command_event):
13109         * event-stream.c (execute_command_event):
13110         * event-stream.c (pre_command_hook):
13111         * event-stream.c (post_command_hook):
13112         * event-stream.c (syms_of_event_stream):
13113         * event-stream.c (vars_of_event_stream):
13114         * event-stream.c (complex_vars_of_event_stream):
13115         * events.h (struct command_builder):
13116
13117         a) Tried to clean up a little bit the horribly written x-specific
13118         accelerator code that crept into this file.  I moved this code
13119         into menubar-x.c where it belongs. I also needed to move the
13120         command builder structure into the file events.h because it is
13121         accessed directly by this accelerator code.  What I didn't do, but
13122         which should be done at some point, is to properly abstract this
13123         code using device methods instead of the kludgy way that it
13124         currently hooks into the event code.
13125
13126         b) Added the lisp variables this-command-properties and
13127         last-command- properties, which should be used to synchronize two
13128         adjacent commands in preference to playing games with the variable
13129         this-command, which is typically what happens.
13130
13131         c) Added some slightly nasty code to hook into the lisp support
13132         for shifted- motion-key selection.  This is actually necessary for
13133         somewhat complicated reasons, which are described in
13134         simple.el. (NB: I think the proper thing would be to have the code
13135         that calls the pre and post command hooks also call out to generic
13136         lisp functions in simple.el, where all built-in stuff could be
13137         added.  I will think about this more.)
13138
13139         * event-unixoid.c (poll_fds_for_input):
13140         * lread.c (readchar):
13141         * redisplay-tty.c (tty_clear_frame):
13142         * redisplay-x.c (x_get_gc):
13143         * signal.c (interrupt_signal):
13144         And a whole bunch of other files: fixed up places that printed
13145         directly to stderr to instead call the function stderr_out so that
13146         the changes I made under Windows work correctly.
13147
13148         * filemode.c (mode_string):
13149         Warning fixes.
13150
13151         * frame-msw.c:
13152         * frame-msw.c (mswindows_size_frame_internal):
13153         Fixed the computation of frame size and position to keep the frame
13154         within the workspace area, rather than within the physical
13155         dimensions of the screen, so that the frame doesn't overlap window
13156         manager decorations, such as the start menu and toolbar, typically
13157         at the bottom of the screen.
13158
13159         * frame.c (vars_of_frame):
13160         Changed the default frame title format under MS Windows to consist
13161         of buffername-XEmacs, which is standard under MS Windows.  I think
13162         it might be a good idea to change this everywhere because I think
13163         it is superior to the current frame title format, but this is the
13164         kind of change that is likely to cause some people to get annoyed,
13165         so I'm not making it.
13166
13167         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
13168
13169         * gui-msw.c (mswindows_handle_gui_wm_command):
13170         Fixed compile warnings.
13171
13172         * gui-x.c:
13173         * gui-x.c (strdup_and_add_accel):
13174         * gui-x.c (button_item_to_widget_value):
13175         * gui-x.h:
13176         Added code to automatically put an accelerator onto the beginning
13177         of menu items that don't have one as is now the standard, and is
13178         described more later.  Also fixed things so that the menu item
13179         name can be an evaluated expression, again a new standard.
13180
13181         * gui.c:
13182         * gui.c (gui_item_add_keyval_pair):
13183         * gui.c (make_gui_item_from_keywords_internal):
13184         * gui.c (gui_add_item_keywords_to_plist):
13185         * gui.c (gui_item_accelerator):
13186         * gui.c (gui_name_accelerator):
13187         * gui.c (gui_item_included_p):
13188         * gui.c (gui_item_display_flush_left):
13189         * gui.c (gui_item_display_flush_right):
13190         * gui.c (parse_gui_item_tree_item):
13191         * gui.c (parse_gui_item_tree_children):
13192         * gui.c (parse_gui_item_tree_list):
13193         Mule-ized.  Cleanup.  GCPRO addition.
13194
13195         * line-number.c (buffer_line_number):
13196         * lisp.h:
13197         * lisp.h (EMACS_INT_MAX):
13198         Added the manifest constant EMACS_INT_MIN corresponding to the
13199         existing constant EMACS_INT_MAX.  This is partially to fix compile
13200         warnings under Windows, and partly for cleanliness.
13201
13202         * menubar-msw.c:
13203         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
13204         * menubar-msw.c (msw_translate_menu_or_dialog_item):
13205         * menubar-msw.c (displayable_menu_item):
13206         * menubar-msw.c (populate_menu_add_item):
13207         * menubar-msw.c (populate_or_checksum_helper):
13208         * menubar-msw.c (populate_menu):
13209         * menubar-msw.c (update_frame_menubar_maybe):
13210         * menubar-msw.c (prune_menubar):
13211         * menubar-msw.c (msw_char_is_accelerator):
13212         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
13213         * menubar-msw.c (mswindows_handle_wm_command):
13214         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
13215         * menubar-msw.c (mswindows_handle_wm_initmenu):
13216         * menubar-msw.c (mswindows_update_frame_menubars):
13217         * menubar-msw.c (mswindows_free_frame_menubars):
13218         * menubar-msw.c (mswindows_popup_menu):
13219         Fixed a bug in handling accelerators where an extra character
13220         would be displayed in the menu item.  Also generalized the
13221         function displayable_menu_item because it is now used by the
13222         dialog box code as well.  And finally, added code in the functions
13223         that create the menubar to extract a list of accelerators for the
13224         top level menubar, which is used in the event code to determine
13225         whether a particular alt-key combination should be used to invoke
13226         a menu item, or should be passed through to access the standard
13227         XEmacs keymap binding for this key combination.
13228
13229         Much needed GCPROing.
13230
13231         * menubar-x.c:
13232         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
13233         * menubar-x.c (menu_item_descriptor_to_widget_value):
13234         * menubar-x.c (restore_in_menu_callback):
13235         * menubar-x.c (x_popup_menu):
13236         * menubar-x.c (menu_move_up):
13237         * menubar-x.c (menu_move_down):
13238         * menubar-x.c (menu_move_left):
13239         * menubar-x.c (menu_move_right):
13240         * menubar-x.c (menu_select_item):
13241         * menubar-x.c (command_builder_operate_menu_accelerator):
13242         * menubar-x.c (menu_accelerator_junk_on_error):
13243         * menubar-x.c (command_builder_find_menu_accelerator):
13244         * menubar-x.c (Faccelerate_menu):
13245         * menubar.h:
13246         Moved a whole bunch of code here that was previously in
13247         event-stream.c as described above.  There is also code connected
13248         to the new standard of adding an accelerator to the beginning of
13249         menu items that don't have one as described above and below.
13250
13251         * menubar.c:
13252         * menubar.c (menu_parse_submenu_keywords):
13253         * menubar.c (Fmenu_find_real_submenu):
13254         * menubar.c (Fnormalize_menu_item_name):
13255         * menubar.c (syms_of_menubar):
13256         * menubar.c (vars_of_menubar):
13257         * menubar.c (complex_vars_of_menubar):
13258
13259         a) Cleaned up a bunch of documentation and improved it.
13260
13261         b) XEmacs now automatically adds an accelerator onto the beginning
13262         of any menu items that don't have one.  I did this because there
13263         will inevitably be some menu items on the main menubar that don't
13264         have accelerators on them because the package that adds that
13265         particular menu item hasn't yet been fixed up to have accelerators
13266         in them and it looked rather strange to have some items with and
13267         some items without accelerators, especially since even in items
13268         without accelerators, you can, at least under windows, still
13269         access the item through an accelerator corresponding to the first
13270         character in the item's name.  If people don't like this behavior,
13271         I can add a variable to turn it off optionally, but I'm not sure
13272         this is a good idea because we really do need to have accelerators
13273         on all of the menu items, and if a package doesn't like the
13274         accelerators being put on the first character, then it should put
13275         the accelerators where they belong.
13276
13277         c) I made a behavior change, which is that the descriptor that
13278         specifies the text of the menu item, which formerly was just a
13279         string, can now also be an evaluated expression.  This makes this
13280         descriptor parallel with all of the others, which could also be
13281         evaluated expressions.  This also obviates the need for the
13282         keyword :label, which was previously listed in the documentation
13283         as unimplemented, and which was for the same purpose.
13284
13285         d) GCPROing.
13286
13287         * ntproc.c:
13288         * ntproc.c (new_child):
13289         * ntproc.c (sys_spawnve):
13290         * ntproc.c (find_child_console):
13291         * ntproc.c (sys_kill):
13292         Fixed compile warnings.  By the way, this file should really go
13293         away entirely, and this will happen as soon as Kirill makes his
13294         final round of process cleanups, which affect the function
13295         call-process.
13296
13297         * process-nt.c:
13298         * process-nt.c (struct nt_process_data):
13299         * process-nt.c (find_process_from_pid):
13300         * process-nt.c (send_signal_the_nt_way):
13301         * process-nt.c (enable_child_signals):
13302         * process-nt.c (find_child_console):
13303         * process-nt.c (send_signal_the_95_way):
13304         * process-nt.c (nt_finalize_process_data):
13305         * process-nt.c (ensure_console_window_exists):
13306         * process-nt.c (nt_create_process):
13307         * process-nt.c (nt_kill_child_process):
13308         * process-nt.c (nt_kill_process_by_pid):
13309         * process-nt.c (nt_open_network_stream):
13310         * process-nt.c (vars_of_process_nt):
13311         Copied over code from Emacs 20.5 to correctly send signals to sub-
13312         processes under Windows 95.  Also added code to automatically
13313         create and hide console window when a sub-process is created under
13314         Windows 95, which obviates the need for the separate runemacs.exe
13315         executable, and finally implemented some variables that were
13316         implemented in Emacs 20.5, but previously not in XEmacs.  These
13317         include mswindows- start-process-share-console and
13318         mswindows-start-process-inherit-error-mode. (Both of these only
13319         apply to Windows 95.)
13320
13321         * regex.c (regex_compile): Fixed a compile warning.
13322
13323         * select-msw.c:
13324         * select-msw.c (mswindows_own_selection):
13325         * select-msw.c (mswindows_get_foreign_selection):
13326         * select-msw.c (mswindows_disown_selection):
13327         * select-msw.c (console_type_create_select_mswindows):
13328         * select-msw.c (syms_of_select_mswindows):
13329         Cleaned up the file and implemented the device method
13330         selection_exists_p, which had accidentally been left out.  Also
13331         removed four lisp functions that were remnants from before the
13332         time when the selection code was properly device abstracted.
13333         These functions are no longer needed because there are generic
13334         equivalents, and because they were added recently and don't exist
13335         in FSF Emacs, I don't think there's any problem with just deleting
13336         them.
13337
13338         * sysdep.c:
13339         * sysdep.c (sys_subshell):
13340         Fixed a compile warning, although in this case there's probably
13341         something wrong with this code, and it ought to be looked into
13342         more thoroughly by somebody who understands it.
13343
13344         * window.c:
13345         * window.c (Fwindow_text_area_height):
13346         * window.c (Fwindow_width):
13347         * window.c (Fwindow_full_width):
13348         * window.c (Fwindow_pixel_width):
13349         * window.c (debug_print_window):
13350         * window.c (syms_of_window):
13351         Added functions window-text-area-height and window-full-width,
13352         which are functions for returning various width and height
13353         characteristics of a window. (One of these functions is necessary
13354         for making the file dialog box work correctly, and the other one
13355         was added for completeness.)  Also added a table to the
13356         documentation for window-height which describes the entire scheme
13357         for accessing width and height characteristics of a window.
13358
13359 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13360
13361         * nt.c (fstat): Added a comment for another problem with
13362         non-encapsulated [f]stat(), reported by Adrian Aichner
13363         <aichner@ecf.teradyne.com>.
13364
13365 2000-03-11  Andy Piper  <andy@xemacs.org>
13366
13367         * window.c (make_dummy_parent): initialize subwindow instance
13368         cache.
13369         (Fset_window_configuration): zero extent_modiff.
13370
13371 2000-03-10  Andy Piper  <andy@xemacs.org>
13372
13373         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
13374         more changes can be triggered.
13375         (Fredisplay_frame): ditto.
13376         (Fredraw_device): ditto.
13377         (Fredisplay_device): ditto.
13378         (redisplay_frame): make non-static.
13379         (redisplay_frame): call update_frame_gutter_geometry outside of
13380         display proper.
13381
13382         * gutter.h: declare update_frame_gutter_geometry.
13383
13384         * redisplay.h: declare redisplay_frame.
13385
13386         * gutter.c (update_frame_gutter_geometry): move geometry changes
13387         in update_frame_gutters here. Geometry changes can only occur
13388         outside of redisplay.
13389         (update_frame_gutters): remove geometry change code.
13390         (Fredisplay_gutter_area): make sure that we are in display when we
13391         update and that we have flushed any size changes.
13392
13393 2000-03-11  Andy Piper  <andy@xemacs.org>
13394
13395         * alloc.c (pdump_dump_data): remove i & count shadows.
13396
13397 2000-02-27  Mike Alexander  <mta@arbortext.com>
13398
13399         * sysdep.h: Declare pdump_read_file
13400
13401         * sysdep.c (pdump_read_file): New function
13402
13403         * alloc.c (pdump_load): Call pdump_read_file to get the portable
13404         dump data
13405
13406 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
13407
13408         * lrecord.h: add `lrecord_type_pgsetenv'.
13409
13410 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
13411
13412         * symsinit.h: declare (vars|syms)_of* functions.
13413         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
13414
13415 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
13416
13417         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
13418
13419         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
13420         GCCs.
13421
13422         * emacs.c (main_1): Call postgres initialization code.
13423
13424         * postgresql.h: New file.  PostgreSQL RDBMS support.
13425         * postgresql.c: New file.
13426
13427 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
13428
13429         * redisplay-output.c (redisplay_output_display_block): Disable
13430         redundant code.
13431
13432 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
13433
13434         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
13435         (Fcanna_henkan_next): Ditto.
13436         (Fcanna_bunsetu_henkou): Ditto.
13437         (Fcanna_henkan_kakutei): Ditto.
13438         (Fcanna_henkan_end): Ditto.
13439         (Fcanna_henkan_quit): Ditto.
13440         (Fcanna_henkan_next): Set retun value correctly.
13441         (c2mu): Use unsigned char instead of signed char.
13442
13443 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
13444
13445         * emacs.c (main_1): Always call syms_of_gui.
13446         * inline.c: include gui.h
13447
13448 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
13449
13450         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
13451         converted to Lisp_Object.
13452         (Qtop_bottom): New variable.
13453         (syms_of_redisplay): Initialize it.
13454         * redisplay.h (Vvisible_bell): Ditto.
13455         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
13456         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
13457         only flash top and bottom.
13458
13459 2000-03-08  Andy Piper  <andy@xemacs.org>
13460
13461         * buffer.c (Frename_buffer): record new buffer name the right way.
13462
13463 2000-03-08  Andy Piper  <andy@xemacs.org>
13464
13465         * glyphs.c (update_subwindow): increase hash depth so that widget
13466         items get picked up properly.
13467
13468         * redisplay-output.c (compare_runes): increase hash depth so that
13469         widget items get picked up properly.
13470
13471 2000-03-08  Andy Piper  <andy@xemacs.org>
13472
13473         * gutter.c (output_gutter): add some debug.
13474
13475         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
13476         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
13477         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
13478
13479         * redisplay-output.c (compare_runes): use display_hash to
13480         determine if glyphs really are not the same.
13481
13482         * glyphs.c (update_subwindow): check display_hash to see if
13483         anything really needs to be updated. If not then do
13484         nothing. Record the display_hash after updating.
13485         (image_instance_equal): compare the image_instance face also.
13486
13487 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
13488
13489         * redisplay.h: Fix comment style.
13490
13491 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13492
13493         * consle-msw.h (struct mswindows_frame):
13494         Added new member paint_pending to indicate whether a WM_PAINT
13495         magic event has been queued for this frame.
13496
13497         * event-msw.c (mswindows_drain_windows_queue):
13498         Don't queue a WM_PAINT magic event if one is already queued.
13499         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
13500
13501         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
13502
13503 2000-03-07  Didier Verna  <didier@xemacs.org>
13504
13505         * dired.c: #include `regex.h' after `sysfile.h'.
13506
13507 2000-03-06  Martin Buchholz  <martin@xemacs.org>
13508
13509         * sound.c (init_nas_sound): Fix compiler warning.
13510
13511         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
13512         (FREE_STRUCT_P):
13513         (MARK_STRUCT_AS_FREE):
13514         (MARK_STRUCT_AS_NOT_FREE):
13515         Make `gcc -fstrict-aliasing' work properly.
13516
13517 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13518
13519         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
13520         (mswindows_delete_device): Call CoUnnitialize().
13521
13522         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
13523
13524 2000-02-25    <CraigL@DyCon.com>
13525
13526         * process-nt.c: MinGW now has <shellapi.h>, but still needs
13527         <errno.h>.
13528
13529         * sysdep.c: This extern declaration for environ prevents MinGW
13530         from finding the variable in CRTDLL.DLL.
13531
13532         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
13533         windows headers.
13534         (SHGFI_EXETYPE): ..
13535         (WM_MOUSEWHEEL): ..
13536         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
13537         definitions.
13538         (MMRESULT): Removed, now defined in cygwin's windows headers.
13539         (TIMECAPS): ..
13540         (uid_t,gid_t,pid_t,ssize_t): ..
13541         (_timeb): Removed, MinGW defines both _timeb and timeb.
13542         (HAVE_H_ERRNO): Added.
13543         (HAVE_TZNAME): Added, configure is not detecting this.
13544
13545 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
13546
13547         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
13548         * syntax.c (syntax_match): Use it.
13549
13550         * cmds.c: Import auto-fill-chars from FSF Emacs.
13551         (Vauto_fill_chars): New variables.
13552         (internal_self_insert): Check Vauto_fill_chars.
13553         (vars_of_cmds):
13554         Declare auto-fill-chars as a Lisp variable and initialize it.
13555
13556 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13557
13558         * fileio.c (Fmake_symbolic_link):
13559         (Ffile_symlink_p):
13560         Run handlers even if local machine doesn't have symlinks.
13561
13562 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13563
13564         * event-msw.c (mswindows_drain_windows_queue):
13565         Don't generate paint magic events for non-XEmacs frames.
13566
13567 2000-03-05  Andy Piper  <andy@xemacs.org>
13568
13569         * redisplay.c (redisplay_frame): generate_displayable_area and
13570         friends assumes that we are not in GC, we therefore have to make
13571         sure that this doesn't happen.
13572
13573         * gutter.c (calculate_gutter_size): generate_displayable_area
13574         assumes that we are not in GC, we therefore have to make sure that
13575         this doesn't happen.
13576
13577 2000-03-05  Martin Buchholz  <martin@xemacs.org>
13578
13579         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
13580
13581 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
13582
13583         * redisplay.c (regenerate_window): Make sure we set a sane value
13584         for end_pos even if we jump out of the loop.
13585         (regenerate_window): Answer Ben's question :-).
13586         (start_end_of_last_line): Add may_error argument.
13587         (start_of_last_line):
13588         (end_of_last_line): Pass may_error = 0.
13589         (end_of_last_line_may_error): New function.
13590         (pixel_to_glyph_translation): Use it, so we don't crash in
13591         event_to_glyph.
13592
13593 2000-03-04  Andy Piper  <andy@xemacs.org>
13594
13595         * window.h (struct window): add gutter_extent_modiff.
13596
13597         * window.c (allocate_window): zero out gutter_extent_modiff.
13598
13599         * redisplay.h: declare sync_display_line_structs.
13600
13601         * redisplay.c (add_glyph_rune): add a better comment.
13602
13603         * redisplay-output.c (sync_display_line_structs): made non-static.
13604         (compare_runes): remove unneccesary glyph cachel access.
13605
13606         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
13607
13608         * gutter.c (output_gutter): don't output the gutter if extent
13609         changes only involve extents in buffers. use 4 sets of display
13610         lines.
13611         (gutter_extent_signal_changed_region_maybe): new function. Mark
13612         extents in gutters as changed.
13613         (update_frame_gutters): use 4 sets of display lines.
13614         (reset_gutter_display_lines): ditto.
13615         (free_frame_gutters): ditto.
13616         (redraw_exposed_gutter): force output of gutters.
13617
13618         * frame.h (struct frame): add 4 sets of gutter display lines.
13619
13620         * extents.c: (extent_changed_for_redisplay): signal changes to
13621         extents in strings in the gutter as well as extents in buffers.
13622
13623 2000-03-02  Andy Piper  <andy@xemacs.org>
13624
13625         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
13626
13627         * frame.c (Fmake_frame): make sure the gutters get initialized
13628         after the frame is visible.
13629         (set_frame_selected_window): re-arrange compilation macros a
13630         little.
13631         (change_frame_size_1): mark gutters changed.
13632
13633         * device.c (Fset_device_class): mark gutters changed.
13634
13635 2000-03-01  Andy Piper  <andy@xemacs.org>
13636
13637         * window.c (window_top_frame_gutter_height): deleted.
13638         (window_bottom_frame_gutter_height): ditto.
13639         (window_left_frame_gutter_height): ditto.
13640         (window_right_frame_gutter_height): ditto.
13641         (window_top_gutter_height): don't use them.
13642         (window_bottom_gutter_height): ditto.
13643         (window_left_gutter_width): ditto.
13644         (window_right_gutter_width): ditto.
13645         (Fsplit_window): ditto.
13646         (Fwindow_pixel_edges): don't use border dimensions here.
13647
13648         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
13649         (update_scrollbar_instance): ditto.
13650
13651         * redisplay.c (generate_modeline): don't take gutters into account.
13652         (generate_modeline): ditto.
13653         (redisplay_frame): small gutter display optimization.
13654
13655         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
13656
13657         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
13658         gutters into account.
13659
13660         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
13661         for window position and type.
13662
13663         * gutter.c (get_gutter_coords): fix for frame gutters.
13664         (update_frame_gutters): update frame geometry if the gutters have
13665         changed.
13666         (init_frame_gutters): record current gutter geometries.
13667
13668         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
13669         var.
13670         (mswindows_widget_instantiate): ditto.
13671
13672         * frame.h (struct frame): add current_gutter_bounds.
13673
13674         * frame.c (change_frame_size_1): position window and minibuffer
13675         appropriately taking into account the frame gutters.
13676
13677         * frame-x.c: (x_initialize_frame_size): take into account the
13678         frame gutters.
13679
13680 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
13681
13682         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
13683
13684 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
13685
13686         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
13687
13688 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
13689
13690         * file-coding.c (reset_decoding_stream): Clear previous
13691         detection state when autodetect.
13692
13693 2000-02-29  Didier Verna  <didier@xemacs.org>
13694
13695         * extents.c (set_extent_glyph_1): don't require extents to be
13696         attached.
13697
13698 2000-02-27  Andy Piper  <andy@xemacs.org>
13699
13700         * gutter.c (Fset_default_gutter_position): don't default left and
13701         right gutter visibility to t.
13702         (Fset_default_gutter_position): run
13703         default-gutter-position-changed-hook.
13704         (syms_of_gutter): add default-gutter-position-changed-hook.
13705
13706 2000-02-26  Andy Piper  <andy@xemacs.org>
13707
13708         * specifier.c (Fmake_specifier): add gutter references.
13709
13710         * gutter.h (RAW_WINDOW_GUTTER): new macro.
13711
13712         * lisp.h: declare Fvalid_plist_p.
13713
13714         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
13715         as changed.
13716         (default_gutter_visible_p_changed_in_window): invalidate gutter as
13717         well as its visibility so that it gets reconstructed.
13718         (construct_window_gutter_spec): new function. Construct a string
13719         to be displayed in the gutter from a plist of strings. Take care
13720         to only use elements that are declared as visible.
13721         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
13722         WINDOW_GUTTER.
13723         (gutter_validate): allow plists of strings in the specifier.
13724         (gutter_specs_changed): construct the real_gutter from the gutter
13725         specs using construct_window_gutter_spec.
13726         (gutter_visible_validate): gutter-visible is a new specifier type.
13727         (Fgutter_visible_specifier_p): new function for the new specifier.
13728         (syms_of_gutter): declare gutter-visible and
13729         Fgutter_visible_specifier_p.
13730         (specifier_type_create_gutter): intitalize new gutter-visible
13731         specifier.
13732         (reinit_specifier_type_create_gutter): ditto.
13733         (specifier_vars_of_gutter): use new specifier type for gutter
13734         visibility.
13735         (init_frame_gutters): construct real_gutter correctly.
13736         (Fgutter_specifier_p): beef up documentation.
13737         (Fgutter_size_specifier_p): ditto.
13738
13739         * winslots.h: add real_gutter slots.
13740
13741 2000-02-25  Andy Piper  <andy@xemacs.org>
13742
13743         * device-msw.c: Be kind to older cygwin versions. From Raymond
13744         Toy <toy@rtp.ericsson.se>.
13745
13746         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
13747         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
13748
13749 2000-02-25  Martin Buchholz  <martin@xemacs.org>
13750
13751         * elhash.c (MARK_OBJ): Practice macro hygiene.
13752
13753 2000-02-24  Martin Buchholz  <martin@xemacs.org>
13754
13755         * miscplay.c: s/__inline__/inline/g;
13756         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
13757         (get_device_compdc): INLINE ==> static inline
13758         * *.[ch]: Change INLINE to INLINE_HEADER globally.
13759         find -name '*.h' | \
13760         xargs global-replace \
13761         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
13762
13763 2000-02-25  Andy Piper  <andy@xemacs.org>
13764
13765         * window.c (window_top_frame_gutter_height): new function.
13766         (window_top_window_gutter_height): ditto.
13767         (window_top_gutter_height): use them.
13768         (window_bottom_frame_gutter_height): new function.
13769         (window_bottom_window_gutter_height): ditto.
13770         (window_bottom_gutter_height): use them.
13771         (window_left_window_gutter_width): new function.
13772         (window_left_frame_gutter_width): ditto.
13773         (window_left_gutter_width): use them.
13774         (window_right_window_gutter_width): new function.
13775         (window_right_frame_gutter_width): ditto.
13776         (window_right_gutter_width): use them.
13777         (window_pixel_height): new function. calulate window pixel height
13778         with frame gutter involvement.
13779         (Fsplit_window): calculate new sizes taking frame gutters into
13780         account.
13781         (window_char_height_to_pixel_height): don't include frame gutters.
13782         (window_char_height): use window_pixel_height.
13783         (window_pixheight): rename from window_pixel_height.
13784         (change_window_height): use it.
13785         (window_pixel_height_to_char_height): don't include frame gutters.
13786         (window_char_width_to_pixel_width): ditto.
13787
13788 2000-02-25  Andy Piper  <andy@xemacs.org>
13789
13790         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
13791         if it is.
13792
13793 2000-02-24  Martin Buchholz  <martin@xemacs.org>
13794
13795         * alloc.c (staticpro):
13796         (staticpro_nodump):
13797         (dumpstruct):
13798         (dumpopaque):
13799         (pdump_wire):
13800         (pdump_wire_list):
13801         (compact_string_chars):
13802         (pdump_dump_wired):
13803         Convert:  if (foo) abort();  ==>  assert (! foo);
13804
13805         * eldap.c (Fldap_search_basic):
13806         (Fldap_add):
13807         (Fldap_modify):
13808         (Fldap_delete):
13809         Fix compiler warnings, and possible crashes if (random) return
13810         value were to be used.
13811
13812 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13813
13814         * device-msw.c: Workaround ResetDC failure.
13815
13816         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
13817         applying a devmode.
13818
13819         * redisplay-msw.c (get_frame_dc): Added start_page_p.
13820         (mswindows_text_width): Do not start printer page.
13821
13822         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
13823
13824         * glyphs-msw.c: Added image methods to msprinter console and
13825         msprinter-specific image instantiation.
13826
13827 2000-02-20  Mike Alexander  <mta@arbortext.com>
13828
13829         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
13830         to avoid crashes when selection-sets-clipboard is on
13831         (mswindows_own_selection): ditto
13832
13833 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13834
13835         * glyphs-msw.c:
13836         * redisplay-msw.c (get_frame_dc):
13837         (get_frame_compdc):
13838         * console-msw.h:
13839         * device-msw.c (mswindows_init_device):
13840         (mswindows_delete_device):
13841         (msprinter_init_device):
13842         (msprinter_delete_device):
13843         * frame-msw.c (mswindows_init_frame_1):
13844         (mswindows_delete_frame):
13845         (msprinter_init_frame_3):
13846         (msprinter_delete_frame): Move compatible DC to device object from
13847         frame object, for both mswindows and msprinter. Only one at a time
13848         is needed, it is a real waste to have one per frame!
13849
13850 2000-02-23  Andy Piper  <andy@xemacs.org>
13851
13852         * glyphs.c: add dynamic width and height elements.
13853         (image_instance_equal): ditto.
13854
13855         * glyphs-widget.c (widget_query_geometry): calculate width and
13856         height dynamically if required.
13857         (initialize_widget_image_instance): initialize dynamic dimensions.
13858         (widget_instantiate): pick-up dynamic dimensions.
13859
13860         * glyphs.h (struct Lisp_Image_Instance): add width and height for
13861         dynamic determination. Add appropriate macros.
13862
13863         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
13864         dimensions safe.
13865         (WINDOW_GUTTER_SIZE): ditto.
13866         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
13867
13868         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
13869         inline.
13870         (get_frame_dc): ditto.
13871
13872         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
13873         here.
13874
13875 2000-02-23  Martin Buchholz <martin@xemacs.org>
13876
13877         * XEmacs 21.2.31 is released.
13878
13879 2000-02-22  Ben Wing <ben@xemacs.org>
13880
13881         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
13882
13883 2000-02-22  Andy Piper  <andy@xemacs.org>
13884
13885         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
13886
13887 2000-02-21  Mike Sperber <mike@xemacs.org>
13888
13889         * .dbxrc:
13890         * .gdbinit:
13891         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
13892         variables.
13893
13894 2000-02-21  Mike Sperber <mike@xemacs.org>
13895
13896         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
13897
13898 2000-02-21  Martin Buchholz <martin@xemacs.org>
13899
13900         * XEmacs 21.2.30 is released.
13901
13902 2000-02-20  Martin Buchholz  <martin@xemacs.org>
13903
13904         Performance hacking.
13905         * *.c (syms_of_*):
13906         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
13907         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
13908         * emacs.c (main_1):
13909         * lisp.h (DEFUN):
13910         * console.c (DEFVAR_CONSOLE_LOCAL_1):
13911         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
13912         * symeval.h (DEFVAR_SYMVAL_FWD):
13913         * symbols.c (guts_of_unbound_marker):
13914         Make all c_readonly objects also lisp_readonly and marked for life.
13915         * lrecord.h (struct lrecord_implementation):
13916         Document flags better.
13917         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
13918         * lrecord.h (DECLARE_LRECORD):
13919         * lrecord.h (XSETRECORD):
13920         * lrecord.h (RECORDP):
13921         * lrecord.h (RECORD_TYPEP):
13922         * lrecord.h (RECORD_MARKER): New.
13923         * lrecord.h (error_check_*):
13924         * lrecord.h (CONCHECK_NONRECORD):
13925         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
13926         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
13927         * lrecord.h (set_lheader_implementation):
13928         * lrecord.h (enum lrecord_type): New.
13929         * symeval.h (SYMBOL_VALUE_MAGIC_P):
13930         * alloc.c (disksave_object_finalization_1):
13931         * alloc.c (mark_object):
13932         * alloc.c (lrecord_type_index):
13933         * alloc.c (tick_lcrecord_stats):
13934         * alloc.c (Fgarbage_collect):
13935         * alloc.c (init_alloc_once_early):
13936         * alloc.c (pdump_load):
13937         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
13938         * alloc.c (lrecord_type_index): Delete.
13939         Make lisp object type indexes be constant.
13940           Makes (byte-compile) 5% faster.
13941         Put all marker functions into their own array.
13942           Makes (garbage-collect) 5% faster.
13943         Optimize SYMBOL_VALUE_MAGIC_P.
13944           Makes (byte-compile) 2-3% faster.
13945         * config.h.in (gc_checking_assert): New.
13946         * alloc.c: Use gc_checking_assert().
13947         * .dbxrc: Make compatible with new object type implementation.
13948         * .gdbinit: Make compatible with new object type implementation.
13949         * alloc.c: Delete all symbols defined only for debugging, such as
13950         Lisp_Type_Vector and lrecord_charset.
13951
13952 2000-02-21  Andy Piper  <andy@xemacs.org>
13953
13954         * gui-msw.c (Fmswindows_shell_execute): fix file location
13955         problems.
13956
13957         * buffer.c (Fkill_buffer): remove buffer from alist buffer
13958         unshowing so that set_window_buffer doesn't undo
13959         kill_buffer_hook's hard work.
13960
13961         * glyphs-widget.c (tab_control_query_geometry): don't count the
13962         first item when calculating geometry.
13963
13964         * glyphs.c (map_subwindow): remove redundant code.
13965         (update_frame_subwindows): be more circumspect about when to
13966         update subwindows.
13967
13968         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
13969         when items haven't changed. Update faces if faces have changed as
13970         well as just the widget face.
13971         (x_tab_control_update): Update faces if faces have changed as well
13972         as just the widget face.
13973
13974 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13975
13976         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
13977         registration.
13978         (build_syscolor_string): Use mswindows_color_to_string to try to
13979         get a named color.
13980         (mswindows_device_system_metrics): Reverse the foreground and
13981         background colors so that they match the documentation.
13982
13983         * objects-msw.c: (mswindows_X_color_map): tweak some values so
13984         they match the default Windows palette.
13985         (mswindows_color_to_string): New function.
13986
13987 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13988
13989         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
13990
13991 2000-02-18  Olivier Galibert  <galibert@pobox.com>
13992
13993         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
13994         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
13995
13996         * symbols.c (init_symbols_once_early): Removed obsolete
13997         DATA_SEG_BITS related kludge.
13998         (defvar_magic): Ditto.
13999
14000         * malloc.c: Removed obsolete DATA_SEG_BITS
14001         * ralloc.c: Ditto.
14002         * mem-limits.h: Ditto.
14003
14004         * Makefile.in.in: Removed obsolete HAVE_SHM
14005         * emacs.c: Ditto.
14006
14007 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14008
14009         *  device-msw.c (mswindows_delete_device): Free DDE string
14010         handles.
14011
14012 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14013
14014         * keymap.c (get_keyelt):
14015         * unexnt.c (unexec):
14016         * vm-limit.c (memory_warnings):
14017         * ntheap.c (recreate_heap):
14018         * ntheap.h (UNINIT_PTR):
14019         * select-msw.c (Fmswindows_get_clipboard):
14020         (Fmswindows_set_clipboard):
14021         * objects-msw.h (MSWINDOWS_BAD_HFONT):
14022         * objects-msw.c:
14023         * menubar-msw.c (displayable_menu_item):
14024         * glyphs-msw.c:
14025         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
14026         * sysdep.c (sys_subshell):
14027         * process-nt.c (nt_create_process):
14028         * nt.c (normalize_filename):
14029         (dostounix_filename):
14030         (unixtodos_filename):
14031         * ntproc.c (win32_executable_type):
14032         * ntplay.c (play_sound_data_1):
14033         (play_sound_file):
14034         * editfns.c (get_home_directory):
14035         * event-msw.c (struct winsock_stream):
14036         (mswindows_dde_callback):
14037         * device-msw.c (msprinter_init_device):
14038         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
14039
14040         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
14041         mswindows_clear_toolbar were swapped!
14042
14043         * objects-msw.c:(colormap_t):
14044         (fontmap_t):
14045         * emacs.c (struct standard_args): Fixed const jumble.
14046
14047         * glyphs-widget.c (update_widget): Fixed comparison notation.
14048
14049         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
14050
14051         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
14052         __declspec(noreturn) syntax.
14053
14054 2000-02-19  Martin Buchholz  <martin@xemacs.org>
14055
14056         * eldap.c (Fldap_open):
14057         (Fldap_search_basic):
14058         (Fldap_add):
14059         (Fldap_modify):
14060         Use new coding system conversion macros.
14061
14062 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14063
14064         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
14065
14066 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
14067
14068         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
14069         (Fldap_add, Fldap_modify, Fldap_delete): New functions
14070
14071         * eldap.c (Qadd, Qreplace): New constant symbols
14072         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
14073         interruptions by XEmacs signals
14074         Remove unnecessary calls to slow_down_interrupts and
14075         speed_up_interrupts
14076         (Fldap_search_basic): Renamed from Fldap_search_internal
14077         Added new optional parameter VERBOSE that triggers the
14078         display of progress messages
14079         Remove unnecessary calls to slow_down_interrupts and
14080         speed_up_interrupts
14081         LDAP result code analysis rewritten
14082         (Fldap_add, Fldap_modify, Fldap_delete): New functions
14083         (syms_of_eldap): Define the new symbols and functions
14084
14085
14086 2000-02-17  Martin Buchholz  <martin@xemacs.org>
14087
14088         * realpath.c: Determine PATH_MAX maximally portably.
14089
14090         * insdel.c (bytecount_to_charcount): Optimize.
14091         The function used to be optimized for entirely ASCII sequences.
14092         Now it is optimized for successive characters from the same
14093         charset.  This also wins big for _mostly_ ASCII sequences.
14094
14095         * fileio.c (Ffile_truename): convert return from realpath() using
14096         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
14097         - Rewrite GCPROing slightly.
14098
14099         * sysdep.c (sys_open): Do filename conversion, like all other
14100         sys_* functions.  Fixes bug:
14101         (let ((file-name-coding-system 'iso-8859-2))
14102            (write-region x y latin2-name))
14103         ==> writes filename using internal encoding.
14104
14105 2000-02-18  Martin Buchholz  <martin@xemacs.org>
14106
14107         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
14108         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
14109         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
14110         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
14111         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
14112         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
14113         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
14114         (CONST_IF_NOT_DEBUG): Delete.
14115         * alloc.c (this_one_is_unmarkable): Delete.
14116         (mark_object): Don't check for this_one_is_unmarkable. Use the
14117         c_readonly flag instead.
14118         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
14119
14120 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14121
14122         * event-msw.c (mswindows_drain_windows_queue):
14123         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
14124         away redundant repaint events.
14125
14126 2000-02-17  Andy Piper  <andy@xemacs.org>
14127
14128         * redisplay.h: declare mark_redisplay_structs.
14129
14130         * redisplay.c (redisplay_window):
14131         (redisplay_frame): don't check subwindows_state_changed.
14132         (mark_redisplay): mark gutters here.
14133
14134         * glyphs.c: (instantiate_image_instantiator): always layout if we
14135         haven't done so already.
14136         (allocate_image_instance): don't mark as dirty.
14137         (update_subwindow): bind inhibit_quit.
14138
14139         * gutter.c (mark_gutters): new function.
14140
14141         * glyphs-x.c (x_update_widget): Always resize to get round a
14142         widget bug.
14143
14144         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
14145         breaking absolutely everything.
14146
14147         * gutter.h: declare mark_gutters.
14148
14149 2000-02-16  Martin Buchholz <martin@xemacs.org>
14150
14151         * XEmacs 21.2.29 is released.
14152
14153 2000-02-15  Olivier Galibert  <galibert@pobox.com>
14154
14155         * fns.c (size_bit_vector): Fix computation of the size.
14156
14157 2000-02-15  Martin Buchholz  <martin@xemacs.org>
14158
14159         * *.[ch]: Change CONST to const globally.
14160         find -name '*.[ch]' | \
14161         xargs global-replace \
14162         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
14163         - Remove vestigial references to CONST_IS_LOSING
14164
14165 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14166
14167         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
14168         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
14169         events instead of dispatching them directly.
14170         (mswindows_handle_paint): New function to do repainting.
14171         (mswindows_wnd_proc):
14172         (emacs_mswindows_handle_magic_event): Call above function.
14173
14174 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14175
14176         * objects-msw.c (mswindows_create_font_variant): Return the new
14177         font handle.
14178         (initialize_font_instance): Get font metrics from the underlined
14179         variant of the font to cope with the case where the underlined
14180         font has a bigger descent.
14181
14182 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
14183
14184         * gui.c (gui_item_accelerator): Return the first underlined
14185         character in item name.
14186
14187 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14188
14189         * lisp.h: Added Qprinter.
14190
14191         * general.c (syms_of_general): Initialized it.
14192
14193         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
14194         (get_frame_dc):
14195         (get_frame_compdc): Made inline.
14196
14197         * console.h (struct console_methods): Added eject_page method.
14198
14199         * frame.h: Added FRAME_DISPLAY_P and friends.
14200         Aligned backslahes in many macros in more readable fashion.
14201         Added page_number to struct frame, and an accessor macro
14202         for it.
14203
14204         * defice.h: Added DEVICE_DISPLAY_P and friends.
14205
14206         * device.c (Fdevice_printer_p): Used these.
14207
14208         * frame.c (allocate_frame_core): Initialize page number.
14209         (Fprint_job_page_number):
14210         (Fprint_job_eject_page): Implemented.
14211
14212         * frame-msw.c (msprinter_eject_page): Added method.
14213         (msprinter_start_page): Added.
14214
14215         * window.c (Fwindow_truncated_p): Fixed docstring.
14216         (Fwindow_last_line_visible_height): Implemented.
14217
14218 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14219
14220         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
14221
14222 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14223
14224         * syntax.c (scan_words): Always advance at least one character.
14225
14226 2000-02-13  Andy Piper  <andy@xemacs.org>
14227
14228         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
14229         to make sure the glyph is in the cachels.
14230
14231         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
14232         global image instance flag.
14233         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
14234         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
14235
14236         * glyphs.c (allocate_image_instance): set dirty bits correctly.
14237         (Fset_image_instance_property): mark layout as changed.
14238         (invalidate_glyph_geometry_maybe): mark layout as changed.
14239         (glyph_width): use new NEEDS_LAYOUT macro.
14240         (glyph_ascent): ditto.
14241         (glyph_descent): ditto.
14242         (glyph_height): ditto.
14243         (image_instance_layout): mark layout as clean after laying out.
14244         (update_subwindow): don't mark layout as clean here.
14245
14246         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
14247         should no longer be needed.
14248
14249         * glyphs-x.c (x_update_widget): sanitize asserts.
14250         (x_finalize_image_instance): sanitize assignment to widgets.
14251
14252         * glyphs-widget.c (widget_instantiate): don't need to clear the
14253         layout flag here.
14254
14255 2000-02-13  Martin Buchholz  <martin@xemacs.org>
14256
14257         * sysdep.c (getcwd): Use standard prototype.
14258         * sysdep.h (getcwd): Use standard prototype.
14259
14260         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
14261         (sequence, start, end).
14262         Remove redundant type checking.
14263         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
14264         view of `caller-protects') to avoid a crash where the real fix was
14265         found elsewhere.
14266
14267 2000-02-12  Martin Buchholz  <martin@xemacs.org>
14268
14269         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
14270
14271         * s/sol2.h: Remove feature macro initialization.
14272
14273         * alloc.c (alloc_lcrecord): Add more type checking assertions.
14274         (vector_hash): New.  Code from internal_hash.
14275         * lrecord.h:
14276         Fix up allocation subsystem comments.
14277
14278         * config.h.in: Add __EXTENSIONS__ for Solaris.
14279
14280         * systime.h (EMACS_GETTIMEOFDAY): New.
14281         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
14282         Remove Solaris-specific code.
14283         Use void* for the (ignored) second arg for gettimeofday().
14284
14285         * elhash.c (hash_table_hash): Implement it, finally.
14286         * elhash.c:  Use hashcode_t.
14287
14288         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
14289         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
14290
14291         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
14292         * fns.c (size_bit_vector):
14293         * alloc.c (size_vector):
14294         (make_vector_internal):
14295         (make_bit_vector_internal):
14296         (sweep_bit_vectors_1):
14297         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
14298
14299 2000-02-10  Martin Buchholz  <martin@xemacs.org>
14300
14301         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
14302         Include strings.h to avoid warnings for bzero and strcasecmp.
14303
14304 2000-02-10  Olivier Galibert  <galibert@pobox.com>
14305
14306         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
14307         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
14308
14309         * fns.c (size_bit_vector): New.  Declare bit vectors as a
14310         sequence.
14311
14312 2000-02-10  Olivier Galibert  <galibert@pobox.com>
14313
14314         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
14315         use a value field instead.
14316         (symbol_value_forward_forward): Use value field.
14317         (DEFVAR_SYMVAL_FWD): Use value field.
14318         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
14319         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
14320         (DEFVAR_CONST_INT): Ditto.
14321         (DEFVAR_BOOL): Ditto.
14322         (DEFVAR_CONST_BOOL): Ditto.
14323         (DEFVAR_INT_MAGIC): Ditto.
14324         (DEFVAR_BOOL_MAGIC): Ditto.
14325
14326         * symbols.c (guts_of_unbound_marker): Use value field.
14327         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
14328         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
14329
14330         * lisp.h: Declare dumpopaque and noninteractive1.
14331
14332         * alloc.c (dumpopaque): Added.
14333         (pdump_dump_opaquevec): Added.
14334         (pdump): Call pdump_dump_opaquevec to dump opaque data.
14335         (pdump_load): Reload opaque data.  Sync noninteractive1 with
14336         noninteractive.
14337
14338 2000-02-10  Andy Piper  <andy@xemacs.org>
14339
14340         * glyphs.c (image_instance_layout): if the size changes, mark it
14341         as such.
14342
14343         * redisplay-output.c (redisplay_output_layout): Update the
14344         subwindow here.
14345         (redisplay_output_subwindow): ditto.
14346
14347         * glyphs.c (update_subwindow): make sure we reset flags for
14348         layouts as well as everything else.
14349
14350         * glyphs-widget.c (layout_layout): don't need to set the instances
14351         dimensions here.
14352
14353 2000-02-09  Martin Buchholz  <martin@xemacs.org>
14354
14355         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
14356         not HAVE_DLOPEN, which is a lower-level thing.
14357
14358         * .cvsignore: Ignore gmon.out
14359
14360 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
14361
14362         * .cvsignore: Ignore portable dumper xemacs.dmp file
14363
14364 2000-02-09  Andy Piper  <andy@xemacs.org>
14365
14366         * redisplay-output.c (redisplay_output_layout): be more clever
14367         about when we output based on the changed flags.
14368
14369         * glyphs.h (struct image_instantiator_methods): add update_method.
14370         (struct Lisp_Image_Instance): add changed flags. Declare new
14371         macros for manipulating them.
14372
14373         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
14374         (image_instance_parent_glyph): find an image_instance's parent
14375         glyph or image_instance.
14376         (image_instance_layout): mark the size as changed.
14377         (set_image_instance_dirty_p): new function. mark an image
14378         instance, plus all of its parents, as dirty.
14379         (Fset_image_instance_property): use it.
14380         (Fglyph_animated_timeout_handler): use it.
14381         (update_subwindow): call update_widget and device methods for
14382         update_subwindow. Mark all changed flags as clean.
14383         (Fresize_subwindow): mark size as changed.
14384
14385         * glyphs-x.c (x_finalize_image_instance): try and detect gc
14386         failures.
14387         (x_update_subwindow): only resize subwindows here.
14388         (x_update_widget): new function. Update all changed properties of
14389         a widget.
14390         (x_resize_subwindow): deleted.
14391         (x_widget_set_property): deleted.
14392         (x_progress_gauge_set_property): deleted.
14393         (x_progress_gauge_update): new function. Implement recorded
14394         changes.
14395         (x_tab_control_update): ditto.
14396         (x_tab_control_set_property): deleted.
14397         (console_type_create_glyphs_x): declare new functions.
14398         (image_instantiator_format_create_glyphs_x): ditto.
14399
14400         * glyphs-widget.c (widget_set_property): mark text changed.
14401         (update_widget): new function. Update properties of a widget.
14402         (widget_instantiate): for layouts make sure we set their
14403         children's parent correctly.
14404         (tab_control_set_property): new function. Record changes that will
14405         take place under redisplay's control.
14406         (progress_gauge_set_property): ditto.
14407         (image_instantiator_progress_guage): declare new functions.
14408         (image_instantiator_tab_control): ditto.
14409
14410         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
14411         now.
14412         (mswindows_update_widget): new function. Update all properties on
14413         a widget that have changed.
14414         (mswindows_button_update): new function. Update a button's set
14415         state.
14416         (mswindows_tab_control_update): new function. Update the items in
14417         a tab.
14418         (mswindows_tab_control_set_property): deleted.
14419         (mswindows_progress_gauge_update): new function. Update the
14420         progress gauge's progress.
14421         (mswindows_widget_set_property): deleted. This is all done
14422         asynchronously now.
14423         (mswindows_progress_gauge_set_property): ditto.
14424         (console_type_create_glyphs_mswindows): declare new methods.
14425         (image_instantiator_format_create_glyphs_mswindows): ditto.
14426
14427         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
14428         (msprinter_set_frame_properties): ditto.
14429
14430         * console.h (struct console_methods): Add update_widget_method.
14431
14432 2000-02-09  Andy Piper  <andy@xemacs.org>
14433
14434         * gui-msw.c (Fmswindows_shell_execute): Make
14435         mswindows-shell-execute industrial strength.
14436
14437 2000-02-08  Martin Buchholz  <martin@xemacs.org>
14438
14439         * lrecord.h: Make macro argument `props' match member function `plist'.
14440         * fns.c (Fget):
14441         * fns.c (Fput):
14442         * fns.c (Fremprop):
14443         * fns.c (Fobject_plist):
14444         * alloc.c:
14445         * symbols.c:
14446         Object property list frobbing cleanup.
14447         - Allow any lisp object (compared with `eq'), not just symbols, as
14448           keys in object plists.
14449         - Move symbol plist frobbing into symbols.c, where it belongs.
14450         - Move string plist frobbing into alloc.c, where it belongs.
14451         - Everything's an lrecord now, so no need to test for symbolp, etc.
14452         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
14453
14454         * extents.c: Reorder code to remove declarations.
14455
14456         * frame.h (store_in_alist): Remove useless declaration.
14457
14458 2000-02-07  Martin Buchholz  <martin@xemacs.org>
14459
14460         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
14461         * config.h.in: Add HAVE_XCONVERTCASE.
14462
14463 2000-02-07  Andy Piper  <andy@xemacs.org>
14464
14465         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
14466         it breaks many things.
14467
14468 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
14469
14470         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
14471         actually can start a common comment type.
14472         * src/syntax.h (SYNTAX_END_P): ditto for end.
14473
14474 2000-02-07  Martin Buchholz <martin@xemacs.org>
14475
14476         * XEmacs 21.2.28 is released.
14477
14478 2000-02-06  Martin Buchholz  <martin@xemacs.org>
14479
14480         * event-Xt.c (x_keysym_to_character): New.
14481         (maybe_define_x_key_as_self_inserting_character): New.
14482         (x_has_keysym): New.
14483         Auto-define all keys on the keyboard as self-insert-key.
14484
14485 2000-02-02  Martin Buchholz  <martin@xemacs.org>
14486
14487         * menubar.c (vars_of_menubar): A small code simplification.
14488
14489         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
14490
14491         * ExternalShell.c:
14492         * ExternalClient.c:
14493         * EmacsShell-sub.c:
14494         * EmacsManager.c:
14495         * EmacsFrame.c:
14496         Use consistent style for specifying X resources.
14497
14498         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
14499         This makes (dontusethis-set-symbol-value-handler) actually usable.
14500
14501         * lrecord.h (lrecord_decription_type):
14502         * alloc.c (pdump_register_sub):
14503         (pdump_dump_data):
14504         (pdump_reloc_one):
14505         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
14506         Comply with XEmacs coding style.
14507         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
14508         args, and XD_LISP_OBJECT_ARRAY with 3 args.
14509
14510         * keymap.c (Faccessible_keymaps):
14511         Make (accessible-keymaps map "\C-h") do the Right Thing.
14512         Make (accessible-keymaps map []) do the Right Thing.
14513         Make (accessible-keymaps map "") do the Right Thing.
14514         (check_keymap_definition_loop): New function.
14515         (keymap_store_internal): Keep luser from shooting self in foot,
14516           via (define-key ctl-x-4-map "p" global-map).
14517         Remove fullness slot from struct Lisp_Keymap, since hash tables
14518         are now reliable.
14519         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
14520
14521 2000-01-30  Martin Buchholz  <martin@xemacs.org>
14522
14523         * redisplay.c (init_redisplay): Fix small memory leak.
14524         * elhash.h:
14525         * elhash.c (pdump_reorganize_hash_table):
14526         Rename from reorganize_hash_table. Change prototype.
14527         Reuse the original memory for hentries.  Save 100k.
14528         * alloc.c (PDUMP_READ): new macro.
14529         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
14530         * alloc.c: No need to #ifndef before #undef.
14531
14532         * print.c: Allow debug_print() to print readably by modifying
14533         debug_print_readably.  Use consistent variable names.
14534
14535         * .dbxrc: Try to get things to work even if stopped in a function
14536         without source available by explicitly specifying source files.
14537 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14538
14539         * unexnt.c (_start): Removed bogus code which caused loading heap
14540         from differrent executable file.
14541         Removed bogus assignment to _fmode, which caused inconsistencies.
14542
14543 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14544
14545         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
14546         Have spawnve encapsulation regard DONT_ENCAPSULATE.
14547         Do not preliminary `#define signal sigset'.
14548
14549         * systime.h: Do not prototype environ on windows nt and cygwin,
14550         this conflicts with system header.
14551
14552         * syssignal.h: Use correct define for WINDOWSNT
14553
14554         * sysdep.h: Do not prototype environ on windows nt, this conflicts
14555         with system header.
14556
14557         * sysdep.c (near start of file): Fixed commentary and rearranged
14558         ifdefs in readable order.
14559         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
14560         (start_of_text):
14561         (end_of_text):
14562         (end_of_data): Do not compile in if using PDUMP.
14563
14564         * symsinit.h: Prototyped vars_of_nt().
14565
14566         * ntproc.c (windows9x_p): Added, instead of os_subtype.
14567         (find_child_console): Use it.
14568         (sys_kill): Use it.
14569
14570         * ntheap.h: Do not extern os_subtype.
14571
14572         * ntheap.c (cache_system_info): Do not cache unneeded:
14573         nt_major_version, nt_minor_version and os_subtype.
14574         (recreate_heap): Do not compile in when PDUMPing.
14575
14576         * nt.c (geteuid and friends): Use the new varibale
14577         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
14578         (init_user_info): Removed the above mentioned hackery.
14579         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
14580         stat has been fixed in the C runtime.
14581         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
14582
14583         * file-coding.c (struct file_coding_dump): Do not define
14584         ucs_to_mule_table in the struct if not MULE.
14585         (struct struct lrecord_description fcd_description_1): Do not dump
14586         the above.
14587
14588         * emacs.c (main_1): Call vars_of_nt().
14589         (right before Fdump_emacs_data): Don't need lastfile if using both
14590         portabe dumper and system malloc.
14591
14592         * alloc.c (Fmemory_limit): Conditionalized out.
14593         (pdump): Use OPEN_BINARY for the portable dump file.
14594         (pdump_load): Ditto.
14595
14596 2000-02-02  Mike Alexander  <mta@arbortext.com>
14597
14598         * nt.c (convert_time): Set tm_isdst before calling mktime and
14599         avoid calling it at all if the compiler supports 64 bit integers.
14600         Also initialize utc_base_ft before using it.
14601
14602 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
14603
14604         * frame.c (change_frame_size_1): Take f->internal_border_width
14605         into consideration when calculating the width of the frame.
14606
14607 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14608
14609         * window.c (frame_min_height):
14610         (frame_size_valid_p):
14611         (frame_pixsize_valid_p): Added.
14612         (check_frame_size): Generalized.
14613
14614         * window.h: Prototyped the above.
14615
14616         * lisp.h:
14617         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
14618         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
14619         Deleted Vwin32_* and Vbinary_process_* unused variables.
14620
14621         * device-msw.c (msprinter_init_device): Do not get printer font
14622         list; Added DEVMODE functions.
14623
14624         * frame-msw.c: Added lots of printer code.
14625
14626         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
14627         general.c.
14628
14629         * console-msw.h: Added more msprinter device private slots.
14630
14631 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14632
14633         * event-msw.c (key_needs_default_processing_p): Added.
14634         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
14635
14636 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14637
14638         * glyphs.c (image_instance_layout): Mark image instance as clean
14639         after layout.
14640         (glyph_dirty_p): Removed redundant function.
14641         (invalidate_glyph_geometry_maybe): Added.
14642         (update_glyph_cachel_data): Call it.
14643
14644         * glyphs.h: Prototyped it.
14645
14646         * redisplay.c (add_glyph_rune): Call it.
14647         (redisplay_window): Reset glyphs cachels when frame faces have
14648         changed, thus forcing recomputation of built-in border glyphs.
14649
14650 2000-01-30  Martin Buchholz  <martin@xemacs.org>
14651
14652         * Makefile.in.in: Make portable dumper and purify play well together.
14653         Add imperfect, but better than nothing, support for pdump.
14654         Remove xemacs.dmp when temacs is re-generated.
14655         Don't ignore errors when dumping xemacs.
14656
14657         * symbols.c (maybe_call_magic_handler): Remove one magic number.
14658
14659 2000-01-28  Andy Piper  <andy@xemacs.org>
14660
14661         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
14662         (setup_normal_frame): ditto.
14663         (setup_frame_without_minibuffer): ditto.
14664         (setup_minibuffer_frame): ditto.
14665         (delete_frame_internal): ditto.
14666         (Fmake_frame_invisible): ditto.
14667         (Ficonify_frame): ditto.
14668
14669         * window.h: change Fset_window_buffer signature.
14670
14671         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
14672         (Fset_window_buffer): allow recording of buffer if the window is
14673         the selected window.
14674         (window_loop): Use new Fset_window signature.
14675
14676 2000-01-23  Daniel Pittman  <daniel@danann.net>
14677
14678         * config.h.in: Added template for `HAVE_ATHENA_3D'
14679
14680 2000-01-29  Andy Piper  <andy@xemacs.org>
14681
14682         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
14683
14684         * gutter.c (output_gutter): Don't output if the window isn't live.
14685
14686 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14687
14688         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
14689         of 01/12/00: Moved SetFocus back here where it belongs.
14690
14691 2000-01-23  Andy Piper  <andy@xemacs.org>
14692
14693         * s/cygwin32.h: declare printer things.
14694
14695 2000-01-26  Andy Piper  <andy@xemacs.org>
14696
14697         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
14698         Alexander.
14699
14700 2000-01-24  Andy Piper  <andy@xemacs.org>
14701
14702         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
14703         (mswindows_button_instantiate): Make sure glyph is a pixmap.
14704
14705         * glyphs-widget.c (widget_instantiate): Avoid shadows.
14706
14707         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
14708
14709         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
14710
14711         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
14712         (mswindows_output_display_block): Avoid local shadows.
14713
14714         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
14715         (mswindows_enqueue_mouse_button_event): ditto.
14716         (mswindows_handle_gui_wm_command): remove declaration.
14717
14718         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
14719         warnings.
14720
14721         * console-msw.h: Avoid shadows.
14722         (mswindows_get_toolbar_button_text):
14723         (emacs_mswindows_create_stream_pair):
14724         (emacs_mswindows_delete_stream_pair):
14725         (mswindows_handle_toolbar_wm_command): declare.
14726
14727         * device-msw.c (build_syscolor_string): Avoid shadows.
14728
14729 2000-01-23  Andy Piper  <andy@xemacs.org>
14730
14731         * glyphs-widget.c (widget_instantiate): reverse the items for
14732         layouts so that children are in the expected order.
14733
14734 2000-01-28  Martin Buchholz  <martin@xemacs.org>
14735
14736         * ralloc.c: safe_bcopy ==> memmove
14737         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
14738         * s/msdos.h: Remove BCOPY macros.
14739         * insdel.c (gap_right): Remove BCOPY conditional code.
14740         * insdel.c (gap_left): Remove BCOPY conditional code.
14741         XEmacs demands a working ANSI C compiler - hence memmove.
14742
14743         * regex.c (regex_compile): Remove accidental use of trigraphs.
14744
14745 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14746
14747         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
14748         event timestamp.
14749
14750 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14751
14752         * event-msw.c (mswindows_drain_windows_queue): Added the
14753         parameter.
14754         (mswindows_need_event): Commented the call to
14755         mswindows_drain_windows_queue().
14756         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
14757         only.
14758
14759         * console-msw.h: Moved a few function prototypes here from
14760         event-msw.c.
14761
14762         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
14763         parameter from unsigned short to unsigned long.
14764         (Fmswindows_shell_execute): Added return value.
14765
14766 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
14767
14768         * sysdep.c (init_system_name):
14769           process-unix.c (unix_canonicalized_host_name):
14770         Don't call freeaddrinfo() if getaddrinfo() fails.
14771
14772         * process-unix.c (unix_open_unix_network_stream):
14773         Moved the code to get a port # into address loop.
14774
14775 2000-01-27  Martin Buchholz  <martin@xemacs.org>
14776
14777         * buffer.c (reinit_vars_of_buffer):
14778         The right place to initialize conversion_in_dynarr and
14779         conversion_out_dynarr.
14780
14781         * alloc.c (pdump): Use the real open() till sys_open() is functional.
14782
14783         * process-unix.c (unix_canonicalize_host_name): Muleize.
14784         (unix_open_network_stream): Muleize.
14785
14786         * buffer.h: Fix up prototypes for ralloc.c functions.
14787
14788 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
14789         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
14790         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
14791                 instead of gethostbyname()
14792         * process-unix.c: In unix_canonicalize_host_name() and
14793                 unix_open_network_stream(), add code to use getaddrinfo()
14794                 instead of gethostbyname().
14795
14796 2000-01-27  Daniel Pittman <daniel@danann.net>
14797
14798         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
14799         libs when built with flat Athena.
14800
14801 2000-01-27  Martin Buchholz  <martin@xemacs.org>
14802
14803         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
14804         Use coding standards for function prototypes.
14805
14806 2000-01-25  Martin Buchholz  <martin@xemacs.org>
14807
14808         * dialog-msw.c (push_lisp_string_as_unicode):
14809         * doc.c (unparesseuxify_doc_string):
14810         * dired.c (Fuser_name_completion_1):
14811         * dired.c (Fuser_name_all_completions):
14812         * dired.c (free_user_cache):
14813         * dired.c (user_name_completion):
14814         * console-x.c (get_display_arg_connection):
14815         * minibuf.c (clear_echo_area_internal):
14816         * minibuf.c (echo_area_append):
14817         * eldap.c (Fldap_open):
14818         * eldap.c (Fldap_search_internal):
14819         * frame-x.c (x_set_frame_text_value):
14820         * frame-x.c (x_set_frame_properties):
14821         * frame-x.c (x_create_widgets):
14822         * redisplay-tty.c (term_get_fkeys_1):
14823         * objects-x.c (x_parse_nearest_color):
14824         * objects-x.c (x_valid_color_name_p):
14825         * objects-x.c (x_initialize_font_instance):
14826         * objects-x.c (x_list_fonts):
14827         * objects-x.c (x_find_charset_font):
14828         * tooltalk.c (Fadd_tooltalk_message_arg):
14829         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
14830         * tooltalk.c (Fadd_tooltalk_pattern_arg):
14831         * process-unix.c (unix_create_process):
14832         * ntproc.c (sys_spawnve):
14833         * sound.c (Fplay_sound_file):
14834         * sound.c (Fplay_sound):
14835         * buffer.c (init_initial_directory):
14836         * buffer.c (init_buffer):
14837         * editfns.c (init_editfns):
14838         * editfns.c (Ftemp_directory):
14839         * editfns.c (Fuser_full_name):
14840         * editfns.c (uncache_home_directory):
14841         * editfns.c (get_home_directory):
14842         * editfns.c (Fuser_home_directory):
14843         * editfns.c (Fformat_time_string):
14844         * editfns.c (Fcurrent_time_string):
14845         * gui-x.c (button_item_to_widget_value):
14846         * database.c (Fopen_database):
14847         * event-Xt.c (x_to_emacs_keysym):
14848         * event-Xt.c (x_event_to_emacs_event):
14849         * event-Xt.c (describe_event_window):
14850         * event-msw.c (mswindows_wnd_proc):
14851         * glyphs-eimage.c (jpeg_instantiate):
14852         * glyphs-eimage.c (gif_instantiate):
14853         * glyphs-eimage.c (png_instantiate):
14854         * glyphs-eimage.c (tiff_instantiate):
14855         * glyphs-x.c (xbm_instantiate_1):
14856         * glyphs-x.c (x_xbm_instantiate):
14857         * glyphs-x.c (x_xface_instantiate):
14858         * glyphs-x.c (autodetect_instantiate):
14859         * glyphs-x.c (cursor_font_instantiate):
14860         * glyphs-x.c (x_widget_instantiate):
14861         * glyphs-x.c (x_widget_set_property):
14862         * glyphs-x.c (x_widget_property):
14863         * glyphs-x.c (BUILD_GLYPH_INST):
14864         * print.c (write_string_to_stdio_stream):
14865         * print.c (output_string):
14866         * print.c (Falternate_debugging_output):
14867         * print.c (Fexternal_debugging_output):
14868         * glyphs-msw.c (extract_xpm_color_names):
14869         * glyphs-msw.c (mswindows_xpm_instantiate):
14870         * glyphs-msw.c (bmp_instantiate):
14871         * glyphs-msw.c (resource_name_to_resource):
14872         * glyphs-msw.c (mswindows_resource_instantiate):
14873         * glyphs-msw.c (xbm_instantiate_1):
14874         * glyphs-msw.c (mswindows_xbm_instantiate):
14875         * glyphs-msw.c (mswindows_xface_instantiate):
14876         * glyphs-msw.c (mswindows_widget_instantiate):
14877         * glyphs-msw.c (add_tree_item):
14878         * glyphs-msw.c (add_tab_item):
14879         * glyphs-msw.c (mswindows_combo_box_instantiate):
14880         * glyphs-msw.c (mswindows_widget_property):
14881         * glyphs-msw.c (mswindows_combo_box_property):
14882         * glyphs-msw.c (mswindows_widget_set_property):
14883         * console.c (stuff_buffered_input):
14884         * objects-msw.c (mswindows_initialize_color_instance):
14885         * objects-msw.c (mswindows_valid_color_name_p):
14886         * objects-msw.c (mswindows_list_fonts):
14887         * objects-msw.c (mswindows_font_instance_truename):
14888         * bytecode.c (optimize_compiled_function):
14889         * select-x.c (symbol_to_x_atom):
14890         * select-x.c (x_atom_to_symbol):
14891         * select-x.c (hack_motif_clipboard_selection):
14892         * select-x.c (selection_data_to_lisp_data):
14893         * select-x.c (lisp_data_to_selection_data):
14894         * select-x.c (Fx_get_cutbuffer_internal):
14895         * select-x.c (Fx_store_cutbuffer_internal):
14896         * buffer.h (TO_EXTERNAL_FORMAT): New function.
14897         * buffer.h (TO_INTERNAL_FORMAT): New function.
14898         * emacs.c (make_arg_list_1):
14899         * emacs.c (make_argc_argv):
14900         * emacs.c (main_1):
14901         * emacs.c (Fdump_emacs):
14902         * emacs.c (split_string_by_emchar_1):
14903         * file-coding.h:
14904         * lisp.h:
14905         * lstream.h:
14906         * symsinit.h:
14907         * device-x.c (x_init_device):
14908         * device-x.c (Fx_valid_keysym_name_p):
14909         * device-x.c (Fx_get_font_path):
14910         * device-x.c (Fx_set_font_path):
14911         * glyphs.c (bitmap_to_lisp_data):
14912         * glyphs.c (pixmap_to_lisp_data):
14913         * alloc.c (make_ext_string): Use coding system arguments.  Update
14914         all callers.
14915         * alloc.c (build_string):
14916         * callproc.c (child_setup):
14917         * callproc.c (init_callproc):
14918         * fileio.c (lisp_strerror):
14919         * fileio.c (directory_file_name):
14920         * fileio.c (Fexpand_file_name):
14921         * fileio.c (Ffile_truename):
14922         * fileio.c (Fsysnetunam):
14923         * fileio.c (Fdo_auto_save):
14924         * sysdep.c (sys_readdir):
14925         * tests.c: New file.  Allow adding C tests.
14926         Replace GET_* macros with a more comprehensible and flexible
14927         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
14928         Modify all calls.
14929         Any coding system can be used to do format conversion.
14930         Eliminate enum external_data_format.
14931         Eliminate convert_to_external_format.
14932         Eliminate convert_to_internal_format.
14933         Make sure file-name, keyboard, terminal, and ctext are always
14934         defined as coding systems or aliases.  Make
14935         file-name-coding-system, terminal-coding-system, and
14936         keyboard-coding-system magical variables that are equivalent to
14937         defining the corresponding coding system aliases.
14938
14939         * file-coding.c (Fcoding_system_canonical_name_p): New function.
14940         * file-coding.c (Fcoding_system_alias_p): New function.
14941         * file-coding.c (Fcoding_system_aliasee): New function.
14942         * file-coding.c (append_suffix_to_symbol): New function.
14943         * file-coding.c (dangling_coding_system_alias_p): New function.
14944         * file-coding.c (Ffind_coding_system):
14945         * file-coding.c (Fcopy_coding_system):
14946         * file-coding.c (encode_coding_no_conversion):
14947         * file-coding.c (syms_of_file_coding):
14948         * file-coding.c (vars_of_file_coding):
14949         Rewrite coding system alias code.
14950         Allow nested aliases, like symbolic links.
14951         Allow redefinition of coding system aliases.
14952         Prevent existence of dangling coding system aliases.
14953
14954         * dired.c (Fuser_name_completion_1):
14955         * dired.c (Fuser_name_all_completions):
14956         A crash would happen if user did QUIT in the middle of building
14957         user_name_cache.  Remove redundant code in mainline and unwind_protect.
14958
14959         * lisp.h:
14960         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
14961
14962         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
14963         an unsigned char *.  Update all callers.
14964
14965 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14966
14967         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
14968
14969 2000-01-25  Martin Buchholz  <martin@xemacs.org>
14970
14971         * elhash.c (hentry_description): Use more portable definition.
14972         (resize_hash_table): Initialize new hentries using
14973         xnew_array_and_zero, thereby simplifying the code.
14974
14975         * mule-charset.c (make_charset): Make sure entire object is
14976         initialized, to avoid Purify warnings.
14977
14978         * alloc.c (resize_string): Fix unlikely crash with big strings.
14979
14980 2000-01-24  Martin Buchholz  <martin@xemacs.org>
14981
14982         * realpath.c (xrealpath):
14983         Don't call getwd().
14984
14985 2000-01-25  Martin Buchholz  <martin@xemacs.org>
14986
14987         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
14988
14989 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
14990
14991         * unexelfsgi.c (unexec): Change the way we decide which segment
14992         should be extended.
14993
14994         Assumption that .bss section should be outside the PT_LOADable
14995         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
14996         it's present) is inside the 'data' segment. This would fail the
14997         test which was used to find a segment to grow and cover new
14998         heap. Instead of this assumption, I created another one - on IRIX
14999         the segment to grow should start below .bss and it's address
15000         should extent above the end of .bss. Once this segment is
15001         identified, it's grown to accommodate the new heap and new
15002         zero-length .bss section is added at the end of .data2.
15003
15004 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15005
15006         * eval.c (Feval): Wrong number of arguments should use original
15007         function, not the indirect_function version of it.
15008
15009 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
15010
15011         * glyphs-x.c (x_button_instantiate): Don't add image if
15012         it is not a pixmap.
15013         (x_locate_pixmap_file): Call Fexpand_file_name when file name
15014         is relative.
15015
15016 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
15017
15018         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
15019         declaration.
15020         (DEFVAR_INT_MAGIC): Ditto.
15021         (DEFVAR_BOOL_MAGIC): Ditto.
15022         * glyphs.h: Reindent backslash.
15023
15024 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15025
15026         * glyphs-widget.c (layout_query_geometry):
15027         (layout_layout): Use correct types for gheight, gwidth.
15028
15029 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15030
15031         * EmacsManager.c (QueryGeometry): Purified.
15032
15033 2000-01-23  Martin Buchholz  <martin@xemacs.org>
15034
15035         * alloc.c (make_float): Make sure entire object is initialized, to
15036         avoid Purify warnings.
15037         (pdump_register_sub): Remove useless assignment.
15038         (pdump): Use xmalloc, not malloc.
15039         (pdump_load): Use xmalloc, not malloc.
15040
15041 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15042
15043         * callproc.c:
15044         * dired-msw.c:
15045         * fileio.c:
15046         * process-nt.c:
15047         * redisplay-msw.c:
15048         * sysdep.c: Removed redundant #include <windows.h>
15049
15050 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15051
15052         * frame.c (delete_frame_internal): Do not delete device when its
15053         implementation so declares.
15054         (delete_frame_internal): Set device selected frame to nil when
15055         last frame goes away.
15056
15057         * device-msw.c (msprinter_device_system_metrics): Implemented.
15058         (mswindows_device_system_metrics): Added 'device-dpi property.
15059
15060         * device.c: (Fdevice_printer_p): Added.
15061         Added 'offset-workspace device metric.
15062
15063         * console.h (device_metrics): Declared DM_offset_workspace.
15064
15065 2000-01-23  Martin Buchholz  <martin@xemacs.org>
15066
15067         * fileio.c (Ffile_truename): Remove pointless and confusing
15068         initialization of elen.
15069
15070         * glyphs-widget.c: Compiler warning fixes.
15071
15072 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
15073
15074         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
15075         instead of a Lisp_Object as argument to make it consistent with
15076         the other LIVE_P macros.
15077         (CHECK_LIVE_PROCESS): New macro.
15078
15079         * process.c: Declare Qprocess_live_p.
15080         (Fprocess_live_p): New function.
15081         (create_process): Use PROCESS_LIVE_P.
15082         (read_process_output): Ditto.
15083         (set_process_filter): Ditto.
15084         (Fdelete_process): Ditto.
15085         (kill_buffer_processes): Ditto
15086         (process_send_signal): Use CHECK_LIVE_PROCESS.
15087         (Fprocess_input_coding_system): Check whether process is still
15088         alive (fix PR#1061).
15089         (Fprocess_output_coding_system): Ditto.
15090         (Fprocess_coding_system): Ditto.
15091         (Fset_process_input_coding_system): Ditto.
15092         (Fset_process_output_coding_system): Ditto.
15093
15094 2000-01-23  Andy Piper  <andy@xemacs.org>
15095
15096         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
15097         layout and widget.
15098
15099         * glyphs.c (mark_image_instance): take into account changed
15100         image_instance format.
15101         (image_instance_equal): ditto.
15102         (image_instance_hash): ditto.
15103
15104         * glyphs-widget.c (widget_instantiate): Incorporate layout
15105         instantiation here. Delay layout of the layout until later.
15106         (layout_instantiate): deleted.
15107         (layout_query_geometry): new function. get the geometry of a
15108         layout.
15109         (layout_layout): layout a layout dynamically.
15110         (image_instantiator_widget): New function - splitting up
15111         image_instantiator_format_create_glyphs_widget for netwinder
15112         compilation.
15113         (image_instantiator_buttons):
15114         (image_instantiator_edit_fields):
15115         (image_instantiator_combo_box):
15116         (image_instantiator_scrollbar):
15117         (image_instantiator_progress_guage):
15118         (image_instantiator_tree_view):
15119         (image_instantiator_tab_control):
15120         (image_instantiator_labels):
15121         (image_instantiator_layout): ditto.
15122         (image_instantiator_format_create_glyphs_widget): Call preceding
15123         functions.
15124
15125 2000-01-22  Martin Buchholz  <martin@xemacs.org>
15126
15127         * process.c (Fset_process_coding_system):
15128         * device-x.c (Fx_keysym_hash_table):
15129         Docstring fixes.
15130
15131         * lstream.c (Lstream_write): Return documented value, not 0.
15132
15133         * fileio.c (directory_file_name):
15134         (Fsubstitute_in_file_name):
15135         (Fsubstitute_insert_file_contents_internal):
15136         (Fwrite_region_internal):
15137         * emacs.c:
15138         * sysdep.c:
15139         * getloadavg.c:
15140         * systty.h:
15141         Remove vestigial APOLLO-conditional code.
15142
15143 2000-01-21  Martin Buchholz  <martin@xemacs.org>
15144
15145         * getpagesize.h: Add guard macros.
15146         * libsst.h: Add guard macros.
15147         * libst.h: Add guard macros.
15148         * line-number.h: Add guard macros.
15149         * ndir.h: Add guard macros.
15150         * sysfloat.h: Add guard macros.
15151         * sysfile.h: Add guard macros.
15152         * sysproc.h: Add guard macros.
15153         * syswait.h: Add guard macros.
15154         * xintrinsic.h: Add guard macros.
15155         * xintrinsicp.h: Add guard macros.
15156         * xmmanager.h: Add guard macros.
15157         * xmmanagerp.h: Add guard macros.
15158         * xmprimitive.h: Add guard macros.
15159         * xmu.h: Add guard macros.
15160         * gpmevent.h: Add copyright statement. Add guard macros.
15161         * miscplay.h: Add guard macros.
15162         * *.h: Use consistent C-standards-approved guard macro names.
15163
15164         * opaque.c (make_opaque): Switch parameter order.
15165         * opaque.h (make_opaque): Switch parameter order.
15166         Update all callers.
15167         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
15168
15169         * config.h.in (type_checking_assert): Added.
15170         (bufpos_checking_assert): Added.
15171
15172 2000-01-21  Martin Buchholz  <martin@xemacs.org>
15173
15174         * alloc.c: Harmless pdump changes.
15175         - Use countof().
15176         - spell alignment correctly.
15177         * sysdep.c: Use countof()
15178
15179 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15180
15181         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
15182         initially_selected_for_input() console method, default to 0.
15183         (semi_canonicalize_console_connection): Try to delegate to
15184         canonicalize_console_connection if no such console method.
15185         (canonicalize_console_connection): Vice versa.
15186         (print_console): Do not print nil connection.
15187
15188         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
15189         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
15190         (XDEVIMPF_FRAMELESS_OK): Added.
15191         (CONSOLE_INHERITS_METHOD): Added.
15192
15193         * console-msw.c (mswindows_canonicalize_console_connection):
15194         Added.
15195         (mswindows_canonicalize_device_connection): Added.
15196
15197         * console-msw.h (struct msprinter_device): Added this struct and
15198         accessor macros.
15199         (mswindows_device): Made fontlist a lisp object.
15200
15201         * device.c (semi_canonicalize_device_connection):  Try to delegate
15202         to canonicalize_device_connection if no such console method.
15203         (canonicalize_device_connection): Vice versa.
15204         (print_device): Do not print nil connection.
15205
15206         * device-msw.c (mswindows_init_device): Call InitCommonControls
15207         when have widgets.
15208         (mswindows_delete_device): Removed fontlist deallocation.
15209         (mswindows_mark_device): Added.
15210
15211         * events.c (event_equal): Added abort() at unreached code.
15212         (event_hash): Ditto.
15213
15214         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
15215         fallback tags of Windows devices.
15216
15217         * general.c (syms_of_general): Initialized Qmsprinter.
15218
15219         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
15220         of fallback tags of Windows devices.
15221
15222         * lisp.h: Declared Qmsprinter.
15223
15224         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
15225         of strings.
15226         (mswindows_list_fonts): Ditto.
15227         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
15228         that it can be used by both mswindows and msprinter devices.
15229         (initialize_font_instance): Added.
15230         (mswindows_initialize_font_instance): Use it.
15231         (msprinter_initialize_font_instance): Added.
15232
15233         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
15234         and implementation flags check.
15235         (redisplay_without_hooks): Changed the call to the above.
15236         (Fredraw_device): Ditto.
15237         (Fredisplay_device): Ditto.
15238
15239         * redisplay-msw.c (get_frame_dc): Implemented.
15240         (get_frame_compdc): Implemented.
15241         (many functions): Use the two functions above to get device
15242         contexts, ether for a window or a printer.
15243
15244 2000-01-21  Olivier Galibert  <galibert@pobox.com>
15245
15246         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
15247         initialization here.
15248         (init_symbols_once_early): Call it.
15249         * emacs.c (main_1): Call it.
15250         * symsinit.h: Declare it.
15251
15252 2000-01-19  Olivier Galibert  <galibert@pobox.com>
15253
15254         * alloc.c: Use a lrecord_header * in the backtrace instead of a
15255         Lisp_Object.
15256         (pdump_backtrace): Ditto.
15257         (pdump_register_object): Ditto.  Cleanup use of the pointers.
15258         (pdump_get_entry): Abort if trying to register a null pointer.
15259         (pdump_dump_data): Cleanup types when relocating.
15260         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
15261         (pdump_dump_rtables): Remove bad casts.
15262         (pdump_load): Cleanup relocation w.r.t union type.  Use a
15263         Lisp_Object instead of a EMACS_INT for the hashtable
15264         reorganization.
15265
15266 2000-01-20  Martin Buchholz  <martin@xemacs.org>
15267
15268         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
15269
15270         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
15271
15272         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
15273
15274         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
15275
15276 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15277
15278         * faces.h (FACE_STRIKETHRU_P): Added.
15279
15280         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
15281         of font variants.
15282
15283         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
15284         (mswindows_set_dc_font): New function, aware of font variants,
15285         separated from mswindows_update_dc.
15286
15287         * objects-msw.h (struct mswindows_font_instance_data): Added
15288         definition.
15289
15290         * objects-msw.c (mswindows_finalize_font_instance): Delete all
15291         cached fonts and the data structure.
15292         (mswindows_initialize_font_instance): Added creation of font data
15293         structure.
15294         (mswindows_print_font_instance): Print at least something.
15295         (mswindows_create_font_variant): Implemented.
15296         (mswindows_get_hfont): Implemented.
15297
15298 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
15299
15300         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
15301         prototyping problem with msvc.
15302
15303         * emacs.c (main_1): added syms_of_gui_mswindows() call
15304
15305         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
15306         syms_of_gui_mswindows() function
15307
15308         * symsinit.h: added the prototype for syms_of_gui_mswindows()
15309
15310 2000-01-18  Martin Buchholz <martin@xemacs.org>
15311
15312         * XEmacs 21.2.27 is released.
15313
15314 2000-01-18  Martin Buchholz  <martin@xemacs.org>
15315
15316         * glyphs-eimage.c (struct tiff_error_struct):
15317         (tiff_error_func):
15318         (tiff_warning_func):
15319         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
15320
15321         * unexmips.c:
15322         * unexhp9k3.c:
15323         * unexfreebsd.c:
15324         * unexec.c: Remove vestigial Lucid C code.
15325         * unexalpha.c:
15326         * unexaix.c:
15327         * termcap.c:
15328         * libsst.c: Ansify.
15329         Remove declarations of errno and strerror().
15330
15331         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
15332
15333         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
15334
15335 2000-01-16  Martin Buchholz  <martin@xemacs.org>
15336
15337         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
15338         Optimize.
15339
15340 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15341
15342         * md5.c:
15343         * file-coding.c:
15344         * file-coding.h:
15345         Change enum eol_type to eol_type_t.
15346
15347 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15348
15349         * gui.c (get_gui_callback): Check cons before accessing car.
15350
15351 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15352
15353         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
15354         (XSETSPECIFIER_TYPE): Ditto.
15355
15356 2000-01-17  Didier Verna  <didier@xemacs.org>
15357
15358         * redisplay.c (generate_fstring_runes): compute string size in
15359         characters, not bytes.
15360
15361 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
15362
15363         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
15364
15365 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
15366
15367         * print.c (print_error_message): Call print_prepare().
15368
15369 2000-01-14  Martin Buchholz  <martin@xemacs.org>
15370
15371         * .dbxrc: Renamed from dbxrc.
15372
15373         * events.c (event_to_character):
15374         Use `assert (foo)' instead of `if (!foo) abort()'
15375
15376         * .gdbinit (xtype): Add documentation.
15377         * .gdbinit (check-temacs): New function.
15378         * .gdbinit (check-xemacs): New function.
15379         * dbxrc (check-xemacs): New function.
15380         * dbxrc (check-xemacs): New function.
15381
15382 2000-01-14  Andy Piper  <andy@xemacs.org>
15383
15384         * glyphs-widget.c (widget_query_geometry): Make sure that we
15385         calculate default dimensions correctly.
15386
15387 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15388
15389         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
15390
15391         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
15392         pdump_wire'd variable.
15393
15394         * emacs.c: (main_1): Conditionalized calls to
15395         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
15396
15397 2000-01-13  Martin Buchholz  <martin@xemacs.org>
15398
15399         * window.c (Fset_window_configuration):
15400         * sysdep.c (_start):
15401         * input-method-motif.c (res):
15402         * event-Xt.c (Xt_process_to_emacs_event):
15403         Simple compiler warning fixes.
15404
15405         * bytecode.c (funcall_compiled_function): Use the original
15406         function symbol on the backtrace list in preference to the
15407         compiled_function object in error messages.
15408
15409 2000-01-13  Andy Piper  <andy@xemacs.org>
15410
15411         * glyphs-x.c (update_widget_face): Make sure we update the widget
15412         background as well as foreground.
15413
15414 2000-01-13  Andy Piper  <andy@xemacs.org>
15415
15416         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
15417         fields to subwindow.
15418         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
15419         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
15420         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
15421         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
15422
15423         * glyphs-widget.c (check_valid_tab_orientation): new function.
15424         (initialize_widget_image_instance): zero orientation and
15425         justification.
15426         (widget_instantiate): pick up orientation.
15427         (tab_control_query_geometry): return appropriate values for
15428         vertical tabs.
15429
15430         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
15431         appropriate creation flags for left, right and bottom tabs.
15432
15433         * s/cygwin32.h: add tab definitions.
15434
15435 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15436
15437         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
15438         frame upon hiding a subwindow.
15439         (mswindows_button_instantiate): Changed the push button style to
15440         BS_PUSHBUTTON.
15441         (mswindows_button_instantiate): Removed button BS_NOTIFY
15442         style.
15443         (mswindows_button_instantiate): Removed redundant check for
15444         a disabled gui item.
15445         (mswindows_button_instantiate): Made use of WS_TABSTOP
15446         consistent: "operable" controls (edit, button, tree, scroll) have
15447         this style, "display-only" ones (static, progress gauge) do
15448         not. This style is currently ignored by XEmacs though. Also,
15449         removed the WS_EX_CONTROLPARENT style - it is not for children,
15450         it is for their parents!
15451         (mswindows_edit_field_instantiate): Ditto.
15452         (mswindows_progress_gauge_instantiate): Ditto.
15453         (mswindows_tree_view_instantiate): Ditto.
15454         (mswindows_tab_control_instantiate): Ditto.
15455         (mswindows_scrollbar_instantiate): Ditto.
15456         (mswindows_combo_box_instantiate): Ditto.
15457         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
15458         style to the "clip" window.
15459         (mswindows_button_instantiate): Removed compilation warning by
15460         equally typing terms of the ?: operator.
15461
15462 2000-01-12  Didier Verna  <didier@xemacs.org>
15463
15464         * redisplay.c (generate_fstring_runes): new parameter holding the
15465         last modeline-format extent.
15466         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
15467         extent, fill the glyph block with it.
15468         (generate_fstring_runes): handle these parameters.
15469         (generate_formatted_string_db): ditto.
15470
15471         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
15472         glyphs'extents in the modeline.
15473
15474 1999-01-11  Mike Woolley  <mike@bulsara.com>
15475
15476         * ntheap.c: Reduced the reserved heap space from 1Gb down to
15477         256Mb, as a workaround for the non-starting problem many people
15478         have experienced.
15479
15480 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15481
15482         * console-tty.c (Fset_console_tty_output_coding_system):
15483         Force redrawing tty frame.
15484
15485 2000-01-10  Didier Verna  <didier@xemacs.org>
15486
15487         * redisplay.c (generate_fstring_runes): fix size computation bug.
15488
15489 2000-01-09  William M. Perry <wmperry@aventail.com>
15490
15491         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
15492
15493 2000-01-09  Andy Piper  <andy@xemacs.org>
15494
15495         * glyphs-msw.c: index -> i to avoid shadows.
15496         (xbm_create_bitmap_from_data): make static.
15497         (check_valid_string_or_int): deleted.
15498         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
15499
15500         * glyphs-x.c (x_update_subwindow): remove unused args.
15501
15502         * glyphs.c (glyph_image_instance): return the thing. Don't set the
15503         back pointer - this is done in allocate_image_instance.
15504         (query_string_font): return Qnil to make the compiler happy.
15505         (unmap_subwindow): set to ~0 to make the compiler happy.
15506         (glyph_query_geometry): comment out until used.
15507         (glyph_layout): ditto.
15508
15509 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
15510
15511         * insdel.c (signal_after_change): Remove extraneous unbind_to().