(LEADING_BYTE_UCS_CNS): Deleted.
[chise/xemacs-chise.git-] / src / ChangeLog
1 2003-03-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
4
5         * mule-charset.c (Vcharset_ucs_jis): Deleted.
6         (Qucs_jis): Deleted.
7         (syms_of_mule_charset): Delete `ucs-jis'.
8         (complex_vars_of_mule_charset): Likewise.
9
10 2003-03-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
11
12         * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
13
14         * mule-charset.c (Vcharset_ucs_ks): Deleted.
15         (Qucs_ks): Deleted.
16         (syms_of_mule_charset): Delete `ucs-ks'.
17         (complex_vars_of_mule_charset): Likewise.
18
19 2003-03-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
20
21         * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
22         (Qideograph_daikanwa_2): Deleted.
23         (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
24         (complex_vars_of_mule_charset): Likewise.
25
26         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
27         (LEADING_BYTE_DAIKANWA_1): Deleted.
28         (LEADING_BYTE_DAIKANWA_2): Deleted.
29         (MIN_CHAR_DAIKANWA): Deleted.
30         (MAX_CHAR_DAIKANWA): Deleted.
31
32 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
33
34         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
35         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
36         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
37
38         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
39         (Vcharset_ideograph_daikanwa): Deleted.
40         (Qideograph_hanziku_{1..12}): Deleted.
41         (Qideograph_daikanwa): Deleted.
42         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
43         Vcharset_ideograph_daikanwa.
44         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
45         `ideograph-hanziku-{1..12}'.
46         (complex_vars_of_mule_charset): Likewise.
47
48 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
49
50         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
51
52         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
53         (Qideograph_gt_pj_{1..11}): Deleted.
54         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
55         (complex_vars_of_mule_charset): Likewise.
56
57 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
58
59         * mule-charset.c (Vcharset_ucs_big5): Deleted.
60         (Vcharset_ideograph_gt): Deleted.
61         (Qucs_big5): Deleted.
62         (Qideograph_gt): Deleted.
63         (syms_of_mule_charset): Delete symbol `ucs-big5' and
64         `ideograph-gt'.
65         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
66         and `ideograph-gt'.
67
68         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
69         (LEADING_BYTE_GT): Deleted.
70         (MIN_CHAR_GT): Deleted.
71         (MAX_CHAR_GT): Deleted.
72
73 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
74
75         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
76
77 2003-01-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
78
79         * chartab.c (save_uint8_byte_table): Add new argument `filter'.
80         (save_uint16_byte_table): Likewise.
81         (save_byte_table): Likewise; convert values by it.
82         (Fput_char_attribute): Don't use `char-refs-simplify-char-specs'
83         for `ideographic-structure'.
84         (Fsave_char_attribute_table): Use `char-refs-simplify-char-specs'
85         as the filter for `ideographic-structure'.
86
87 2003-01-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
88
89         * chartab.c (put_char_composition): New function.
90         (Fput_char_attribute): Use `put_char_composition'; use
91         `Fchar_refs_simplify_char_specs' for `ideographic-structure'.
92
93         * fns.c (simplify_char_spec): New function.
94         (char_ref_simplify_spec): New function.
95         (Fchar_refs_simplify_char_specs): New function.
96         (syms_of_fns): Add new builtin function
97         `char-refs-simplify-char-specs'.
98
99 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
100
101         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
102         (Qideograph_cbeta): Deleted.
103         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
104         (complex_vars_of_mule_charset): Likewise.
105
106         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
107         (MIN_CHAR_CBETA): Comment out.
108         (MAX_CHAR_CBETA): Likewise.
109
110 2002-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
111
112         * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
113         `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
114         CHISE client feature.
115
116 2002-12-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
117
118         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
119
120 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
121
122         * mule-charset.c (charset_lookup_description_1): Use
123         `NUM_LEADING_BYTES' in UTF-2000.
124
125 2002-12-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
126
127         * char-ucs.h (GC_CHARSETP): Deleted.
128
129 2002-12-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
130
131         * char-ucs.h (MAX_CHAR_GT): Updated.
132
133 2002-12-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
134
135         * text-coding.c: Sync with XEmacs 21.4.10.
136
137 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
138
139         * mule-charset.c (Vcharset_china3_jef): Deleted.
140         (Qchina3_jef): Deleted.
141         (syms_of_mule_charset): Don't define `china3-jef'.
142         (complex_vars_of_mule_charset): Likewise.
143
144         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
145         (MIN_CHAR_CHINA3_JEF): Comment out.
146         (MAX_CHAR_CHINA3_JEF): Comment out.
147
148 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
149
150         * mule-charset.c (Vcharset_ucs_gb): New variable.
151         (Qucs_gb): New variable.
152         (syms_of_mule_charset): Add new symbol `ucs-gb'.
153         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
154
155         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
156
157 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
158
159         * mule-charset.c (charset_code_point): if a coded-charset has a
160         final-byte, don't inherit the builtin range of the mother CCS.
161
162 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
163
164         * mule-charset.c (charset_code_point): Fix problem about
165         inheritance.
166
167 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
168
169         * mule-charset.c (decode_builtin_char): Reorganized.
170
171 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
172
173         * text-coding.c (char_encode_as_entity_reference): Modify for
174         `charset_code_point'.
175         (char_encode_shift_jis): Likewise.
176         (char_encode_big5): Likewise.
177         (char_encode_utf8): Likewise.
178         (char_encode_iso2022): Likewise.
179
180         * mule-charset.c (charset_code_point): Add new argument
181         `defined_only'.
182         (Fencode_char): Add new optional argument `defined_only'.
183
184         * chartab.c (put_char_table): Modify for `charset_code_point'.
185
186         * char-ucs.h (charset_code_point): Add new argument
187         `defined_only'.
188         (encode_char_1): Modify for `charset_code_point'.
189
190 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
191
192         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
193         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
194
195 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
196
197         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
198         (Qjis_x0208): Likewise.
199         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
200         XCHARSET_FINAL(charset).
201         (charset_code_point): Modify condition for final-byte based
202         builtin-chars.
203         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
204         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
205         in UTF-2000; specify `=jis-x0208' as the mother of
206         `japanese-jisx0208-1978', `japanese-jisx0208' and
207         `japanese-jisx0208-1990' in UTF-2000.
208
209 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
210
211         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
212
213 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
214
215         * text-coding.c (decode_coding_utf16): Support UTF-16.
216         (char_encode_utf16): Fixed.
217
218 2002-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
219
220         * text-coding.c (Qutf16): New variable in MULE.
221         (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
222         (Fcoding_system_type): Add `utf-16' in MULE.
223         (struct detection_state): Add a structure for utf16 in MULE.
224         (detect_coding_type): Setup st->utf16.mask in MULE.
225         (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
226         MULE.
227         (reset_encoding_stream): Use `char_encode_utf16' and
228         `char_finish_utf16' for `CODESYS_UTF16' in MULE.
229         (detect_coding_utf16): New function [incomplete].
230         (decode_coding_utf16): New function [support only UCS-2].
231         (char_encode_utf16): New function.
232         (char_finish_utf16): New function.
233         (syms_of_file_coding): Add new symbol `utf-16'; setup
234         `coding_category_symbol[CODING_CATEGORY_UTF16]'.
235
236         * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
237         UTF-2000.
238         (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
239         (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
240
241 2002-10-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
242
243         * chartab.c (put_char_table): When a charset is specified as a
244         range in UTF-2000, don't support builtin characters.
245
246 2002-09-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
247
248         * mule-charset.c (decode_defined_char): Don't refer external
249         database if Qunbound or Qnil are found.
250         (Fsave_charset_mapping_table): Don't define it if
251         HAVE_CHISE_CLIENT is not defined.
252         (Freset_charset_mapping_table): New function.
253         (load_char_decoding_entry_maybe): Store Qnil if a character is not
254         found in external database.
255         (syms_of_mule_charset): Don't define `save-charset-mapping-table'
256         if HAVE_CHISE_CLIENT is not defined; add new builtin function
257         `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
258
259 2002-09-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
260
261         * text-coding.c (decode_coding_utf8): Check CCS is specified or
262         not.
263
264 2002-08-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
265
266         * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
267         Q_lowercase, Q_uppercase in UTF-2000.
268
269         * chartab.c (get_char_table): Add special code for the standard
270         case table to use character attribute `->downcase' and
271         `->uppercase' for case operations in UTF-2000.
272
273         * casetab.c (Qflippedcase): New variable in UTF-2000.
274         (Q_lowercase): Likewise.
275         (Q_uppercase): Likewise.
276         (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
277         and `->uppercase' in UTF-2000.
278         (complex_vars_of_casetab): Assign attribute name `downcase' to
279         downcase and CANON table of Vstandard_case_table in UTF-2000;
280         assign attribute name `flippedcase' to upcase and EQV table of
281         Vstandard_case_table in UTF-2000.
282
283 2002-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
284
285         * text-coding.c (decode_add_er_char): Support isolated-chars.
286         (char_encode_as_entity_reference): Likewise.
287
288 2002-08-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
289
290         * emacs.c (Vutf_2000_lisp_directory): New variable.
291         (Vconfigure_utf_2000_lisp_directory): Likewise.
292         (complex_vars_of_emacs): Add new variable
293         `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
294
295 2002-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
296
297         * char-ucs.h (DECODE_CHAR): Delete special code for
298         `chinese-big5-1' and `chinese-big5-2'.
299
300         * mule-charset.c (Qbig5_1): New variable in UTF-2000.
301         (Qbig5_2): Likewise.
302         (decode_defined_char): Support CONVERSION_BIG5_1 and
303         CONVERSION_BIG5_2.
304         (decode_builtin_char): Likewise.
305         (charset_code_point): Likewise.
306         (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
307         'conversion in UTF-2000.
308         (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
309         (complex_vars_of_mule_charset): Define `chinese-big5-1' and
310         `chinese-big5-2' as children of `chinese-big5'.
311
312         * char-ucs.h (CONVERSION_BIG5_1): New macro.
313         (CONVERSION_BIG5_2): New macro.
314
315 2002-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
316
317         * text-coding.c (char_encode_big5): Support entity-reference.
318
319 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
320
321         * text-coding.c (char_encode_as_entity_reference): New function.
322         (char_encode_utf8): Use `char_encode_as_entity_reference'.
323
324 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
325
326         * text-coding.c (decode_coding_big5): Support entity-reference
327         decoding feature.
328
329 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
330
331         * text-coding.c (allocate_coding_system): Initialize initial
332         charsets for CODESYS_UTF8.
333         (Fmake_coding_system): Accept charset-g0, charset-g1 and
334         charset-g2 for CODESYS_UTF8.
335         (decode_coding_utf8): Use charset-g0.
336         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
337         to force variants to map to UCS.
338
339 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
340
341         * text-coding.c (Qutf_8_mcs): New variable.
342         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
343         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
344         instead of `utf-8' in UTF-2000.
345
346 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
347
348         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
349         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
350         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
351         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
352         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
353         CONVERSION_96x96x96x96 are introduced.
354         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
355         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
356         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
357
358         * char-ucs.h (CONVERSION_94): New macro.
359         (CONVERSION_96): New macro.
360         (CONVERSION_94x94): New macro.
361         (CONVERSION_96x96): New macro.
362         (CONVERSION_94x94x94): New macro.
363         (CONVERSION_96x96x96): New macro.
364         (CONVERSION_94x94x94x60): New macro.
365         (CONVERSION_94x94x94x94): New macro.
366         (CONVERSION_96x96x96x96): New macro.
367
368 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
369
370         * chartab.c (Vcharacter_variant_table): Deleted.
371         (Fchar_variants): Use character-attribute `->ucs-variants' instead
372         of `Vcharacter_variant_table'.
373         (Fput_char_attribute): Likewise.
374         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
375         (complex_vars_of_chartab): Likewise.
376
377 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
378
379         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
380
381         * fns.c (Qideographic_structure): New variable.
382         (Qkeyword_char): New variable.
383         (ids_format_unit): New function.
384         (Fideographic_structure_to_ids): New function.
385         (syms_of_fns): Add new symbols `ideographic-structure' and
386         `:char'; add new builtin function `ideographic-structure-to-ids'.
387
388         * data.c (Fchar_ref_p): New function.
389         (syms_of_data): Add new builtin function `char-ref-p'.
390
391         * chartab.h: Add an EXFUN for `Ffind_char'.
392
393 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
394
395         * text-coding.c (Vcharacter_composition_table): Deleted.
396         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
397         in every UTF-2000.
398
399         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
400         UTF-2000.
401         (Vcharacter_composition_table): Deleted.
402         (Fget_composite_char): Use the implementation for external-DB
403         support in every UTF-2000.
404         (Fput_char_attribute): Likewise.
405         (char_attribute_system_db_file): Don't define if external-DB
406         feature is not available.
407         (Fsave_char_attribute_table): Likewise.
408         (Fmount_char_attribute_table): Likewise.
409         (Fclose_char_attribute_table): Likewise.
410         (Freset_char_attribute_table): Likewise.
411         (Fload_char_attribute_table): Likewise.
412         (syms_of_chartab): Don't define `save-char-attribute-table',
413         `mount-char-attribute-table', `reset-char-attribute-table',
414         `close-char-attribute-table' and `load-char-attribute-table' if
415         external-DB feature is not available.
416         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
417
418 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
419
420         * text-coding.c (Qcomposition): Add extern if external-DB feature
421         is supported.
422         (Vcharacter_composition_table): Don't add extern if external-DB
423         feature is supported.
424         (COMPOSE_ADD_CHAR): Modify for new data-representation of
425         character composition rule if external-DB feature is supported.
426
427         * chartab.c (Vcharacter_composition_table): Don't define if
428         external-DB feature is supported.
429         (Qcomposition): New variable.
430         (Fget_composite_char): New implementation for external-DB support.
431         (Fput_char_attribute): Use `composition' property of each
432         character instead of `Vcharacter_composition_table' to store
433         character-composition rules if external-DB feature is supported.
434         (syms_of_chartab): Add new symbol `composition'.
435         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
436         external-DB feature is supported.
437
438 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
439
440         * chartab.c (Vchar_db_stingy_mode): New variable.
441         (load_char_attribute_maybe): Close database if
442         Vchar_db_stingy_mode is not NIL.
443         (Fload_char_attribute_table_map_function): Use
444         `get_char_id_table_0' instead of `get_char_id_table'.
445         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
446
447         * chartab.h (get_char_id_table_0): New inline function.
448         (get_char_id_table): Use `get_char_id_table_0'.
449
450 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
451
452         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
453         and `COMPOSE_ADD_CHAR'.
454         (decode_coding_iso2022): Use `decode_flush_er_chars'.
455
456 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
457
458         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
459         instead of `DECODE_ADD_UCS_CHAR'.
460         (COMPOSE_ADD_CHAR): Likewise.
461
462 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
463
464         * text-coding.c (decode_flush_er_chars): New inline function.
465         (decode_add_er_char): New function.
466         (decode_coding_utf8): Use `decode_flush_er_chars' and
467         `decode_add_er_char'.
468
469 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
470
471         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
472         done before `decode_output_utf8_partial_char'.
473
474         * mule-charset.c (complex_vars_of_mule_charset): Specify
475         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
476         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
477
478 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
479
480         * mule-charset.c (decode_defined_char): New function; search
481         mother.
482         (decode_builtin_char): Don't search mother if
483         XCHARSET_MAX_CODE(charset) == 0.
484         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
485         == 0 even if code >= XCHARSET_MAX_CODE(charset).
486         (Fdecode_char): Use `decode_defined_char' instead of
487         `DECODE_DEFINED_CHAR'.
488         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
489         mother of `Vcharset_ucs_jis'.
490
491         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
492         instead of `DECODE_DEFINED_CHAR'.
493
494         * char-ucs.h (decode_defined_char): Renamed from
495         `DECODE_DEFINED_CHAR'; changed to normal function.
496         (DECODE_CHAR): Use `decode_defined_char' instead of
497         `DECODE_DEFINED_CHAR'.
498
499         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
500
501 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
502
503         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
504
505         * text-coding.c (Vcoded_charset_entity_reference_alist): New
506         variable.
507         (Quse_entity_reference): New variable.
508         (Qd): New variable.
509         (Qx): New variable.
510         (QX): New variable.
511         (coding_system_description): Add description for
512         `ccs_priority_list'.
513         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
514         (allocate_coding_system): Initialize `ccs_priority_list' in
515         UTF-2000.
516         (Fmake_coding_system): Add description about
517         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
518         (codesys).
519         (Fcoding_system_property): Accept `disable-composition' and
520         `use-entity-reference' in UTF-2000.
521         (struct decoding_stream): Add new member `er_counter' and `er_buf'
522         in UTF-2000.
523         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
524         (decode_coding_utf8): Decode entity-reference if
525         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
526         (char_encode_utf8): Encode non-Unicode characters as
527         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
528         (str->codesys).
529         (syms_of_file_coding): Add new symbols `use-entity-reference',
530         `d', `x', `X'.
531         (vars_of_file_coding): Add new variable
532         `coded-charset-entity-reference-alist'.
533         (complex_vars_of_file_coding): Declare `disable-composition' and
534         `use-entity-reference' to be coding-system-properties in UTF-2000.
535
536         * file-coding.h (struct Lisp_Coding_System): Add new member
537         `use_entity_reference' and `ccs_priority_list'.
538         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
539         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
540         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
541
542 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
543
544         * chartab.c (save_uint8_byte_table): Don't clear the table.
545         (save_uint16_byte_table): Likewise.
546         (save_byte_table): Likewise.
547         (Fmount_char_attribute_table): New function.
548         (syms_of_chartab): Add new builtin function
549         `mount-char-attribute-table'.
550
551 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
552
553         * mule-charset.c (Fsave_charset_mapping_table): Open database as
554         "w+" mode.
555         (load_char_decoding_entry_maybe): Open database as read-only mode.
556
557         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
558         open database as "w+" mode.
559         (load_char_attribute_maybe): Open database as read-only mode.
560         (Fload_char_attribute_table): Likewise.
561
562 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
563
564         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
565         (char_table_description): Delete member `db_file'.
566         (Fmake_char_table): Don't refer `ct->db_file'.
567         (Fcopy_char_table): Likewise.
568         (Fsave_char_attribute_table): Likewise.
569         (Fclose_char_attribute_table): Likewise.
570         (Freset_char_attribute_table): Likewise.
571         (load_char_attribute_maybe): Likewise.
572         (Fload_char_attribute_table): Likewise.
573
574         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
575
576 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
577
578         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
579         (Fsave_char_attribute_table): Don't check `ct->db_file' if
580         `ct->db' is living.
581         (load_char_attribute_maybe): Likewise.
582         (Fload_char_attribute_table): Likewise.
583
584 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
585
586         * chartab.c (Fclose_char_attribute_table): Set Qnil on
587         `ct->db_file' unconditionally.
588
589 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
590
591         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
592         UTF-2000.
593         (char_table_description): Add description for `db_file' and `db'
594         in UTF-2000.
595         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
596         UTF-2000.
597         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
598         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
599         (Fclose_char_attribute_table): New function.
600         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
601         (load_char_attribute_maybe): Change interface; use `cit->db_file'
602         and `cit->db'.
603         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
604         (syms_of_chartab): Add new builtin function
605         `Fclose_char_attribute_table'.
606
607 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
608
609         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
610         `db' in UTF-2000.
611         (load_char_attribute_maybe): Change interface.
612         (get_char_id_table): Modify for `load_char_attribute_maybe'.
613
614 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
615
616         * database.h: Add an EXFUN for `Fdatabase_live_p'.
617
618 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
619
620         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
621         instead of `DECODE_CHAR' for mother; don't use special code for
622         chinese-big5 to use code space of chinese-big5-1 and
623         chinese-big5-2.
624         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
625         `MAX_CHAR_BIG5_CDP' for chinese-big5.
626
627         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
628         (MAX_CHAR_BIG5_CDP): Revival.
629
630 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
631
632         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
633         the XLFD registry-encoding name of `chinese-big5'.
634
635 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
636
637         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
638         (Qchinese_big5_cdp): Deleted.
639         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
640         (complex_vars_of_mule_charset): Delete coded-charset
641         `chinese-big5-cdp'.
642
643         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
644         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
645         `CHARSET_ID_OFFSET - n' for private CCS.
646         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
647         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
648         of `MIN_LEADING_BYTE'.
649         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
650         `(CHARSET_ID_OFFSET - 97)'.
651         (MIN_CHAR_BIG5_CDP): Deleted.
652         (MAX_CHAR_BIG5_CDP): Deleted.
653
654 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
655
656         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
657
658 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
659
660         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
661         (vars_of_mule): Add new variable `utf-2000-version' [moved from
662         chartab.c].
663
664         * chartab.c (Vutf_2000_version): Moved to mule.c.
665         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
666
667 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
668
669         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
670         when HAVE_CHISE_CLIENT is not defined.
671
672         * mule.c (vars_of_mule): Provide feature `chise' when
673         HAVE_CHISE_CLIENT is defined.
674
675 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
676
677         * config.h.in (UTF2000): Add comment.
678         (HAVE_CHISE_CLIENT): New macro.
679
680 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
681
682         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
683         CONSP.
684         (Fput_char_attribute): Likewise.
685         (char_attribute_system_db_file): Encode file-name of attribute.
686         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
687         the initial value.
688
689 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
690
691         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
692         (Fsave_charset_mapping_table): Use
693         `char_attribute_system_db_file'.
694         (load_char_decoding_entry_maybe): Likewise.
695
696         * chartab.h (Qsystem_char_id): New external variable.
697         (char_attribute_system_db_file): New prototype.
698
699         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
700         (char_attribute_system_db_file): New function.
701         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
702         (Freset_char_attribute_table): Likewise.
703         (load_char_attribute_maybe): Likewise.
704         (Fload_char_attribute_table): Likewise.
705         (syms_of_chartab): Add new symbol `system-char-id'.
706
707 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
708
709         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
710         `XCHARSET_GRAPHIC(ccs)'.
711
712 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
713
714         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
715
716 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
717
718         * chartab.c (Q_ucs_variants): New variable.
719         (syms_of_chartab): Add new symbol `->ucs-variants'.
720         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
721         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
722         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
723
724         * mule-charset.c (load_char_decoding_entry_maybe): New function.
725
726         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
727         `HAVE_DATABASE' is defined.
728         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
729         `HAVE_DATABASE' is defined.
730
731 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
732
733         * chartab.c (Fsave_char_attribute_table): Don't clear internal
734         attribute-table.
735         (Freset_char_attribute_table): New function.
736         (syms_of_chartab): Add new builtin function
737         `reset-char-attribute-table'.
738
739 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
740
741         * chartab.c (load_char_attribute_maybe): Don't make directories.
742
743 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
744
745         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
746
747         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
748         for decoding-table.
749
750 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
751
752         * mule-charset.c (Fsave_charset_mapping_table): Use
753         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
754
755         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
756         instead of `XCHARSET_CHARS'.
757
758 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
759
760         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
761         (XCHARSET_BYTE_SIZE): Likewise.
762
763         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
764         mule-charset.c].
765         (XCHARSET_BYTE_SIZE): Likewise.
766
767 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
768
769         * chartab.c (Fput_char_attribute): Use exec-directory instead of
770         data-directory to store database.
771         (Fsave_char_attribute_table): Likewise.
772         (load_char_attribute_maybe): Likewise.
773         (Fload_char_attribute_table): Likewise.
774
775 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
776
777         * mule-charset.c (Fsave_charset_mapping_table): New function.
778         (syms_of_mule_charset): Add new builtin function
779         `save-charset-mapping-table'.
780
781 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
782
783         * char-ucs.h (decoding_table_check_elements): Delete prototype.
784         (get_ccs_octet_table): New inline function.
785         (put_ccs_octet_table): Likewise.
786         (decoding_table_put_char): Use `get_ccs_octet_table' and
787         `put_ccs_octet_table'.
788         (decoding_table_remove_char): Use `decoding_table_put_char'.
789         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
790
791         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
792         into encoding_table.
793         (make_charset): Use Qunbound instead Qnil as initial value of
794         decoding_table.
795
796 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
797
798         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
799         element is Qunloaded.
800         (map_over_uint16_byte_table): Likewise.
801         (map_over_byte_table): Likewise.
802         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
803         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
804         database support, load encoding-table of the specified
805         coded-charset if it is not loaded yet.
806         (save_uint8_byte_table): New function of UTF-2000 with external
807         database support.
808         (save_uint16_byte_table): Likewise.
809         (save_byte_table): Likewise.
810         (Fput_char_attribute): Don't store value into external database
811         even if the external database feature is supported in UTF-2000;
812         set `attribute' as name of char-table if the external database
813         feature is supported.
814         (Fsave_char_attribute_table): New function in UTF-2000.
815         (syms_of_chartab): Add new builtin function
816         `save-char-attribute-table' in UTF-2000.
817
818 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
819
820         * chartab.c (char_attribute_table_to_put): New variable in
821         UTF-2000.
822         (Qput_char_table_map_function): Likewise.
823         (value_to_put): Likewise.
824         (Fput_char_table_map_function): New function in UTF-2000.
825         (put_char_table): Use `Fmap_char_attribute' for
826         CHARTAB_RANGE_CHARSET in UTF-2000.
827         (Fput_char_attribute): Store symbol instead of string in
828         `XCHAR_TABLE_NAME (table)'.
829         (load_char_attribute_maybe): Likewise.
830         (syms_of_chartab): Add new symbol/function
831         `put-char-table-map-function'.
832
833 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
834
835         * database.h: Add new EXFUN for `Fmap_database'.
836
837         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
838         (syms_of_database): Likewise.
839
840         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
841         UTF-2000.
842         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
843         (XCHAR_TABLE_UNLOADED): Likewise.
844
845         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
846         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
847         HAVE_DATABASE is defined.
848         (char_attribute_table_to_load): New variable of UTF-2000 with
849         external database support.
850         (Qload_char_attribute_table_map_function): Likewise.
851         (Fload_char_attribute_table_map_function): New function of
852         UTF-2000 with external database support.
853         (Fload_char_attribute_table): New function of UTF-2000.
854         (Fmap_char_attribute): Call Fload_char_attribute_table if
855         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
856         (syms_of_chartab): Add new symbol and function
857         `load-char-attribute-table-map-function' in UTF-2000 with external
858         database support; add new function `load-char-attribute-table' in
859         UTF-2000.
860
861 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
862
863         * chartab.h (load_char_attribute_maybe): New prototype for
864         UTF-2000 with DATABASE support.
865         (get_char_id_table): Use `load_char_attribute_maybe' if
866         HAVE_DATABASE is defined.
867
868         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
869         with DATABASE support.
870
871 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
872
873         * chartab.c (Fput_char_attribute): Use S-expression as key of
874         external database.
875
876         * chartab.h (get_char_id_table): Use S-expression as key of
877         external database.
878
879 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
880
881         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
882         if an element is not loaded, load the corresponding attributes
883         from an external database.
884         (map_over_uint16_byte_table): Likewise.
885         (map_over_byte_table): Likewise.
886         (map_char_table): Modify for `map_over_uint8_byte_table',
887         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
888         element is not loaded, load the corresponding attributes from an
889         external database.
890         (Fput_char_attribute): Change initial values to Qunloaded.
891
892         * chartab.h (get_char_id_table): If a character attribute is not
893         loaded and the attribute value is not found in an external
894         database, store Qunbound as the attribute value.
895
896 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
897
898         * chartab.c (BT_UINT8_unloaded): New macro.
899         (UINT8_VALUE_P): Accept Qunloaded.
900         (UINT8_ENCODE): Likewise.
901         (UINT8_DECODE): Likewise.
902         (BT_UINT16_unloaded): New macro.
903         (UINT16_VALUE_P): Accept Qunloaded.
904         (UINT16_ENCODE): Likewise.
905         (UINT16_DECODE): Likewise.
906         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
907         BT_UINT16_unloaded.
908         (mark_char_table): Mark `ct->name' in UTF-2000.
909         (char_table_description): Add `name' in UTF-2000.
910         (Fmake_char_table): Initialize `ct->name'.
911         (Fcopy_char_table): Copy `ct->name'.
912         (Fput_char_attribute): Store value into an external database if
913         HAVE_DATABASE is defined.
914
915         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
916         UTF-2000.
917         (CHAR_TABLE_NAME): New macro in UTF-2000.
918         (XCHAR_TABLE_NAME): New macro in UTF-2000.
919         (get_char_id_table): Try to read an external database if Qunloaded
920         is stored in a table.
921
922         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
923         Qunloaded.
924
925 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
926
927         * database.h: Add EXFUN definitions for Fopen_database,
928         Fput_database, Fget_database and Fclose_database.
929
930         * data.c (Qunloaded): New variable in UTF-2000.
931
932         * lisp.h (Qunloaded): New variable in UTF-2000.
933
934 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
935
936         * mule-charset.c (put_char_ccs_code_point): Modify for
937         `decoding_table_remove_char' and `decoding_table_put_char'.
938         (remove_char_ccs): Modify for `decoding_table_remove_char'.
939
940         * char-ucs.h (decoding_table_remove_char): Change arguments to
941         hide decoding_table vector.
942         (decoding_table_put_char): Likewise.
943
944 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
945
946         * mule-charset.c (decoding_table_remove_char): Moved to
947         char-ucs.h.
948         (decoding_table_put_char): Likewise.
949
950         * char-ucs.h (decoding_table_check_elements): New prototype [moved
951         from mule-charset.c].
952         (decoding_table_remove_char): New inline function [moved from
953         mule-charset.c].
954         (decoding_table_put_char): Likewise.
955
956 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
957
958         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
959         extension.
960
961 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
962
963         * mule-charset.c (decode_builtin_char): Support mother charsets.
964
965 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
966
967         * mule-charset.c (Q94x94x60): New variable.
968         (charset_code_point): Support conversion `94x94x60'.
969         (Fmake_charset): Likewise.
970         (syms_of_mule_charset): Add new symbol `94x94x60'.
971
972         * char-ucs.h (CONVERSION_94x94x60): New macro.
973
974 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
975
976         * mule-charset.c (charset_code_point): Unify code about
977         `code-offset'.
978
979 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
980
981         * mule-charset.c (charset_code_point): Merge code about builtin
982         characters into code about mother charsets; don't use
983         `range_charset_code_point'.
984         (range_charset_code_point): Deleted.
985
986 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
987
988         * mule-charset.c (Qcode_offset): New variable.
989         (Fmake_charset): Use `XUINT' to get value of `min-code' and
990         `max-code'; accept new property `code-offset'.
991         (syms_of_mule_charset): Add new symbol `code-offset'.
992
993 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
994
995         * mule-charset.c (range_charset_code_point): Fixed.
996
997 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
998
999         * mule-charset.c (decode_builtin_char): Change semantics of
1000         code-offset of coded-charset.
1001         (charset_code_point): Likewise.
1002         (range_charset_code_point): Likewise.
1003         (complex_vars_of_mule_charset): Modify for the change.
1004
1005 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1006
1007         * mule-charset.c (Fencode_char): Reverse arguments.
1008
1009         * mule-charset.c (charset_code_point): Fixed.
1010
1011 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1012
1013         * mule-charset.c (Vcharset_mojikyo): Deleted.
1014         (Vcharset_mojikyo_2022_1): Deleted.
1015         (Vcharset_mojikyo_pj_{1..21}): Deleted.
1016         (Qmin_code): New variable in UTF-2000.
1017         (Qmax_code): Likewise.
1018         (Qmother): Likewise.
1019         (Qconversion): Likewise.
1020         (Q94x60): Likewise.
1021         (Qmojikyo): Deleted.
1022         (Qmojikyo_2022_1): Deleted.
1023         (Qmojikyo_pj_{1..22}): Deleted.
1024         (mark_charset): Mark `cs->mother'.
1025         (charset_description): Add description for `mother'.
1026         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
1027         new arguments `mother' and `conversion'; use
1028         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
1029         (charset_code_point): Moved from char-ucs.h; support `mother'
1030         charset feature.
1031         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
1032         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
1033         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
1034         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
1035         allow 2 as the value of `graphic' in UTF-2000; add new properties
1036         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
1037         require `final' in UTF-2000; modify for `make_charset'.
1038         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
1039         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
1040         (Fcharset_property): Support `mother', `min-code' and `max-code'.
1041         (Fencode_char): New function.
1042         (syms_of_mule_charset): Add new builtin function `encode-char' in
1043         UTF-2000; add new symbols `min-code', `max-code', `mother',
1044         `conversion' and `94x60'; delete symbols `mojikyo',
1045         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
1046         (complex_vars_of_mule_charset): Modify for `make_charset' change;
1047         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
1048         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
1049
1050         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
1051         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
1052
1053         * char-ucs.h (Vcharset_mojikyo): Deleted.
1054         (Vcharset_mojikyo_2022_1): Deleted.
1055         (LEADING_BYTE_MOJIKYO): Deleted.
1056         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
1057         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
1058         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
1059         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
1060         add new member `mother'; add new member `conversion'.
1061         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
1062         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
1063         (CHARSET_MOTHER): New macro.
1064         (CHARSET_CONVERSION): New macro.
1065         (CONVERSION_IDENTICAL): New macro.
1066         (CONVERSION_94x60): New macro.
1067         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
1068         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
1069         (XCHARSET_MOTHER): New macro.
1070         (XCHARSET_CONVERSION): New macro.
1071         (MIN_CHAR_MOJIKYO): Deleted.
1072         (MAX_CHAR_MOJIKYO): Deleted.
1073         (DECODE_MOJIKYO_2022): Deleted.
1074         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
1075         (charset_code_point): Changed to non-inline function.
1076         (encode_char_1): Use `charset_code_point'.
1077         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
1078
1079 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1080
1081         * lread.c (read_compiled_function): Fix prototype.
1082         (read_vector): Likewise.
1083
1084 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1085
1086         * lrecord.h (struct lrecord_header): Delete `older'.
1087         (set_lheader_implementation): Delete code for `older'.
1088         (set_lheader_older_implementation): Deleted.
1089         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
1090         (OLDER_RECORD_P): Deleted.
1091         (OLDER_RECORD_HEADER_P): Deleted.
1092         (alloc_older_lcrecord): Deleted.
1093         (alloc_older_lcrecord_type): Deleted.
1094
1095         * alloc.c (all_older_lcrecords): Deleted.
1096         (alloc_older_lcrecord): Deleted.
1097         (disksave_object_finalization_1): Delete code for older objects.
1098         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
1099         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
1100
1101 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1102
1103         * mule-charset.c (decoding_table_put_char): Use `make_vector'
1104         instead of `make_older_vector'.
1105         (put_char_ccs_code_point): Likewise.
1106         (mark_charset): Mark `cs->decoding_table'.
1107         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
1108
1109         * lisp.h (make_older_vector): Deleted.
1110         (make_vector_newer): Deleted.
1111
1112         * config.h.in (HAVE_GGC): Deleted.
1113
1114         * alloc.c (make_older_vector): Deleted.
1115         (make_vector_newer_1): Deleted.
1116         (make_vector_newer): Deleted.
1117
1118 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1119
1120         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
1121         (Qideograph_daikanwa_2): New variable.
1122         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
1123         (complex_vars_of_mule_charset): Add new coded-charset
1124         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
1125         `LEADING_BYTE_DAIKANWA'.
1126
1127         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
1128         (LEADING_BYTE_DAIKANWA_1): New macro.
1129         (LEADING_BYTE_DAIKANWA_2): New macro.
1130         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
1131
1132 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1133
1134         * mule-charset.c (complex_vars_of_mule_charset): Change
1135         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
1136         the second revised version.
1137
1138 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1139
1140         * mule-charset.c (Vcharset_ucs_smp): New variable.
1141         (Vcharset_ucs_sip): New variable.
1142         (Qucs_smp): New variable.
1143         (Qucs_sip): New variable.
1144         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
1145         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
1146         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
1147         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
1148         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
1149         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
1150
1151         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
1152         (LEADING_BYTE_UCS_SIP): New macro.
1153         (MIN_CHAR_SMP): New macro.
1154         (MAX_CHAR_SMP): New macro.
1155         (MIN_CHAR_SIP): New macro.
1156         (MAX_CHAR_SIP): New macro.
1157
1158 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
1159
1160         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
1161         utf-2000.
1162
1163 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1164
1165         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
1166         value; don't store value into `encoding_table' of `Lisp_Charset'.
1167         (mark_charset): `encoding_table' was deleted.
1168         (charset_description): Likewise.
1169         (make_charset): Likewise.
1170         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
1171         `put_char_ccs_code_point'.
1172
1173         * chartab.h (Fput_char_attribute): New EXFUN.
1174
1175         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
1176         is unified with normal symbol space.
1177         (Fget_char_attribute): Likewise.
1178         (Fput_char_attribute): Likewise; behavior of
1179         `put_char_ccs_code_point' is changed.
1180
1181         * char-ucs.h: Include "elhash.h".
1182         (Vchar_attribute_hash_table): New external variable.
1183         (struct Lisp_Charset): Delete `encoding_table'.
1184         (CHARSET_ENCODING_TABLE): New implementation; refer
1185         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
1186         `Lisp_Charset'.
1187
1188 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1189
1190         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
1191         (cs) == 0.
1192
1193 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1194
1195         * text-coding.c (char_encode_big5): Prefer charset-g1 than
1196         `chinese-big5'.
1197
1198 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1199
1200         * chartab.c (uint8_byte_table_description): New constant.
1201         (uint8-byte-table): Use `uint8_byte_table_description'.
1202         (uint16_byte_table_description): New constant.
1203         (uint16-byte-table): Use `uint16_byte_table_description'.
1204
1205 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1206
1207         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
1208         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
1209
1210 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1211
1212         * mule-charset.c (Vcharset_ucs_ks): New variable.
1213         (Qucs_ks): New variable.
1214         (syms_of_mule_charset): Add new symbol `ucs-ks'.
1215         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
1216
1217         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
1218
1219 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1220
1221         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
1222         (Fdecode_char): Likewise.
1223
1224         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
1225         chartab.h.
1226         (Fdefine_char): Modify for Fdecode_char.
1227         (Ffind_char): Likewise.
1228
1229         * mule-charset.c (Fdecode_char): Add new optional argument
1230         `defined-only'.
1231         (Fdecode_builtin_char): Modify for `Fdecode_char'.
1232
1233 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1234
1235         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
1236         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
1237         (allocate_coding_system): Initialize initial-charsets of
1238         CODESYS_BIG5 in XEmacs UTF-2000.
1239         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
1240         CODESYS_BIG5 in XEmacs UTF-2000.
1241         (decode_coding_big5): Use initial-charset-g0 and -g1 of
1242         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
1243
1244         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
1245         variables.
1246         (Qideograph_hanziku_{1 .. 12}): Likewise.
1247         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
1248         .. 12}'.
1249         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
1250         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
1251         `ideograph-hanziku-{1 .. 12}'.
1252
1253         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
1254         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
1255         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
1256         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
1257         (DECODE_DEFINED_CHAR): New inline function.
1258         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
1259
1260 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1261
1262         * mule-charset.c (Vcharset_china3_jef): Renamed from
1263         `Vcharset_japanese_jef_china3'.
1264         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
1265         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
1266         `{MIN|MAX}_CHAR_JEF_CHINA3'..
1267         (syms_of_mule_charset): Rename `china3-jef' from
1268         `japanese-jef-china3'.
1269         (complex_vars_of_mule_charset): Likewise; rename
1270         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
1271
1272         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
1273         `LEADING_BYTE_JEF_CHINA3'.
1274         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
1275         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
1276
1277 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1278
1279         * mule-charset.c (encode_builtin_char_1): Comment out special code
1280         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
1281
1282         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
1283         (MAX_CHAR_MOJIKYO_0): Comment out.
1284         (MIN_CHAR_CBETA): Changed to 0x00E20000.
1285         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
1286         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
1287         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
1288
1289 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1290
1291         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
1292         (Qideograph_cbeta): New variable.
1293         (encode_builtin_char_1): Comment out special code for
1294         coded-charset `mojikyo' and `japanese-jef-china3'.
1295         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
1296         (complex_vars_of_mule_charset): Add new coded-charset
1297         `ideograph-cbeta'.
1298
1299         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
1300         (MIN_CHAR_CBETA): New macro.
1301         (MAX_CHAR_CBETA): New macro.
1302
1303 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1304
1305         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
1306         (LEADING_BYTE_JEF_CHINA3): New macro.
1307         (MIN_CHAR_JEF_CHINA3): New macro.
1308         (MAX_CHAR_JEF_CHINA3): Likewise.
1309         (DECODE_CHAR): Fixed.
1310
1311 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1312
1313         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
1314         (Qjapanese_jef_china3): New variable.
1315         (encode_builtin_char_1): Support `japanese-jef-china3'.
1316         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
1317         (complex_vars_of_mule_charset): Add new coded-charset
1318         `japanese-jef-china3'.
1319
1320 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1321
1322         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
1323         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
1324         94^4, 96^3, 96^4, 128^n and 256^n set.
1325         (put_char_table): Use `XCHARSET_CELL_RANGE'.
1326         (map_char_table): Likewise.
1327
1328 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1329
1330         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
1331         UTF-2000.
1332
1333 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1334
1335         * chartab.h (get_char_id_table): New inline function.
1336
1337         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
1338         function.
1339
1340 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1341
1342         * chartab.h (decode_char_table_range): New prototype in XEmacs
1343         UTF-2000.
1344         (put_char_id_table): New inline function in XEmacs UTF-2000.
1345
1346         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
1347         function.
1348         (decode_char_table_range): Delete static declaration in XEmacs
1349         UTF-2000.
1350
1351 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1352
1353         * chartab.c (put_char_id_table): Use `put_char_table'.
1354
1355 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1356
1357         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
1358         (map_over_uint16_byte_table): Likewise.
1359         (map_over_byte_table): Likewise.
1360         (map_char_table): Modify for `map_over_uint8_byte_table',
1361         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
1362         UTF-2000.
1363
1364 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1365
1366         * chartab.c (struct map_char_table_for_charset_arg): New
1367         structure.
1368         (map_char_table_for_charset_fun): New function.
1369         (map_char_table): Use `map_char_table' for encoding_table of
1370         `range->charset'.
1371
1372 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1373
1374         * chartab.c (map_char_table): Check a character is found in
1375         range->charset instead of non default value is defined in
1376         char-table when range is CHARTAB_RANGE_ROW.
1377
1378 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1379
1380         * chartab.c (map_char_id_table): Deleted.
1381         (Fmap_char_attribute): Use `map_char_table' instead of
1382         `map_char_id_table'.
1383
1384 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1385
1386         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
1387         UTF-2000.
1388         (update_syntax_table): Deleted in XEmacs UTF-2000.
1389
1390         * syntax.c (find_defun_start): Use `syntax_table' instead of
1391         `mirror_syntax_table' in XEmacs UTF-2000.
1392         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
1393         UTF-2000.
1394         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
1395         XEmacs UTF-2000.
1396         (Fmatching_paren): Likewise.
1397         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
1398         in XEmacs UTF-2000.
1399         (find_start_of_comment): Likewise.
1400         (find_end_of_comment): Likewise.
1401         (Fforward_comment): Likewise.
1402         (scan_lists): Likewise.
1403         (char_quoted): Likewise.
1404         (Fbackward_prefix_chars): Likewise.
1405         (scan_sexps_forward): Likewise.
1406         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
1407         (update_syntax_table): Likewise.
1408
1409         * search.c (skip_chars): Use `syntax_table' instead of
1410         `mirror_syntax_table' in XEmacs UTF-2000.
1411         (wordify): Likewise.
1412         (Freplace_match): Likewise.
1413
1414         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
1415         `mirror_syntax_table' in XEmacs UTF-2000.
1416         (WORDCHAR_P_UNSAFE): Likewise.
1417         (re_match_2_internal): Likewise.
1418
1419         * font-lock.c (find_context): Use `buf->syntax_table' instead of
1420         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1421
1422         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
1423         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
1424
1425         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
1426         XEmacs UTF-2000.
1427
1428         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
1429         UTF-2000.
1430         (print_char_table): Print `default_value' in XEmacs UTF-2000.
1431         (char_table_description): Delete `mirror_table' in XEmacs
1432         UTF-2000.
1433         (fill_char_table): Don't call `update_syntax_table' in XEmacs
1434         UTF-2000.
1435         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
1436         (Fcopy_char_table): Likewise.
1437         (put_char_table): Don't call `update_syntax_table' in XEmacs
1438         UTF-2000.
1439
1440         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
1441         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1442         (casify_region_internal): Likewise.
1443
1444         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
1445
1446         * buffer.c (common_init_complex_vars_of_buffer): Don't use
1447         `mirror_syntax_table' in XEmacs UTF-2000.
1448
1449         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
1450         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1451         (Fexpand_abbrev): Likewise.
1452
1453 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1454
1455         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
1456
1457 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1458
1459         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
1460         (map_over_uint16_byte_table): Likewise.
1461         (map_over_byte_table): Likewise.
1462         (get_char_id_table): Refer `cit->default_value'.
1463         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1464         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
1465         of character-id ranges.
1466         (mark_char_table): Mark `ct->default_value'.
1467         (char_table_description): Add `default_value'.
1468         (fill_char_table): Use `default_value'.
1469         (decode_char_table_range): Decode `nil' as
1470         `CHARTAB_RANGE_DEFAULT'.
1471         (get_char_id_table): Refer `cit->default_value'.
1472         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1473         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
1474         temporary hack; check value of char-table is bound or not.
1475         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
1476
1477         * chartab.h (struct Lisp_Char_Table): Add new member
1478         `default_value' in XEmacs UTF-2000.
1479         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
1480         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
1481         UTF-2000.
1482
1483 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1484
1485         * chartab.h (Lisp_Char_ID_Table): Deleted.
1486
1487         * chartab.c (char_table_description): Fix typo.
1488         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
1489         `Lisp_Char_ID_Table'.
1490
1491 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1492
1493         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
1494         `CHAR_ID_TABLE_P'.
1495
1496         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
1497         `CHAR_ID_TABLE_P'.
1498
1499         * chartab.h (XCHAR_ID_TABLE): Deleted.
1500         (XSETCHAR_ID_TABLE): Deleted.
1501         (CHAR_ID_TABLE_P): Deleted.
1502
1503         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
1504         `CHAR_ID_TABLE_P'.
1505         (Fget_composite_char): Likewise.
1506         (put_char_table): Likewise.
1507         (add_char_attribute_alist_mapper): Fixed.
1508         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
1509         `CHAR_ID_TABLE_P'.
1510         (Fget_char_attribute): Likewise.
1511         (Fget_char_attribute): Likewise.
1512         (Fmap_char_attribute): Likewise.
1513
1514         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
1515         `CHAR_ID_TABLE_P'.
1516         (encode_char_1): Likewise.
1517
1518 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1519
1520         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
1521         `XCHAR_ID_TABLE'.
1522
1523         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
1524         instead of `XCHAR_ID_TABLE'.
1525         (remove_char_ccs): Likewise.
1526
1527         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
1528         `XCHAR_ID_TABLE'.
1529         (Fget_composite_char): Likewise.
1530         (Fchar_variants): Likewise.
1531         (put_char_table): Likewise.
1532         (add_char_attribute_alist_mapper): Likewise.
1533         (Fchar_attribute_alist): Likewise.
1534         (Fget_char_attribute): Likewise.
1535         (Fput_char_attribute): Likewise.
1536         (Fmap_char_attribute): Likewise.
1537         (Fmap_char_attribute): Likewise.
1538
1539         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
1540         `XCHAR_ID_TABLE'.
1541         (encode_char_1): Likewise.
1542
1543 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1544
1545         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
1546         `Lisp_Char_ID_Table'.
1547         (mark_char_id_table): Deleted.
1548         (print_char_id_table): Likewise.
1549         (char_id_table_equal): Likewise.
1550         (char_id_table_hash): Likewise.
1551         (char_id_table_description): Likewise.
1552         (char_id_table): Likewise.
1553         (make_char_id_table): Use `Fmake_char_table' and
1554         `fill_char_table'.
1555         (get_char_id_table): Use `Lisp_Char_Table' instead of
1556         `Lisp_Char_ID_Table'.
1557         (put_char_id_table): Likewise.
1558         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
1559         `XCHAR_ID_TABLE'.
1560         (Fremove_char_attribute): Likewise.
1561         (syms_of_chartab): Don't define type `char-id-table'.
1562
1563         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
1564         (char_id_table): Likewise.
1565         (GC_CHAR_ID_TABLE_P): Likewise.
1566         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
1567         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
1568         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
1569         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
1570         (get_char_id_table): Use `Lisp_Char_Table' instead of
1571         `Lisp_Char_ID_Table'.
1572         (put_char_id_table_0): Likewise.
1573         (put_char_id_table): Likewise.
1574
1575 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1576
1577         * chartab.h: Lisp_Byte_Table related codes are moved from
1578         chartab.h.
1579
1580         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
1581
1582 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1583
1584         * chartab.h: Don't include "chartab.h".
1585         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
1586         (Lisp_Char_ID_Table): Likewise.
1587         (char_id_table): Likewise.
1588         (XCHAR_ID_TABLE): Likewise.
1589         (XSETCHAR_ID_TABLE): Likewise.
1590         (CHAR_ID_TABLE_P): Likewise.
1591         (GC_CHAR_ID_TABLE_P): Likewise.
1592         (get_char_id_table): Likewise.
1593
1594         * char-ucs.h: Include "chartab.h".
1595         (struct Lisp_Char_ID_Table): Moved to chartab.h.
1596         (Lisp_Char_ID_Table): Likewise.
1597         (char_id_table): Likewise.
1598         (XCHAR_ID_TABLE): Likewise.
1599         (XSETCHAR_ID_TABLE): Likewise.
1600         (CHAR_ID_TABLE_P): Likewise.
1601         (GC_CHAR_ID_TABLE_P): Likewise.
1602         (get_char_id_table): Likewise.
1603
1604 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1605
1606         * chartab.c (copy_uint8_byte_table): New function.
1607         (copy_uint16_byte_table): New function.
1608         (copy_byte_table): New function.
1609         (map_over_uint8_byte_table): Modify to avoid huge numbers of
1610         characters to call.
1611         (map_over_uint16_byte_table): Likewise.
1612         (map_over_byte_table): Likewise.
1613         (get_byte_table): Move prototype to chartab.h.
1614         (put_byte_table): Likewise.
1615         (put_char_id_table_0): Moved to chartab.h.
1616         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
1617         (char_table_entry_equal): Likewise.
1618         (char_table_entry_hash): Likewise.
1619         (char_table_entry_description): Likewise.
1620         (char_table_entry): Likewise.
1621         (make_char_table_entry): Likewise.
1622         (copy_char_table_entry): Likewise.
1623         (get_non_ascii_char_table_value): Likewise.
1624         (map_over_charset_ascii): Likewise.
1625         (map_over_charset_control_1): Likewise.
1626         (map_over_charset_row): Likewise.
1627         (map_over_other_charset): Likewise.
1628         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
1629         (print_char_table): Likewise.
1630         (char_table_equal): Likewise.
1631         (char_table_hash): Likewise.
1632         (char_table_description): Likewise.
1633         (fill_char_table): Likewise.
1634         (Fcopy_char_table): Likewise.
1635         (get_char_table): Likewise.
1636         (Fget_range_char_table): Likewise.
1637         (put_char_table): Likewise.
1638         (map_char_table): Likewise.
1639         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
1640         UTF-2000.
1641
1642 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1643
1644         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
1645         `Vauto_fill_chars' in XEmacs UTF-2000.
1646
1647         * chartab.h (get_byte_table): New prototype [moved from
1648         chartab.c].
1649         (put_byte_table): Likewise [moved from chartab.c].
1650         (put_char_id_table_0): New inline function [moved from chartab.c].
1651         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
1652         (Lisp_Char_Table_Entry): Likewise.
1653         (char_table_entry): Likewise.
1654         (XCHAR_TABLE_ENTRY): Likewise.
1655         (XSETCHAR_TABLE_ENTRY): Likewise.
1656         (CHAR_TABLE_ENTRYP): Likewise.
1657         (CHECK_CHAR_TABLE_ENTRY): Likewise.
1658         (NUM_ASCII_CHARS): Likewise.
1659         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
1660         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
1661
1662 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1663
1664         * chartab.c (get_char_id_table): Change interface.
1665         (put_char_id_table_0): New function.
1666         (put_char_id_table): Change interface; new implementation.
1667         (Fget_composite_char): Modify for interface change of
1668         `get_char_id_table'.
1669         (Fchar_variants): Likewise.
1670         (add_char_attribute_alist_mapper): Likewise.
1671         (Fchar_attribute_alist): Likewise.
1672         (Fget_char_attribute): Likewise.
1673         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
1674         as same as character as the first argument like `put-char-table';
1675         modify for interface change of `put_char_id_table'.
1676         (Fremove_char_attribute): Modify for interface change of
1677         `put_char_id_table'.
1678
1679 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1680
1681         * text-coding.c: Sync up with XEmacs 21.2.41.
1682         (COMPOSE_ADD_CHAR): Modify for interface change of
1683         `get_char_id_table'.
1684
1685         * mule-charset.c (put_char_ccs_code_point): Modify for interface
1686         change of `put_char_id_table'.
1687         (remove_char_ccs): Likewise.
1688
1689         * chartab.h (put_char_id_table): Change interface.
1690
1691         * char-ucs.h (get_char_id_table): Change interface.
1692         (charset_code_point): Modify for interface change of
1693         `get_char_id_table'.
1694         (encode_char_1): Likewise.
1695
1696 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1697
1698         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
1699         argument `ccs'.
1700         (map_over_uint16_byte_table): Likewise.
1701         (map_over_byte_table): Likewise.
1702         (map_char_id_table): Add new argument `range' like
1703         `map_char_table'.
1704         (Fmap_char_attribute): Add new argument `range' like
1705         `Fmap_char_table'.
1706
1707 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1708
1709         * chartab.c (map_over_uint8_byte_table): Change interface of
1710         mapping function to use struct chartab_range instead of Emchar.
1711         (map_over_uint16_byte_table): Likewise.
1712         (map_over_byte_table): Likewise.
1713         (map_char_id_table): Likewise.
1714         (struct slow_map_char_id_table_arg): Deleted.
1715         (slow_map_char_id_table_fun): Deleted.
1716         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
1717         function `slow_map_char_table_fun' instead of struct
1718         `slow_map_char_id_table_arg' and function
1719         `slow_map_char_id_table_fun'.
1720
1721 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1722
1723         * mule-charset.c: Move char-it-table related codes to chartab.c.
1724         (Vutf_2000_version): Moved to chartab.c.
1725         (Fdefine_char): Likewise.
1726         (Ffind_char): Likewise.
1727         (syms_of_mule_charset): Move types `uint8-byte-table',
1728         `uint16-byte-table', `byte-table' and `char-id-table' to
1729         chartab.c; move functions `char_attribute_list,
1730         `find_char_attribute_table, `char_attribute_alist,
1731         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
1732         `map_char_attribute, `define_char, `find_char, `char_variants and
1733         `get_composite_char to chartab.c; move symbols `=>ucs',
1734         `->decomposition', `compat', `isolated', `initial', `medial',
1735         `final', `vertical', `noBreak', `fraction', `super', `sub',
1736         `circle', `square', `wide', `narrow', `small' and `font' to
1737         chartab.c.
1738         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
1739         setting codes for `Vcharacter_composition_table' and
1740         `Vcharacter_variant_table' to chartab.c.
1741         (complex_vars_of_mule_charset): Move setting code for
1742         `Vchar_attribute_hash_table' to chartab.c.
1743
1744         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
1745         (make_char_id_table): New prototype.
1746         (put_char_id_table): Likewise.
1747         (Fget_char_attribute): Likewise.
1748
1749         * chartab.c: Move char-id-table related code from mule-charset.c.
1750         (Vutf_2000_version): Moved from mule-charset.c.
1751
1752         * char-ucs.h (Qucs): New external variable.
1753         (put_char_ccs_code_point): New prototype.
1754         (remove_char_ccs): Likewise.
1755
1756 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1757
1758         * mule-charset.c (Vcharset_ucs_jis): New variable.
1759         (Qucs_jis): Likewise.
1760         (syms_of_mule_charset): Add new symbol `ucs-jis'.
1761         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
1762
1763         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
1764
1765 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1766
1767         * mule-charset.c (map_over_uint8_byte_table): New function.
1768         (map_over_uint16_byte_table): Likewise.
1769         (map_over_byte_table): Likewise.
1770         (map_char_id_table): Likewise.
1771         (slow_map_char_id_table_fun): Likewise.
1772         (Fmap_char_attribute): Likewise.
1773         (syms_of_mule_charset): Add new function `map-char-attribute'.
1774
1775 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1776
1777         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
1778         (syms_of_mule_charset): Add new function `find-char'.
1779
1780 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1781
1782         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
1783         XEmacs UTF-2000.
1784         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
1785         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
1786         XEmacs UTF-2000.
1787         (complex_vars_of_mule_charset): Add new coded-charset
1788         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
1789         `ideograph-gt-pj-*'.
1790
1791         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
1792
1793 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1794
1795         * mule-charset.c (encode_builtin_char_1): Purge codes about
1796         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
1797         {MIN|MAX}_CHAR_HEBREW.
1798         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
1799         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
1800
1801         * char-ucs.h (MIN_CHAR_GREEK): Purged.
1802         (MAX_CHAR_GREEK): Purged.
1803         (MIN_CHAR_CYRILLIC): Purged.
1804         (MAX_CHAR_CYRILLIC): Purged.
1805         (MIN_CHAR_HEBREW): Commented out.
1806         (MAX_CHAR_HEBREW): Likewise.
1807
1808 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1809
1810         * mule-charset.c (Qto_ucs): New variable.
1811         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
1812         (Fdefine_char): Likewise.
1813         (syms_of_mule_charset): Add new symbol `=>ucs'.
1814
1815 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1816
1817         * mule-charset.c (Fdecode_char): Fixed.
1818
1819 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1820
1821         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
1822         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
1823         "tcvn5712-1".
1824
1825 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1826
1827         * mule-charset.c (Vcharset_ucs_big5): New variable.
1828         (Qucs_big5): Likewise.
1829         (syms_of_mule_charset): Add new symbol `ucs-big5'.
1830         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
1831
1832         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
1833
1834 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1835
1836         * mule-charset.c (decode_builtin_char): Check Big5 code range
1837         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
1838
1839 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1840
1841         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
1842         (Qchinese_gb12345): Likewise.
1843         (Fdecode_builtin_char): Fixed.
1844         (syms_of_mule_charset): Add `chinese-gb12345'.
1845         (complex_vars_of_mule_charset): Add coded-charset
1846         `chinese-gb12345'.
1847
1848         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
1849         (LEADING_BYTE_CHINESE_GB12345): New macro.
1850
1851 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1852
1853         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
1854         and `latin-viscii-upper' for `latin-viscii'.
1855
1856 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1857
1858         * mule-charset.c (Fdecode_builtin_char): Comment out
1859         regularization code for ISO-IR GR representation.
1860
1861 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1862
1863         * mule-charset.c (decode_builtin_char): New function; renamed from
1864         `make_builtin_char'; return -1 instead of signal.
1865         (Fdecode_builtin_char): Use `decode_builtin_char'.
1866
1867         * char-ucs.h (decode_builtin_char): New prototype; renamed from
1868         `make_builtin_char'.
1869         (DECODE_CHAR): Use `decode_builtin_char' instead of
1870         `make_builtin_char'; use mapping table of `chinese-big5' for
1871         `chinese-big5-{1,2}'.
1872
1873 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1874
1875         * text-coding.c (char_encode_big5): New function.
1876         (char_finish_big5): Likewise.
1877         (reset_encoding_stream): Use `char_encode_big5' and
1878         `char_finish_big5' for CODESYS_BIG5.
1879         (mule_encode): Don't use `encode_coding_big5'.
1880         (encode_coding_big5): Deleted.
1881
1882 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1883
1884         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
1885         0x81- in XEmacs UTF-2000.
1886         (detect_coding_big5): Likewise.
1887
1888 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1889
1890         * mule-charset.c (Fdefine_char): Don't use a CCS property to
1891         generate character-id if the CCS property does not have
1892         corresponding predefined character.
1893         (make_builtin_char): Return -1 if corresponding predefined
1894         character is not found.
1895         (Fdecode_char): Return nil if corresponding character is not
1896         found.
1897         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
1898         don't map to builtin ucs space.
1899
1900 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1901
1902         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
1903         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
1904
1905 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1906
1907         * mule-charset.c (Vcharset_ideograph_gt): New variable.
1908         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
1909         (Qideograph_gt): Likewise.
1910         (Qideograph_gt_pj_{1..11}): Likewise.
1911         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
1912         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
1913         `ideograph-gt-pj-11'.
1914         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
1915         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
1916         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
1917
1918         * char-ucs.h (LEADING_BYTE_GT): New macro.
1919         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
1920         (MIN_CHAR_GT): Likewise.
1921         (MAX_CHAR_GT): Likewise.
1922
1923 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1924
1925         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
1926         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
1927
1928         * doprnt.c (unsigned_int_converters): Add `c'.
1929         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
1930
1931         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
1932         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
1933         `MIN_CHAR_MOJIKYO'.
1934         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
1935         (MAX_CHAR_MOJIKYO_0): New macro.
1936         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
1937
1938 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1939
1940         * mule-charset.c (Fdefine_char): Delete cemented out code.
1941         (encode_builtin_char_1): Modify for new allocation of builtin
1942         Mojikyo characters.
1943
1944         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
1945
1946 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1947
1948         * mule-charset.c (Vcharset_ucs_cns): New variable.
1949         (Qucs_cns): New variable.
1950         (syms_of_mule_charset): Add new symbol `ucs-cns'.
1951         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
1952
1953 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1954
1955         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
1956
1957 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
1958
1959         * search.c (search_buffer): Make `charset_base_code' as
1960         character-id >> 6 to eliminate the corresponding last byte in
1961         UTF-8 representation [I'm not sure it is right thing].
1962         (boyer_moore): Likewise.
1963
1964 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
1965
1966         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
1967         representation in MULE.
1968
1969 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1970
1971         * text-coding.c (Fmake_coding_system): Use
1972         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
1973         `EXTERNAL_PROPERTY_LIST_LOOP'.
1974
1975 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1976
1977         * text-coding.c (decode_output_utf8_partial_char): New function.
1978         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
1979
1980 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1981
1982         * text-coding.c (decode_coding_utf8): Output original byte
1983         sequence if it is broken; change order of conditions.
1984
1985         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
1986         of conditions.
1987
1988         * mb-multibyte.h (BYTE_ASCII_P):
1989         Use bit ops for char-signedness safety.
1990         (BYTE_C0_P): Use bit ops for char-signedness safety.
1991         (BYTE_C1_P): Use bit ops for char-signedness safety.
1992
1993         * character.h: (XCHAR_OR_CHAR_INT):
1994         Always use inline function.
1995         Remove redundant type checking assert() - XINT will abort quite
1996         nicely.
1997
1998 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1999
2000         * text-coding.c: (Fencode_shift_jis_char):
2001         (Fencode_big5_char):
2002         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
2003         Replace 0 with '\0' when working with bytes.
2004         Replace initial "(" with "\(" in docstrings.
2005
2006         (Fmake_coding_system):
2007         When type is ccl and value is vector, register it with a proper
2008         symbol.  And checks whether the given ccl program is valid.
2009         (mule_decode): When calling ccl_driver, if src indicates
2010         NULL pointer, set an empty string instead.
2011         (mule_encode): Likewise.
2012
2013         (detect_eol_type):
2014         (detect_coding_sjis):
2015         (decode_coding_sjis):
2016         (detect_coding_big5):
2017         (decode_coding_big5):
2018         (detect_coding_ucs4):
2019         (decode_coding_ucs4):
2020         (detect_coding_utf8):
2021         (decode_coding_utf8):
2022         (detect_coding_iso2022):
2023         (decode_coding_iso2022):
2024         (decode_coding_no_conversion):
2025         (mule_decode):
2026         Make all detecting and decoding functions take an Extbyte * arg.
2027         (text_encode_generic):
2028         (encode_coding_big5):
2029         (encode_coding_no_conversion):
2030         (mule_encode):
2031         Make all encoding functions take a Bufbyte * arg.
2032         Use size_t instead of unsigned int for memory sizes.
2033         Only cast to unsigned char whenever dereferencing Extbyte *.
2034
2035         (struct lrecord_description fcd_description_1): Use countof.
2036         (complex_vars_of_file_coding):
2037         Use countof instead of sizeof.
2038         Use CHECK_NATNUM instead of CHECK_INT.
2039
2040 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2041
2042         * mule-charset.c (Fget_char_attribute): Add new optional argument
2043         `default-value'.
2044         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
2045         (remove_char_ccs): Likewise.
2046
2047 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2048
2049         * text-coding.c (char_encode_shift_jis): New implementation in
2050         UTF-2000.
2051         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
2052         ...)'.
2053
2054         * mule-charset.c (Vcharset_chinese_big5): New variable in
2055         UTF-2000.
2056         (Qchinese_big5): New variable in UTF-2000.
2057         (BIG5_SAME_ROW): New macro in UTF-2000.
2058         (make_builtin_char): Use builtin characters of
2059         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
2060         characters of `Vcharset_chinese_big5'.
2061         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
2062         (complex_vars_of_mule_charset): Add new coded-charset
2063         `chinese-big5' in UTF-2000.
2064
2065         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
2066         (Vcharset_chinese_big5): New external variable declaration.
2067         (Vcharset_japanese_jisx0208_1990): Likewise.
2068
2069 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2070
2071         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
2072         function.
2073         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
2074
2075 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2076
2077         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
2078         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
2079         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
2080         `mojikyo-pj-*'.
2081
2082 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2083
2084         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
2085
2086 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2087
2088         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2089         to 0.17.
2090
2091 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2092
2093         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
2094         for `CHARSET_BY_ATTRIBUTES'.
2095         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2096         `CHARSET_BY_ATTRIBUTES'.
2097
2098         * text-coding.c (struct decoding_stream): Rename member `CH' to
2099         `CPOS'.
2100         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
2101         (decode_coding_sjis): Likewise.
2102         (decode_coding_big5): Likewise.
2103         (decode_coding_ucs4): Likewise.
2104         (decode_coding_utf8): Likewise.
2105         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2106         `CHARSET_BY_ATTRIBUTES'.
2107         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
2108         `str->counter'; decode 3, 4 bytes sets.
2109         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
2110         sets.
2111         (decode_coding_no_conversion): Use `str->cpos' instead of
2112         `str->ch'.
2113
2114         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
2115         (Qmojikyo_2022_1): New variable.
2116         (make_charset): Don't use `CHARSET_TYPE_*'.
2117         (range_charset_code_point): Support coded-charset
2118         `mojikyo-2022-1'.
2119         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
2120         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
2121         `CHARSET_BY_ATTRIBUTES'.
2122         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
2123         `CHARSET_BY_ATTRIBUTES'.
2124         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
2125         (complex_vars_of_mule_charset): Add new coded-charset
2126         `mojikyo-2022-1'.
2127
2128         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
2129         interface; changed to inline function.
2130
2131         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
2132         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
2133         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
2134         (CHARSET_TYPE_94): Deleted.
2135         (CHARSET_TYPE_94X94): Deleted.
2136         (CHARSET_TYPE_96): Deleted.
2137         (CHARSET_TYPE_96X96): Deleted.
2138         (CHARSET_TYPE_128): Deleted.
2139         (CHARSET_TYPE_128X128): Deleted.
2140         (CHARSET_TYPE_256): Deleted.
2141         (CHARSET_TYPE_256X256): Deleted.
2142         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
2143         to inline function.
2144         (DECODE_MOJIKYO_2022): New inline function.
2145         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
2146         `Vcharset_mojikyo_2022_1'.
2147
2148 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2149
2150         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
2151         instead of `EQ'.
2152         (put_byte_table): Likewise.
2153         (char_id_table_equal): Use `get_byte_table' [new implementation].
2154
2155 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2156
2157         * mule-charset.c: Include <limits.h> in UTF-2000.
2158         (BT_UINT8_MIN): New macro in UTF-2000.
2159         (BT_UINT8_MAX): New macro in UTF-2000.
2160         (BT_UINT8_t): New macro in UTF-2000.
2161         (BT_UINT8_nil): New macro in UTF-2000.
2162         (BT_UINT8_unbound): New macro in UTF-2000.
2163         (INT_UINT8_P): New inline function in UTF-2000.
2164         (UINT8_VALUE_P): New inline function in UTF-2000.
2165         (UINT8_ENCODE): New inline function in UTF-2000.
2166         (UINT8_DECODE): New inline function in UTF-2000.
2167         (mark_uint8_byte_table): New function in UTF-2000.
2168         (print_uint8_byte_table): New function in UTF-2000.
2169         (uint8_byte_table_equal): New function in UTF-2000.
2170         (uint8_byte_table_hash): New function in UTF-2000.
2171         (make_uint8_byte_table): New function in UTF-2000.
2172         (uint8_byte_table_same_value_p): New function in UTF-2000.
2173         (BT_UINT16_MIN): New macro in UTF-2000.
2174         (BT_UINT16_MAX): New macro in UTF-2000.
2175         (BT_UINT16_t): New macro in UTF-2000.
2176         (BT_UINT16_nil): New macro in UTF-2000.
2177         (BT_UINT16_unbound): New macro in UTF-2000.
2178         (INT_UINT16_P): New inline function in UTF-2000.
2179         (UINT16_VALUE_P): New inline function in UTF-2000.
2180         (UINT16_ENCODE): New inline function in UTF-2000.
2181         (UINT16_DECODE): New inline function in UTF-2000.
2182         (UINT8_TO_UINT16): New inline function in UTF-2000.
2183         (mark_uint16_byte_table): New function in UTF-2000.
2184         (print_uint16_byte_table): New function in UTF-2000.
2185         (uint16_byte_table_equal): New function in UTF-2000.
2186         (uint16_byte_table_hash): New function in UTF-2000.
2187         (make_uint16_byte_table): New function in UTF-2000.
2188         (uint16_byte_table_same_value_p): New function in UTF-2000.
2189         (print_byte_table): New function in UTF-2000.
2190         (byte-table): Use `print_byte_table' as printer.
2191         (make_byte_table): Delete second argument `older'.
2192         (byte_table_same_value_p): New function in UTF-2000.
2193         (copy_byte_table): Deleted.
2194         (get_byte_table): New function in UTF-2000.
2195         (put_byte_table): New function in UTF-2000.
2196         (print_char_id_table): New function in UTF-2000.
2197         (char-id-table): Use `print_char_id_table' as printer.
2198         (make_char_id_table): Delete second argument `older'.
2199         (get_char_id_table): Use `get_byte_table [new implementation].
2200         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
2201         implementation].
2202         (Ffind_char_attribute_table): New function in UTF-2000.
2203         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2204         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
2205         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
2206         (syms_of_mule_charset): Add new function
2207         `find-char-attribute-table' in UTF-2000.
2208
2209         * lrecord.h (enum lrecord_type): Add
2210         `lrecord_type_uint16_byte_table' and
2211         `lrecord_type_uint8_byte_table'.
2212
2213         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
2214         (Lisp_Uint8_Byte_Table): New type.
2215         (XUINT8_BYTE_TABLE): New macro.
2216         (XSETUINT8_BYTE_TABLE): New macro.
2217         (UINT8_BYTE_TABLE_P): New macro.
2218         (GC_UINT8_BYTE_TABLE_P): New macro.
2219         (struct Lisp_Uint16_Byte_Table): New structure.
2220         (Lisp_Uint16_Byte_Table): New type.
2221         (XUINT16_BYTE_TABLE): New macro.
2222         (XSETUINT16_BYTE_TABLE): New macro.
2223         (UINT16_BYTE_TABLE_P): New macro.
2224         (GC_UINT16_BYTE_TABLE_P): New macro.
2225
2226 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2227
2228         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
2229         (Vcharacter_ideographic_strokes_table): Deleted.
2230         (Vcharacter_total_strokes_table): Deleted.
2231         (Vcharacter_morohashi_daikanwa_table): Deleted.
2232         (Vcharacter_decomposition_table): Deleted.
2233         (Qname): Deleted because it is duplicated.
2234         (Qideographic_radical): Deleted.
2235         (Qideographic_strokes): Deleted.
2236         (Qtotal_strokes): Deleted.
2237         (Qmorohashi_daikanwa): Deleted.
2238         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
2239         `ideographic-radical', `ideographic-strokes', `total-strokes',
2240         `morohashi-daikanwa' and `->decomposition'.
2241         (Fget_char_attribute): Likewise.
2242         (Fput_char_attribute): Likewise; use `make-vector' instead of
2243         `make_older_vector' for `->decomposition' value.
2244         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
2245         `ideograph-daikanwa'.
2246         (syms_of_mule_charset): Delete builtin symbols `name',
2247         `ideographic-radical', `ideographic-strokes', `total-strokes' and
2248         `morohashi-daikanwa'.
2249         (vars_of_mule_charset): Don't setup
2250         `Vcharacter_ideographic_radical_table',
2251         `Vcharacter_ideographic_strokes_table',
2252         `Vcharacter_total_strokes_table',
2253         `Vcharacter_morohashi_daikanwa_table' and
2254         `Vcharacter_decomposition_table'.
2255
2256 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2257
2258         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
2259         `make_older_vector', `make_vector_newer_1' and
2260         `make_vector_newer'.
2261
2262         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
2263         `make_older_vector' and `make_vector_newer'.
2264
2265         * config.h.in (HAVE_GGC): New macro.
2266
2267 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2268
2269         * mule-charset.c (struct char_attribute_list_closure): New
2270         structure in UTF-2000.
2271         (add_char_attribute_to_list_mapper): New function in UTF-2000.
2272         (Fchar_attribute_list): Likewise.
2273         (Fset_charset_mapping_table): Use `make_vector_newer'.
2274         (Fdecode_builtin_char): New function in UTF-2000.
2275         (syms_of_mule_charset): Add new function `char-attribute-list' and
2276         `decode-builtin-char' in UTF-2000.
2277
2278         * lisp.h (make_vector_newer): New prototype.
2279
2280         * alloc.c (make_vector_newer_1): New function.
2281         (make_vector_newer): New function.
2282
2283 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2284
2285         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
2286         50100)'.
2287
2288 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2289
2290         * mule-charset.c (Vchar_attribute_hash_table): New variable.
2291         (Vcharacter_attribute_table): Deleted.
2292         (Vcharacter_name_table): Deleted.
2293         (put_char_attribute): Deleted.
2294         (remove_char_attribute): Deleted.
2295         (struct char_attribute_alist_closure): New structure.
2296         (add_char_attribute_alist_mapper): New function.
2297         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
2298         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
2299         (Fget_char_attribute): Likewise.
2300         (Fput_char_attribute): Likewise.
2301         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
2302         of `remove_char_attribute'.
2303         (Fdefine_char): Return character.
2304         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
2305         and `Vcharacter_name_table'.
2306         (complex_vars_of_mule_charset): Likewise
2307         `Vchar_attribute_hash_table'.
2308
2309 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2310
2311         * character.h (CHARC_CHARSET): New macro.
2312         (CHARC_CHARSET_ID): New macro.
2313         (CHARC_CODE_POINT): New macro.
2314         (CHARC_COLUMNS): New macro.
2315         (CHARC_TO_CHAR): New inline function.
2316         (CHARC_EQ): New inline function.
2317         (CHARC_ASCII_EQ): New inline function.
2318         (CHARC_IS_SPACE): New inline function.
2319         (ASCII_TO_CHARC): New inline function.
2320
2321         * char-ucs.h (encode_char_2): Deleted.
2322         (ENCODE_CHAR): Use `encode_char_1' again.
2323         (breakup_char_1): Likewise.
2324         (CHAR_TO_CHARC): New inline function.
2325
2326         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
2327
2328 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2329
2330         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
2331         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
2332         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
2333         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
2334         (create_string_text_block): Use `CHARC_ASCII_EQ' and
2335         `CHARC_IS_SPACE'.
2336         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
2337
2338         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
2339         `CHARC_CODE_POINT'.
2340         (x_output_display_block): Use `CHARC_CHARSET' and
2341         `CHARC_ASCII_EQ'.
2342
2343         * redisplay-tty.c (tty_output_display_block): Use
2344         `CHARC_ASCII_EQ'.
2345         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
2346
2347         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
2348
2349         * insdel.c (find_charsets_in_charc_string): Use
2350         `CHARC_CHARSET_ID'.
2351         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
2352         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
2353         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
2354         (convert_charc_string_into_malloced_string): Likewise.
2355
2356 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2357
2358         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
2359         instead of <Emchar_dynarr *> for buf; use
2360         `convert_bufbyte_string_into_charc_dynarr' instead of
2361         `convert_bufbyte_string_into_emchar_dynarr'; use
2362         `find_charsets_in_charc_string' instead of
2363         `find_charsets_in_emchar_string'.
2364
2365         * redisplay.h:
2366         - Include "character.h".
2367         (struct rune): New member `cglyph'; delete member `chr'.
2368
2369         * redisplay.c (redisplay_text_width_charc_string): New function;
2370         delete `redisplay_text_width_emchar_string'.
2371         (rtw_charc_dynarr): New variable; renamed from
2372         `rtw_emchar_dynarr'.
2373         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
2374         `rtw_emchar_dynarr'; use
2375         `convert_bufbyte_string_into_charc_dynarr' instead of
2376         `convert_bufbyte_string_into_emchar_dynarr'; use
2377         `redisplay_text_width_charc_string' instead of
2378         `redisplay_text_width_emchar_string'.
2379         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
2380         instead of `rtw_emchar_dynarr'; use
2381         `convert_bufbyte_string_into_charc_dynarr' instead of
2382         `convert_bufbyte_string_into_emchar_dynarr'.
2383         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
2384         `redisplay_text_width_charc_string' instead of
2385         `redisplay_text_width_emchar_string'.
2386         (create_text_block): Modify for <struct rune> change.
2387         (generate_formatted_string_db): Likewise.
2388         (create_string_text_block): Likewise.
2389         (pixel_to_glyph_translation): Likewise.
2390
2391         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
2392         instead of <const Emchar *>.
2393         (x_text_width): Likewise.
2394         (x_output_display_block): Use <Charc_dynarr *> instead
2395         <Emchar_dynarr *>; modify for <structure rune> change.
2396         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
2397         *>.
2398
2399         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
2400         <const Emchar *>; use `charc_string_displayed_columns' instead of
2401         `emchar_string_displayed_columns'.
2402         (tty_output_display_block): Use <Charc_dynarr *> instead of
2403         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
2404         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
2405         (tty_output_charc_dynarr_dynarr): New variable; renamed from
2406         `tty_output_emchar_dynarr_dynarr'.
2407         (tty_output_charc_dynarr): New function; delete
2408         `tty_output_charc_dynarr'.
2409
2410         * redisplay-output.c (compare_runes): Modify for `struct rune'.
2411         (redisplay_output_layout): Use <Charc_dynarr *> instead of
2412         <Emchar_dynarr *> for buf; use
2413         `convert_bufbyte_string_into_charc_dynarr' instead of
2414         `convert_bufbyte_string_into_emchar_dynarr'.
2415
2416         * frame.c (title_string_charc_dynarr): New variable; renamed from
2417         `title_string_emchar_dynarr'.
2418         (generate_title_string): Use `title_string_charc_dynarr' instead
2419         of `title_string_emchar_dynarr'; use
2420         `convert_charc_string_into_malloced_string' instead of
2421         `convert_emchar_string_into_malloced_string'.
2422         (init_frame): Use `title_string_charc_dynarr' instead of
2423         `title_string_emchar_dynarr'.
2424
2425         * console.h:
2426         - Include "character.h".
2427         (struct console_methods): Use <const Charc *> instead of <const
2428         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
2429         <Emchar_dynarr *> in output_string_method.
2430
2431         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
2432         <Emchar_dynarr *>.
2433
2434         * console-stream.c (stream_text_width): Use <const Charc *>
2435         instead of <const Emchar *>.
2436
2437         * character.h (Charc_dynarr): New type.
2438
2439         * char-ucs.h (structure Charc): New structure; define new type
2440         `Charc'.
2441
2442         * char-lb.h (DECODE_CHAR): New inline function.
2443         (encode_char_1): New inline function.
2444         (ENCODE_CHAR): New macro.
2445         (structure Charc): New structure; define new type `Charc'.
2446
2447         * char-1byte.h (Vcharset_control_1): New macro.
2448         (Vcharset_latin_iso8859_1): New macro.
2449         (DECODE_CHAR): New inline function.
2450         (encode_char_1): New inline function.
2451         (ENCODE_CHAR): New macro.
2452         (structure Charc): New structure; define new type `Charc'.
2453
2454         * insdel.c (find_charsets_in_charc_string): New function; delete
2455         `find_charsets_in_emchar_string'.
2456         (charc_string_displayed_columns): New function; delete
2457         `emchar_string_displayed_columns'.
2458         (convert_bufbyte_string_into_charc_dynarr): New function; delete
2459         `convert_bufbyte_string_into_emchar_dynarr'.
2460         (convert_charc_string_into_bufbyte_dynarr): New function; delete
2461         `convert_charc_string_into_bufbyte_dynarr'.
2462         (convert_charc_string_into_malloced_string): New function; delete
2463         `convert_charc_string_into_malloced_string'.
2464
2465         * buffer.h (find_charsets_in_charc_string): New prototype; delete
2466         `find_charsets_in_emchar_string'.
2467         (charc_string_displayed_columns): New prototype; delete
2468         `emchar_string_displayed_columns'.
2469         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
2470         `convert_charc_string_into_bufbyte_dynarr'.
2471         (convert_charc_string_into_malloced_string): New prototype; delete
2472         `convert_charc_string_into_malloced_string'.
2473
2474 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2475
2476         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
2477
2478 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2479
2480         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
2481
2482         * char-ucs.h: Use <short> for <Charset_ID>.
2483
2484         * mule-charset.h, char-1byte.h: Use <unsigned char> for
2485         <Charset_ID>.
2486
2487 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2488
2489         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2490         to 0.16.
2491
2492 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2493
2494         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
2495         variable.
2496         (Qmorohashi_daikanwa): New variable.
2497         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
2498         for `morohashi-daikanwa' attribute.
2499         (Fget_char_attribute): Likewise.
2500         (Fput_char_attribute): Likewise.
2501         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
2502         has the same value of `ideograph-daikanwa'.
2503         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
2504         (vars_of_mule_charset): Setup
2505         `Vcharacter_morohashi_daikanwa_table'.
2506
2507 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2508
2509         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
2510         attributes.
2511         (add_charset_to_list_mapper): Add `key' instead of
2512         `XCHARSET_NAME (value)' to return aliases.
2513
2514 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2515
2516         * mule-charset.c (Vcharacter_ideographic_radical_table): New
2517         variable.
2518         (Vcharacter_ideographic_strokes_table): New variable.
2519         (Qideographic_radical): New variable.
2520         (Qideographic_strokes): New variable.
2521         (Fchar_attribute_alist): Use
2522         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
2523         attribute; use `Vcharacter_ideographic_strokes_table' for
2524         `ideographic-strokes' attribute.
2525         (Fget_char_attribute): Likewise.
2526         (Fput_char_attribute): Likewise.
2527         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
2528         `ideographic-strokes'.
2529         (vars_of_mule_charset): Setup
2530         `Vcharacter_ideographic_radical_table' and
2531         `Vcharacter_ideographic_strokes_table'.
2532
2533 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2534
2535         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
2536         (Qtotal_strokes): New variable.
2537         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
2538         `total-strokes' attribute.
2539         (Fget_char_attribute): Likewise.
2540         (Fput_char_attribute): Likewise.
2541         (syms_of_mule_charset): Add new symbol `total-strokes'.
2542         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
2543
2544 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2545
2546         * mule-charset.c (Vcharacter_decomposition_table): New variable.
2547         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
2548         are found.
2549         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
2550         `->decomposition' attribute.
2551         (Fput_char_attribute): Likewise.
2552         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
2553
2554 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2555
2556         * mule-charset.c (decoding_table_check_elements): New function.
2557         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
2558
2559 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2560
2561         * mule-charset.c (Fset_charset_mapping_table): Use
2562         `put_char_ccs_code_point'.
2563
2564 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2565
2566         * mule-charset.c (decoding_table_put_char): New inline function.
2567         (put_char_ccs_code_point): Use `decoding_table_put_char'.
2568
2569 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2570
2571         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
2572         (XCHARSET_BYTE_SIZE): New macro.
2573         (decoding_table_remove_char): New inline function.
2574         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
2575         `decoding_table_remove_char'.
2576         (remove_char_ccs): Use `decoding_table_remove_char'.
2577         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
2578
2579 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2580
2581         * mule-charset.c (Vcharacter_name_table): New variable.
2582         (Qname): New variable.
2583         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
2584         attribute.
2585         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
2586         `Vcharacter_name_table' for `name' attribute.
2587         (Fremove_char_attribute): Use function `remove_char_ccs'.
2588         (put_char_ccs_code_point): New function.
2589         (remove_char_ccs): New function.
2590         (syms_of_mule_charset): Add new symbol `name'.
2591         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
2592
2593 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2594
2595         * mule-charset.c (make_byte_table): Add new argument `older'.
2596         (make_char_id_table): Likewise.
2597         (copy_char_id_table): Comment out because it is not used.
2598         (put_char_id_table): Modify for `make_byte_table'.
2599         (Fput_char_attribute): Make encoding_table as older object;
2600         inherit older bit of `Vcharacter_composition_table'.
2601         (mark_charset): Don't mark `cs->encoding_table'.
2602         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
2603         normal object; make `Vcharacter_composition_table' as an older
2604         object; delete staticpro for `Vcharacter_composition_table'; make
2605         `Vcharacter_variant_table' as a normal object.
2606
2607         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
2608         (mark_object): Don't check older object in UTF-2000.
2609
2610         * lrecord.h (struct lrecord_header): Add new member `older' in
2611         UTF-2000.
2612         (set_lheader_implementation): Setup `SLI_header->older' in
2613         UTF-2000.
2614         (set_lheader_older_implementation): New macro in UTF-2000.
2615         (OLDER_RECORD_P): New macro in UTF-2000.
2616         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
2617         (alloc_older_lcrecord): New prototype in UTF-2000.
2618         (alloc_older_lcrecord_type): New macro in UTF-2000.
2619
2620 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2621
2622         * mule-charset.c (byte_table_description): Use
2623         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
2624         (char_id_table_description): Delete bogus `, 1'.
2625         (Fget_char_attribute): Refer encoding_table of each coded-charset
2626         to get value of coded-charset attribute of a character.
2627         (Fput_char_attribute): Use `make_older_vector' instead of
2628         `make_vector'; use encoding_table of each coded-charset to store
2629         value of coded-charset attribute of a character.
2630         (Fremove_char_attribute): Use encoding_table of each coded-charset
2631         to store value of coded-charset attribute of a character.
2632         (mark_charset): Mark `cs->encoding_table'; don't mark
2633         `cs->decoding_table'.
2634         (charset_description): Add description of new member
2635         `encoding_table'.
2636         (make_charset): Initialize `encoding_table'.
2637
2638         * char-ucs.h (struct Lisp_Charset): Add new member
2639         `encoding_table'.
2640         (CHARSET_ENCODING_TABLE): New macro.
2641         (XCHARSET_ENCODING_TABLE): New macro.
2642         (charset_code_point): New implementation.
2643         (encode_char_1): Likewise.
2644
2645         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
2646         (disksave_object_finalization_1): Call finalizers of
2647         `all_older_lcrecords' in UTF-2000.
2648         (make_older_vector): New function in UTF-2000.
2649         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
2650         UTF-2000.
2651
2652         * lisp.h (make_older_vector): New prototype in UTF-2000.
2653
2654 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2655
2656         * lrecord.h (enum lrecord_type): Rename
2657         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
2658
2659         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
2660         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
2661         `get_char_code_table'.
2662
2663         * mule-charset.c (mark_char_id_table): Renamed from
2664         `mark_char_code_table'.
2665         (char_id_table_equal): Renamed from `char_code_table_equal'.
2666         (char_id_table_hash): Renamed from `char_code_table_hash'.
2667         (make_char_id_table): Renamed from `make_char_code_table'.
2668         (copy_char_id_table): Renamed from `copy_char_code_table'.
2669         (get_char_id_table): Renamed from `get_char_code_table'.
2670         (put_char_id_table): Renamed from `put_char_code_table'.
2671         (to_char_id): Renamed from `to_char_code'.
2672
2673         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
2674         `Lisp_Char_Code_Table'.
2675         (char_id_table): Renamed from `char_code_table'.
2676         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
2677         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
2678         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
2679         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
2680         (get_char_id_table): Renamed from `get_char_code_table'.
2681
2682 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2683
2684         * lrecord.h (enum lrecord_type): Rename
2685         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
2686
2687         * mule-charset.c (mark_byte_table): Renamed from
2688         `mark_char_byte_table'.
2689         (byte_table_equal): Renamed from `char_byte_table_equal'.
2690         (byte_table_hash): Renamed from `byte_table_hash'.
2691         (make_byte_table): Renamed from `make_byte_table'.
2692         (copy_byte_table): Renamed from `copy_char_byte_table'.
2693
2694         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
2695         `Lisp_Char_Byte_Table'.
2696         (byte_table): Renamed from `char_byte_table'.
2697         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
2698         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
2699         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
2700         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
2701
2702 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2703
2704         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
2705         (dfc_convert_to_internal_format): Likewise.
2706         
2707         * text-coding.c (Fcoding_system_canonical_name_p): New function.
2708         * text-coding.c (Fcoding_system_alias_p): New function.
2709         * text-coding.c (Fcoding_system_aliasee): New function.
2710         * text-coding.c (append_suffix_to_symbol): New function.
2711         * text-coding.c (dangling_coding_system_alias_p): New function.
2712         * text-coding.c (Ffind_coding_system):
2713         * text-coding.c (Fcopy_coding_system):
2714         * text-coding.c (encode_coding_no_conversion):
2715         * text-coding.c (syms_of_file_coding):
2716         * text-coding.c (vars_of_file_coding):
2717         Rewrite coding system alias code.
2718         Allow nested aliases, like symbolic links.
2719         Allow redefinition of coding system aliases.
2720         Prevent existence of dangling coding system aliases.
2721         Eliminate convert_to_external_format.
2722         Eliminate convert_to_internal_format.
2723         
2724         * text-coding.c: Change enum eol_type to eol_type_t.
2725
2726 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2727
2728         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
2729         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2730
2731         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
2732         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2733
2734 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2735
2736         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
2737         `ideograph-daikanwa'.
2738
2739         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
2740         (Vcharset_ucs_bmp): Likewise.
2741         (Vcharset_mojikyo): Add new extern variable definition.
2742         (Vcharset_latin_iso8859_2): Deleted because it is not used.
2743         (Vcharset_latin_iso8859_3): Likewise.
2744         (Vcharset_latin_iso8859_4): Likewise.
2745         (Vcharset_latin_iso8859_9): Likewise.
2746         (Vcharset_latin_viscii_lower): Likewise.
2747         (Vcharset_latin_viscii_upper): Likewise.
2748         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
2749         `mojikyo' code-point is used to decode.
2750         (encode_char_2): New function [to convert `mojikyo' code-point to
2751         Mojikyo font encoding].
2752         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
2753         (breakup_char_1): Likewise.
2754         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
2755
2756 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2757
2758         * text-coding.c (Fmake_coding_system): Add document about
2759         `disable-composition' property.
2760
2761 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2762
2763         * text-coding.c (Qdisable_composition): New variable; delete
2764         `Qcomposite'.
2765         (Fmake_coding_system): Add new property `disable-composite';
2766         delete property `composite'.
2767         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
2768         instead of `!CODING_SYSTEM_COMPOSITE'.
2769         (syms_of_file_coding): Add new symbol `disable-composition';
2770         delete symbol `composite'.
2771
2772         * file-coding.h (struct Lisp_Coding_System): Add
2773         `disable_composition'; delete `enable_composition'.
2774         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2775         `CODING_SYSTEM_COMPOSITE'.
2776         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2777         `XCODING_SYSTEM_COMPOSITE'.
2778
2779 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2780
2781         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2782         to 0.15.
2783
2784 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2785
2786         * text-coding.c (Qcomposite): New variable.
2787         (Fmake_coding_system): Add new property `composite'.
2788         (struct decoding_stream): Add `combined_char_count',
2789         `combined_chars' and `combining_table' in UTF-2000.
2790         (COMPOSE_FLUSH_CHARS): New macro.
2791         (COMPOSE_ADD_CHAR): New macro.
2792         (reset_decoding_stream): Reset `str->combined_char_count' and
2793         `str->combining_table' in UTF-2000.
2794         (decode_coding_iso2022): Modify for character-decomposition.
2795         (syms_of_file_coding): Add new symbol `composite'.
2796
2797 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2798
2799         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
2800         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
2801         of `Vcharacter_composition_table' if `->decomposition' property
2802         has only 1 element.
2803         (Qlatin_tcvn5712): New variable.
2804         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
2805         (complex_vars_of_mule_charset): Add new coded-charset
2806         `latin-tcvn5712'.
2807
2808         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
2809
2810 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2811
2812         * file-coding.h (struct Lisp_Coding_System): Add
2813         `enable_composition'.
2814         (CODING_SYSTEM_COMPOSITE): New macro.
2815         (XCODING_SYSTEM_COMPOSITE): New macro.
2816
2817 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
2818
2819         * mule-canna.c (c2mu): Fix problem with UTF-2000.
2820
2821 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
2822
2823         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
2824         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
2825
2826 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
2827
2828         * mule-charset.c (Vcharset_mojikyo): New variable.
2829         (Fdefine_char): Don't use coded-charset which does not have
2830         non-builtin character range to allocate character-id.
2831         (Qmojikyo): New variable.
2832         (syms_of_mule_charset): Add new symbol `mojikyo'.
2833         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
2834
2835         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
2836         (LEADING_BYTE_MOJIKYO): New macro.
2837         (MIN_CHAR_MOJIKYO): New macro.
2838         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
2839         (MAX_CHAR_MOJIKYO): New macro.
2840
2841 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
2842
2843         * mule-charset.c (remove_char_attribute): Fixed.
2844
2845 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
2846
2847         * mule-charset.c (remove_char_attribute): New function.
2848         (Fremove_char_attribute): New function.
2849         (encode_builtin_char_1): Comment out builtin-support for
2850         greek-iso8859-7 and cyrillic-iso8859-5.
2851         (Fdecode_char): Check `code' is an integer.
2852         (syms_of_mule_charset): Add `remove-char-attribute'.
2853         (MIN_CHAR_GREEK): Deleted.
2854         (MAX_CHAR_GREEK): Likewise.
2855         (MIN_CHAR_CYRILLIC): Likewise.
2856         (MAX_CHAR_CYRILLIC): Likewise.
2857         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
2858         MAX_CHAR_GREEK for `greek-iso8859-7'.
2859
2860         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
2861         (MAX_CHAR_GREEK): Likewise.
2862         (MIN_CHAR_CYRILLIC): Likewise.
2863         (MAX_CHAR_CYRILLIC): Likewise.
2864
2865 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
2866
2867         * mule-charset.c (Fdefine_char): Fix problem when new code-point
2868         format is used without `ucs' property.
2869         (Fdecode_char): Fix problem with GR representation.
2870         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
2871         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
2872
2873 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
2874
2875         * mule-charset.c (make_builtin_char): New function.
2876         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
2877         (Fset_charset_mapping_table): Modify for new representation of
2878         code-point.
2879         (Fdecode_char): New function.
2880         (syms_of_mule_charset): Add new builtin function `decode-char' in
2881         UTF-2000.
2882
2883         * char-ucs.h (make_builtin_char): New prototype.
2884         (DECODE_CHAR): New inline function.
2885         (MAKE_CHAR): Use `DECODE_CHAR'.
2886
2887 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
2888
2889         * text-coding.c (parse_charset_conversion_specs): Use
2890         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
2891         `XCHARSET_TYPE'.
2892         (iso2022_designate): Likewise.
2893
2894         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
2895         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
2896
2897         * mule-charset.c (Vcharset_ucs): New variable.
2898         (print_charset): Change design; use `CHARSET_CHARS' and
2899         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
2900         (make_charset): Change signature to specify `chars' and
2901         `dimension' instead of `type'.
2902         (range_charset_code_point): Modify for 256^n-set.
2903         (encode_builtin_char_1): Encode as `ucs' in default.
2904         (Fmake_charset): Modify for `make_charset'.
2905         (Fmake_reverse_direction_charset): Likewise.
2906         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
2907         UTF-2000.
2908         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
2909         for `make_charset'.
2910
2911         * char-ucs.h (Vcharset_ucs): New variable.
2912         (LEADING_BYTE_UCS): New macro.
2913         (struct Lisp_Charset): Delete `type'; change type of `dimension'
2914         and `chars' to `unsigned short' from `unsigned int'.
2915         (CHARSET_TYPE): Deleted.
2916         (XCHARSET_TYPE): Deleted.
2917
2918 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
2919
2920         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
2921
2922         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
2923         (ENCODE_CHAR): New macro.
2924
2925 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
2926
2927         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2928         to 0.14 (Kawachi-Katakami).
2929
2930 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
2931
2932         * text-coding.c (char_encode_shift_jis): Modify for
2933         `charset_code_point'.
2934         (char_encode_iso2022): Likewise.
2935
2936         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
2937         (integer) instead of list of <Lisp_Object>s (integers) as the
2938         format of code-point of a coded-charset.
2939         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2940         (encode_builtin_char_1): New function; delete
2941         `split_builtin_char'.
2942         (charset_code_point): Return <int> instead of <Lisp_Object>.
2943         (Fsplit_char): Don't use `SPLIT_CHAR'.
2944
2945         * char-ucs.h (encode_builtin_char_1): New prototype; delete
2946         prototype for `split_builtin_char'.
2947         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2948         (charset_code_point): Likewise.
2949         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
2950         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
2951
2952 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
2953
2954         * mule-charset.c (complex_vars_of_mule_charset): Don't define
2955         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
2956
2957 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2958
2959         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
2960
2961         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
2962         (MAX_CHAR_OBS_94x94): Deleted.
2963
2964 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2965
2966         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
2967
2968         * char-ucs.h (MAX_CHAR_BMP): New macro.
2969
2970 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2971
2972         * text-coding.c: Sync with r21-2-24.
2973
2974 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
2975
2976         * file-coding.c: Modify for UTF-2000.
2977
2978 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2979
2980         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2981         to 0.13 (Takaida).
2982
2983 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
2984
2985         * mule-charset.c (split_builtin_char): Delete builtin support for
2986         `katakana-jisx0201'.
2987         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
2988         BMP area in builtin representation.
2989
2990         * char-ucs.h (MAKE_CHAR): Delete builtin support for
2991         `Vcharset_katakana_jisx0201'.
2992
2993 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
2994
2995         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
2996         (Qisolated): New variable.
2997         (Qinitial): New variable.
2998         (Qmedial): New variable.
2999         (Qfinal): New variable.
3000         (Qvertical): New variable.
3001         (Qsmall): New variable.
3002         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
3003         `Qvertical' and `Qsmall'.
3004         (Qmojikyo_pj_[1 .. 21]): New variable.
3005         (syms_of_mule_charset): Add new symbols `isolated', `initial',
3006         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
3007         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
3008         .. 21]'.
3009
3010 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
3011
3012         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
3013         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
3014         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
3015
3016 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3017
3018         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
3019         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
3020         BMP.
3021         (Qjapanese_jisx0208_1990): New variable.
3022         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
3023         (complex_vars_of_mule_charset): Add new coded-charset
3024         `japanese-jisx0208-1990'.
3025
3026         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
3027         (MIN_CHAR_JIS_X0208_1990): New macro.
3028         (MAX_CHAR_JIS_X0208_1990): New macro.
3029
3030 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3031
3032         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
3033         coded-charset is not found.
3034
3035 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3036
3037         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
3038         (Fdefine_char): Use `Fmake_char'.
3039
3040 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3041
3042         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
3043         (Vcharset_hiragana_jisx0208): Deleted.
3044         (Vcharset_katakana_jisx0208): Deleted.
3045         (Qideograph_daikanwa): New variable.
3046         (Qhiragana_jisx0208): Deleted.
3047         (Qkatakana_jisx0208): Deleted.
3048         (split_builtin_char): Split `ideograph-daikanwa'.
3049         (Fsplit_char): New implementation for UTF-2000.
3050         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
3051         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
3052         (complex_vars_of_mule_charset): Add new coded-charset
3053         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
3054         `katakana-jisx0208'.
3055
3056         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
3057         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
3058         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
3059         (MIN_CHAR_DAIKANWA): New macro.
3060         (MAX_CHAR_DAIKANWA): New macro.
3061
3062 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3063
3064         * data.c (Fstring_to_number): Don't recognize floating point if
3065         base is not 10.
3066
3067 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3068
3069         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
3070
3071 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3072
3073         * mule-charset.c (Qsquare): New variable.
3074         (to_char_code): Add `Qsquare'.
3075         (syms_of_mule_charset): Add new symbol `square'.
3076
3077 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3078
3079         * mule-charset.c (Qcircle): New variable.
3080         (to_char_code): Add `Qcircle'.
3081         (syms_of_mule_charset): Add new symbol `circle'.
3082
3083 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3084
3085         * mule-charset.c (Qfont): New variable.
3086         (to_char_code): Add `Qfont'.
3087         (syms_of_mule_charset): Add new symbol `font'.
3088
3089 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3090
3091         * mule-charset.c (Qsub): New variable.
3092         (to_char_code): Add `Qsub'.
3093         (syms_of_mule_charset): Add new symbol `sub'.
3094
3095 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3096
3097         * mule-charset.c (Fput_char_attribute): Convert each element of
3098         VALUE to GL position if ATTRIBUTE is a GR-set,
3099
3100 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3101
3102         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
3103         coded-charset is a GR-set.
3104
3105 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3106
3107         * mule-charset.c (Fput_char_attribute): Check each element of
3108         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
3109
3110 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3111
3112         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
3113         UTF-2000.
3114         (Qethiopic_ucs): New variable in UTF-2000.
3115         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
3116         (complex_vars_of_mule_charset): Add new coded-charset
3117         `ethiopic-ucs' in UTF-2000.
3118
3119         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
3120         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3121         9)'.
3122         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3123         10)'.
3124         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
3125
3126 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
3127
3128         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
3129         `ascii'.
3130
3131 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3132
3133         * mule-charset.c (Vcharacter_variant_table): New variable.
3134         (Q_ucs): New variable.
3135         (Fchar_variants): New function.
3136         (Fput_char_attribute): Register `->ucs' value to
3137         `Vcharacter_variant_table'.
3138         (syms_of_mule_charset): Add new function `char-variants' and new
3139         symbol `->ucs'.
3140         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
3141
3142 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3143
3144         * mule-charset.c (get_char_code_table): Allow negative character
3145         code.
3146         (put_char_code_table): Likewise.
3147         (Vcharacter_composition_table): New variable.
3148         (Q_decomposition): New variable.
3149         (Qwide): New variable.
3150         (Qnarrow): New variable.
3151         (Qcompat): New variable.
3152         (QnoBreak): New variable.
3153         (Qsuper): New variable.
3154         (Qfraction): New variable.
3155         (to_char_code): New function.
3156         (Fget_composite_char): New function.
3157         (Fput_char_attribute): Register `->decomposition' value to
3158         `Vcharacter_composition_table'.
3159         (syms_of_mule_charset): Add new function `get-composite-char', new
3160         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
3161         `super' and `fraction'.
3162         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
3163
3164 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3165
3166         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
3167         character; copy the return value.
3168
3169 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3170
3171         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
3172
3173         * mule-charset.c (range_charset_code_point): Must use make_int.
3174         (split_builtin_char): New function.
3175
3176 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3177
3178         * mule-charset.c (char_byte_table): Change name from
3179         "char-code-table" to "char-byte-table".
3180         (mark_char_code_table): New function.
3181         (char_code_table_equal): New function.
3182         (char_code_table_hash): New function.
3183         (char_code_table_description): New constant.
3184         (char_code_table): New type.
3185         (make_char_code_table): New function.
3186         (copy_char_code_table): New function.
3187         (get_char_code_table): Modify for `char_code_table' type.
3188         (put_char_code_table): Likewise.
3189         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
3190         (Kashiwara).
3191
3192         * char-ucs.h (char_code_table): New type.
3193         (XCHAR_CODE_TABLE): New macro.
3194         (XSETCHAR_CODE_TABLE): New macro.
3195         (CHAR_CODE_TABLE_P): New macro.
3196         (GC_CHAR_CODE_TABLE_P): New macro.
3197         (struct Lisp_Char_Code_Table): New structure.
3198
3199 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3200
3201         * mule-charset.c (Fmake_charset): Setup byte_offset for
3202         {94|96}^n-set.
3203
3204 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3205
3206         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
3207         character.
3208
3209 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3210
3211         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
3212         is found.
3213
3214 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3215
3216         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
3217         charset, it is regarded as a charset.
3218         (put_char_attribute): New function in UTF-2000.
3219         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
3220         charset, mapping-table of the charset is modified.
3221         (Fdefine_char): New function in UTF-2000.
3222         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
3223         `Fput_char_attribute'.
3224         (syms_of_mule_charset): Add new function `define-char' and new
3225         symbol `ucs' in UTF-2000.
3226         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
3227
3228 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3229
3230         * mule-charset.c (Fcharset_name): Define `byte_offset' in
3231         non-UTF-2000 configuration.
3232
3233 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3234
3235         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
3236         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
3237
3238         * mule-charset.c (mark_charset): `cs->encoding_table' has been
3239         deleted.
3240         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
3241         (Fset_charset_mapping_table): Likewise.
3242
3243         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
3244         (CHARSET_ENCODING_TABLE): Delete.
3245         (XCHARSET_ENCODING_TABLE): Delete.
3246         (charset_code_point): New interface.
3247
3248 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3249
3250         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
3251         instead of `charset_get_byte1' and `charset_get_byte2'.
3252
3253         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
3254         (charset_get_byte2): Deleted.
3255
3256 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3257
3258         * char-ucs.h (SPLIT_CHAR): New inline function.
3259         (breakup_char_1): Use `SPLIT_CHAR'.
3260
3261         * mule-charset.c (range_charset_code_point): New function.
3262         (charset_code_point): New function.
3263
3264         * char-ucs.h (range_charset_code_point): New interface.
3265         (breakup_char_1): Use `range_charset_code_point'.
3266
3267 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3268
3269         * mule-charset.c (Fmake_charset): Delete unused local variable
3270         `code_offset'.
3271
3272         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
3273         (breakup_char_1): Find a charset and code-point in
3274         `Vcharacter_attribute_table'.
3275
3276 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3277
3278         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3279         to 0.10 (Yao).
3280
3281 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
3282
3283         * mule-charset.c (Vcharacter_attribute_table): New variable.
3284         (Fchar_attribute_alist): New function.
3285         (Fget_char_attribute): New function.
3286         (Fput_char_attribute): New function.
3287         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
3288         too.
3289         (syms_of_mule_charset): Add new function `char-attribute-alist',
3290         `get-char-attribute' and `put-char-attribute'.
3291         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
3292
3293 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
3294
3295         * mule-charset.c (Fmake_charset): Just use
3296         `get_unallocated_leading_byte'.
3297
3298         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
3299         sets; don't use final-byte based number for private sets.
3300
3301 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3302
3303         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
3304         integer.
3305
3306 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3307
3308         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3309         to 0.9.
3310
3311 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3312
3313         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
3314         of `CHAR_LEADING_BYTE' in UTF-2000.
3315
3316         * insdel.c (find_charsets_in_bufbyte_string): Use
3317         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
3318         (find_charsets_in_emchar_string): Likewise.
3319
3320         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
3321         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
3322
3323         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
3324         (CHAR_CHARSET_ID): New macro.
3325
3326 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3327
3328         * chartab.c (get_char_table): Don't use type `Charset_ID' for
3329         charset-id - MIN_LEADING_BYTE.
3330         (put_char_table): Likewise.
3331
3332 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3333
3334         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
3335         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
3336         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
3337         (CHARSET_ID_OFFSET): New macro.
3338         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
3339         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
3340         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
3341         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
3342         4).
3343         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
3344         5).
3345         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
3346         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
3347         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
3348         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
3349         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
3350
3351 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3352
3353         * mule-charset.c (next_allocated_leading_byte): New variable in
3354         UTF-2000.
3355         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
3356         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
3357         (get_unallocated_leading_byte): Simply use
3358         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
3359         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
3360         UTF-2000.
3361
3362         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
3363         (MAX_LEADING_BYTE_PRIVATE): New macro.
3364         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
3365         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
3366
3367 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3368
3369         * mule-charset.c (Fmake_charset): Allocate final-byte based
3370         charset-id for 94-set, 96-set and 94x94-set.
3371
3372 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3373
3374         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
3375         ambiguous `else'.
3376         (Fmake_charset): Likewise.
3377         (complex_vars_of_mule_charset): Modify the font registry of
3378         `ucs-bmp' not to match `Ethiopic-Unicode'.
3379
3380 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3381
3382         * mule-charset.c (complex_vars_of_mule_charset): Add font
3383         registory of `ucs-bmp'.
3384
3385 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3386
3387         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
3388         coded-charsets in `default-coded-charset-priority-list' when
3389         breaking up a character.
3390
3391         * mule-charset.c (Vcharset_latin_viscii): New variable.
3392         (Qlatin_viscii): New variable.
3393         (make_charset): Don't use `decoding_table'.
3394         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
3395         byte_offset.
3396         (Fset_charset_mapping_table): New implementation.
3397         (syms_of_mule_charset): Add new symbol `latin-viscii'.
3398         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
3399         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
3400         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
3401         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
3402         charset `latin_viscii'.
3403
3404         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
3405         (CHARSET_TYPE_94X94): Change to 1 from 2.
3406         (CHARSET_TYPE_96): Change to 2 from 1.
3407         (CHARSET_TYPE_128): New macro.
3408         (CHARSET_TYPE_128X128): Change to 5 from 4.
3409         (CHARSET_TYPE_256): New macro.
3410         (CHARSET_TYPE_256X256): Change to 7 from 5.
3411         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
3412
3413 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3414
3415         * text-coding.c (char_encode_shift_jis): Refer
3416         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
3417         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
3418
3419         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
3420         (char_byte_table_equal): New function in UTF-2000.
3421         (char_byte_table_hash): New function in UTF-2000.
3422         (char_byte_table_description): New constant in UTF-2000.
3423         (char_byte_table): New type in UTF-2000.
3424         (make_char_byte_table): New function in UTF-2000.
3425         (copy_char_byte_table): New function in UTF-2000.
3426         (make_char_code_table): New macro in UTF-2000.
3427         (get_char_code_table): New function in UTF-2000.
3428         (put_char_code_table): New function in UTF-2000.
3429         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3430         (charset_description): Add setting in UTF-2000.
3431         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
3432         `CHARSET_TO_BYTE1_TABLE(cs)'.
3433         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
3434         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
3435         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
3436         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
3437         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
3438         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
3439         `CHARSET_TO_BYTE2_TABLE(cs)'.
3440
3441         * char-ucs.h (char_byte_table): New type.
3442         (XCHAR_BYTE_TABLE): New macro.
3443         (XSETCHAR_BYTE_TABLE): New macro.
3444         (CHAR_BYTE_TABLE_P): New macro.
3445         (GC_CHAR_BYTE_TABLE_P): New macro.
3446         (struct Lisp_Char_Byte_Table): New structure.
3447         (get_char_code_table): New interface.
3448         (Emchar_to_byte_table): Deleted.
3449         (get_byte_from_character_table): Deleted.
3450         (struct Lisp_Charset): Add `encoding_table'; delete
3451         `to_byte1_table' and `to_byte2_table'.
3452         (CHARSET_ENCODING_TABLE): New macro.
3453         (CHARSET_TO_BYTE1_TABLE): Deleted.
3454         (CHARSET_TO_BYTE2_TABLE): Deleted.
3455         (XCHARSET_ENCODING_TABLE): New macro.
3456         (XCHARSET_TO_BYTE1_TABLE): Deleted.
3457         (XCHARSET_TO_BYTE2_TABLE): Deleted.
3458
3459 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3460
3461         * mule-charset.c (syms_of_mule_charset): Delete charset alias
3462         `vietnamese-viscii-*'.
3463
3464 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3465
3466         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
3467         (Qvietnamese_viscii_upper): New variable.
3468         (Fdefine_charset_alias): New function.
3469         (syms_of_mule_charset): Add new function `define-charset-alias'.
3470         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
3471         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
3472         `latin-viscii-*'.
3473
3474 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
3475
3476         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
3477         (MAX_CHAR_OBS_94x94): New macro.
3478         (breakup_char_1): Support obsolete XEmacs-UCS private code space
3479         for 94x94 sets.
3480
3481         * mule-charset.c (put_byte_from_character_table): Change unit size
3482         from 128 to 256.
3483         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
3484         not defined.
3485         (Fmake_reverse_direction_charset): Modify dummy argument of
3486         `make_charset' for non-UTF-2000 environment.
3487
3488 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3489
3490         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
3491
3492         * mule-charset.c (destroy_byte_from_character_table): New macro.
3493         (latin_jisx0201_to_ucs): Deleted.
3494         (latin_iso8859_2_to_ucs): Deleted.
3495         (latin_iso8859_3_to_ucs): Deleted.
3496         (latin_iso8859_4_to_ucs): Deleted.
3497         (latin_iso8859_9_to_ucs): Deleted.
3498         (latin_viscii_lower_to_ucs): Deleted.
3499         (latin_viscii_upper_to_ucs): Deleted.
3500         (mark_charset): Mark `cs->decoding_table'.
3501         (Fcharset_mapping_table): Fix DOC-string.
3502         (Fset_charset_mapping_table): New function.
3503         (syms_of_mule_charset): Add nwe function
3504         `set-charset-mapping-table'.
3505         (complex_vars_of_mule_charset): Don't setup and use
3506         `latin_*_to_ucs'.
3507
3508 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3509
3510         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
3511         charset.
3512
3513 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3514
3515         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
3516         (Vcharset_katakana_jisx0208): New variable.
3517         (Qhiragana_jisx0208): New variable.
3518         (Qkatakana_jisx0208): New variable.
3519         (make_charset): Add new argument `byte_offset'.
3520         (charset_get_byte1): Modify for new coded-charset definition; use
3521         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3522         `XCHARSET_BYTE_OFFSET'.
3523         (Fmake_charset): Modify for `make_charset'.
3524         (Fmake_reverse_direction_charset): Likewise.
3525         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
3526         `katakana-jisx0208'.
3527         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
3528         `.'  in font registry of charset `katakana-jisx0201',
3529         `latin-jisx0201', `vietnamese-viscii-lower' and
3530         `vietnamese-viscii-upper'; modify DOC-string of charset
3531         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
3532         registry of charset `japanese-jisx0208' not to use font for JIS
3533         X0208:1990; add new charset `hiragana-jisx0208' and
3534         `katakana-jisx0208'.
3535
3536         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
3537         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
3538         (struct Lisp_Charset): Add `byte_offset'.
3539         (CHARSET_BYTE_OFFSET): New macro.
3540         (XCHARSET_UCS_MIN): New macro.
3541         (XCHARSET_UCS_MAX): New macro.
3542         (XCHARSET_CODE_OFFSET): New macro.
3543         (XCHARSET_BYTE_OFFSET): New macro.
3544         (MIN_CHAR_HIRAGANA): New macro.
3545         (MAX_CHAR_HIRAGANA): New macro.
3546         (MIN_CHAR_KATAKANA): New macro.
3547         (MAX_CHAR_KATAKANA): New macro.
3548         (MAKE_CHAR): Modify for new coded-charset definition; use
3549         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3550         `XCHARSET_BYTE_OFFSET'.
3551
3552 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3553
3554         * mule-charset.c (CHAR96): Deleted.
3555         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
3556         <Lisp_Object>.
3557         (latin_iso8859_2_to_ucs): Likewise.
3558         (latin_iso8859_3_to_ucs): Likewise.
3559         (latin_iso8859_4_to_ucs): Likewise.
3560         (latin_iso8859_9_to_ucs): Likewise.
3561         (latin_viscii_lower_to_ucs): Likewise.
3562         (latin_viscii_upper_to_ucs): Likewise.
3563         (latin_tcvn5712_to_ucs): Commented out.
3564         (make_charset): Change type of argument `decoding_table' from
3565         <Emchar*> to <Lisp_Object> [vector of characters].
3566         (Fmake_charset): Modify for `make_charset'.
3567         (Fmake_reverse_direction_charset): Likewise.
3568         (Fcharset_mapping_table): New function in UTF-2000.
3569         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
3570         UTF-2000.
3571         (complex_vars_of_mule_charset): Modify for type change of
3572         `*_to_ucs'; modify for `make_charset'.
3573
3574         * char-ucs.h (struct Lisp_Charset): Change type of
3575         `decoding_table' from <Emchar*> to <Lisp_Object>.
3576         (MAKE_CHAR): Modify for new specification of `decoding_table'.
3577
3578 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
3579
3580         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
3581         error with non-UTF-2000-Mule.
3582
3583 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
3584
3585         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
3586         in lisp again].
3587         (Vcharset_chinese_cns11643_4): Likewise.
3588         (Vcharset_chinese_cns11643_5): Likewise.
3589         (Vcharset_chinese_cns11643_6): Likewise.
3590         (Vcharset_chinese_cns11643_7): Likewise.
3591         (Qchinese_cns11643_3): Likewise.
3592         (Qchinese_cns11643_4): Likewise.
3593         (Qchinese_cns11643_5): Likewise.
3594         (Qchinese_cns11643_6): Likewise.
3595         (Qchinese_cns11643_7): Likewise.
3596         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
3597         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3598         and `chinese-cns11643-7' to lisp/mule/chinese.el.
3599         (complex_vars_of_mule_charset): Likewise.
3600
3601 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3602
3603         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
3604         96-set.
3605         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
3606         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
3607
3608 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3609
3610         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
3611         0xFF60.
3612         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
3613         (breakup_char_1): Likewise.
3614
3615         * text-coding.c (char_encode_iso2022): Keep designated charsets if
3616         one of them includes the specified character.
3617
3618 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3619
3620         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
3621
3622 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3623
3624         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
3625
3626 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3627
3628         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
3629         definition for non-UTF-2000 Mule.
3630         (latin_iso8859_3_to_ucs): Likewise.
3631         (latin_iso8859_4_to_ucs): Likewise.
3632         (latin_iso8859_9_to_ucs): Likewise.
3633         (latin_jisx0201_to_ucs): Likewise.
3634         (MIN_CHAR_THAI): Likewise.
3635         (MAX_CHAR_THAI): Likewise.
3636         (MIN_CHAR_GREEK): Likewise.
3637         (MAX_CHAR_GREEK): Likewise.
3638         (MIN_CHAR_HEBREW): Likewise.
3639         (MAX_CHAR_HEBREW): Likewise.
3640         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
3641         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
3642         (MIN_CHAR_CYRILLIC): Likewise.
3643         (MAX_CHAR_CYRILLIC): Likewise.
3644
3645 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3646
3647         * char-ucs.h (breakup_char_1): Use
3648         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
3649         thai-tis620 and katakana-jisx0201 area.
3650
3651 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3652
3653         * char-ucs.h (breakup_char_1): Use
3654         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
3655         area.
3656
3657         * text-coding.c (reset_encoding_stream): Fixed.
3658         (char_encode_ucs4): Delete `& 255'.
3659
3660         * char-ucs.h (breakup_char_1): Use
3661         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
3662
3663 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3664
3665         * file-coding.c (Fmake_coding_system): Don't set up
3666         `codesys->fixed.size'.
3667         (encode_coding_no_conversion): Don't refer
3668         `str->codesys->fixed.size'.
3669
3670 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3671
3672         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
3673         (latin_a_char_to_byte1): Deleted.
3674         (latin_a_char_to_byte2): Deleted.
3675
3676 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3677
3678         * mule-charset.c (make_charset): Add new argument `ucs_min',
3679         `ucs_max' and `code_offset'.
3680         (charset_get_byte1): New implementation [delete specific charset
3681         depended implementations].
3682         (Fmake_charset): Modify for `make_charset'.
3683         (Fmake_reverse_direction_charset): Likewise.
3684         (complex_vars_of_mule_charset): Likewise.
3685
3686         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
3687         `code_offset'.
3688         (CHARSET_UCS_MIN): New macro.
3689         (CHARSET_UCS_MAX): New macro.
3690         (CHARSET_CODE_OFFSET): New macro.
3691         (MAKE_CHAR): Delete charset depended definitions [except
3692         katakana-jisx0201].
3693
3694 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
3695
3696         * char-ucs.h (breakup_char_1): Use
3697         `Vdefault_coded_charset_priority_list' for C0-Controls,
3698         Basic-Latin, C1-Controls and Latin-1-Supplement area.
3699
3700 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3701
3702         * char-ucs.h (charset_get_byte1): New function.
3703         (XCHARSET_GET_BYTE1): Deleted.
3704         (charset_get_byte2): New function.
3705         (XCHARSET_GET_BYTE2): Deleted.
3706         (Vdefault_coded_charset_priority_list): New external variable.
3707         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
3708         `Vdefault_preferred_coded_charset_list'.
3709
3710         * mule-charset.c (charset_get_byte1): New function.
3711         (charset_get_byte2): New function.
3712         (Vdefault_coded_charset_priority_list): New variable.
3713         (vars_of_mule_charset): Add new variable
3714         `default-coded-charset-priority-list'.
3715
3716 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3717
3718         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
3719         (XCHARSET_GET_BYTE2): New inline function.
3720         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
3721         `XCHARSET_GET_BYTE2'.
3722
3723 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3724
3725         * mule-charset.c (make_charset): Initialize
3726         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
3727         NULL if table is not defined.
3728
3729 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3730
3731         * text-coding.c (char_encode_shift_jis): Use
3732         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
3733         `ucs_to_latin_jisx0201'.
3734
3735         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
3736         (ucs_to_latin_iso8859_2): Deleted.
3737         (ucs_to_latin_iso8859_3): Deleted.
3738         (ucs_to_latin_iso8859_4): Deleted.
3739         (ucs_to_latin_iso8859_9): Deleted.
3740         (ucs_to_latin_viscii_lower): Deleted.
3741         (ucs_to_latin_viscii_upper): Deleted.
3742         (ucs_to_latin_tcvn5712): Deleted.
3743         (make_charset): Add new argument `decoding_table'; set up
3744         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
3745         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
3746         `decoding_table' is defined in UTF-2000.
3747         (Fmake_charset): Modify for `make_charset'.
3748         (Fmake_reverse_direction_charset): Likewise.
3749         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
3750         and `GENERATE_96_SET'.
3751
3752         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
3753         (ucs_to_latin_jisx0201): Deleted.
3754         (latin_iso8859_2_to_ucs): Deleted.
3755         (ucs_to_latin_iso8859_2): Deleted.
3756         (latin_iso8859_3_to_ucs): Deleted.
3757         (ucs_to_latin_iso8859_3): Deleted.
3758         (latin_iso8859_4_to_ucs): Deleted.
3759         (ucs_to_latin_iso8859_4): Deleted.
3760         (latin_iso8859_9_to_ucs): Deleted.
3761         (ucs_to_latin_iso8859_9): Deleted.
3762         (latin_viscii_lower_to_ucs): Deleted.
3763         (ucs_to_latin_viscii_lower): Deleted.
3764         (latin_viscii_upper_to_ucs): Deleted.
3765         (ucs_to_latin_viscii_upper): Deleted.
3766         (struct Lisp_Charset): Renamed `encoding_table' to
3767         `to_byte1_table'; add `to_byte2_table'.
3768         (CHARSET_DECODING_TABLE): New macro.
3769         (CHARSET_TO_BYTE1_TABLE): New macro.
3770         (CHARSET_TO_BYTE2_TABLE): New macro.
3771         (XCHARSET_DECODING_TABLE): New macro.
3772         (XCHARSET_TO_BYTE1_TABLE): New macro.
3773         (XCHARSET_TO_BYTE2_TABLE): New macro.
3774         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
3775         tables.
3776         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
3777         don't use `ucs_to_*' tables.
3778
3779 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3780
3781         * text-coding.c (Fmake_coding_system): Don't set up
3782         `codesys->fixed.size'.
3783         (encode_coding_no_conversion): Use `if' instead of `switch'.
3784
3785         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
3786
3787 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3788
3789         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
3790         (Fmake_charset): Modify for `make_charset'.
3791         (Fmake_reverse_direction_charset): Likewise.
3792         (complex_vars_of_mule_charset): Likewise.
3793
3794 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3795
3796         * text-coding.c (char_encode_shift_jis): Use table
3797         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
3798
3799 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3800
3801         * text-coding.c (text_encode_generic): Use `if' instead of
3802         `switch'.
3803         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
3804         decode JIS-Latin.
3805
3806 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3807
3808         * text-coding.c (encode_coding_sjis): Deleted.
3809         (char_encode_shift_jis): New function.
3810         (char_finish_shift_jis): New function.
3811         (reset_encoding_stream): Set up `encode_char' and `finish' for
3812         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
3813         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
3814         (char_encode_utf8): Treat `eol_type'.
3815
3816 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3817
3818         * file-coding.c (decode_coding_iso2022): Use
3819         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
3820
3821 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3822
3823         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3824         to 0.7 (Hirano).
3825
3826 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3827
3828         * char-lb.h (CHAR_COLUMNS): New macro.
3829
3830 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3831
3832         * text-coding.c (char_encode_ucs4): New function.
3833         (char_finish_ucs4): New function.
3834         (encode_coding_ucs4): Deleted.
3835         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
3836         (text_encode_generic): Delete local variable `charset' and `half'.
3837         (ucs_to_mule_table): Deleted.
3838         (mule_to_ucs_table): Deleted.
3839         (Fset_ucs_char): Deleted.
3840         (ucs_to_char): Deleted.
3841         (Fucs_char): Deleted.
3842         (Fset_char_ucs): Deleted.
3843         (Fchar_ucs): Deleted.
3844         (decode_ucs4): Deleted.
3845         (mule_char_to_ucs4): Deleted.
3846         (encode_ucs4): Deleted.
3847         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
3848         (decode_coding_utf8): Likewise.
3849         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
3850         (char_encode_iso2022): Fixed.
3851         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
3852         `Fset_char_ucs' and `Fchar_ucs'.
3853         (complex_vars_of_file_coding): Don't initialize
3854         `ucs_to_mule_table'.
3855
3856         * objects-tty.c (tty_initialize_font_instance): Don't use
3857         `XCHARSET_COLUMNS'.
3858
3859         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
3860         UTF-2000.
3861
3862         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
3863         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3864
3865         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
3866         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3867         (emchar_string_displayed_columns): Likewise.
3868
3869         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
3870         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3871         (string_column_at_point): Likewise.
3872         (Fmove_to_column): Likewise.
3873
3874         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
3875         `encoding_table' and `decoding_table'.
3876         (CHARSET_REP_BYTES): Deleted.
3877         (XCHARSET_REP_BYTES): Deleted.
3878         (XCHARSET_COLUMNS): Deleted.
3879         (CHAR_COLUMNS): New macro.
3880         (lookup_composite_char): Deleted unconditionally.
3881         (composite_char_string): Likewise.
3882
3883 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3884
3885         * char-ucs.h (Emchar_to_byte_table): New type.
3886         (get_byte_from_character_table): New function interface.
3887         (Vcharset_latin_jisx0201): New variable.
3888         (latin_jisx0201_to_ucs): New variable.
3889         (ucs_to_latin_jisx0201): New variable.
3890         (Vcharset_latin_iso8859_2): New variable.
3891         (latin_iso8859_2_to_ucs): New variable.
3892         (ucs_to_latin_iso8859_2): New variable.
3893         (Vcharset_latin_iso8859_3): New variable.
3894         (latin_iso8859_3_to_ucs): New variable.
3895         (ucs_to_latin_iso8859_3): New variable.
3896         (Vcharset_latin_iso8859_4): New variable.
3897         (latin_iso8859_4_to_ucs): New variable.
3898         (ucs_to_latin_iso8859_4): New variable.
3899         (Vcharset_latin_iso8859_9): New variable.
3900         (latin_iso8859_9_to_ucs): New variable.
3901         (ucs_to_latin_iso8859_9): New variable.
3902         (Vcharset_latin_viscii_lower): New variable.
3903         (latin_viscii_lower_to_ucs): New variable.
3904         (ucs_to_latin_viscii_lower): New variable.
3905         (Vcharset_latin_viscii_upper): New variable.
3906         (latin_viscii_upper_to_ucs): New variable.
3907         (ucs_to_latin_viscii_upper): New variable.
3908         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
3909         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
3910         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
3911         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
3912         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
3913         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
3914         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
3915         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
3916         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
3917         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
3918
3919         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
3920         (Vcharset_latin_viscii_upper): New variable.
3921         (make_byte_from_character_table): New function.
3922         (put_byte_from_character_table): New function.
3923         (get_byte_from_character_table): New function.
3924         (CHAR96): New macro.
3925         (ucs_to_latin_jisx0201): New variable.
3926         (latin_jisx0201_to_ucs): New variable.
3927         (ucs_to_latin_iso8859_2): New variable.
3928         (latin_iso8859_2_to_ucs): New variable.
3929         (ucs_to_latin_iso8859_3): New variable.
3930         (latin_iso8859_3_to_ucs): New variable.
3931         (ucs_to_latin_iso8859_4): New variable.
3932         (latin_iso8859_4_to_ucs): New variable.
3933         (ucs_to_latin_iso8859_9): New variable.
3934         (latin_iso8859_9_to_ucs): New variable.
3935         (ucs_to_latin_viscii_lower): New variable.
3936         (latin_viscii_lower_to_ucs): New variable.
3937         (ucs_to_latin_viscii_upper): New variable.
3938         (latin_viscii_upper_to_ucs): New variable.
3939         (ucs_to_latin_tcvn5712): New variable.
3940         (latin_tcvn5712_to_ucs): New variable.
3941         (Qlatin_viscii_lower): New variable.
3942         (Qlatin_viscii_upper): New variable.
3943         (syms_of_mule_charset): Set up new symbol
3944         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
3945         (complex_vars_of_mule_charset): Set up new charset
3946         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
3947         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
3948         `ucs_to_<CHARSET>' tables.
3949
3950 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
3951
3952         * text-coding.c: New file.
3953
3954 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3955
3956         * mule-charset.c (Fmake_char): Fix problem of 256-set.
3957
3958         * char-ucs.h (Vcharset_ucs_bmp): New variable.
3959         (MAKE_CHAR): Modify for `ucs-bmp'.
3960         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
3961         non-MULE characters of BMP.
3962
3963 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
3964
3965         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3966         to 0.6.
3967
3968 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3969
3970         * lstream.h:
3971         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
3972         - Include character.h for `CHAR_ASCII_P'.
3973
3974         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
3975
3976         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
3977         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
3978
3979         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
3980         (BYTE_C0_P): Likewise.
3981         (BYTE_C1_P): Likewise.
3982         (Lstream_get_emchar_1): Likewise.
3983         (Lstream_fput_emchar): Likewise.
3984         (Lstream_funget_emchar): Likewise.
3985         (copy_internal_to_external): Likewise.
3986         (copy_external_to_internal): Likewise.
3987
3988         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
3989         (BYTE_C0_P): Likewise.
3990         (BYTE_C1_P): Likewise.
3991         (Lstream_get_emchar_1): Likewise.
3992         (Lstream_fput_emchar): Likewise.
3993         (Lstream_funget_emchar): Likewise.
3994         (copy_internal_to_external): Likewise.
3995         (copy_external_to_internal): Likewise.
3996
3997         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
3998         (REP_BYTES_BY_FIRST_BYTE): Likewise.
3999
4000         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
4001         (BYTE_ASCII_P): Moved to mb-1byte.h.
4002
4003 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4004
4005         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
4006
4007         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
4008         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
4009         (VALID_CHARPTR_P): Moved to mb-*byte.h.
4010         (VALIDATE_CHARPTR_BACKWARD): Likewise.
4011         (VALIDATE_CHARPTR_FORWARD): Likewise.
4012         (simple_charptr_emchar): Moved to mb-multibyte.h.
4013         (simple_set_charptr_emchar): Likewise.
4014         (simple_charptr_copy_char): Likewise.
4015         (non_ascii_charptr_emchar): Likewise.
4016         (non_ascii_set_charptr_emchar): Likewise.
4017         (non_ascii_charptr_copy_char): Likewise.
4018         (charptr_emchar): Moved to mb-*byte.h.
4019         (set_charptr_emchar): Likewise.
4020         (charptr_copy_char): Likewise.
4021
4022         * mb-1byte.h, mb-multibyte.h: New files.
4023
4024 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4025
4026         * mb-utf-8.h (MULTIBYTE): New macro.
4027         (MAX_EMCHAR_LEN): Moved from buffer.h.
4028         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
4029
4030         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
4031
4032         * mb-lb.h, multibyte.h: New files.
4033
4034         * char-1byte.h (Charset_ID): Moved from buffer.h.
4035         (MIN_LEADING_BYTE): Likewise.
4036         (LEADING_BYTE_ASCII): Likewise.
4037         (NUM_LEADING_BYTES): Likewise.
4038         (CHARSETP): Likewise.
4039         (CHARSET_BY_LEADING_BYTE): Likewise.
4040         (XCHARSET_LEADING_BYTE): Likewise.
4041         (XCHARSET_GRAPHIC): Likewise.
4042         (XCHARSET_COLUMNS): Likewise.
4043         (XCHARSET_DIMENSION): Likewise.
4044         (CHAR_CHARSET): Likewise.
4045         (CHAR_LEADING_BYTE): Likewise.
4046         (BREAKUP_CHAR): Likewise.
4047         (Vcharset_ascii): Likewise.
4048
4049         * buffer.h: Include multibyte.h unconditionally.
4050         (VALID_CHARPTR_P): Moved to multibyte.h.
4051         (ASSERT_VALID_CHARPTR): Likewise.
4052         (REAL_INC_CHARPTR): Likewise.
4053         (REAL_INC_CHARBYTIND): Likewise.
4054         (REAL_DEC_CHARPTR): Likewise.
4055         (INC_CHARPTR): Likewise.
4056         (INC_CHARBYTIND): Likewise.
4057         (DEC_CHARPTR): Likewise.
4058         (VALIDATE_CHARPTR_BACKWARD): Likewise.
4059         (VALIDATE_CHARPTR_FORWARD): Likewise.
4060         (charptr_n_addr): Likewise.
4061         (MAX_EMCHAR_LEN): Moved to mb-*.h.
4062         (simple_charptr_emchar): Moved to multibyte.h.
4063         (simple_set_charptr_emchar): Likewise.
4064         (simple_charptr_copy_char): Likewise.
4065         (non_ascii_charptr_emchar): Likewise.
4066         (non_ascii_set_charptr_emchar): Likewise.
4067         (non_ascii_charptr_copy_char): Likewise.
4068         (charptr_emchar): Likewise.
4069         (set_charptr_emchar): Likewise.
4070         (charptr_copy_char): Likewise.
4071         (charptr_emchar_n): Likewise.
4072         (Charset_ID): Moved to char-1byte.h.
4073         (Vcharset_ascii): Likewise.
4074         (CHAR_CHARSET): Likewise.
4075         (CHAR_LEADING_BYTE): Likewise.
4076         (LEADING_BYTE_ASCII): Likewise.
4077         (NUM_LEADING_BYTES): Likewise.
4078         (MIN_LEADING_BYTE): Likewise.
4079         (CHARSETP): Likewise.
4080         (CHARSET_BY_LEADING_BYTE): Likewise.
4081         (XCHARSET_LEADING_BYTE): Likewise.
4082         (XCHARSET_GRAPHIC): Likewise.
4083         (XCHARSET_COLUMNS): Likewise.
4084         (XCHARSET_DIMENSION): Likewise.
4085         (BREAKUP_CHAR): Likewise.
4086
4087 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4088
4089         * character.h: Add document about interface for characters.
4090
4091         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
4092         (MAKE_CHAR): Delete comment about
4093         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
4094         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
4095         (BREAKUP_CHAR): Modify name of arguments.
4096         (CHAR_CHARSET): Modify name of argument.
4097
4098         * buffer.h: Delete document about Emchar accessors.
4099
4100 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4101
4102         * character.h (CHAR_INTP): Moved from buffer.h
4103         (CHAR_OR_CHAR_INTP): Likewise.
4104         (XCHAR_OR_CHAR_INT): Likewise.
4105         (CHECK_CHAR_COERCE_INT): Likewise.
4106
4107         * buffer.h (CHAR_INTP): Moved to character.h
4108         (CHAR_OR_CHAR_INTP): Likewise.
4109         (XCHAR_OR_CHAR_INT): Likewise.
4110         (CHECK_CHAR_COERCE_INT): Likewise.
4111
4112 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4113
4114         * character.h:
4115         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
4116         - Include char-1byte.h, char-lb.h or char-ucs.h.
4117
4118         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
4119
4120         * buffer.h: Include character unconditionally.
4121         (valid_char_p): Moved to char-*.h.
4122         (non_ascii_valid_char_p): Moved to char-lb.h.
4123
4124         * char-1byte.h, char-lb.h, char-ucs.h: New files.
4125
4126 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4127
4128         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
4129         in UTF-2000 because it is not ported yet and not to use
4130         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
4131         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
4132         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
4133
4134         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
4135         (CHAR_ASCII_P): Moved from character.h.
4136
4137         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
4138         (CHAR_ASCII_P): Likewise.
4139         (CHAR_FIELD1_MASK): Deleted.
4140         (CHAR_FIELD2_MASK): Deleted.
4141         (CHAR_FIELD3_MASK): Deleted.
4142         (MAX_CHAR_BASIC_LATIN): New macro.
4143         (CHAR_FIELD1): Deleted.
4144         (CHAR_FIELD2_INTERNAL): Deleted.
4145         (CHAR_FIELD3_INTERNAL): Deleted.
4146         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
4147         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
4148         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
4149         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
4150         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
4151         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
4152         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
4153         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
4154         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
4155         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
4156         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
4157         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
4158         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
4159         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
4160         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
4161         (MIN_CHAR_COMPOSITION): Deleted.
4162         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
4163         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
4164
4165 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
4166
4167         * buffer.h: Include mb-utf-8.h in UTF-2000.
4168
4169         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
4170
4171         * mb-utf-8.h: New file.
4172
4173 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
4174
4175         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
4176         instead of `int'.
4177
4178         * mule-charset.h, buffer.h (Charset_ID): New type.
4179
4180 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
4181
4182         * mule-canna.c (c2mu): Use `MAKE_CHAR',
4183         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
4184         instead of `MULE_CHAR_PRIVATE_OFFSET',
4185         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
4186         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
4187         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
4188
4189         * character.h (Vcharset_japanese_jisx0212): New variable
4190         definition.
4191
4192 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
4193
4194         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
4195         (charset_by_attributes): Delete array about direction.
4196         (latin_a_char_to_charset): New variable in UTF-2000.
4197         (latin_a_char_to_byte1): New variable in UTF-2000.
4198         (latin_a_char_to_byte2): New variable in UTF-2000.
4199         (Qucs_bmp): New variable.
4200         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
4201         `Bufbyte'.
4202         (next_allocated_2_byte_leading_byte): Likewise.
4203         (non_ascii_set_charptr_emchar): Likewise.
4204         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
4205         `CHARSET_TYPE_256X256' in UTF-2000; modify for
4206         `charset_by_attributes'.
4207         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
4208         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
4209         and `CHARSET_BY_LEADING_BYTE'.
4210         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
4211         `utf-2000-version' to `vars_of_mule_charset'.
4212         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
4213         define `leading-code-private-11' in UTF-2000; move setting of
4214         `utf-2000-version' from `syms_of_mule_charset'.
4215         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
4216         UTF-2000.
4217
4218         * character.h (Charset_ID): New type.
4219         (LEADING_BYTE_UCS_BMP): New macro.
4220         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
4221         (CHARSET_ID_OFFSET_94): New macro.
4222         (MIN_CHARSET_ID_PRIVATE_94): New macro.
4223         (MAX_CHARSET_ID_PRIVATE_94): New macro.
4224         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
4225         final-byte.
4226         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
4227         (LEADING_BYTE_LATIN_JISX0201): Likewise.
4228         (CHARSET_ID_OFFSET_96): New macro.
4229         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
4230         CHARSET_ID_OFFSET_96 and final-byte.
4231         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
4232         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
4233         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
4234         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
4235         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
4236         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
4237         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
4238         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
4239         (LEADING_BYTE_THAI_TIS620): Likewise.
4240         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
4241         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
4242         (CHARSET_ID_OFFSET_94x94): New macro.
4243         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
4244         CHARSET_ID_OFFSET_94x94 and final-byte.
4245         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
4246         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
4247         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
4248         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
4249         (LEADING_BYTE_CHINESE_GB2312): Likewise.
4250         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
4251         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
4252         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
4253         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
4254         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
4255         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
4256         (CHARSET_TYPE_128X128): New macro.
4257         (CHARSET_TYPE_256X256): New macro.
4258         (XCHARSET_PRIVATE_P): Delete unconditionally.
4259         (charset_by_attributes): Delete array about direction.
4260         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
4261         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
4262         (MIN_CHAR_94): New macro.
4263         (MAX_CHAR_94): New macro.
4264         (MIN_CHAR_96): New macro.
4265         (MAX_CHAR_96): New macro.
4266         (MIN_CHAR_94x94): New macro.
4267         (MAX_CHAR_94x94): New macro.
4268         (MIN_CHAR_96x96): New macro.
4269         (MAX_CHAR_96x96): New macro.
4270         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
4271         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
4272         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
4273         - 32)'.
4274         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
4275         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
4276         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
4277         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
4278         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
4279         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
4280         `XCHARSET_LEADING_BYTE' to make code-point.
4281         (latin_a_char_to_charset): New variable.
4282         (latin_a_char_to_byte1): New variable.
4283         (latin_a_char_to_byte2): New variable.
4284         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
4285         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
4286         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
4287
4288         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
4289         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
4290         (find_charsets_in_emchar_string): Likewise.
4291         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
4292
4293         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
4294         `int'.
4295         (decode_coding_iso2022): Likewise.
4296
4297         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
4298         of `unsigned char'.
4299
4300         * redisplay.c (redisplay_text_width_emchar_string): Use
4301         `Charset_ID' instead of `unsigned char'.
4302         (redisplay_frame_text_width_string): Likewise.
4303
4304         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
4305         `unsigned char'.
4306
4307         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
4308         instead of `unsigned char'.
4309         (face_cachel_charset_font_metric_info): Likewise.
4310
4311         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
4312         (get_non_ascii_char_table_value): Likewise.
4313         (get_char_table): Likewise.
4314         (put_char_table): Likewise.
4315         (map_over_other_charset): Likewise.
4316         (map_char_table): Likewise.
4317
4318         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
4319         instead of `unsigned char'.
4320
4321 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
4322
4323         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
4324         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
4325
4326         * mule-charset.c (leading_code_private_11): Don't define in
4327         UTF-2000.
4328
4329         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
4330         in UTF-2000 because it is not ported yet and not to use
4331         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
4332
4333 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
4334
4335         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
4336
4337 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4338
4339         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
4340         in UTF-2000.
4341
4342         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
4343         of unsigned char to store leading-byte.
4344
4345         * chartab.c (get_non_ascii_char_table_value): Don't use
4346         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
4347
4348         * file-coding.c (encode_coding_big5): Delete bogus implementation
4349         in UTF2000.
4350
4351         * character.h (LEADING_BYTE_*): Delete definition for
4352         non-UTF-2000.
4353         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
4354         (LEADING_BYTE_PREFIX_P): Deleted.
4355         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
4356         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
4357         (BUFBYTE_LEADING_BYTE_P): Deleted.
4358         (CHARSET_PRIVATE_P): Deleted unconditionally.
4359         (rep_bytes_by_first_byte): Deleted unconditionally.
4360         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
4361         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
4362         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
4363         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
4364         (CHAR_FIELD2): Deleted.
4365         (CHAR_FIELD3): Deleted.
4366         (MAKE_CHAR): Delete definition for non-UTF-2000.
4367         (BREAKUP_CHAR_1_UNSAFE): Deleted.
4368         (breakup_char_1): New implementation.
4369         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
4370         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
4371
4372 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4373
4374         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
4375         condition.
4376
4377 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4378
4379         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
4380         (CHARSET_PRIVATE_P): Likewise.
4381         (XCHARSET_PRIVATE_P): Likewise.
4382         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
4383
4384         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
4385         UTF2000.
4386         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
4387
4388 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4389
4390         * character.h (LEADING_BYTE_*): Changed in UTF2000.
4391         (NUM_LEADING_BYTES): Changed from 128 to 256.
4392         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
4393         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
4394         UTF2000.
4395         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
4396
4397         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
4398         UTF2000.
4399         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
4400         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
4401         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
4402         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
4403         (Qchinese_cns11643_3): New variable in UTF2000.
4404         (Qchinese_cns11643_4): New variable in UTF2000.
4405         (Qchinese_cns11643_5): New variable in UTF2000.
4406         (Qchinese_cns11643_6): New variable in UTF2000.
4407         (Qchinese_cns11643_7): New variable in UTF2000.
4408         (syms_of_mule_charset): Define `chinese-cns11643-3',
4409         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4410         and `chinese-cns11643-7' in UTF2000.
4411         (vars_of_mule_charset): Initialize
4412         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
4413         + 1 in UTF2000.
4414         (complex_vars_of_mule_charset): Setup charset
4415         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
4416         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
4417
4418 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4419
4420         * mule-charset.c: Move setting for `leading-code-private-11' from
4421         `syms_of_mule_charset' to `vars_of_mule_charset'.
4422
4423 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4424
4425         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
4426         and `NUM_LEADING_BYTES' in assert.
4427
4428 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4429
4430         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
4431         instead of 128.
4432         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
4433         `NUM_LEADING_BYTES' instead of 128.
4434
4435 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4436
4437         * mule-charset.h (charset_by_leading_byte): Use
4438         `NUM_LEADING_BYTES' instead of 128.
4439         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
4440
4441         * mule-charset.c (charset_by_leading_byte): Use
4442         `NUM_LEADING_BYTES' instead of 128.
4443         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
4444
4445         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
4446         128.
4447
4448 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
4449
4450         * mule-charset.c (syms_of_mule_charset): Update to
4451         0.4 (Shin-Imamiya).
4452
4453 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
4454
4455         * file-coding.c (encode_coding_sjis): New implementation for
4456         UTF2000.  (decode_coding_sjis): Ditto.
4457
4458 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4459
4460         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
4461         Don't define in UTF2000.
4462
4463         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
4464         defined.
4465
4466         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4467         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
4468         MULE.
4469
4470 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4471
4472         * config.h.in (CHAR_IS_UCS4): New macro.
4473
4474         * mule-charset.c (rep_bytes_by_first_byte): Modify for
4475         conventional MULE representation.
4476         (syms_of_mule_charset): Update to 0.3 (Imamiya).
4477
4478         * mule-charset.h: Reverted to original.
4479
4480         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4481         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
4482         "mule-charset.h" if CHAR_IS_UCS4 is defined.
4483
4484         * character.h: New file.
4485
4486         * file-coding.c (Fmake_coding_system): Set 1 to
4487         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
4488         defined.
4489         (encode_coding_no_conversion): New implementation for UTF2000.
4490
4491         * file-coding.h (struct Lisp_Coding_System): Add new member
4492         `fixed.size'.
4493
4494 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
4495
4496         * file-coding.c (decode_coding_iso2022): Code-point arguments of
4497         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
4498         (encode_coding_iso2022): New implementation for UTF2000.
4499
4500 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4501
4502         * mule-canna.c (c2mu): New implementation for UTF2000.
4503         (m2c): Likewise.
4504
4505 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4506
4507         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
4508
4509 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4510
4511         * file-coding.c (reset_encoding_stream): Set 0 to
4512         `str->iso2022.current_char_boundary' in UTF2000.
4513         (encode_utf8): Don't define in UTF2000.
4514         (encode_coding_utf8): New implementation for UTF-8 representation
4515         of UTF2000.
4516         (complex_vars_of_file_coding): Define coding-system `utf-8'.
4517
4518 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4519
4520         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
4521
4522         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
4523         UTF2000.
4524         (REP_BYTES_BY_FIRST_BYTE): Likewise.
4525
4526         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
4527
4528         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
4529         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
4530         as UTF-8 in UTF2000.
4531         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
4532         (non_ascii_valid_char_p): Don't define in UTF2000.
4533         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
4534         (Lstream_get_emchar_1): Likewise.
4535         (utf-2000-version): New variable in UTF2000.
4536
4537         * lread.c (read_escape): Add new reader `u'.
4538
4539         * insdel.c (three_to_one_table): Don't define in UTF2000.
4540         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
4541         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4542         UTF2000.
4543         (bytind_to_bufpos_func): Likewise.
4544         (buffer_mule_signal_inserted_region): Likewise.
4545         (vars_of_insdel): Don't initialize `three_to_one_table'.
4546         (init_buffer_text): Use `buf->text->mule_size' instead of
4547         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4548         UTF2000.
4549
4550         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
4551         UTF-8 representation in UTF2000.
4552         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
4553         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
4554         (decode_coding_iso2022): Don't define local variable `lb' in
4555         UTF2000; don't use LEADING_BYTE in UTF2000; use
4556         `DECODE_ADD_UCS_CHAR' in UTF2000.
4557         (convert_to_external_format): Decode as UTF-8 in UTF2000.
4558
4559         * config.h.in (UTF2000): New macro.
4560
4561         * buffer.h (struct buffer_text): Add new member `mule_size' and
4562         don't add `mule_shifter' and `mule_three_p' in UTF2000.
4563         (valid_char_p): Return always 1 in UTF2000.
4564         (MAX_EMCHAR_LEN): 6 in UTF2000.
4565         (three_to_one_table): Don't define in UTF2000.
4566         (real_bufpos_to_bytind): Modify for UTF-8 representation in
4567         UTF2000.
4568         (real_bytind_to_bufpos): Likewise.
4569
4570         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
4571
4572 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4573
4574         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
4575         representation change.
4576         (Vutf_2000_version): New variable.
4577         (leading_code_private_11): New variable.
4578         (syms_of_mule_charset): Add new variables `utf-2000-version' and
4579         `leading-code-private-11'.
4580
4581         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
4582         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
4583         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
4584         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
4585         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
4586         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
4587         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
4588         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
4589         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
4590         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
4591         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
4592         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
4593         (MIN_CHAR_GREEK): New macro.
4594         (MAX_CHAR_GREEK): New macro.
4595         (MIN_CHAR_CYRILLIC): New macro.
4596         (MAX_CHAR_CYRILLIC): New macro.
4597         (MIN_CHAR_HEBREW): New macro.
4598         (MAX_CHAR_HEBREW): New macro.
4599         (MIN_CHAR_THAI): New macro.
4600         (MAX_CHAR_THAI): New macro.
4601         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
4602         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
4603         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
4604         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
4605         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
4606         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
4607         (CHAR_FIELD2): New inline function.
4608         (CHAR_FIELD3): New inline function.
4609         (MULE_CHAR_PRIVATE_OFFSET): New macro.
4610         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
4611         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
4612         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
4613         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
4614         (MIN_CHAR_COMPOSITION): Likewise.
4615         (CHAR_LEADING_BYTE): Modified for character representation change.
4616         (MAKE_CHAR): Likewise.
4617
4618         * lisp.h (Vcharset_latin_iso8859_1): New variable.
4619         (Vcharset_greek_iso8859_7): Likewise.
4620         (Vcharset_cyrillic_iso8859_5): Likewise.
4621         (Vcharset_hebrew_iso8859_8): Likewise.
4622         (Vcharset_thai_tis620): Likewise.
4623         (Vcharset_katakana_jisx0201): Likewise.
4624
4625 2002-11-02  Stephen J. Turnbull  <stephen@xemacs.org>
4626
4627         * XEmacs 21.4.10 "Military Intelligence" is released.
4628
4629 2002-10-17  Raymond Toy  <toy@rtp.ericsson.se>
4630
4631         * nas.c: Update for NAS 1.6 and later, from Jon Trulson.  Was
4632         using the NAS private array SoundFileInfo that no longer exists in
4633         NAS 1.6 and later.  Preserve backward compatibility with NAS 1.5a
4634         and earlier.  This is broken for some versions between 1.5a and
4635         1.5f.
4636
4637 2002-10-10  Stephen J. Turnbull  <stephen@xemacs.org>
4638
4639         * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
4640
4641         * emacs.c (shut_down_emacs): Improve crash message.
4642
4643 2002-10-09  Stephen J. Turnbull  <stephen@xemacs.org>
4644
4645         * file-coding.c (determine_real_coding_system): Check for coding
4646         cookie in first LINES_TO_CHECK lines (currently 2).  Cater to
4647         shebangs and Python PEP 263.
4648
4649 2002-10-08  Andy Piper  <andy@xemacs.org>
4650
4651         * glyphs-widget.c (layout_query_geometry): only resize dynamically
4652         if static sizes haven't been set.
4653
4654 2002-08-30  Mike Alexander  <mta@arbortext.com>
4655
4656         * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
4657         to close a socket.
4658
4659 2002-10-03  Stephen J. Turnbull  <stephen@xemacs.org>
4660
4661         * callproc.c (child_setup): 21.4 doesn't have retry_close.
4662
4663 2002-09-20  Mike Sperber <mike@xemacs.org>
4664
4665         (This partially gets back my patch from 2002-07-20 without the
4666         bug.)
4667         * callproc.c (child_setup): Remove Ben's comment noting confusion
4668         over the file descriptors >= 3: close_process_descs() doesn't
4669         close those.  Fix fd range to go up to MAXDESC-1 instead of 64.
4670         * process-unix.c (unix_create_process): Call
4671         begin_dont_check_for_quit to inhibit unwanted interaction (and
4672         thus breaking of X event synchronicity) in the child.
4673
4674 2002-09-26  Golubev I. N.  <gin@mo.msk.ru>
4675
4676         * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
4677         widget.
4678
4679 2002-08-20  Ben Sigelman  <bhsigelm@cs.brown.edu>
4680
4681         * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
4682         instead of while(XtAppPending()&XtIMXEvent).  Upon a gdm logout,
4683         the xemacs process did not exit, but looped infinitely here.  This
4684         fixes that problem.
4685
4686 2002-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
4687
4688         * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
4689         (find_context): Improve comments.
4690
4691         * regex.c (re_compile_fastmap):  Gratuitous #ifdef comment fixes.
4692         (re_match_2): An XCHAR_TABLE operation was missing.
4693
4694         Many of the following changes were inspired by Andy Piper's (now
4695         obsolete) patch to make syntax-table text property lookup optional.
4696
4697         [Documentation]
4698
4699         * syntax.h (top level): Document semantics of syntax flags.
4700         * syntax.c (comstr_start, Fforward_comment): Improve comments.
4701         * syntax.c, syntax.h (top level): Document syntax cache better in
4702         comments.
4703
4704         [Instrument syntax caching (temporary change)]
4705
4706         * syntax.h (enum syntax_cache_statistics_functions, struct
4707         syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
4708         SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
4709         * syntax.c (scan_words, Fforward_comment, scan_lists,
4710         Fbackward_prefix_characters):
4711         * font-lock.c (find_context):
4712         Use them to instrument syntax caching. 
4713         * syntax.c (struct syntax_cache_statistics, scs_statistics,
4714         syntax_cache_statistics_function_names): New type and variables.
4715         * syntax.c (update_syntax_cache): Update and report statistics.
4716
4717         [Major syntax cache optimizations]
4718
4719         syntax.c (lookup_syntax_properties): Default off.
4720
4721         * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
4722         * syntax.c (update_syntax_cache):
4723         Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
4724
4725         [Minor syntax cache optimizations and code clarifications]
4726
4727         * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
4728         SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
4729         SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
4730         SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
4731         SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
4732         (Code clarification.)
4733
4734         * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
4735         scan_lists): Compute code from syncode, use Boolean macros instead
4736         of redundant masking operations.  (Code clarification; any decent
4737         compiler can do this optimization.)
4738
4739         * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
4740         for clarity.
4741
4742         * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
4743         PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
4744         use F*_single_property_change instead of F*_extent_change.
4745         Currently F*_single_property_change is _much_ less efficient.
4746
4747         * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
4748         * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT):  Initialize
4749         syntax_cache.object properly, don't leave Qt or Qnil.
4750         (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
4751         * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
4752         tests for Qt or Qnil.
4753
4754 2002-09-21  Stephen J. Turnbull  <stephen@xemacs.org>
4755
4756         * redisplay.c (point_in_line_start_cache): 
4757         * extents.c (print_extent_1):
4758         Fix warnings.
4759
4760         * extents.c (Fset_extent_property): Document `syntax-table' property.
4761
4762         * extents.h (Fnext_single_property_change): EXFUN it.
4763
4764 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
4765
4766         * search.c (clear_unused_search_regs): New static function.
4767         (search_buffer): 
4768         (simple_search): 
4769         (boyer_moore):
4770         Use it.  Fixes "stale match data" bug reported by Martin Stjernholm.
4771         Minor clarifications in comments.
4772
4773         * regex.c (re_match_2_internal): Ensure no stale submatches.
4774
4775 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
4776
4777         * event-Xt.c (enqueue_focus_event): Add missing prototype.
4778
4779 2002-08-29  Jerry James  <james@xemacs.org>
4780
4781         * lisp.h: structrures -> structures.
4782
4783 2002-06-03  Andy Piper  <andy@xemacs.org>
4784
4785         * frame.c (frame_conversion_internal): add conversion appropriate
4786         for setting frame dimensions in pixels.
4787
4788         * console.h (struct console_methods): add device-specific widget
4789         layout functions.
4790
4791         * emacs.c (main_1): initialize glyph vars.
4792
4793         * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
4794         (handle_focus_event_2): new function. Allow focus to
4795         be set to a particular window and widget.
4796         (enqueue_focus_event): new function. Create a
4797         synthetic focus event.
4798         (emacs_Xt_handle_magic_event): call
4799         handle_focus_event_2.
4800
4801         * frame.c (Fset_frame_pixel_height): new function. Allow
4802         pixel-based sizing. Does the right thing on character-oriented
4803         displays.
4804         (Fset_frame_pixel_width): ditto.
4805         (Fset_frame_pixel_size): ditto.
4806         (syms_of_frame): declare.
4807
4808         * general-slots.h: add :vertically-justify and
4809         :horizontally-justify.
4810
4811         * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
4812         (mswindows_widget_border_width): new function.
4813         (mswindows_combo_box_instantiate): set border widths.
4814         (console_type_create_glyphs_mswindows): declare.
4815
4816         * glyphs-widget.c:
4817         (check_valid_justification): allow vertical and horizontal
4818         justification.
4819         (widget_border_width): new function. Call device methods.
4820         (widget_instance_border_width): ditto.
4821         (logical_unit_height): new function. Determine the height of a
4822         logical-unit. Logical units are intended to provide grid-like
4823         layout for subcontrols in a layout. If the layout is
4824         :vertically-justify top then subcontrols will be positioned on
4825         logical-unit boundaries, thus allowing adjacent subcontrols to
4826         line up.
4827         (widget_logical_unit_height): ditto for widgets.
4828         (redisplay_widget): misc cleanup.
4829         (widget_spacing): new function. Call device specific
4830         methods. Intended to be the default gap between adjacent widgets.
4831         (widget_query_geometry): use new spacing functions to determine
4832         appropriate geometry.
4833         (initialize_widget_image_instance): initialize horizontal and
4834         vertical justification.
4835         (widget_instantiate): use logica-units where appropriate for
4836         sizing large widgets.
4837         (button_query_geometry): use widget_instance_border_width.
4838         (tree_view_query_geometry): ditto.
4839         (tab_control_query_geometry): ditto.
4840         (edit_field_query_geometry): new function.
4841         (layout_update): pick up :justify, :horizontally-justify and
4842         :vertically-justify none of which worked previously. :justify is
4843         used as a fallback for both horizontal and vertical justification.
4844         (layout_query_geometry): use logical units to size appropriately.
4845         (layout_layout): ditto.
4846         (Fwidget_logical_to_character_width): new function. Allow users to
4847         convert from logical units to characters so that frame sizes can
4848         be set appropriately.
4849         (Fwidget_logical_to_character_height): ditto.
4850         (syms_of_glyphs_widget): declare.
4851         (image_instantiator_edit_fields): add edit_field_query_geometry.
4852         (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
4853         :horizontally-justify.
4854         (specifier_vars_of_glyphs_widget): new function. Declare
4855         Vwidget_border_width which is not yet used.
4856
4857         * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
4858         (x_widget_border_width): new function.
4859         (x_widget_instantiate): create a sensible name for widgets.
4860         (console_type_create_glyphs_x): declare x_widget_border_width.
4861
4862         * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
4863         (struct Lisp_Image_Instance): add :vertically-justify and
4864         :horizontally-justify.
4865         (LAYOUT_JUSTIFY_TOP): new.
4866         (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
4867         (ROUND_UP): new macro. Round argument up to next integral
4868         interval.
4869
4870         * redisplay-output.c (redisplay_output_layout): misc formatting.
4871
4872         * symsinit.h: declare specifier_vars_of_glyphs_widget.
4873
4874 2002-08-23  Stephen J. Turnbull  <stephen@xemacs.org>
4875
4876         * XEmacs 21.4.9 "Informed Management" is released.
4877
4878 2002-08-19  Andy Piper  <andy@xemacs.org>
4879
4880         * fileio.c (Ffile_truename): on cygwin using win32 normalize to
4881         win32 format.
4882
4883         * realpath.c (xrealpath): normalize drive spec also so that dir
4884         sep chars are not mixed on cygwin.
4885
4886 2002-08-06  Jerry James  <james@xemacs.org>
4887
4888         * window.c (Fsplit_window): Count only half of the divider width
4889         against the left window when splitting horizontally. 
4890
4891 2002-06-24  Andy Piper  <andy@xemacs.org>
4892
4893         * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
4894         toolbar was cleared.
4895
4896         * toolbar-msw.c (mswindows_clear_frame_toolbars): new
4897         function. Split out from mswindows_output_frame_toolbars.
4898         (mswindows_output_frame_toolbars): move clear pieces to
4899         mswindows_output_frame_toolbars.
4900
4901         * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
4902         out from gtk_output_frame_toolbars.
4903         (gtk_output_frame_toolbars): move clear pieces to
4904         gtk_clear_frame_toolbars.
4905
4906         * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
4907         the frame is cleared. How this ever worked before is a mystery.
4908         (x_output_frame_toolbars): Only output toolbars.
4909         (x_clear_frame_toolbars): new. Clear previous toolbar locations.
4910
4911         * gutter.c (update_gutter_geometry):
4912         Mark frame layout changed.
4913         (update_frame_gutter_geometry, update_frame_gutters):
4914         Respect frame_layout_changed.
4915
4916         * console.h (struct console_methods): add
4917         clear_frame_toolbars_method.
4918
4919         * redisplay.c (redisplay_frame): call
4920         update_frame_toolbars_geometry and re-order update_frame_toolbars.
4921
4922         * toolbar.h: declare update_frame_toolbars_geometry.
4923
4924         * toolbar.c (update_frame_toolbars_geometry): new function. Split
4925         out from update_frame_toolbars.  Call clear_frame_toolbars.
4926         (update_frame_toolbars): only output, do not change geometry.
4927
4928         * redisplay.c: add frame_layout_changed.
4929
4930         * redisplay.h: add frame_layout_changed.
4931         (CLASS_RESET_CHANGED_FLAGS): set it.
4932         (GLOBAL_RESET_CHANGED_FLAGS): ditto.
4933         (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
4934         (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
4935
4936         * device.h (struct device): add frame_layout_changed.
4937         (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
4938
4939         * frame.h (struct frame): add frame_layout_changed.
4940         (MARK_FRAME_LAYOUT_CHANGED): new.
4941
4942 2002-06-30  Mike Alexander  <mta@arbortext.com>
4943
4944         * event-msw.c (mswindows_need_event): Don't wait for a new message
4945         if the queue is not empty.  Suggested by Paul Moore.
4946
4947 2002-06-12  Andy Piper  <andy@xemacs.org>
4948
4949         * frame-msw.c (msprinter_init_frame_3): calculate the frame size
4950         for printing on accurately.
4951
4952 2002-06-09  Rick Rankin <rick_rankin@yahoo.com>
4953
4954         * event-msw.c (mswindows_wnd_proc): Add a handler for the
4955         WM_ACTIVATE message. Make sure that the frame is visible if the
4956         window is visible. This seemss to fix the problem where XEmacs
4957         appears to freeze after switching desktops with certain virtual
4958         window managers.
4959         (debug_output_mswin_message): Added code to output message
4960         parameters for WM_WINDOWPOSCHANGED, 
4961         WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
4962
4963 2002-05-25  Andy Piper  <andy@xemacs.org>
4964
4965         * select-x.c (vars_of_select_x): Fix docstring of
4966         x-selection-strict-motif-ownership
4967
4968 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
4969
4970         * keymap.c (get_keymap):
4971         Add comment about do_autoload GCPROs own args.
4972
4973 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
4974
4975         * bytecode.c (execute_optimized_program): check_opcode ifdef
4976         ERROR_CHECK_BYTE_CODE.
4977
4978 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
4979
4980         Thanks to Ben Wing and Michael Sperber.
4981
4982         * eval.c (Fcommand_execute):
4983         (Feval):
4984         (Ffuncall):
4985         (Fmacroexpand_internal):
4986         (function_argcount):
4987         callint.c (Fcall_interactively):
4988         Add comment about do_autoload GCPROs own args.
4989
4990         * (do_autoload): GCPRO both args as well as local Lisp_Object.
4991
4992         * eval.c (Ffuncall): Extra braces to placate GCC.
4993
4994 2002-08-10  Stephen J. Turnbull  <stephen@xemacs.org>
4995
4996         * backtrace.h (grow_specpdl):
4997         (SPECPDL_RESERVE):
4998         * EmacsFrame.c (EmacsFrameSetValues):
4999         * eval.c (grow_specpdl):
5000         * ExternalShell.c (hack_event_masks_1):
5001         * glyphs-x.c (convert_EImage_to_XImage): 
5002         (x_finalize_image_instance):
5003         * ralloc.c (page_size):
5004         (r_alloc_sbrk):
5005         * xgccache.c (gc_cache_hash):
5006         Fix unsigned comparison warnings.
5007
5008 2002-07-29  Jerry James  <james@xemacs.org>
5009
5010         * lread.c (locate_file): Any nonnegative return value indicates
5011         success if MODE is nonnegative.
5012
5013 2002-08-03  Brian A Palmer  <bpalmer@rescomp.Stanford.EDU>
5014
5015         * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
5016         argument. 
5017
5018 2002-07-17  Stephen J. Turnbull  <stephen@xemacs.org>
5019
5020         * process-unix.c (unix_send_process): #ifdef the coding_stream member.
5021
5022         * dumper.c (pdump_get_indirect_count):
5023         (pdump_scan_by_alignment):
5024         (pdump_dump_root_struct_ptrs):
5025         (pdump_dump_rtables):
5026         (pdump_dump_root_objects):
5027         (pdump):
5028         * nas.c (WaveOpenDataForReading):
5029         * fns.c (print_bit_vector):
5030         * font-lock.c (SINGLE_SYNTAX_STYLE):
5031         * glyphs.c (check_for_ignored_expose):
5032         (find_matching_subwindow):
5033         * glyphs-eimage.c:
5034         * imgproc.c (get_histogram):
5035         * redisplay.c (point_in_line_start_cache):
5036         * redisplay-output.c (redisplay_unmap_subwindows):
5037         * symbols.c (defsymbol_massage_name_1):
5038         (defkeyword_massage_name):
5039         (deferror_massage_name_and_message):
5040         * redisplay-x.c (x_output_string): 
5041         * emacs.c (run_temacs_argv_size, run_temacs_args_size):
5042         * frame.h (struct frame):
5043         * filelock.c (current_lock_owner):
5044         * doprnt.c (emacs_doprnt_1):
5045         * lisp.h (struct Lisp_Bit_Vector):
5046         (DO_REALLOC):
5047         Fix warnings.
5048
5049 2002-02-13  Ben Wing  <ben@xemacs.org>
5050
5051         * event-stream.c (reset_key_echo):
5052         * event-stream.c (reset_this_command_keys):
5053         * event-stream.c (execute_command_event):
5054         If console is dead as a result of C-x 5 0, then post-command stuff
5055         needs to be careful and do only non-console-specific stuff.
5056
5057 2002-07-01  Mike Sperber <mike@xemacs.org>
5058
5059         * process-unix.c (unix_send_process): Mark coding_outstream as
5060         non-open upon SIGPIPE.
5061
5062         * event-stream.c (Fnext_event): Reorder switch cases to something
5063         that makes sense.
5064
5065 2001-08-13  Dmitry Astapov  <adept@umc.com.ua>
5066
5067         * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
5068         Don't bogusly reinitialize ascii_character property.
5069
5070 2002-07-08  Mike Sperber <mike@xemacs.org>
5071
5072         * process.c (Fstart_process_internal): Do error checking before we
5073         fork off the child, so the child can't muck with the state of the
5074         parent.
5075
5076 2002-07-08  Mike Sperber <mike@xemacs.org>
5077
5078         * ralloc.c (init_ralloc): Allocate properly for pdump.
5079
5080 2002-06-12  Andy Piper  <andy@xemacs.org>
5081
5082         * glyphs.c (query_string_geometry): check the string.
5083
5084         * glyphs-widget.c (widget_logical_unit_height): cope with nil
5085         widget names.
5086
5087 2002-06-17  Jerry James  <james@xemacs.org>
5088
5089         * sysdll.c: Remove RTLD_GLOBAL initialization.
5090         * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
5091
5092 2002-06-25  Stephen J. Turnbull  <stephen@xemacs.org>
5093
5094         * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
5095
5096 2002-05-16  Mathias Grimmberger  <mgri@zaphod.sax.de>
5097
5098         * sysdep.c (sys_rename): Make sys_rename work for the case where
5099         Windows rename sets errno to EACCES if target file exists.
5100
5101 2002-05-21  Jonathan Harris  <jonathan@xemacs.org>
5102
5103         * device-msw.c (mswindows_handle_page_setup_dialog_box):
5104         Fix detection of metric units to work on Win95
5105
5106 2002-05-21  Stephen J. Turnbull  <stephen@xemacs.org>
5107
5108         * syswindows.h: #define LOCALE_RETURN_NUMBER.  Why, I don't know.
5109
5110 2002-04-25  Andy Piper  <andy@xemacs.org>
5111
5112         * redisplay.c (create_text_block): Remove extra comment trailer.
5113
5114 2002-04-24  Andy Piper  <andy@xemacs.org>
5115
5116         * redisplay.c (create_text_block): Don't actually add propagation
5117         data if the line ends after we have added a glyph.
5118
5119 2002-04-22  Andy Piper  <andy@xemacs.org>
5120
5121         * extents.c (extent_fragment_update): check for glyphs we have
5122         previously displayed.
5123         * extents.c (print_extent_1): warning removal.
5124         * extents.h: change prototype.
5125         * redisplay-output.c (redisplay_normalize_glyph_area): calculate
5126         widths correctly for wide glyphs.
5127         * redisplay.c (position_redisplay_data_type): add end_glyph_width.
5128         * redisplay.c (prop_type): add PROP_GLYPH.
5129         * redisplay.c (struct prop_block): add glyph type
5130         * redisplay.c (add_glyph_rune): when adding part of a glyph add it
5131         to the propagation data.
5132         * redisplay.c (create_text_block): if there is a glyph in the
5133         propagation data use it to salt extent_fragment_update.
5134         * redisplay.c (create_string_text_block): ditto.
5135
5136 2002-04-13  Nix  <nix@esperi.demon.co.uk>
5137
5138         * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
5139         * redisplay-output.c (compare_runes): Compare them.
5140         * redisplay.c: Update copyright date.
5141         * redisplay.c (pos_data): Add need_baseline_computation field.
5142         * redisplay.c (add_glyph_rune): Update ascent, descent, and
5143         need_baseline_computation; zero yoffset. Set max_pixmap_height
5144         for all pixmaps, not just automatically positioned ones.
5145         * redisplay.c (calculate_yoffset): New, compute yoffset values.
5146         * redisplay.c (calculate_baseline): New, compute textual baseline.
5147         * redisplay.c (add_glyph_rune): Call them.
5148         * redisplay.c (create_text_block): Likewise.
5149         * redisplay.c (create_overlay_glyph_block): Likewise.
5150         * redisplay.c (add_margin_runes): Likewise.
5151         * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
5152
5153         * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
5154         * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
5155         * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
5156         * redisplay-msw.c (mswindows_output_string): Likewise.
5157         * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
5158         * redisplay-gtk.c (gtk_output_display_block): Likewise.
5159         * redisplay-x.c (x_output_display_block): Likewise.
5160
5161 2002-03-28  Ben Wing  <ben@xemacs.org>
5162
5163         * redisplay.c: Fixed bug in redisplay
5164         w.r.t. hscroll/truncation/continuation glyphs causing jumping up
5165         and down of the lines, since they're bigger than the line
5166         size. (It was seen most obviously when there's a horizontal scroll
5167         bar, e.g. do C-h a glyph or something like that.) The problem was
5168         that the glyph-contrib-p setting on glyphs was ignored even if it
5169         was set properly, which it wasn't until now.
5170
5171 2002-04-24  Andy Piper  <andy@xemacs.org>
5172
5173         * lisp.h (Dynarr_end): Fix definition.
5174
5175 2002-02-06  Adrian Aichner  <adrian@xemacs.org>
5176
5177         * redisplay.c (mark_redisplay): Remove call to
5178         update_frame_window_mirror.
5179
5180 2001-11-15  Andy Piper  <andy@xemacs.org>
5181
5182         * win32.c (Fmswindows_shell_execute): fix handling of URL's under
5183         cygwin (again).
5184
5185 2002-02-13  Andy Piper  <andy@xemacs.org>
5186
5187         * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
5188         we did in fact enqueue the XM_MAPFRAME event.
5189
5190 2002-01-15  Adrian Aichner  <adrian@xemacs.org>
5191
5192         * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
5193         to fix problem switching between virtual desktops under virtuawin
5194         virtual window manager.
5195
5196 2001-07-30  Adrian Aichner  <adrian@xemacs.org>
5197
5198         * event-msw.c: Typo fix.
5199         * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
5200         magic XM_MAPFRAME event has been sent.
5201
5202 2001-11-23  Andy Piper  <andy@xemacs.org>
5203
5204         * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
5205
5206 2001-11-21  Andy Piper  <andy@xemacs.org>
5207
5208         * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
5209         mouse events outside the frame.
5210
5211 2002-03-20  Andy Piper  <andy@xemacs.org>
5212
5213         * menubar-msw.c (mswindows_popup_menu): warning removal.
5214         * dialog-msw.c (dialog_popped_down): ditto.
5215
5216 2001-12-11  Andy Piper  <andy@xemacs.org>
5217
5218         * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
5219         * dialog-msw.c (mswindows_make_dialog_box_internal): set
5220         popup_up_p.
5221         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
5222         * menubar-msw.c (mswindows_handle_wm_command): ditto.
5223         * menubar-msw.c (mswindows_popup_menu): ditto.
5224
5225 2001-10-29  Andy Piper  <andy@xemacs.org>
5226
5227         * dialog-msw.c (handle_directory_dialog_box): quit if the user
5228         cancels.
5229
5230 2002-01-03  Andy Piper  <andy@xemacs.org>
5231
5232         * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
5233         letters.
5234         (xrealpath): ditto.
5235
5236 2002-03-29  Jonathan Harris  <jonathan@xemacs.org>
5237
5238         * device-msw.c (plist_get_margin): Add arg specifying mm or inches
5239         * device-msw.c (plist_set_margin): Fix multiplicand used for mm
5240         * device-msw.c (mswindows_handle_page_setup_dialog_box):
5241         Detect and handle case where machine is set up for metric units
5242
5243 2002-04-02  Andy Piper  <andy@xemacs.org>
5244
5245         * dired-msw.c (mswindows_get_files): 
5246         * nt.c (mswindows_stat): SetErrorMode() so that file errors are
5247         completely handled by XEmacs. Suggested by Thomas Vogler
5248         <mail@thomas-vogler.de>.
5249
5250 2001-11-14  Andy Piper  <andy@xemacs.org>
5251
5252         * nt.c (REG_ROOT): change registry key to XEmacs.
5253
5254 2002-04-27  Andy Piper  <andy@xemacs.org>
5255
5256         * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
5257
5258 2002-04-26  Andy Piper  <andy@xemacs.org>
5259
5260         * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
5261         behavior.
5262
5263 2002-03-14  Mike Alexander  <mta@arbortext.com>
5264
5265         * event-msw.c (mswindows_unwait_process): New, remove process from
5266         wait list
5267         * process-nt.c (nt_finalize_process_data): Call
5268         mswindows_unwait_process
5269         * console-msw.h: Declare mswindows_unwait_process
5270
5271 2002-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
5272
5273         * editfns.c (Fdecode_time):
5274         (Fformat_time_string):
5275         Check for invalid time.  Thanks to Nick Pakoulin <npak@ispras.ru>.
5276         (make_time): Warning elimination (change arg name).
5277
5278 2001-11-24  Andy Piper  <andy@xemacs.org>
5279
5280         * window.c (Fsplit_window): Doc return type.
5281
5282 2002-04-01  Andy Piper  <andy@xemacs.org>
5283
5284         * emacs.c (Fkill_emacs): Only output message box in interactive
5285         mode.
5286
5287 2002-04-26  Andy Piper  <andy@xemacs.org>
5288  
5289         * config.h.in: pull in 21.5.x change to stop alloca warnings under
5290         cygwin.
5291
5292 2002-03-18  Gregory Steuck  <greg-xemacs-patch@nest.cx>
5293
5294         * unexelf.c:  Use ELFSIZE or define from _LP64 to indicate a 64
5295         bit platform.
5296
5297 2002-05-09  Stephen J. Turnbull  <stephen@xemacs.org>
5298
5299         * XEmacs 21.4.8 "Honest Recruiter" is released.
5300
5301 2002-05-07  Nix  <nix@esperi.demon.co.uk>
5302
5303         Supersedes 2002-04-17 patch.
5304
5305         * process.h (PROCESS_LIVE_P): Use the process status as
5306         evidence of health, not the state of the input stream.
5307         (PROCESS_READABLE_P): Say if the process is readable
5308         from. (It may be dead nonetheless.)
5309         (CHECK_READABLE_PROCESS): Test for that condition.
5310
5311         * process.c (create_process): Use PROCESS_READABLE_P.
5312         (read_process_output, set_process_filter): Likewise.
5313
5314         * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
5315         (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
5316
5317         This code is #if 0'd, this is not the time to add new functions:
5318
5319         * process.c (Fprocess_readable_p): Report readability status.
5320         * process.c (Qprocess_readable_p): New, associated symbol...
5321         * process.c (syms_of_process): ... initialize it.
5322
5323 2002-05-04  Stephen J. Turnbull  <stephen@xemacs.org>
5324
5325         * XEmacs 21.4.7 "Economic Science" is released.
5326
5327 2002-04-17  Nix  <nix@esperi.demon.co.uk>
5328
5329         * process.h (PROCESS_LIVE_P): Use the process status as
5330         evidence of health, not the state of the input stream.
5331
5332 2002-04-30  Charles G. Waldman <cgw@xemacs.org>
5333
5334         * sysdep.c (sys_siglist): change "signum" to "signal"
5335
5336 2001-04-21  Martin Buchholz  <martin@xemacs.org>
5337
5338         * s/darwin.h: New file.
5339         Thanks to Greg Parker <gparker@cs.stanford.edu>.
5340         
5341 2002-04-23  Andreas Jaeger  <aj@suse.de>
5342
5343         * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
5344         which use lib64 for 64-bit libs.
5345         (START_FILES): Likewise.
5346
5347 2002-02-11  Mike Sperber  <mike@xemacs.org>
5348
5349         * device-x.c: 
5350         (x_IO_error_handler):
5351         (x_init_device): Temporarily keep device in static variable
5352         `device_being_initialized' so we can recover gracefully from
5353         internal XOpenDevice failure.  (XOpenDevice is documented to
5354         return NULL on failure, but sometimes calls the IO error handler
5355         instead.)
5356
5357 2002-01-31  John H. Palmieri  <palmieri@math.washington.edu>
5358
5359         * dired.c (Ffile_name_all_completions): Change documentation --
5360         remove reference to completion-ignored-extensions.
5361         * dired.c (vars_of_dired): Change documentation for
5362         completion-ignored-extensions -- remove reference to
5363         file-name-all-completions.
5364
5365 2002-03-06  Jerry James  <james@xemacs.org>
5366
5367         * emodules.c (emodules_load): Fix multiple loading of same module.
5368
5369 2002-01-25  Andrew Begel <abegel@cs.berkeley.edu>
5370         * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
5371         RTLD_LAZY to avoid incorrect symbol binding when using nested
5372         shared libraries on Solaris.
5373
5374 2002-02-12  Stephen J. Turnbull  <stephen@xemacs.org>
5375
5376         * fileio.c (Ffind_file_name_handler): Improve docstring.
5377
5378 2002-01-20  Stephen J. Turnbull  <stephen@xemacs.org>
5379
5380         * fns.c (Fmapconcat): Improve docstring.
5381
5382 2002-01-03  Eric Gillespie, Jr.  <epg@pretzelnet.org>
5383
5384         * device-gtk.c: Add prototype for
5385         emacs_gtk_selection_clear_event_handle.
5386         (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
5387         selection.  Setup signal handler for "selection_clear_event"
5388         (emacs_gtk_selection_clear_event_handle).
5389
5390         * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
5391         other applications owning the clipboard (based on
5392         x_handle_selection_clear).
5393
5394 2001-12-23  William M. Perry  <wmperry@gnu.org>
5395
5396         * menubar-gtk.c (gtk_popup_menu)  Add sanity checks, fix crash.
5397         
5398 2002-01-04  Martin Buchholz  <martin@xemacs.org>
5399
5400         * keymap.c (define_key_alternate_name): Parenthesize EQ.
5401
5402 2001-12-17  Stephen J. Turnbull  <stephen@xemacs.org>
5403
5404         * XEmacs 21.4.6 "Common Lisp" is released.
5405
5406 2001-12-16  Torsten Duwe  <duwe@caldera.de>
5407
5408         * search.c (Freplace_match): Add missing sub-expression functionality.
5409
5410         * buffer.c (decode_buffer): Add a check for pointer type to
5411         decode_buffer, before gcc's CSE optimization reorders a
5412         dereference in front of the allow_string test.
5413
5414 2001-11-16  Darryl Okahata  <darrylo@xemacs.org>
5415
5416         * window.c (window_loop): Fix bug that sometimes prevented
5417         window_loop() from iterating across multiple devices.  Also, at
5418         Ben's request, changed infloop-detecting code to abort() instead
5419         of silently terminating window_loop().
5420
5421 2001-11-21  Stephen J. Turnbull  <stephen@xemacs.org>
5422
5423         Based on analysis and patch by Simon Josefson <jas@extundo.com>.
5424         * editfns.c (make_time): New function.
5425         (Fencode_time): Use it instead of wasteful_word_to_lisp.
5426         * lisp.h (make_time): Prototype and comment it.
5427         * dired.c (wasteful_word_to_lisp): Deprecate.
5428         (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
5429
5430 2001-10-31  Kyle Jones  <kyle_jones@wonderworks.com>
5431
5432         * fileio.c (auto_save_1): Use current coding system, not
5433         escape-quoted.
5434
5435 2001-11-13  Ben Wing  <ben@xemacs.org>
5436
5437         * window.c:
5438         * window.c (window_truncation_on):
5439         * window.c (syms_of_window):
5440         truncate-partial-width-windows should respect the buffer being
5441         displayed, like other redisplay vars.
5442
5443 2001-11-13  Hirokazu FUKUI  <hfukui@sannet.ne.jp>
5444
5445         * event-stream.c (Fread_key_sequence): save current buffer.
5446
5447 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
5448
5449         * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
5450
5451 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
5452
5453         * alloc.c (lcrecord_stats): Add space for types defined in modules.
5454
5455 2001-10-26  Mike Alexander  <mta@arbortext.com>
5456
5457         * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
5458
5459 2001-10-25  Andy Piper  <andy@xemacs.org>
5460
5461         * ChangeLog:
5462         * dialog-msw.c (handle_directory_proc): new function.
5463          (handle_directory_dialog_box): new fucntion.
5464          (handle_file_dialog_box): use new directory dialog support.
5465          (mswindows_make_dialog_box_internal): ditto.
5466         * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
5467         handling.
5468         (mswindows_find_frame): make global.
5469         * fileio.c (Fexpand_file_name): build fix.
5470         * general-slots.h: add Qdirectory.
5471         * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
5472         handling.
5473         * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
5474         cygwin not leaving win32 paths unchanged.
5475         * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
5476         cygwin runtime to do path conversion.
5477         (Fmswindows_shell_execute): fix cygwin handling of URLs.
5478         (syms_of_win32): add new function.
5479         * window.c (window_loop): build fix.
5480
5481 2001-10-15  Andy Piper  <andy@xemacs.org>
5482
5483         (Fmswindows_shell_execute): fix handling of URL's under cygwin.
5484
5485 2001-10-23  Stephen J. Turnbull  <stephen@xemacs.org>
5486
5487         * XEmacs 21.4.5 "Civil Service" is released.
5488
5489 2001-04-08  Danny Colascione  <qtmstr@optonline.net>
5490
5491         * glyphs-x.c: Force buffer-tab highlight update when moving the
5492         buffer, avoiding an ugly black border, used for keyboard focus
5493         indication, on a widget that can never have keyboard focus, the
5494         buffer tab.
5495
5496 2001-08-30  Daiki Ueno  <ueno@unixuser.org>
5497
5498         * process-unix.c (unix_open_multicast_group): Remove too much
5499         conversion between host and network byte order.
5500
5501 2001-09-10  Nix  <nix@esperi.demon.co.uk>
5502
5503         * src/buffer.c (kill_buffer): Undedicate windows showing BUF
5504         before replacing them.
5505
5506         * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
5507         operation.
5508
5509         * src/window.c (undedicate_windows): Use it.
5510         * src/window.h: Add prototype.
5511
5512 2001-09-17  Ben Wing  <ben@xemacs.org>
5513
5514         * fileio.c (normalize_filename):
5515         * fileio.c (Fexpand_file_name):
5516         Fix various C++ compile errors in Andy's recent code.
5517         
5518         * callint.c (Fcall_interactively):
5519         * editfns.c (Ftemp_directory):
5520         * editfns.c (Fuser_full_name):
5521         * emacs.c (argmatch):
5522         * lread.c (locate_file_map_suffixes):
5523         * redisplay-x.c (x_ring_bell):
5524         Fix sign-compare warnings.
5525         
5526 2001-09-08  Andy Piper  <andy@xemacs.org>
5527
5528         * fileio.c (normalize_filename): copied from nt.c
5529         * (Ffile_name_directory): enable win32 paths under cygwin.
5530         * (Ffile_name_nondirectory): ditto.
5531         * (directory_file_name): ditto.
5532         * (Fexpand_file_name): ditto.
5533         * (Ffile_truename): ditto.
5534         * (Fsubstitute_in_file_name): ditto.
5535         * (Ffile_name_absolute_p): ditto.
5536         * (Ffile_readable_p): ditto.
5537
5538 2001-09-08  Andy Piper  <andy@xemacs.org>
5539
5540         * device-msw.c (mswindows_finish_init_device): remove dde
5541         initialization.
5542         * device-msw.c (mswindows_init_dde): factor out from
5543         mswindows_finish_init_device()
5544         * device-msw.c (init_mswindows_very_early): new function
5545         initialize but don't enable dde.
5546         * emacs.c (main_1): call init_mswindows_very_early.
5547         * event-msw.c:
5548         * event-msw.c (mswindows_dde_callback): only execute when we are
5549         ready.
5550         * symsinit.h: declare init_mswindows_very_early.
5551
5552 2001-05-02  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
5553
5554         [sjt: This has been in 21.5 for months with no complaints.]
5555
5556         * console.h (struct console_methods): Added flags member.
5557         (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
5558         (CONMETH_IMPL_FLAG):
5559         (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
5560         Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
5561
5562         * device.c (window_system_pixelated_geometry): Use the above macros.
5563
5564         * device.h (DEVICE_IMPL_FLAG): Macro to check a device
5565         implememntation flag.
5566         * device.h (DEVICE_DISPLAY_P): Use it.
5567
5568         * frame.c (delete_frame_internal): Use the above macro.
5569
5570         * redisplay.c (redisplay_device): Use it.
5571         (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
5572         (redisplay_frame): Ditto.
5573
5574         * device-msw.c (mswindows_device_implementation_flags): Removed.
5575         (msprinter_device_implementation_flags): Removed.
5576         (console_type_create_device_mswindows): Removed references to
5577         implementation_flags methods, set implementation flags here.
5578         (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
5579
5580         * device-gtk.c (gtk_device_implementation_flags): Removed method.
5581         (console_type_create_device_gtk): Removed method declaration.
5582         Added commented out statement which semantically matches the
5583         commented out statement in the above removed method.
5584
5585 2001-04-14  Gordon Sadler  <gbsadler1@lcisp.com>
5586
5587         The attached patch fixes a few warnings. 
5588
5589         * src/emacs.c: prototype console_type_create_select_gtk for GTK only
5590         * src/frame-gtk.c: guard against GNOME calls in GTK only
5591         * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
5592         * src/select-gtk.c: prototype lisp_to_time
5593
5594 2001-06-08  Ben Wing  <ben@xemacs.org>
5595
5596         ------ gc-in-window-procedure fixes ------
5597         
5598         * alloc.c:
5599         * alloc.c (struct post_gc_action):
5600         * alloc.c (register_post_gc_action):
5601         * alloc.c (run_post_gc_actions):
5602         * alloc.c (garbage_collect_1):
5603         Create "post-gc actions", to avoid those dreaded "GC during window
5604         procedure" problems.
5605
5606         * event-msw.c:
5607         Abort, clean and simple, when GC in window procedure.  We want
5608         to flush these puppies out.
5609
5610         * glyphs-msw.c:
5611         * glyphs-msw.c (finalize_destroy_window):
5612         * glyphs-msw.c (mswindows_finalize_image_instance):
5613         Use a post-gc action when destroying subwindows.
5614
5615         * lisp.h:
5616         Declare register_post_gc_action().
5617
5618         * scrollbar-msw.c:
5619         * scrollbar-msw.c (unshow_that_mofo):
5620         Use a post-gc action when unshowing scrollbar windows, if in gc.
5621
5622         * redisplay.c (mark_redisplay):
5623         Add comment about the utter evilness of what's going down here.
5624
5625         ------ cygwin setitimer fixes ------
5626         
5627         * Makefile.in.in (sheap_objs):
5628         * Makefile.in.in (profile_objs):
5629         * Makefile.in.in (objs):
5630         Compile profile.c only when HAVE_SETITIMER.
5631         
5632         * nt.c (mswindows_sigset):
5633         * nt.c (mswindows_sighold):
5634         * nt.c (mswindows_sigrelse):
5635         * nt.c (mswindows_sigpause):
5636         * nt.c (mswindows_raise):
5637         * nt.c (close_file_data):
5638         Style fixes.
5639         
5640         * nt.c:
5641         Move setitimer() emulation to win32.c, because Cygwin needs it too.
5642         
5643         * profile.c:
5644         * profile.c (Fstart_profiling):
5645         * profile.c (Fstop_profiling):
5646         Make sure we don't compile if no setitimer().  Use qxe_setitimer()
5647         instead of just plain setitimer().
5648         
5649         * signal.c:
5650         * signal.c (set_one_shot_timer):
5651         * signal.c (alarm):
5652         Define qxe_setitimer() as an encapsulation around setitimer() --
5653         call setitimer() directly unless Cygwin or MS Win, in which case
5654         we use our simulated version in win32.c.
5655         
5656         * systime.h:
5657         * systime.h (struct itimerval):
5658         * systime.h (ITIMER_REAL):
5659         Prototype mswindows_setitimer() and qxe_setitimer().  Long
5660         comment about "qxe" and the policy regarding encapsulation.
5661
5662         * win32.c:
5663         * win32.c (setitimer_helper_proc):
5664         * win32.c (setitimer_helper_period):
5665         * win32.c (setitimer_helper):
5666         * win32.c (mswindows_setitimer):
5667         Move setitimer() emulation here, so Cygwin can use it.
5668         Rename a couple of functions and variables to be longer and more
5669         descriptive.  In setitimer_helper_proc(), send the signal
5670         using either mswindows_raise() or (on Cygwin) kill().  If for
5671         some reason we are still getting lockups, we'll change the kill()
5672         to directly invoke the signal handlers.
5673
5674         ------ windows shell fixes ------
5675         
5676         * callproc.c:
5677         * ntproc.c:
5678         Comments about how these two files must die.
5679
5680         * callproc.c (init_callproc):
5681         On MS Windows, init shell-file-name from SHELL, then COMSPEC,
5682         not just COMSPEC. (more correct and closer to FSF.) Don't
5683         force a value for SHELL into the environment. (Comments added
5684         to explain why not.)
5685         
5686         * nt.c (init_user_info):
5687         Don't shove a fabricated SHELL into the environment.  See above.
5688
5689 2001-06-01  Ben Wing  <ben@xemacs.org>
5690
5691         * Makefile.in.in (ldflags):
5692         eliminate that pesky "defaulting to 00401000" warning.
5693         * nt.h:
5694         eliminate warnings.
5695
5696 2001-06-15  Golubev I. N.  <gin@mo.msk.ru>
5697
5698         * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
5699         * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
5700
5701 2001-04-24  Jerry James <james@xemacs.org>
5702
5703         * faces.h: pass parameters to Fadd_spec_to_specifier in the
5704         correct order.
5705
5706 2001-06-01  Ben Wing  <ben@xemacs.org>
5707
5708         * event-msw.c (debug_mswin_messages):
5709         conditionalize the messages that were causing compile errors.
5710         (if only macros could generate #ifdef statements ...)
5711
5712 2001-07-28  Stephen J. Turnbull  <stephen@xemacs.org>
5713
5714         * XEmacs 21.4.4 "Artificial Intelligence" is released.
5715
5716 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
5717
5718         * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
5719
5720 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
5721
5722         * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
5723         * process-unix.c (unix_canonicalize_host_name):
5724         sysdep.c (init_system_name):
5725         Use it to conditionally support IPv6 canonicalization.
5726
5727 2001-05-31  Paul Stodghill  <stodghil@cs.cornell.edu>
5728
5729         * event-msw.c:
5730         Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
5731
5732 2001-05-19  Paul Krause  <paulkrause1@mediaone.net>
5733
5734         * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
5735         attempt is made to scroll when no scroll bar is available.
5736
5737 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
5738
5739         * input-method-motif.c (XIM_delete_frame): New callback.
5740         (XIM_init_frame): Register it.  (Reapplied by SJT, it somehow
5741         got deleted from 21.4.3.)
5742
5743 2001-06-01  Ben Wing  <ben@xemacs.org>
5744
5745         * nt.c (mswindows_utime):
5746         * nt.c (close_file_data):
5747         fix off-by-one-indirection error.
5748
5749 2001-05-29  Adrian Aichner  <adrian@xemacs.org>
5750
5751         * fileio.c: Include nt.h.  Remove lisp_string_set_file_times()
5752         because set_file_times() now takes Lisp_Object path, instead of
5753         char*.
5754         * nt.c: Include buffer.h.
5755         * nt.c (convert_from_time_t): New.
5756         * nt.c (mswindows_utime): New.  Use utime, since SetFileTime does
5757         not set mtime correctly.
5758         * nt.h: Declare mswindows_utime().
5759         * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
5760         path, instead of char*.
5761         * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
5762
5763 2001-05-30  Ben Wing  <ben@xemacs.org>
5764
5765         For 21.4:
5766
5767         (Stephen, just take all event-msw.c patches.  This includes
5768         the "iconify" fix below.)
5769
5770         * event-msw.c:
5771         * event-msw.c (mswindows_dequeue_dispatch_event):
5772         * event-msw.c (assert):
5773         * event-msw.c (emacs_mswindows_quit_p):
5774         * event-msw.c (debug_mswin_messages):
5775         * event-msw.c (debug_output_mswin_message):
5776         * event-msw.c (vars_of_event_mswindows):
5777         Fix yet more problems with C-g handling.
5778         Implement debug-mswindows-events.
5779         
5780 2001-05-24  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
5781
5782         * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
5783         
5784 2001-05-23  Ben Wing  <ben@xemacs.org>
5785
5786         * event-msw.c (winsock_writer):
5787         * event-msw.c (winsock_closer):
5788         prior kludgy code was clobbering the buffer, thinking it was
5789         "unused" space to store an unneeded return value; instead, use
5790         the variable we've already got staring us in the face.
5791
5792 2001-05-17  Andy Piper  <andy@xemacs.org>
5793
5794         * sysfile.h: don't assume that file attributes are boolean
5795
5796 2001-05-23  Ben Wing  <ben@xemacs.org>
5797
5798         * device-msw.c (msprinter_init_device):
5799         signal an error rather than crash with an unavailable network
5800         printer (from Mike Alexander).
5801         
5802         * event-msw.c:
5803         * event-msw.c (struct winsock_stream):
5804         * event-msw.c (winsock_writer):
5805         * event-msw.c (winsock_closer):
5806         * event-msw.c (make_winsock_stream_1):
5807         cleanup headers.  fix (hopefully) an error with data corruption
5808         when sending to a network connection.
5809
5810         * fileio.c (Fexpand_file_name): Fix evil code that attempts
5811         to handle the ~user prefix by (a) always assuming we're referencing
5812         ourselves and not even verifying the user -- hence any file with
5813         a tilde as its first char is invalid! (b) if there wasn't a slash
5814         following the filename, the pointer was set *past* the end of
5815         file and we started reading from uninitialized memory.  Now we
5816         simply treat these as files, always.
5817
5818         * buffer.c (common_init_complex_vars_of_buffer): comment change.
5819         
5820 2001-05-19  Ben Wing  <ben@xemacs.org>
5821
5822         * eval.c: doc comment about gcpro'ing in record_unwind_protect.
5823
5824         * process-nt.c:
5825         * process-nt.c (vars_of_process_nt):
5826         remove unused mswindows-quote-process-args.  rec for 21.4.
5827         
5828 2001-05-12  Ben Wing  <ben@xemacs.org>
5829
5830         * event-msw.c (mswindows_dde_callback):
5831         * event-msw.c (mswindows_wnd_proc):
5832         eliminate cygwin warnings.
5833
5834 2001-05-06  Ben Wing  <ben@xemacs.org>
5835
5836         * console-msw.h:
5837         * device-msw.c:
5838         * device-msw.c (print_dialog_worker):
5839         * device-msw.c (mswindows_handle_print_dialog_box):
5840         * device-msw.c (syms_of_device_mswindows):
5841         * dialog-msw.c (mswindows_make_dialog_box_internal):
5842         * general-slots.h:
5843         implement printing the selection when it's selected.
5844
5845 2001-05-20  Drazen Kacar  <dave@arsdigita.com>
5846
5847         * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
5848
5849 2001-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
5850
5851         * lisp.h (EMACS_INT_MAX): This should be one bit less since
5852         EMACS_INT is signed.
5853
5854 2001-04-15  Michael Lausch  <mla@1012surf.net>
5855
5856         * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
5857         gtk_widget_request_size() to give scrollbar >0 width for
5858         GTK >1.2.8.
5859
5860 2001-05-30  William M. Perry  <wmperry@gnu.org>
5861
5862         * event-gtk.c: Check for buttons as modifier keys.
5863
5864 2001-05-25  Craig Lanning  <CraigL@Knology.net>
5865
5866         * s\mingw32.h:
5867         Properly find MinGW's <process.h> inside Cygwin's restructured
5868         include directories.  Don't try to include <cygwin/version.h>
5869         since we are dropping support for MinGW in versions of Cygwin
5870         earlier than b21.
5871         * nt.c:
5872         Drop support for MinGW in versions of Cygwin before b21.
5873         * sysdep.c:
5874         Properly find MinGW's <process.h> inside Cygwin's restructured
5875         include directories.
5876         * syswindows.h:
5877         Drop support for MinGW in versions of Cygwin before b21.
5878         * unexcw.c:
5879         Even though a.out.h is no longer detected by configure, allow
5880         MinGW to use it until we figure out how to do the job with Win32.
5881
5882 2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
5883
5884         * syntax.c (find_start_of_comment):
5885         Fix `unbalanced parentheses' bug when dealing with mixed comment
5886         styles in c++/java/etc. mode
5887
5888 2001-05-29  Mike Alexander  <mta@arbortext.com>
5889
5890         * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
5891         FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
5892
5893 2001-05-17  Andrew Begel  <abegel@eecs.berkeley.edu>
5894
5895         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
5896
5897 2001-03-31  Mike Sperber <mike@xemacs.org>
5898
5899         * search.c (Freplace_match): Support FSF-style specification of
5900         match subexpression when applied to a buffer.
5901
5902 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
5903
5904         * event-stream.c (is_scrollbar_event): add missing semicolon
5905
5906 2001-05-22  Isaac Hollander  <ysh@mindspring.com>
5907
5908         * Makefile.in.in: Use TAR macro instead of hardcoding
5909           tar.  Allows use of GNU tar instead of system tar
5910
5911 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
5912
5913         * event-stream.c (is_scrollbar_event): add missing semicolon
5914
5915 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
5916
5917         * XEmacs 21.4.3 "Academic Rigor" is released.
5918
5919 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
5920
5921         * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
5922
5923 2001-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
5924
5925         * buffer.c (Vcase_fold_search): Remove obsolete
5926           comment about non ASCII case-fold-search.  This
5927           bug has been fixed by case-table changes.
5928
5929 2001-05-11  Stephen J. Turnbull  <stephen@xemacs.org>
5930
5931         * event-msw.c: Restore include of events-mod.h.
5932
5933 2001-04-22   zhaoway  <zw@debian.org>
5934
5935         * event-stream.c (is_scrollbar_event): Noop returning 0 if
5936         !HAVE_SCROLLBARS.
5937
5938 2001-05-10  Stephen J. Turnbull  <stephen@xemacs.org>
5939
5940         * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
5941
5942 2001-05-08  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>
5943
5944         * mule-charset.c (Fmake_charset): Add missing else.
5945
5946 2001-04-23  Ben Wing  <ben@xemacs.org>
5947
5948         * event-msw.c (FAKE_MOD_QUIT):
5949         * event-msw.c (mswindows_dequeue_dispatch_event):
5950         * event-msw.c (mswindows_wnd_proc):
5951         * event-msw.c (emacs_mswindows_quit_p):
5952         Get critical quit working.
5953
5954 2001-05-05  Ben Wing  <ben@xemacs.org>
5955
5956         * console-msw.h:
5957         * device-msw.c:
5958         * device-msw.c (mswindows_get_default_margin):
5959         * frame-msw.c (mswindows_size_frame_internal):
5960         * frame-msw.c (msprinter_init_frame_1):
5961         * frame-msw.c (vars_of_frame_mswindows):
5962         Change top/bottom margin defaults to 0.5 inches.
5963
5964 2001-05-01  Martin Buchholz  <martin@xemacs.org>
5965
5966         Fix link error with gcc 3.0 on Linux.
5967         * terminfo.c (UP): Remove.
5968         * terminfo.c (BC): Remove.
5969         * terminfo.c (PC): Remove.
5970         They weren't used, and in any case, these symbols should be
5971         defined in the *library*.
5972
5973 2001-05-03  Martin Buchholz  <martin@xemacs.org>
5974
5975         * s/aix4.h: Fix crash with xlc -O3.
5976         Improve comment explaining how -O3 works.
5977
5978 2001-04-15  Ben Wing  <ben@xemacs.org>
5979
5980         * event-stream.c:
5981         * event-stream.c (Fnext_event):
5982         * event-stream.c (is_scrollbar_event):
5983         * event-stream.c (execute_command_event):
5984         Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
5985         crash' problem.  His fix introduces other problems.  We filter
5986         out scrollbar events specifically, making them somewhat invisible
5987         to command-building, and not appearing in `this-command-keys'.
5988         More work is still needed (see comments in event-stream.c), but
5989         this fixes all the major problems.
5990
5991 2001-04-20  Ben Wing  <ben@xemacs.org>
5992
5993         * .cvsignore: Added stuff for Windows.
5994
5995 2001-04-28  Ben Wing  <ben@xemacs.org>
5996
5997         * buffer.c (Ferase_buffer):
5998         * editfns.c (buffer_insert1):
5999         * editfns.c (Finsert_before_markers):
6000         * editfns.c (Finsert_string):
6001         * editfns.c (Finsert_char):
6002         * editfns.c (Fdelete_region):
6003         * editfns.c (Fwiden):
6004         * editfns.c (Fnarrow_to_region):
6005         remove bogus lines setting zmacs_region_stays to 0.
6006         
6007 2001-04-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
6008
6009         * process-unix.c (unix_open_network_stream): If connect() fails
6010         invalidate file descriptor after closing it.
6011
6012 2001-03-08  Mike Alexander  <mta@arbortext.com>
6013
6014         * event-msw.c (mswindows_need_event_in_modal_loop):
6015         Don't dispatch a message if we didn't get one.
6016         (mswindows_need_event):
6017         Terminate the correct process when one exits instead of the first
6018         one on Vprocess_list and look for process termination when in
6019         mswindows_protect_modal_loop.
6020
6021 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
6022
6023         * XEmacs 21.4.1 "Copyleft" is released.
6024
6025 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
6026
6027         * input-method-motif.c (XIM_delete_frame): New callback.
6028         (XIM_init_frame): Register it.
6029
6030 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
6031
6032         * XEmacs 21.4.0 "Solid Vapor" is released.
6033
6034 2001-04-15  Ben Wing  <ben@xemacs.org>
6035
6036         * cmdloop.c (call_command_loop):
6037         Fix braino in bit-rotting code.
6038         
6039 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
6040
6041         * extents.c (Fset_extent_endpoints): Force creation of extent info
6042         in buffer_or_string.
6043
6044         * extents.c (process_extents_for_insertion_mapper): Correctly
6045         check for open-open zero-length extents.
6046
6047 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
6048
6049         * lisp.h: New typedefs Memory_count, Element_count.
6050         * regex.c:
6051         * regex.h:
6052         Sign-compare warning elimination: several unsigned -> signed.
6053         Based on work by Ben Wing <ben@xemacs.org>.
6054
6055 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
6056
6057         * XEmacs 21.2.47 "Zephir" is released.
6058
6059 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
6060
6061         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
6062
6063 2001-04-03  Mike Sperber <mike@xemacs.org>
6064
6065         * search.c: Revert previous patch due because of release.
6066
6067 2001-03-30  Ben Wing  <ben@xemacs.org>
6068
6069         * s\cygwin32.h:
6070         Add missing killpg prototype.
6071
6072         * elhash.c:
6073         Add a comment about fixing problems when a new entry is added
6074         while mapping.
6075
6076         * frame-msw.c (mswindows_init_frame_1):
6077         Fix compile warnings.
6078
6079         * menubar.c (vars_of_menubar):
6080         Provide `menu-accelerator-support' to indicate that we properly
6081         support %_ in menu specifications, so that package code can
6082         conditionalize on this (and remove %_ from menu specifications
6083         on older versions).
6084
6085         * event-msw.c:
6086         * scrollbar-msw.c:
6087         * scrollbar-msw.c (can_scroll):
6088         * scrollbar-msw.h:
6089         Fix handling of mouse wheel under Windows to follow standards --
6090         now scrolls window under pointer, not selected window.
6091
6092 2001-03-31  Mike Sperber <mike@xemacs.org>
6093
6094         * search.c (Freplace_match): Support FSF-style specification of
6095         match subexpression when applied to a buffer.
6096
6097 2001-03-15  Martin Buchholz  <martin@xemacs.org>
6098
6099         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
6100         function to modify KEYMAP, so map over a copy of the hash table.
6101
6102 2001-03-21  Martin Buchholz <martin@xemacs.org>
6103
6104         * XEmacs 21.2.46 "Urania" is released.
6105
6106 2001-03-20  Dan Holmsand  <dan@eyebee.com>
6107
6108         * realpath.c (xrealpath): Make file-truename work with symlinks to
6109         /cygdrive paths on cygwin. Always lowercase drive-letters on
6110         native windows.
6111         (cygwin_readlink): Don't try to find canonical filename unless
6112         file exists.
6113
6114 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
6115
6116         * ChangeLog: Log GTK merge.
6117
6118         * dumper.c:
6119         * select-x.c:
6120         * specifier.c:
6121         * symeval.h:
6122         Revert gratuitous whitespace changes from GTK merge.
6123
6124         * emacs.c: Document end of complex #ifdef @ l. 1495.
6125
6126
6127 2001-03-12  Andy Piper  <andy@xemacs.org>
6128
6129         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
6130         have to do likewise.
6131
6132 2001-03-12  Andy Piper  <andy@xemacs.org>
6133
6134         * sysdep.c: we only support mingw now.
6135
6136 2001-03-09  Andy Piper  <andy@xemacs.org>
6137
6138         * unexcw.c (copy_executable_and_dump_data_section): making approx
6139         overrun a warning only.
6140
6141 2001-03-10  William M. Perry  <wmperry@aventail.com>
6142
6143         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
6144         satisfy Stephen's identical-after-cpp plea.
6145
6146 2001-03-02  Ben Wing  <ben@xemacs.org>
6147
6148         * cmds.c:
6149         * cmds.c (Fforward_char):
6150         * syntax.c:
6151         * window.c:
6152
6153         Augment documentation of the most common motion commands to make
6154         note of the shifted-motion support.
6155         
6156 2001-03-02  Ben Wing  <ben@xemacs.org>
6157
6158         * nt.c (mswindows_fstat):
6159         * nt.c (mswindows_stat):
6160         * search.c (boyer_moore):
6161         Fix compile warnings under Windows.
6162         
6163         * sysdep.c (sys_readdir):
6164         Fix buggy filename-conversion code under Mule.
6165
6166 2001-03-09  William M. Perry  <wmperry@aventail.com>
6167
6168         * Makefile.in.in:
6169         * config.h.in:
6170         * console.c:
6171         * console.h:
6172         * device.c:
6173         * device.h:
6174         * dragdrop.c:
6175         * emacs.c:
6176         * event-stream.c:
6177         * events.c:
6178         * events.h:
6179         * faces.c:
6180         * frame.h:
6181         * general-slots.h:
6182         * glyphs.c:
6183         * gutter.c:
6184         * inline.c:
6185         * lisp.h:
6186         * lrecord.h:
6187         * make-src-depend:
6188         * redisplay-output.c:
6189         * redisplay.c:
6190         * symsinit.h:
6191         * sysfile.h:
6192         * toolbar.c:
6193         * window.c:
6194         The Great GTK Merge.
6195
6196         * ChangeLog.GTK:
6197         * console-gtk.c:
6198         * console-gtk.h:
6199         * device-gtk.c:
6200         * emacs-marshals.c:
6201         * emacs-widget-accessors.c:
6202         * event-gtk.c:
6203         * frame-gtk.c:
6204         * gccache-gtk.c:
6205         * gccache-gtk.h:
6206         * glade.c:
6207         * glyphs-gtk.c:
6208         * glyphs-gtk.h:
6209         * gtk-glue.c:
6210         * gtk-xemacs.c:
6211         * gtk-xemacs.h:
6212         * gui-gtk.c:
6213         * gui-gtk.h:
6214         * menubar-gtk.c:
6215         * native-gtk-toolbar.c:
6216         * objects-gtk.c:
6217         * objects-gtk.h:
6218         * redisplay-gtk.c:
6219         * scrollbar-gtk.c:
6220         * scrollbar-gtk.h:
6221         * select-gtk.c:
6222         * toolbar-gtk.c:
6223         * ui-byhand.c:
6224         * ui-gtk.c:
6225         * ui-gtk.h:
6226         The Great GTK Merge: new files.
6227
6228 2001-02-26  Ben Wing  <ben@xemacs.org>
6229
6230         Reapplied Lstream change.
6231
6232 2001-02-26  Ben Wing  <ben@xemacs.org>
6233
6234         Undid the last change, since it is more controversial than I
6235         thought.  It should be back in at some point soon.
6236         
6237 2001-02-25  Ben Wing  <ben@xemacs.org>
6238
6239         * buffer.c:
6240         * callproc.c (Fold_call_process_internal):
6241         * event-msw.c (ntpipe_slurp_reader):
6242         * event-msw.c (ntpipe_shove_writer):
6243         * event-msw.c (winsock_reader):
6244         * event-msw.c (winsock_writer):
6245         * file-coding.c:
6246         * file-coding.c (detect_eol_type):
6247         * file-coding.c (detect_coding_type):
6248         * file-coding.c (determine_real_coding_system):
6249         * file-coding.c (Fdetect_coding_region):
6250         * file-coding.c (decoding_reader):
6251         * file-coding.c (decoding_writer):
6252         * file-coding.c (mule_decode):
6253         * file-coding.c (Fdecode_coding_region):
6254         * file-coding.c (encoding_reader):
6255         * file-coding.c (encoding_writer):
6256         * file-coding.c (mule_encode):
6257         * file-coding.c (Fencode_coding_region):
6258         * file-coding.c (detect_coding_sjis):
6259         * file-coding.c (decode_coding_sjis):
6260         * file-coding.c (encode_coding_sjis):
6261         * file-coding.c (detect_coding_big5):
6262         * file-coding.c (decode_coding_big5):
6263         * file-coding.c (encode_coding_big5):
6264         * file-coding.c (detect_coding_ucs4):
6265         * file-coding.c (decode_coding_ucs4):
6266         * file-coding.c (encode_coding_ucs4):
6267         * file-coding.c (detect_coding_utf8):
6268         * file-coding.c (decode_coding_utf8):
6269         * file-coding.c (encode_coding_utf8):
6270         * file-coding.c (detect_coding_iso2022):
6271         * file-coding.c (decode_coding_iso2022):
6272         * file-coding.c (encode_coding_iso2022):
6273         * file-coding.c (decode_coding_no_conversion):
6274         * file-coding.c (encode_coding_no_conversion):
6275         * glyphs-x.c (write_lisp_string_to_temp_file):
6276         * gpmevent.c (tty_get_foreign_selection):
6277         * lisp.h:
6278         * lstream.c:
6279         * lstream.c (Lstream_flush_out):
6280         * lstream.c (Lstream_adding):
6281         * lstream.c (Lstream_write_1):
6282         * lstream.c (Lstream_write):
6283         * lstream.c (Lstream_raw_read):
6284         * lstream.c (Lstream_read_more):
6285         * lstream.c (Lstream_read):
6286         * lstream.c (Lstream_unread):
6287         * lstream.c (Lstream_fputc):
6288         * lstream.c (stdio_reader):
6289         * lstream.c (stdio_writer):
6290         * lstream.c (filedesc_reader):
6291         * lstream.c (filedesc_writer):
6292         * lstream.c (lisp_string_reader):
6293         * lstream.c (struct fixed_buffer_stream):
6294         * lstream.c (make_fixed_buffer_input_stream):
6295         * lstream.c (make_fixed_buffer_output_stream):
6296         * lstream.c (fixed_buffer_reader):
6297         * lstream.c (fixed_buffer_writer):
6298         * lstream.c (struct resizing_buffer_stream):
6299         * lstream.c (resizing_buffer_writer):
6300         * lstream.c (dynarr_writer):
6301         * lstream.c (lisp_buffer_reader):
6302         * lstream.c (lisp_buffer_writer):
6303         * lstream.h:
6304         * lstream.h (lstream_implementation):
6305         * lstream.h (struct lstream):
6306         * md5.c (Fmd5):
6307         * process-nt.c (nt_send_process):
6308         * process-unix.c (unix_send_process):
6309         
6310         Correct Lstream lossage due to mixing of signed and unsigned
6311         quantities.  All Lstream uses of size_t and ssize_t are now a
6312         single signed data type Lstream_data_count.  This fixes problems
6313         under Windows with sending large quantities of data to a process,
6314         and may well fix other subtle bugs.
6315
6316 2001-02-23  Martin Buchholz <martin@xemacs.org>
6317
6318         * XEmacs 21.2.45 "Thelxepeia" is released.
6319
6320 2001-02-21  Martin Buchholz  <martin@xemacs.org>
6321
6322         * lisp-union.h (XSETINT): 
6323         (XSETCHAR):
6324         (XSETOBJ): 
6325         Reverse previous change of 2001-02-06.
6326
6327 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
6328
6329         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
6330         buffers.
6331         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
6332         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
6333         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
6334         * regex.c (POS_AS_IN_BUFFER): removed
6335         * regex.c (re_search_2):
6336         * regex.c (re_match_2):
6337         Don't use an offset of 1 when calculating buffer positions, since
6338         `BI_BUF_BEGV' does it already.
6339
6340 2001-02-18  Wim Dumon  <wim@easics.be>
6341
6342         * insdel.c (prepare_to_modify_buffer): Also check for
6343         supersession when clash-detection is enabled. 
6344
6345 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
6346
6347         * regex.c (re_match_2_internal):
6348         Convert temp characters from 'const unsigned char' to 're_char'.
6349         Fix crashing bug with extended characters under mule.
6350         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
6351         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
6352         font-lock, pdump, and new syntax-table code.
6353         * syntax.c (find_start_of_comment):
6354         (find_end_of_comment):
6355         (forward-comment):
6356         Fix crashing bugs involving moving beyond end of buffer.
6357         * syntax.c (find_start_of_comment):
6358         Fixed logic to allow proper detection of cases where the same
6359         character is used to end both a two-char comment start and a
6360         two-char comment end sequence. Fixes `(forward-comment -1)'.
6361         * syntax.c (find_start_of_comment):
6362         Return position just past last comment-end character for all cases
6363         (previously was only done for two-char comment-end sequences).
6364         * syntax.c (forward-comment):
6365         Take value returned from `find_end_of_comment', rather than
6366         incrementing it.
6367         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
6368         Properly deal with BUFFERP (syntax_cache.object)
6369
6370 2001-02-17  Martin Buchholz  <martin@xemacs.org>
6371
6372         * alloc.c (Fgarbage_collect): 
6373         * alloc.c (make_bit_vector_from_byte_vector):
6374         -Wsign-compare-correctness.
6375
6376 2001-02-16  Martin Buchholz  <martin@xemacs.org>
6377
6378         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
6379         (XSETCHAR): Likewise.
6380         (XSETOBJ): Likewise.
6381
6382 2001-02-15  Martin Buchholz  <martin@xemacs.org>
6383
6384         * mule-canna.c (canna-func-delete_previous): 
6385         Rename to canna-func-delete-previous.
6386
6387 2001-02-14  Martin Buchholz  <martin@xemacs.org>
6388
6389         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
6390
6391 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
6392
6393         * font-lock.c (find_context): Fix C++ compile errors introduced by
6394         recent patch
6395
6396 2001-02-13  Martin Buchholz  <martin@xemacs.org>
6397
6398         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
6399         pragma, but earlier ones barf on the same pragma.
6400
6401 2001-02-06  Mike Sperber <mike@xemacs.org>
6402
6403         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
6404         `configure-mule-lisp-directory'.
6405
6406 2001-02-12  Martin Buchholz  <martin@xemacs.org>
6407
6408         Make sure dump-id.c is compiled in the same way as other .c's.
6409         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
6410         * dump-id.h: Remove.
6411         * emacs.c: Move dump-id.h into dumper.h.
6412         * dumper.h: Move dump-id.h into dumper.h.
6413         * Makefile.in.in:
6414         Use standard .c.o rule for building dump-id.o.
6415         Remove preprocessor flags from link command.
6416         Add dump-id.o to ${otherobjs} if PDUMP.
6417
6418 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
6419
6420         Port FSF 20.7 syntax table improvements.
6421         * syntax.c.
6422         * syntax.h.
6423
6424         Fixups for new syntax table stuff.
6425         * dired.c: Include syntax.c.
6426         (Fdirectory_files): Initialize regex_match_object and
6427         regex_emacs_buffer.
6428         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
6429         and Fget_char_property.
6430
6431         Use ported FSF 20.7 syntax table improvements.
6432         * font-lock.c.
6433         * regex.c.
6434         * search.c.
6435         
6436 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6437
6438         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
6439         Unixware's enum boolean from sys/types.h.
6440
6441 2001-02-10  Martin Buchholz  <martin@xemacs.org>
6442
6443         Fix support for building with latest Purify.
6444         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
6445         (PURIFY_FLAGS): Likewise.
6446
6447 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6448
6449         * fileio.c (lisp_string_set_file_times): New.
6450         * fileio.c (Fcopy_file): Use it.
6451         Fixes bug:
6452         (copy-file filename non-ascii-filename t t)
6453         ==> No such file or directory, non-ascii-filename
6454
6455 2001-02-10  Martin Buchholz  <martin@xemacs.org>
6456
6457         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
6458         USHRT_MAX seems clearer than ~0 anyways.
6459
6460 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6461
6462         dumper improvements.  Inspired by Olivier.
6463         * dumper.c (pdump_max_align): New.
6464         * dumper.c (pdump_add_entry): Use pdump_max_align.
6465         * dumper.c (pdump_get_entry_list): Likewise.
6466         * dumper.c (pdump_scan_by_alignment): Likewise.
6467         Don't iterate through unnecessary alignments.
6468         * dumper.c (pdump_file_get): No need to align result of malloc().
6469         * dumper.c (pdump_mallocadr): Remove.  
6470         The result of malloc() is guaranteed to be maximally aligned.
6471         * dumper.c: s/elmt/elt/g;
6472         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
6473         * dumper.c (pdump_alert_undump_object): Likewise.
6474         * dumper.c (pdump_align_table): 
6475         Don't support alignments > 64.
6476         Store ALIGNOF's, not shift counts, in table.
6477
6478 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6479
6480         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
6481         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
6482         * systime.h: Use HAVE_UTIME.
6483         * sysdep.c (struct utimbuf): Remove.
6484         * sysdep.c (set_file_times): Prefer utime() to utimes().
6485         * config.h.in (HAVE_UTIME): New.
6486         * config.h.in (HAVE_UTIME_H): Remove.
6487         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
6488
6489 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6490
6491         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
6492
6493 2001-02-08  Martin Buchholz  <martin@xemacs.org>
6494
6495         * s/irix6-0.h: Use the standard system memmove, not bcopy.
6496
6497 2001-02-08  Martin Buchholz <martin@xemacs.org>
6498
6499         * XEmacs 21.2.44 "Thalia" is released.
6500
6501 2001-02-06  Martin Buchholz  <martin@xemacs.org>
6502
6503         Fixes crashes in kill-emacs on some systems.
6504         * process-unix.c (unix_kill_child_process):
6505         It's OK for kill() to fail with ESRCH.
6506
6507 2001-02-07  Martin Buchholz  <martin@xemacs.org>
6508
6509         Contortions to make .gdbinit tricks work on most systems.
6510         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
6511         * alloc.c (dbg_valmask): Make non-const.
6512         * alloc.c (dbg_typemask): Make non-const.
6513         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
6514         * alloc.c (dbg_valbits): Make non-const.
6515         * alloc.c (dbg_gctypebits): Make non-const.
6516         * .gdbinit (decode_object): Make it work with AIX cc.
6517
6518 2001-02-06  Martin Buchholz  <martin@xemacs.org>
6519
6520         * elhash.c (make_general_lisp_hash_table):
6521         Use simpler and more efficient calloc to clear entries.
6522
6523 2001-02-07  Martin Buchholz  <martin@xemacs.org>
6524
6525         * window.c (window_scroll): Work around an AIX C compiler bug.
6526         Fixes 'scroll-up' does nothing problem with xlC.
6527
6528 2001-02-05  Martin Buchholz  <martin@xemacs.org>
6529
6530         * .gdbinit: Remove obsolete comment.
6531
6532 2001-01-31  Mike Alexander  <mta@arbortext.com>
6533
6534         * select.c (Fown_selection_internal): Set owned_p for device
6535         method correctly.
6536
6537 2001-02-01  Martin Buchholz  <martin@xemacs.org>
6538
6539         Port to g++ 2.97.
6540         "not" cannot be used as a macro name as it is an operator in C++
6541         * config.h.in: Stop #defining `not'.
6542         * chartab.c (check_category_char): not ==> not_p
6543         * chartab.h: Likewise.
6544         * regex.c (re_match_2_internal): Likewise.
6545
6546 2001-02-02  Martin Buchholz  <martin@xemacs.org>
6547
6548         * lisp-disunion.h: Fix up comments.
6549
6550 2001-01-31  Martin Buchholz  <martin@xemacs.org>
6551
6552         * keymap.c (define_key_check_and_coerce_keysym):
6553         (syms_of_keymap):
6554         Support mouse-6 and mouse-7 bindings in the obvious way.
6555
6556 2001-02-01  Martin Buchholz  <martin@xemacs.org>
6557
6558         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
6559
6560 2001-01-30  Martin Buchholz  <martin@xemacs.org>
6561
6562         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
6563         Previous patch missed DEFVAR_INT_MAGIC.
6564         Make sure future DEFVAR_foo use correct types.
6565         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
6566         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
6567         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
6568         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
6569         * (DEFVAR_INT): Likewise.
6570         * redisplay.c (vertical_clip): Should be of type Fixnum.
6571         * redisplay.c (horizontal_clip): Likewise.
6572         * lisp.h (dump_add_opaque_int): New.
6573         (dump_add_opaque_fixnum): New.
6574
6575 2001-01-29  Andy Piper  <andy@xemacs.org>
6576
6577         * glyphs-widget.c (check_valid_int_or_function): allow symbols
6578         since they can be eval'ed
6579
6580 2001-01-29  Martin Buchholz  <martin@xemacs.org>
6581
6582         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
6583         Oops, XEmacs redefines `class'.  Use `typename' instead.
6584
6585 2001-01-28  Martin Buchholz  <martin@xemacs.org>
6586
6587         * dumper.c: Fix C++ compile errors.
6588
6589 2001-01-29  Martin Buchholz  <martin@xemacs.org>
6590
6591         * tparam.c: Use correct prototypes.
6592
6593 2001-01-28  Martin Buchholz  <martin@xemacs.org>
6594
6595         * sysproc.h: #include util.h for NetBSD's openpty.
6596
6597 2001-01-27  Martin Buchholz  <martin@xemacs.org>
6598
6599         More 64-bit correctness.
6600         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
6601         Use a typedef `fixnum' for the type used for DEFVAR_INT.
6602         Fix up comments.
6603         This finally finishes the 64-bit SGI port.
6604         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
6605         * symbols.c: Fix up comments and type casts.
6606         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
6607         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
6608         * symeval.h (Fixnum): New type.
6609         * symeval.h (symbol_value_type): Fix up comment.
6610
6611         * commands.h:
6612         * nt.c:
6613         * emacs.c:
6614         * data.c:
6615         * redisplay.c:
6616         * abbrev.c:
6617         * dired-msw.c:
6618         * event-Xt.c:
6619         * eldap.c:
6620         * window.c:
6621         * sound.c:
6622         * event-stream.c:
6623         * eval.c:
6624         * buffer.c:
6625         * mule-canna.c: A million DEFVAR_INTs here...
6626         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
6627         * extents.c:
6628         * cmdloop.c:
6629         * lisp.h:
6630         * select-x.c:
6631         * console-x.h:
6632         * event-msw.c:
6633         * mule-wnnfns.c:
6634         * hpplay.c:
6635         * ralloc.c:
6636         * alloc.c:
6637         * keymap.c:
6638         * profile.c:
6639         s/int/Fixnum/g in DEFVAR_INT declarations.
6640
6641 2001-01-26  Martin Buchholz  <martin@xemacs.org>
6642
6643         Port pdump to SGI alignment-sensitive environment.
6644         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
6645         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
6646         properly aligned.
6647         Define and use aligned reading and writing macros.
6648         Use buffered stdio instead of posix i/o for faster dumping.
6649         Eliminate kludgy 256 byte space for header.
6650         Read and write from dump file using structs for alignment safety.
6651         * dumper.c (pdump_align_stream): New.
6652         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
6653         * dumper.c (PDUMP_READ_ALIGNED): New.
6654         * dumper.c (PDUMP_WRITE_ALIGNED): New.
6655         * dumper.c (pdump_static_Lisp_Object): New struct.
6656         * dumper.c (pdump_static_pointer): New struct.
6657         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
6658         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
6659         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
6660         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
6661
6662         * dumper.c (pdump_backtrace):
6663         * dumper.c (pdump_get_indirect_count):
6664         * dumper.c (pdump_register_object):
6665         * dumper.c (pdump_register_struct):
6666         * dumper.c (pdump_reloc_one):
6667         * dumper.c (pdump_scan_by_alignment):
6668         * dumper.c (pdump_dump_from_root_struct_ptrs):
6669         * dumper.c (pdump_dump_opaques):
6670         * dumper.c (pdump_dump_rtables):
6671         * dumper.c (pdump_dump_from_root_objects):
6672         * dumper.c (pdump):
6673         * dumper.c (pdump_load_finish):
6674         Use aligned reading and writing.
6675
6676         * dumper.c (pdump_free): Make static.
6677         * dumper.c (pdump_hFile): Likewise.
6678         * dumper.c (pdump_hMap): Likewise.
6679
6680 2001-01-26  Martin Buchholz <martin@xemacs.org>
6681
6682         * XEmacs 21.2.43 "Terspichore" is released.
6683
6684 2001-01-25  Martin Buchholz  <martin@xemacs.org>
6685
6686         Type fiddling for window_config.saved_windows_count
6687         * window.c (struct window_config): 
6688         Make saved_windows_count member unsigned.
6689         * window.c (sizeof_window_config_for_n_windows): 
6690         Make parameter unsigned.
6691         * window.c (mark_window_config):
6692         * window.c (window_config_equal):
6693         * window.c (free_window_configuration):
6694         * window.c (Fset_window_configuration):
6695         * window.c (count_windows):
6696         * window.c (Fcurrent_window_configuration):
6697         * window.c (reinit_vars_of_window):
6698         Update all callers and users.
6699
6700 2001-01-25  Martin Buchholz  <martin@xemacs.org>
6701
6702         Alignment correctness for flexible arrays.
6703         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
6704         Make alignment-correct. Add interesting comments.
6705         * alloc.c (size_vector):
6706         * alloc.c (make_vector_internal):
6707         * alloc.c (make_bit_vector_internal):
6708         * alloc.c (sweep_bit_vectors_1):
6709         * fns.c (size_bit_vector):
6710         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
6711         * window.c (sizeof_window_config_for_n_windows): 
6712         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
6713
6714 2001-01-24  Martin Buchholz  <martin@xemacs.org>
6715
6716         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
6717
6718 2001-01-23  Andy Piper  <andy@xemacs.org>
6719
6720         * select.c (Fown_selection_internal): pass owned_p
6721
6722         * select-msw.c (mswindows_own_selection): New Signature.
6723
6724         * console.h (struct console_methods): add owned_p to
6725         _own_selection.
6726
6727         * select-x.c (x_own_selection): pass owned_p
6728         (hack_motif_clipboard_selection): use owned_p
6729         (vars_of_select_x): new variable -
6730         x_selection_strict_motif_ownership.
6731
6732 2001-01-23  Martin Buchholz  <martin@xemacs.org>
6733
6734         * specifier.h (specifier_data_offset): Remove pointless parens.
6735         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
6736
6737 2001-01-24  Martin Buchholz  <martin@xemacs.org>
6738
6739         Make Lisp_Object sizeof methods be alignment-correct.
6740         pdump must restore objects to the same alignment as the C compiler
6741         assumes.  It really matters on SGIs.
6742         * lstream.c (aligned_sizeof_lstream): New.
6743         (sizeof_lstream): Use aligned_sizeof_lstream.
6744         (Lstream_new): Likewise.
6745         * opaque.c (aligned_sizeof_opaque): New.
6746         (sizeof_opaque): Use aligned_sizeof_opaque.
6747         (make_opaque): Likewise.
6748         * specifier.c (aligned_sizeof_specifier): New.
6749         (sizeof_specifier): Use aligned_sizeof_specifier.
6750         (make_specifier_internal): Likewise.
6751
6752 2001-01-23  Martin Buchholz  <martin@xemacs.org>
6753
6754         * lstream.h (struct lstream): Use max_align_t for trailing data.
6755         * specifier.h (struct Lisp_Specifier): Likewise.
6756
6757 2001-01-22  Martin Buchholz  <martin@xemacs.org>
6758
6759         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
6760         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
6761         (CCL_SUSPEND): Likewise.
6762         (CCL_INVALID_CMD): Likewise.
6763         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
6764         (ccl_driver): Likewise.
6765         (CCL_WRITE_CHAR): Macro hygiene.
6766         (CCL_WRITE_STRING): Macro hygiene.
6767
6768 2001-01-22  Martin Buchholz  <martin@xemacs.org>
6769
6770         Port "portable" dumper to SunOS 4 and HP-UX.
6771         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
6772         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
6773         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
6774
6775 2001-01-22  Martin Buchholz  <martin@xemacs.org>
6776
6777         * lisp.h (ALIGNOF): A better definition for C++.
6778
6779 2001-01-20  Martin Buchholz  <martin@xemacs.org>
6780
6781         Macro hygiene.
6782         Fix printf warnings: int format, long int arg.
6783         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
6784         (PUSH_FAILURE_POINT): Use correct printf formats.
6785         (POP_FAILURE_POINT): Use correct printf formats.  
6786         Use do {...} while (0)
6787
6788 2001-01-20  Martin Buchholz <martin@xemacs.org>
6789
6790         * XEmacs 21.2.42 "Poseidon" is released.
6791
6792 2001-01-20  Martin Buchholz  <martin@xemacs.org>
6793
6794         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
6795
6796 2001-01-19  Martin Buchholz  <martin@xemacs.org>
6797
6798         De-kludgify FIXED_TYPE free list frobbing.
6799         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
6800         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
6801         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
6802         * alloc.c (Lisp_Free): New pseudo lisp object definition.
6803         * alloc.c (LRECORD_FREE_P): New.
6804         * alloc.c (MARK_LRECORD_AS_FREE): New.
6805         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
6806         * alloc.c (STRUCT_FREE_P): Deleted.
6807         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
6808         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
6809         * alloc.c (STRING_CHARS_FREE_P): New.
6810         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
6811         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
6812         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
6813         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
6814         * alloc.c (resize_string): Use new definitions.
6815         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
6816         * alloc.c (verify_string_chars_integrity): Use new definitions.
6817         * alloc.c (compact_string_chars): Use new definitions.
6818         * alloc.c: Update monster comments.
6819         * lrecord.h (lrecord_type): Add some new lrecord types for
6820         alloc.c's use.
6821
6822 2001-01-18  Martin Buchholz  <martin@xemacs.org>
6823
6824         Improve alignment hackery.
6825         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
6826         (max_align_t): Moved from opaque.h - general purpose.
6827         (ALIGN_PTR): Use size_t, not long.
6828         * opaque.h (max_align_t): Move to lisp.h.
6829
6830 2001-01-18  Norbert Koch  <nk@LF.net>
6831
6832         * gui.h: Fix and add prototypes to fix build problems.
6833
6834 2001-01-18  Martin Buchholz  <martin@xemacs.org>
6835
6836         temacs is going away, so `dump-temacs' is now a bad name.
6837         * .dbxrc (dump-temacs): Rename to `dmp'.
6838         * .gdbinit (dump-temacs): Rename to `dmp'.
6839
6840 2001-01-17  Andy Piper  <andy@xemacs.org>
6841
6842         * glyphs.c (print_image_instance): comment to make martin happy.
6843
6844         * glyphs-x.c (x_redisplay_widget): update faces after a frame
6845         change.
6846
6847         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
6848         activation.
6849         (mswindows_tab_control_redisplay): warning suppression.
6850
6851         * glyphs-widget.c (widget_update): re-write to cope with updated
6852         items.
6853         (widget_instantiate): use new gui_item functions.
6854         (tab_control_update): deleted.
6855         (progress_gauge_update): deleted.
6856         (image_instantiator_progress_guage): take out update reference.
6857         (image_instantiator_tree_view): ditto.
6858         (image_instantiator_tab_control): ditto.
6859
6860         * gui.c (widget_gui_parse_item_keywords): new function. Do things
6861         Right the new way.
6862         (gui_item_add_keyval_pair): re-write to cope with descriptors and
6863         return whether anything was changed.
6864         (update_gui_item_keywords): as it sounds.
6865
6866         * gui.h: declare widget_gui_parse_item_keywords.
6867
6868         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
6869         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
6870
6871 2001-01-17  Martin Buchholz <martin@xemacs.org>
6872
6873         * XEmacs 21.2.41 "Polyhymnia" is released.
6874
6875 2001-01-16  Didier Verna  <didier@xemacs.org>
6876
6877         * glyphs.c (image_instantiate): don't use fallbacks when
6878         instantiating a face's background pixmap by inheritance.
6879
6880 2001-01-14  Mike Sperber <mike@xemacs.org>
6881
6882         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
6883         Conditionalize accordingly.
6884
6885 2001-01-16  Martin Buchholz  <martin@xemacs.org>
6886
6887         * dumper.c (pdump_file_get): Fix a compiler warning.
6888
6889 2001-01-15  Martin Buchholz  <martin@xemacs.org>
6890
6891         Make Purify happy when pdumping.
6892         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
6893         iniitalizing all bits of new lisp object memory.
6894         * symbols.c (Fmake_local_variable): Likewise.
6895         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
6896         * symbols.c (Fdefvaralias): Likewise.
6897         * mule-charset.c (vars_of_mule_charset): Likewise.
6898
6899 2001-01-15  Martin Buchholz  <martin@xemacs.org>
6900         Add the `-nd' flag when running pre-dump operations under the debugger.
6901         * .dbxrc (run-temacs): Add `-nd'.
6902         * .dbxrc (update-elc): Likewise.
6903         * .dbxrc (dump-temacs): Likewise.
6904         * .gdbinit (run-temacs): Likewise.
6905         * .gdbinit (check-temacs): Likewise.
6906         * .gdbinit (update-elc): Likewise.
6907         * .gdbinit (dump-temacs): Likewise.
6908
6909 2001-01-14  Martin Buchholz  <martin@xemacs.org>
6910
6911         Allow building 64-bit executables on AIX with GNU malloc, e.g.
6912         export OBJECT_MODE=64
6913         configure --pdump --use-union-type=no
6914         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
6915         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
6916
6917         * miscplay.c (sndcnv8U_2mono):
6918         Avoid two uses of `++' in the same expression.
6919         Suppresses a GCC warning.
6920
6921 2001-01-13  Martin Buchholz  <martin@xemacs.org>
6922
6923         Make sure future compilers don't miscompile alloc.c.
6924         * alloc.c:
6925         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
6926         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
6927
6928 2001-01-12  Martin Buchholz  <martin@xemacs.org>
6929
6930         * dumper.c: A little post-pdump-rename comment fixup.
6931
6932 2001-01-09  Jerry James  <james@eecs.ku.edu>
6933
6934         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
6935
6936 2001-01-13  Martin Buchholz  <martin@xemacs.org>
6937
6938         * *.[ch]: Globally rename symbols using the following `pdump-rename'
6939         script:
6940         #!/bin/sh
6941         replace_symbol () {
6942           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
6943         }
6944
6945         replace_symbol pdump_wire_lists pdump_weak_object_chains
6946         replace_symbol pdump_wire_list dump_add_weak_object_chain
6947
6948         replace_symbol pdump_wires pdump_root_objects
6949         replace_symbol pdump_wire dump_add_root_object
6950
6951         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
6952         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
6953
6954         replace_symbol dumpstructinfos pdump_root_struct_ptrs
6955         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
6956         replace_symbol dumpstructinfo pdump_root_struct_ptr
6957         replace_symbol dumpstruct dump_add_root_struct_ptr
6958
6959         replace_symbol dumpopaque dump_add_opaque
6960         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
6961         replace_symbol dumpopaqueinfos pdump_opaques
6962         replace_symbol dumpopaqueinfo pdump_opaque
6963
6964         replace_symbol nb_structdump nb_root_struct_ptrs
6965         replace_symbol nb_opaquedump nb_opaques
6966
6967         replace_symbol align_table pdump_align_table
6968         replace_symbol dump_header pdump_header
6969
6970         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
6971         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
6972
6973
6974 2001-01-12  Martin Buchholz  <martin@xemacs.org>
6975
6976         * s/aix4.h: Keep the C for AIX compiler from overaggressively
6977         optimizing bytecount_to_charcount().
6978
6979 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
6980
6981         * config.h.in:
6982         (HAVE_DLFCN_H): Removed.
6983         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
6984
6985 2001-01-06  Martin Buchholz  <martin@xemacs.org>
6986
6987         Portable dumper maintainability improvements.
6988         * alloc.c (staticpro):
6989         * alloc.c (staticpro_nodump):
6990         * alloc.c (garbage_collect_1):
6991         * alloc.c (reinit_alloc_once_early):
6992         * alloc.c (init_alloc_once_early):
6993         * alloc.c: Move dumper functions to alloc.c.
6994         * dumper.c (pdump_backtrace):
6995         * dumper.c (pdump_dump_structs):
6996         * dumper.c (pdump_dump_opaques):
6997         * dumper.c (pdump_dump_rtables):
6998         * dumper.c (pdump_dump_wired):
6999         * dumper.c (pdump):
7000         * dumper.c (pdump_load_check):
7001         * dumper.c (pdump_load_finish):
7002         * dumper.c (pdump_file_unmap):
7003         * dumper.c (pdump_file_get):
7004         * dumper.c (pdump_resource_free):
7005         * dumper.c (pdump_resource_get):
7006         * dumper.c (pdump_file_free):
7007         * dumper.c (pdump_file_try):
7008         * dumper.c (pdump_load):
7009         Remove fixed size limits on staticpro(), staticpro_nodump(),
7010         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
7011         Remove custom code for dumping lrecord_implementations_table - use
7012         dumpopaque instead.
7013         Remove (most of the) custom code for dumping staticpros - dump it
7014         like any other dynarr.
7015
7016         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
7017         * dumper.c: Moved functions from alloc.c.
7018         * alloc.c (dumpstruct): Moved to dumper.c.
7019         * alloc.c (dumpopaque): Likewise.
7020         * alloc.c (pdump_wire): Likewise.
7021         * alloc.c (pdump_wire_list): Likewise.
7022
7023         * lisp.h (Dynarr_sizeof): New.
7024         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
7025         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
7026         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
7027
7028         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
7029         * lisp.h (dumpopaque): ditto.
7030         * lisp.h (pdump_wire): ditto.
7031         * lisp.h (pdump_wire_list): ditto.
7032
7033 2001-01-09  Martin Buchholz  <martin@xemacs.org>
7034
7035         * make-src-depend (PrintPatternDeps):
7036         Use `sort' to make output independent of perl version.
7037
7038 2001-01-08  Martin Buchholz  <martin@xemacs.org>
7039
7040         Port to Netbsd 1.5.
7041         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
7042         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
7043
7044 2001-01-03  Didier Verna  <didier@xemacs.org>
7045
7046         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
7047         that `focus_frame' is alive before thinking of calling
7048         `redisplay_redraw_cursor' on it.
7049
7050 2001-01-08  Martin Buchholz <martin@xemacs.org>
7051
7052         * XEmacs 21.2.40 is released.
7053
7054 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
7055
7056         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
7057
7058 2001-01-06  Martin Buchholz  <martin@xemacs.org>
7059
7060         * alloc.c (dbg_valmask): Make const.
7061         * alloc.c (dbg_typemask): Make const.
7062         * alloc.c (dbg_USE_UNION_TYPE): Make const.
7063         * alloc.c (dbg_valbits): Make const.
7064         * alloc.c (dbg_gctypebits): Make const.
7065
7066 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
7067
7068         * redisplay-x.c (x_bevel_area):
7069         redisplay.h (struct rune):
7070         Typo fixes in comments.
7071
7072 2001-01-05  Andy Piper  <andy@xemacs.org>
7073
7074         * glyphs-x.c (x_redisplay_widget): use size changed for offset
7075         adjustment.
7076
7077         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
7078
7079 2001-01-05  Martin Buchholz  <martin@xemacs.org>
7080
7081         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
7082
7083         * mule-ccl.c (stack_idx_of_map_multiple):
7084         Non const global data must not be initialized!
7085         Found by MIYASHITA Hisashi.
7086
7087 2001-01-02  Andy Piper  <andy@xemacs.org>
7088
7089         * frame.c (change_frame_size): make sure frame size is always
7090         marked as changed.
7091
7092         * glyphs.c (image_instance_layout): minor code reuse.
7093
7094         * window.c (Fcurrent_window_configuration): revert previous
7095         change.
7096
7097 2001-01-02  Martin Buchholz  <martin@xemacs.org>
7098
7099         * glyphs.h:
7100         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
7101
7102 2000-12-31  Andy Piper  <andy@xemacs.org>
7103
7104         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
7105         when widget gets unmapped.
7106
7107         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
7108         function. Make sure widgets losing focus don't just drop it.
7109         (handle_focus_event_1): record the widget with focus.
7110
7111 2000-12-31  Andy Piper  <andy@xemacs.org>
7112
7113         * window.c (allocate_window): use
7114         make_image_instance_cache_hash_table.
7115         (make_dummy_parent): ditto.
7116         (Fset_window_configuration): ditto.
7117
7118         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
7119
7120         * glyphs.c (process_image_string_instantiator): use
7121         INSTANTIATOR_TYPE.
7122         (get_image_instantiator_governing_domain): ditto.
7123         (normalize_image_instantiator): ditto.
7124         (instantiate_image_instantiator): ditto.
7125         (make_image_instance_1): ditto.
7126         (image_instantiate): ditto. Key on glyph *and* instantiator type.
7127         (instantiator_eq_equal): new function for use with instance hash
7128         tables.
7129         (instantiator_eq_hash): ditto.
7130         (make_image_instance_cache_hash_table): create a suitable hash
7131         table for storing image instances.
7132
7133         * elhash.h (hash_table_weakness): new internal weakness type
7134         HASH_TABLE_KEY_CAR_VALUE_WEAK.
7135         declare new functions.
7136
7137         * elhash.c (finish_marking_weak_hash_tables): introduce yet
7138         another weakness type for glyphs.
7139         (make_standard_lisp_hash_table): new function split out from
7140         make_general_lisp_hash_table.
7141         (make_lisp_hash_table): call make_standard_lisp_hash_table.
7142         (hash_table_instantiate): ditto.
7143         (Fmake_hash_table): ditto.
7144
7145 2000-12-31  Martin Buchholz <martin@xemacs.org>
7146
7147         * XEmacs 21.2.39 is released.
7148
7149 2000-12-29  Andy Piper  <andy@xemacs.org>
7150
7151         * menubar.c (menubar_visible_p_changed): signal the frame changed.
7152
7153         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
7154         the frame has changed so that we pick up geometry changes such as
7155         menubar visibility.
7156
7157 2000-12-28  Andy Piper  <andy@xemacs.org>
7158
7159         * lastfile.c (my_ebss): make a char array so we can pad the
7160         bss. Fixes cygwin unexec.
7161
7162         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
7163
7164 2000-12-26  Andy Piper  <andy@xemacs.org>
7165
7166         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
7167         comments and try and be more precise about a non-/SIGIO world.
7168         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
7169         SIGIO.
7170
7171         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
7172         we don't normalize to zero width or height.
7173
7174 2000-12-24  Andy Piper  <andy@xemacs.org>
7175
7176         * Makefile.in.in (ldflags): add -mwindows when appropriate.
7177
7178 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
7179
7180         * s/sco5.h: SCO 5 has pty support.
7181
7182 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
7183
7184         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
7185         input-method-xlib.c contains whole contents of input-method-xfs.c,
7186         so we can use input-method-xlib.c's code for USE_XFONTSET
7187         using #ifdefs.
7188         * input-method-xfs.c: removed.
7189
7190 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
7191
7192         * file-coding.h (enum coding_category_type): reorder enumerators to
7193         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
7194         (now one greater than largest real coding_category_type enumerator).
7195         * file-coding.c (coding_category_symbol, coding_category_by_priority,
7196         coding_category_system, fcd_descriptihon_1, decode_coding_category,
7197         Fcoding_category_list, Fset_coding_priority_list,
7198         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
7199         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
7200
7201 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
7202
7203         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
7204         * redisplay-output.c (redisplay_output_window): Clear top of window
7205         when face is changed.
7206         * redisplay-x.c (x_redraw_exposed_window): Call
7207         redisplay_clear_top_of_window.
7208         * redisplay.h: Publish redisplay_clear_top_of_window.
7209
7210 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
7211
7212         * buffer.c (Fkill_buffer): Map over all devices.
7213         * window.c (window_loop): Remove UNSHOW_BUFFER code.
7214         (list_windows): New function.
7215         (list_all_windows): Ditto.
7216         (Freplace_buffer_in_windows): Use them.
7217
7218 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
7219
7220         * database.c (berkdb_subtype): Recognize new subtype `queue'.
7221         (Fopen_database): Use `db_create' instead of `db_open'.
7222         (syms_of_database): Initialize Qqueue.
7223
7224 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
7225
7226         * buffer.c (common_init_complex_vars_of_buffer): Initialize
7227         buffer_local_face_property.
7228         * buffer.h (struct buffer): New member buffer_local_face_property.
7229         * window.c (Fset_window_buffer):  Mark window's face as changed
7230         when buffer has buffer local face.
7231         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
7232         * objects.c (color_after_change): Set buffer_local_face_property
7233         when locale of face specifier is buffer.
7234         * objects.c (font_after_change): Ditto.
7235         * objects.c (face_boolean_after_change): Ditto.
7236         * glyphs.c (image_after_change): Ditto.
7237
7238 2000-12-09  Dan Holmsand  <dan@eyebee.com>
7239
7240         * nt.c (mswindows_fstat): Report file permissions, volume serial
7241         number, etc. Code adapted from FSF Emacs 20.7.
7242
7243 2000-12-09  Dan Holmsand  <dan@eyebee.com>
7244
7245         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
7246         of stat when we don't have symbolic links, to make sure
7247         mswindows_stat is called on mswindows.
7248
7249 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
7250
7251         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
7252
7253 2000-12-12  Martin Buchholz  <martin@xemacs.org>
7254
7255         * doprnt.c (emacs_doprnt_1): More printing fixes.
7256         Make printing of numbers compatible with libc and FSF Emacs.
7257         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
7258         Use the system printf to do most of the hard work of formatting,
7259         instead of doprnt_1().
7260         Calculate memory to allocate for format string.
7261         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
7262         (doprnt_1): Cleaner code and documentation.
7263
7264 2000-12-01  Jerry James  <james@eecs.ukans.edu>
7265
7266         * Makefile.in.in: Use the loop variable to install headers.
7267
7268 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
7269
7270         * window.c (Fsplit_window): Don't invalidate face cache.
7271
7272 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
7273
7274         * minibuf.c (Fall_completions): Undo the previous change
7275         which removed checking elements start with space.
7276
7277 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
7278
7279         * mule-canna.c: Didier suppression.
7280
7281 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
7282
7283         * mule-canna.c: rename static unsigned char buf[] to key_buffer
7284         (warning suppression).  Add English comment translations.
7285
7286 2000-12-05  Martin Buchholz  <martin@xemacs.org>
7287
7288         * unexelfsgi.c (unexec): Better test for mmap failure.
7289
7290 2000-12-05  Martin Buchholz <martin@xemacs.org>
7291
7292         * XEmacs 21.2.38 is released.
7293
7294 2000-12-05  Martin Buchholz  <martin@xemacs.org>
7295
7296         * redisplay.c (bar-cursor): Make a user variable.
7297
7298         * symsinit.h: Add init_postgresql_from_environment.
7299
7300 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
7301
7302         * regex.c: Convert to clean C.
7303
7304 2000-12-05  Dan Holmsand  <dan@eyebee.com>
7305
7306         * realpath.c:
7307         Don't #include sysfile.h. Revert to duplicating PATH_MAX
7308         initialization.
7309         (sys_readlink): renamed to system_readlink to avoid conflict with
7310         the other sys_readlink.
7311
7312 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
7313
7314         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
7315
7316 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
7317
7318         * postgresql.c (init_postgresql_from_environment): new function.
7319         (vars_of_postgresql): Move code initializing Lisp variables out and
7320         into init_postgresql_from_environment.
7321         emacs.c (main_1): Call init_postgresql_from_environment if and only
7322         if running a dumped XEmacs.
7323
7324 2000-08-31  Dan Holmsand  <dan@eyebee.com>
7325
7326         * buffer.c: Make find-file-compare-truenames default to true on
7327         windows.
7328
7329         * realpath.c (win32_abs_start):
7330         (cygwin_readlink):
7331         (win32_readlink): New functions.
7332         (xrealpath): Return really real filenames on windows.
7333
7334         * fileio.c (Ffile_truename): Make file-truename work on windows.
7335
7336 2000-11-29  Didier Verna  <didier@xemacs.org>
7337
7338         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
7339         * faces.c (update_face_cachel_data): use it.
7340         * faces.c (add_face_cachel): use it. Complete background pixmap
7341         frobbing in face cache if `update_face_cachel_data' has not done so.
7342
7343 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
7344
7345         * search.c (string_match_1): Don't set last_thing_searched
7346         when search failed.
7347
7348 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
7349
7350         * buffer.c: Include casetab.h
7351         (common_init_complex_vars_of_buffer): Use new case-table object.
7352         * buffer.h: Include casetab.h
7353         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
7354         (DOWNCASE_TABLE_OF): Ditto.
7355         * bufslots.h: Remove char-tables and add case-table.
7356         * casetab.c: Include casetab.h
7357         (CASE_TABLE_P): Removed.
7358         (mark_case_table): New function.
7359         (allocate_case_table): New function.
7360         (Fcase_table_p): Use new case-table.
7361         (case_table_char): New function.
7362         (Fget_case_table): Ditto.
7363         (Fput_case_table): Ditto.
7364         (Fput_case_table_pair): Ditto.
7365         (Fcopy_case_table): Ditto.
7366         (Fcurrent_case_table): Return case-table.
7367         (Fstandard_case_table): Return case-table.
7368         (Fset_case_table): Fix doc-string.
7369         (set_case_table): Use case-table
7370         (syms_of_casetab): DEFSUBR new functions.
7371         (complex_vars_of_casetab): Set up standard case-table.
7372         * casetab.h: New file.
7373         * editfns.c: Include casetab.h
7374         (Fcompare_buffer_substrings): Use case-table.
7375         * inline.c: Include casetab.h
7376         * lisp.h: Remove bogus extern.
7377         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
7378         * search.c: Include casetab.h
7379         (TRANSLATE_ASCII): Removed.
7380         (TRANSLATE): Unconditionally translate character.
7381         (looking_at_1): Use case-table.
7382         (string_match_1): Ditto.
7383         (fast_string_match): Ditto.
7384         (search_command): Ditto.
7385         (search_buffer): Separate boyer_moore.  Check whether
7386         boyer_moore is possible.
7387         (simple_search): New function.
7388         (boyer_moore): Separated from search_buffer. Translate char.
7389
7390 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
7391
7392         * regex.c (RE_TR_ASCII): Removed.
7393         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
7394         (PATFETCH): Call PATFETCH_RAW.
7395         (PATFETCH_RAW): Fetch Emchar.
7396         (PATUNFETCH): Decrement charptr.
7397         (GET_BUFFER_SPACE): Rename b to buf_end.
7398         (BUF_PUSH): Ditto.
7399         (BUF_PUSH_2): Ditto.
7400         (BUF_PUSH_3): Ditto.
7401         (EXTEND_BUFFER): Ditto.
7402         (SET_LIST_BIT): Ditto.
7403         (regex_compile): Ditto.  Translate non ASCII char.
7404         (compile_range): Ditto.
7405         (re_search_2): Ditto.
7406         (re_match_2_internal): Compare Emchar.
7407         (bcmp_translate): Ditto.
7408
7409 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
7410
7411         * lisp.h (basic char/int typedefs):  comment improvement.
7412
7413 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
7414
7415         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
7416         unstomp inhibit_site_lisp.  Improve comments.
7417
7418 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
7419
7420         * mule-charset.c (Fcharset_property):  improve type checking, comments.
7421
7422 2000-11-28  Andy Piper  <andy@xemacs.org>
7423
7424         * redisplay-output.c (redisplay_output_subwindow): make sure we do
7425         clipped display for windows in the gutter also.
7426         (redisplay_display_boxes_in_window_p): change semantics of return
7427         codes to be more intuitive.
7428
7429         * gutter.h: declare display_boxes_in_gutter_p.
7430
7431         * gutter.c (display_boxes_in_gutter_p): new function for
7432         redisplay.
7433
7434 2000-11-22  Andy Piper  <andy@xemacs.org>
7435
7436         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
7437         autodetect domain.
7438
7439 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
7440
7441         * callproc.c (Fold_call_process_internal):
7442         * gpm.c (Freceive_gpm_event):
7443         (tty_get_foreign_selection): Might be just warning supression.
7444         * fileio.c (Fwrite_region_internal):
7445         (Fset_visited_file_modtime):
7446         * keymap.c (event_matches_key_specifier_p):
7447         Initialize GCPROed variable.
7448
7449         * menubar-x.c (command_builder_find_menu_accelerator):
7450         Initialize before use.
7451
7452 2000-11-23  Andy Piper  <andy@xemacs.org>
7453
7454         * unexcw.c (unexec): make the resulting executable executable.
7455
7456 2000-11-21  Martin Buchholz  <martin@xemacs.org>
7457
7458         * doc.c (get_doc_string):
7459         Use size_t, not int, for result of XSTRING_LENGTH.
7460
7461         * cmds.c (Fdelete_char):
7462         * cmds.c (Fpoint_at_eol):
7463         * cmds.c (Fself_insert_command):
7464         Use EMACS_INT, not int, for result of XINT.
7465         Someday, someone will want to insert more than 2**31 identical characters.
7466
7467         * cmds.c (Fdelete_char):
7468         * cmds.c (Fdelete_backward_char):
7469         * syntax.c (Fforward_word):
7470         * syntax.c (Fforward_comment):
7471         Make COUNT argument optional, for consistency with forward-char et al.
7472
7473 2000-11-22  Martin Buchholz  <martin@xemacs.org>
7474
7475         * lisp.h:
7476         * print.c (long_to_string):
7477         Return a useful value: the pointer at end of data written.
7478
7479         * doprnt.c:
7480         Use `static const char * const' for constant strings.
7481         (union printf_arg): Delete `i', `ui' members.
7482         (get_doprnt_args):
7483         (emacs_doprnt_1):
7484         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
7485         Do all printf-ing via the `l' specifier.
7486         Use EMACS_INT instead of int.
7487         Optimize.
7488
7489 2000-11-20  Didier Verna  <didier@xemacs.org>
7490
7491         * faces.c (update_face_cachel_data): don't frob the background
7492         pixmap when the window is being created. The face is needed but
7493         does not exist yet.
7494
7495 2000-11-20  Andy Piper  <andy@xemacs.org>
7496
7497         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
7498         messing with a debug environment.
7499
7500 2000-11-20  Martin Buchholz  <martin@xemacs.org>
7501
7502         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
7503
7504 2000-11-20  Martin Buchholz  <martin@xemacs.org>
7505
7506         * casetab.c (Fcase_table_p): Fix compile error and crash.
7507
7508 2000-11-18  Philip Aston  <philipa@mail.com>
7509
7510         * s/cygwin32.h: Cygwin has SVR4-like pty support.
7511
7512 2000-11-18  Martin Buchholz  <martin@xemacs.org>
7513
7514         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
7515         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
7516
7517 2000-11-17  Martin Buchholz  <martin@xemacs.org>
7518
7519         * config.h.in: Define HAVE_ELF_H if elf.h exists.
7520         * unexelf.c: Use HAVE_ELF_H.
7521         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
7522         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
7523         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
7524         Greg Harrington <greg_harrington@hotmail.com> provided a machine
7525         for testing.
7526         So this is an unexelfsgi.c from a different line of development.
7527
7528 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
7529
7530         * regex.c (RE_TR_ASCII): New function.
7531         (RE_TRANSLATE): Call it.
7532
7533 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
7534
7535         * buffer.h (TRT_TABLE_OF): Remove assert.
7536         (IN_TRT_TABLE_DOMAIN): Removed.
7537
7538 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
7539
7540         * free-hook.c (log_gcpro):
7541         (show_gcprohist): Add support for GCPRO5.
7542
7543 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
7544
7545         * emacs.c (main_1): Improve -sd error message when --pdump=no.
7546
7547 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
7548
7549         * symeval.h: Declare flush_all_buffer_local_cache.
7550
7551         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
7552         (flush_buffer_local_cache): Added.
7553         (flush_all_buffer_local_cache): Added.
7554
7555         * lrecord.h: Remove unused XD_LO_RESET_NIL.
7556
7557         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
7558         (pdump_dump_data): Ditto.
7559         (pdump_reloc_one): Ditto.
7560         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
7561         before dumping.
7562
7563
7564 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
7565
7566         * buffer.c: Remove if 0'ed entry.
7567         * buffer.h: Rewrite TRT to use char-table.
7568         * bufslots.h: Remove mirror tables.
7569         * casetab.c: Remove mirror tables.
7570         (CASE_TABLE_P): New macro.
7571         (Fcase_table_p): Element of a case table is string or char-table.
7572         (make_mirror_trt_table): Removed.
7573         (set_case_table): Setup char-table from strings for backward
7574         compatibility.
7575         * dired.c (Fdirectory_files):
7576         * dired-msw.c: (mswindows_get_files):
7577         * lisp.h: Change prototype of re_pattern_buffer.
7578         * regex.c: (RE_TRANSLATE): New macro.
7579         (TRANSLATE_P): Ditto.
7580         Change translate to type RE_TRANSLATE_TYPE.
7581         * regex.h: Define RE_TRANSLATE_TYPE
7582         * search.c (TRANSLATE): New macro.
7583         (TRANSLATE_ASCII): New macro.
7584         Translate table is changed to Lisp_Object.
7585         (signal_failure): Inhibit return.
7586
7587 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
7588
7589         * device-msw.c:
7590         * eldap.c:
7591         * event-Xt.c:
7592         * event-stream.c:
7593         * print.c:
7594         Do UNGCPRO before return.
7595
7596 2000-11-14  Martin Buchholz <martin@xemacs.org>
7597
7598         * XEmacs 21.2.37 is released.
7599
7600 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
7601
7602         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
7603         Add comments about discarded return value.
7604
7605 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
7606
7607         * callint.c:
7608         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
7609
7610 2000-10-27  Andy Piper  <andy@xemacs.org>
7611
7612         * gutter.c (Fset_default_gutter_position): default left and right
7613         gutters to visible.
7614         (calculate_gutter_size): calculate resonable heuristic for left
7615         and right gutter sizes.
7616         (specifier_vars_of_gutter): change left and right gutter sizes to
7617         autodetect.
7618         (calculate_gutter_size_from_display_lines): new function.
7619         (output_gutter): check for resizing on left and right gutters.
7620         (clear_gutter): don't special case top and left gutters.
7621         (specifier_vars_of_gutter): use new signature for
7622         set_specifier_caching.
7623
7624         * glyphs-x.c (x_redisplay_widget): spelling fix.
7625         * glyphs.c (specifier_vars_of_glyphs):
7626         * menubar.c (specifier_vars_of_menubar):
7627         * redisplay.c (specifier_vars_of_redisplay):
7628         * toolbar.c (specifier_vars_of_toolbar):
7629         * window.c (specifier_vars_of_window):
7630         * scrollbar.c (specifier_vars_of_scrollbar):
7631         (complex_vars_of_scrollbar): use new signature for
7632         set_specifier_caching.
7633
7634         * specifier.c (set_specifier_caching): include recompute flag.
7635         (recompute_one_cached_specifier_in_window): always recompute if
7636         flag set.
7637         (recompute_one_cached_specifier_in_frame): ditto.
7638
7639         * specifier.h (struct specifier_caching): add recompute flag.
7640
7641 2000-10-24  Andy Piper  <andy@xemacs.org>
7642
7643         * unexcw.c (copy_executable_and_dump_data_section): add new
7644         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
7645         5.0 happy.
7646
7647 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
7648
7649         * console-x.h (x_device): New member modifier_release_time.
7650         * event-Xt.c (x_handle_sticky_modifiers):
7651         Bound interval modifier keys are sticky.
7652         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
7653         * events.h: extern it.
7654
7655 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
7656
7657         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
7658
7659 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
7660
7661         * event-stream.c (execute_command_event): Preserve current_events
7662         and the like when event is misc-user-event.
7663         Inhibit quit during the call to maybe_echo_keys.
7664
7665 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
7666
7667         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
7668         symlink when buffer is killed.
7669         (inhibit_clash_detection): New variable.
7670
7671 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
7672
7673         * console.c (Fset_input_method): Trigger redisplay on tty.
7674
7675 2000-11-07  Martin Buchholz  <martin@xemacs.org>
7676
7677         * process.c (Fprocess_status): Revert to previous behavior:
7678         (process-status "nosuchprocess") ==> nil
7679
7680 2000-11-06  Martin Buchholz  <martin@xemacs.org>
7681
7682         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
7683         Work around another GCC 2.95.2 optimizer bug.
7684
7685 2000-11-02  Martin Buchholz  <martin@xemacs.org>
7686
7687         * process.c (Fget_process): Use LIST_LOOP_2.
7688         (kill_buffer_processes): Use LIST_LOOP_2.
7689
7690         * minibuf.c (Fall_completions):
7691         Delete old non-functional code for FSF fourth argument.
7692
7693         * frame.c (frame_matches_frame_spec):
7694         Renamed from `frame_matches_frametype'.  Update all callers.
7695         (device_matches_device_spec):
7696         Renamed from 'device_matches_console_spec'.  Update all callers.
7697
7698         * doc.c (Fsubstitute_command_keys):
7699         Remove buffer overflow crash.  Small code cleanups.
7700
7701         * casetab.c (check_case_table): Simpler code.
7702
7703         * window.c (Freplace_buffer_in_windows):
7704         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
7705         (and similar implementation) as Fdelete_windows_on.
7706         Update all callers.
7707
7708         * alloc.c (Fmake_list):
7709         * alloc.c (make_vector):
7710         * alloc.c (Fmake_vector):
7711         * alloc.c (make_bit_vector):
7712         * alloc.c (Fmake_bit_vector):
7713         * alloc.c (Fbit_vector):
7714         * alloc.c (Fmake_string):
7715         * alloc.c (Fpurecopy):
7716         * alloc.c (Fmemory_limit):
7717         * buffer.c:
7718         * buffer.c (Fget_buffer):
7719         * buffer.c (Fkill_buffer):
7720         * buffer.c (complex_vars_of_buffer):
7721         * bytecode.c (Fcompiled_function_stack_depth):
7722         * callint.c (Fprefix_numeric_value):
7723         * event-stream.c:
7724         * event-stream.c (Fread_key_sequence):
7725         * casetab.c:
7726         * casetab.c (Fcase_table_p):
7727         * casetab.c (check_case_table):
7728         * casetab.c (Fset_case_table):
7729         * casetab.c (Fset_standard_case_table):
7730         * chartab.c:
7731         * chartab.c (Fchar_table_type):
7732         * chartab.c (Freset_char_table):
7733         * chartab.c (Fget_char_table):
7734         * chartab.c (Fget_range_char_table):
7735         * chartab.c (Fput_char_table):
7736         * chartab.c (Fmap_char_table):
7737         * chartab.c (Fcategory_table_p):
7738         * chartab.c (Fcheck_category_at):
7739         * chartab.c (Fchar_in_category_p):
7740         * chartab.c (Fcategory_table):
7741         * chartab.c (Fcopy_category_table):
7742         * chartab.c (Fset_category_table):
7743         * chartab.c (Fcategory_designator_p):
7744         * chartab.c (Fcategory_table_value_p):
7745         * cmds.c (Fdelete_char):
7746         * cmds.c (Fdelete_backward_char):
7747         * cmds.c (Fself_insert_command):
7748         * cmds.c (Fself_insert_internal):
7749         * console.c (Fvalid_console_type_p):
7750         * console.c (Fcdfw_console):
7751         * console.c (Fconsole_type):
7752         * console.c (Fconsole_name):
7753         * console.c (Fconsole_device_list):
7754         * console.c (Fconsole_on_window_system_p):
7755         * data.c:
7756         * data.c (Feq):
7757         * data.c (Fold_eq):
7758         * data.c (Fsubr_interactive):
7759         * data.c (Fchar_to_int):
7760         * data.c (Fint_to_char):
7761         * data.c (Fsetcar):
7762         * data.c (Fsetcdr):
7763         * data.c (Fnumber_to_string):
7764         * data.c (Fstring_to_number):
7765         * data.c (Frem):
7766         * database.c (mark_database):
7767         * database.c (finalize_database):
7768         * database.c (Fdatabase_live_p):
7769         * database.c (Fdatabasep):
7770         * device-x.c (Fx_get_resource):
7771         * device.c (Fdfw_device):
7772         * dired.c:
7773         * dired.c (Ffile_name_completion):
7774         * dired.c (Ffile_name_all_completions):
7775         * dired.c (Fuser_name_completion):
7776         * dired.c (Fuser_name_completion_1):
7777         * dired.c (Fuser_name_all_completions):
7778         * doc.c (Fdocumentation):
7779         * doc.c (Fdocumentation_property):
7780         * doc.c (Fsubstitute_command_keys):
7781         * editfns.c:
7782         * editfns.c (Fchar_to_string):
7783         * editfns.c (Fstring_to_char):
7784         * editfns.c (Ftemp_directory):
7785         * editfns.c (Finsert_char):
7786         * editfns.c (Fbuffer_substring_no_properties):
7787         * editfns.c (Fnarrow_to_region):
7788         * editfns.c (Fchar_equal):
7789         * editfns.c (Fchar_Equal):
7790         * editfns.c (Ftranspose_regions):
7791         * emacs.c (Fdump_emacs):
7792         * eval.c (Fthrow):
7793         * eval.c (Fcommand_execute):
7794         * eval.c (Fautoload):
7795         * eval.c (Fbacktrace):
7796         * eval.c (Fbacktrace_frame):
7797         * events.c:
7798         * events.c (Fcopy_event):
7799         * events.c (Fcharacter_to_event):
7800         * events.c (Fevent_button):
7801         * events.c (Fevent_process):
7802         * extents.c:
7803         * extents.c (Fnext_extent_change):
7804         * extents.c (Fextent_property):
7805         * faces.c (Ffacep):
7806         * faces.c (Fmake_face):
7807         * file-coding.c:
7808         * file-coding.c (Fencode_shift_jis_char):
7809         * file-coding.c (Fencode_big5_char):
7810         * fileio.c (Ffile_name_directory):
7811         * fileio.c (Ffile_name_nondirectory):
7812         * fileio.c (Ffile_name_as_directory):
7813         * fileio.c (Fdirectory_file_name):
7814         * fileio.c (Ffile_truename):
7815         * fileio.c (Fsubstitute_in_file_name):
7816         * fileio.c (Ffile_modes):
7817         * fileio.c (Fset_file_modes):
7818         * fileio.c (Fset_default_file_modes):
7819         * fileio.c (Fverify_visited_file_modtime):
7820         * floatfns.c (Facos):
7821         * floatfns.c (Fasin):
7822         * floatfns.c (Fatan):
7823         * floatfns.c (Fcos):
7824         * floatfns.c (Fsin):
7825         * floatfns.c (Ftan):
7826         * floatfns.c (Fbessel_j0):
7827         * floatfns.c (Fbessel_j1):
7828         * floatfns.c (Fbessel_jn):
7829         * floatfns.c (Fbessel_y0):
7830         * floatfns.c (Fbessel_y1):
7831         * floatfns.c (Fbessel_yn):
7832         * floatfns.c (Ferf):
7833         * floatfns.c (Ferfc):
7834         * floatfns.c (Flog_gamma):
7835         * floatfns.c (Fexp):
7836         * floatfns.c (Fexpt):
7837         * floatfns.c (Flog):
7838         * floatfns.c (Flog10):
7839         * floatfns.c (Fsqrt):
7840         * floatfns.c (Fcube_root):
7841         * floatfns.c (Facosh):
7842         * floatfns.c (Fasinh):
7843         * floatfns.c (Fatanh):
7844         * floatfns.c (Fcosh):
7845         * floatfns.c (Fsinh):
7846         * floatfns.c (Ftanh):
7847         * floatfns.c (Fabs):
7848         * floatfns.c (Ffloat):
7849         * floatfns.c (Flogb):
7850         * floatfns.c (Fceiling):
7851         * floatfns.c (Ffloor):
7852         * floatfns.c (Fround):
7853         * floatfns.c (Ftruncate):
7854         * floatfns.c (Ffceiling):
7855         * floatfns.c (Fffloor):
7856         * floatfns.c (Ffround):
7857         * floatfns.c (Fftruncate):
7858         * fns.c (Fstring_equal):
7859         * fns.c (Fstring_lessp):
7860         * fns.c (concat2):
7861         * fns.c (concat3):
7862         * fns.c (vconcat2):
7863         * fns.c (vconcat3):
7864         * fns.c (Fsubstring):
7865         * fns.c (Fassoc):
7866         * fns.c (Fold_assoc):
7867         * fns.c (assoc_no_quit):
7868         * fns.c (Fassq):
7869         * fns.c (Fold_assq):
7870         * fns.c (assq_no_quit):
7871         * fns.c (Frassoc):
7872         * fns.c (Fold_rassoc):
7873         * fns.c (Frassq):
7874         * fns.c (Fold_rassq):
7875         * fns.c (rassq_no_quit):
7876         * fns.c (Fremassoc):
7877         * fns.c (remassoc_no_quit):
7878         * fns.c (Fremassq):
7879         * fns.c (remassq_no_quit):
7880         * fns.c (Fremrassoc):
7881         * fns.c (Fremrassq):
7882         * fns.c (remrassq_no_quit):
7883         * fns.c (Fsort):
7884         * fns.c (Fplist_get):
7885         * fns.c (Fplist_put):
7886         * fns.c (Fplist_remprop):
7887         * fns.c (Fplist_member):
7888         * fns.c (Flax_plist_get):
7889         * fns.c (Flax_plist_put):
7890         * fns.c (Flax_plist_remprop):
7891         * fns.c (Flax_plist_member):
7892         * fns.c (Fequal):
7893         * fns.c (Fold_equal):
7894         * fns.c (Frequire):
7895         * fns.c (Fbase64_encode_region):
7896         * fns.c (Fbase64_encode_string):
7897         * fns.c (Fbase64_decode_region):
7898         * frame.c:
7899         * frame.c (frame_matches_frame_spec):
7900         * frame.c (device_matches_device_spec):
7901         * frame.c (next_frame):
7902         * frame.c (previous_frame):
7903         * frame.c (Fnext_frame):
7904         * frame.c (Fprevious_frame):
7905         * frame.c (Fframe_property):
7906         * frame.c (Fset_frame_height):
7907         * frame.c (Fset_frame_size):
7908         * frame.h:
7909         * glyphs.c:
7910         * glyphs.c (if):
7911         * glyphs.c (decode_error_behavior_flag):
7912         * glyphs.c (Fmake_image_instance):
7913         * indent.c (Findent_to):
7914         * intl.c (Fignore_defer_gettext):
7915         * keymap.c (Fkeymapp):
7916         * keymap.c (Flookup_key):
7917         * lread.c:
7918         * lread.c (Fload_internal):
7919         * lread.c (Feval_buffer):
7920         * lread.c (Feval_region):
7921         * macros.c (Fexecute_kbd_macro):
7922         * marker.c (set_marker_internal):
7923         * marker.c (Fset_marker):
7924         * marker.c (set_marker_restricted):
7925         * marker.c (Fcopy_marker):
7926         * marker.c (noseeum_copy_marker):
7927         * menubar.c:
7928         * menubar.c (Fpopup_menu):
7929         * minibuf.c:
7930         * mule-charset.c (Fcharset_name):
7931         * mule-charset.c (Fchar_charset):
7932         * mule-charset.c (Fchar_octet):
7933         * mule-charset.c (Fsplit_char):
7934         * mule-wnnfns.c (Fwnn_open):
7935         * mule-wnnfns.c (Fwnn_dict_comment):
7936         * mule-wnnfns.c (Fwnn_quit_henkan):
7937         * mule-wnnfns.c (Fwnn_word_toroku):
7938         * mule-wnnfns.c (Fwnn_word_sakujo):
7939         * mule-wnnfns.c (Fwnn_word_use):
7940         * mule-wnnfns.c (Fwnn_hindo_set):
7941         * objects.c:
7942         * objects.c (Fmake_color_instance):
7943         * objects.c (Fmake_font_instance):
7944         * print.c (Fwrite_char):
7945         * process.c:
7946         * process.c (mark_process):
7947         * process.c (print_process):
7948         * process.c (get_process_from_usid):
7949         * process.c (Fprocessp):
7950         * process.c (Fprocess_live_p):
7951         * process.c (Fget_process):
7952         * process.c (Fget_buffer_process):
7953         * process.c (get_process):
7954         * process.c (Fprocess_id):
7955         * process.c (Fprocess_name):
7956         * process.c (Fprocess_command):
7957         * process.c (init_process_io_handles):
7958         * process.c (start_process_unwind):
7959         * process.c (Fstart_process_internal):
7960         * process.c (Fopen_multicast_group_internal):
7961         * process.c (Fset_process_window_size):
7962         * process.c (read_process_output):
7963         * process.c (send_process):
7964         * process.c (Fprocess_tty_name):
7965         * process.c (Fset_process_buffer):
7966         * process.c (Fprocess_buffer):
7967         * process.c (Fprocess_mark):
7968         * process.c (set_process_filter):
7969         * process.c (Fset_process_filter):
7970         * process.c (Fprocess_filter):
7971         * process.c (Fprocess_send_region):
7972         * process.c (Fprocess_send_string):
7973         * process.c (exec_sentinel):
7974         * process.c (Fset_process_sentinel):
7975         * process.c (Fprocess_sentinel):
7976         * process.c (status_notify):
7977         * process.c (Fprocess_status):
7978         * process.c (Fprocess_exit_status):
7979         * process.c (process_send_signal):
7980         * process.c (Fprocess_send_eof):
7981         * process.c (deactivate_process):
7982         * process.c (remove_process):
7983         * process.c (Fdelete_process):
7984         * process.c (kill_buffer_processes):
7985         * process.c (Fprocess_kill_without_query):
7986         * process.c (Fprocess_kill_without_query_p):
7987         * rangetab.c:
7988         * rangetab.c (Fget_range_table):
7989         * rangetab.c (Fput_range_table):
7990         * rangetab.c (Fremove_range_table):
7991         * rangetab.c (Fclear_range_table):
7992         * search.c:
7993         * search.c (Fskip_chars_forward):
7994         * search.c (Fskip_chars_backward):
7995         * search.c (Fskip_syntax_forward):
7996         * search.c (Fskip_syntax_backward):
7997         * search.c (search_command):
7998         * search.c (Freplace_match):
7999         * search.c (Fregexp_quote):
8000         * select.c (Fown_selection_internal):
8001         * select.c (Fselection_owner_p):
8002         * select.c (Fselection_exists_p):
8003         * select.c (Fget_selection_internal):
8004         * specifier.c:
8005         * symbols.c:
8006         * symbols.c (Fintern):
8007         * symbols.c (Fintern_soft):
8008         * symbols.c (Funintern):
8009         * symbols.c (Fapropos_internal):
8010         * symbols.c (Fset_default):
8011         * syntax.c:
8012         * syntax.c (Fsyntax_table_p):
8013         * syntax.c (Fcopy_syntax_table):
8014         * syntax.c (Fset_syntax_table):
8015         * syntax.c (Fchar_syntax):
8016         * syntax.c (syntax_match):
8017         * syntax.c (Fmatching_paren):
8018         * syntax.c (Fforward_word):
8019         * syntax.c (scan_lists):
8020         * syntax.c (Fscan_lists):
8021         * syntax.c (Fscan_sexps):
8022         * syntax.c (Fparse_partial_sexp):
8023         * toolbar.c (Fcheck_toolbar_button_syntax):
8024         * tooltalk.doc:
8025         * window.c:
8026         * window.c (Fwindowp):
8027         * window.c (Fwindow_live_p):
8028         * window.c (Fwindow_point):
8029         * window.c (Fdelete_window):
8030         * window.c (Fnext_window):
8031         * window.c (Fprevious_window):
8032         * window.c (Fother_window):
8033         * window.c (window_loop):
8034         * window.c (Fget_lru_window):
8035         * window.c (Fsplit_window):
8036         * window.c (Fenlarge_window):
8037         * window.c (Fenlarge_window_pixels):
8038         * window.c (Fshrink_window):
8039         * window.c (Fshrink_window_pixels):
8040         * window.c (change_window_height):
8041         * window.c (Fwindow_configuration_p):
8042         * window.c (Fcurrent_window_configuration):
8043         * window.h:
8044         * casefiddle.c (casify_object):
8045         * casefiddle.c (Fupcase):
8046         * casefiddle.c (Fdowncase):
8047         * casefiddle.c (Fcapitalize):
8048         * casefiddle.c (Fupcase_initials):
8049         * casefiddle.c (casify_region_internal):
8050         * casefiddle.c (casify_region):
8051         * casefiddle.c (Fupcase_region):
8052         * casefiddle.c (Fdowncase_region):
8053         * casefiddle.c (Fcapitalize_region):
8054         * casefiddle.c (Fupcase_initials_region):
8055         * casefiddle.c (Fupcase_word):
8056         * casefiddle.c (Fdowncase_word):
8057         * casefiddle.c (Fcapitalize_word):
8058         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
8059         Replace 0 with '\0' when working with bytes.
8060         Replace initial "(" with "\(" in docstrings.
8061
8062 2000-11-01  Martin Buchholz  <martin@xemacs.org>
8063
8064         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
8065
8066         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
8067
8068 2000-10-31  Martin Buchholz  <martin@xemacs.org>
8069
8070         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
8071
8072 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
8073
8074         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
8075         correctly.
8076
8077 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
8078
8079         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
8080         (inhibit_auto_save_session): New variable.
8081         (vars_of_fileio): Declare and initialize them.
8082         * fileio.c (Fdo_auto_save): Don't create session file if
8083         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
8084
8085 2000-10-31  Martin Buchholz  <martin@xemacs.org>
8086
8087         * sgiplay.c (play_internal): C++ compilability.
8088         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
8089         * callproc.c (Fold_call_process_internal):
8090         Remove unused vars `env', `first'.
8091         * scrollbar.c (update_scrollbar_instance):
8092         #### unused var `current_window'.
8093         * redisplay-tty.c: Put currently unused vars insert_mode_on,
8094         etc. within #ifdef NOT_YET.
8095         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
8096         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
8097         * specifier.c (specifier_instance):
8098         #### unused var `tag'.
8099         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
8100
8101 2000-10-27  Martin Buchholz  <martin@xemacs.org>
8102
8103         * fns.c (Fbutlast):
8104         * fns.c (list_sort):
8105         * fns.c (Ffillarray):
8106         * fns.c (bytecode_nconc2):
8107         * fns.c (Fnconc):
8108         * fns.c (mapcar1):
8109         * fns.c (Fmapconcat):
8110         Be pedantically 64-bit correct.  For the time when someone will
8111         want to have a list with length > 2**32.
8112
8113         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
8114         Work around MIPSpro compiler bug.
8115
8116         * process-unix.c (unix_kill_child_process): Add snarky comment.
8117         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
8118
8119         * config.h.in: Oops, _getpt ==> _getpty
8120
8121 2000-10-26  Martin Buchholz  <martin@xemacs.org>
8122
8123         * config.h.in:
8124         * regex.c:
8125         Use void*, not char*, as return type of alloca().
8126
8127         * alloc.c (free_marker): Side effect inside assert expression!
8128
8129 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
8130
8131         * mule-charset.c (Fset_charset_ccl_program): To check
8132         if the given ccl program is valid, use setup_ccl_program()
8133         instead of CHECK_VECTOR().
8134         (Fmake_charset): Likewise.
8135
8136 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
8137
8138         * faces.c (get_extent_fragment_face_cache_index):
8139         Fix cachel.merged_faces memory leak.
8140
8141 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
8142
8143         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
8144         Reset MSB of octets obtained by DECODE_SJIS
8145         because of the incompatibility with Emacs.
8146         (ccl_driver)<CCL_ENCODE_SJIS>:
8147         Set MSB of octets before passing them to
8148         ENCODE_SJIS because of the incompatibility
8149         with Emacs.
8150
8151 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
8152
8153         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
8154         (DECLARE_LRECORD): Undo the last change.
8155         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
8156
8157 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
8158
8159         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
8160         the implementation to lrecord_implementations_table.
8161
8162 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
8163
8164         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
8165         initial value of `lrecord_type_##c_name' and
8166         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
8167         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
8168         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
8169         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
8170         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
8171
8172 2000-10-17  Martin Buchholz  <martin@xemacs.org>
8173
8174         * miscplay.c (sndcnv8S_2mono):
8175         (sndcnv2monounsigned):
8176         (sndcnvULaw_2linear):
8177         (sndcnv16swap):
8178         Remove implementation-defined behavior.
8179
8180 2000-10-12  Martin Buchholz  <martin@xemacs.org>
8181
8182         * input-method-xlib.c: Warning suppression.
8183
8184 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
8185
8186         * mule-ccl.c: Sync up with Emacs 21.0.90.
8187         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
8188         Do nothing.
8189         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
8190         Likewise.
8191         (ccl_driver[WriteMultibyteChar2]): Bug fix.
8192         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
8193         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
8194         leading char belongs to official 2-dimensional charset.
8195         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
8196         write the given character as is.  Otherwise,
8197         if it is a multibyte char, convert it by
8198         non_ascii_set_charptr_emchar, then write it.
8199         (CCL_WRITE_STRING): Likewise.
8200         (ccl_get_compiled_code): New function.
8201         (setup_ccl_program): When ccl_prog is invalid,
8202         return -1.
8203         (Fregister_code_conversion_map): New function.
8204         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
8205
8206         * mule-ccl.h: Sync up with Emacs 21.0.90.
8207         (Fregister_ccl_program): export it.
8208
8209         * redisplay-msw.c (separate_textual_runs):
8210         If ccl program is not valid, don't do ccl conversion.
8211
8212         * redisplay-x.c (separate_textual_runs): Ditto.
8213
8214         * file-coding.c (Fmake_coding_system):
8215         When type is ccl and value is vector, register it
8216         with a proper symbol.  And checks whether the
8217         given ccl program is valid.
8218         (mule_decode): When calling ccl_driver, if src indicates
8219         NULL pointer, set an empty string instead.
8220         (mule_encode): Likewise.
8221
8222 2000-10-11  Martin Buchholz  <martin@xemacs.org>
8223
8224         The following large batch of changes gets us back to a state of
8225         C++ compilability.  Extbyte is now a char, which means that
8226         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
8227
8228         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
8229
8230         * sound.c (Fplay_sound): Type correctness.
8231
8232         * select-x.c (hack_motif_clipboard_selection): Type correctness.
8233         (x_get_window_property): Type correctness.
8234         (receive_incremental_selection): unsigned char ==> Extbyte
8235         (selection_data_to_lisp_data): unsigned char ==> Extbyte
8236         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
8237         (Fx_store_cutbuffer_internal): Type correctness.
8238
8239         * process-unix.c (try_to_initialize_subtty): Type correctness.
8240
8241         * objects-x.c (x_print_color_instance): Type correctness.
8242         (x_print_font_instance): Type correctness.
8243         (x_list_fonts): SExtbyte ==> Extbyte.
8244         (valid_x_font_name_p): SExtbyte ==> Extbyte.
8245         (x_find_charset_font): SExtbyte ==> Extbyte.
8246         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
8247         (truename_via_XListFonts): SExtbyte ==> Extbyte.
8248         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
8249         Use bufbyte_strcmp.
8250
8251         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
8252         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
8253         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
8254         (BYTE_C0_P): Use bit ops for char-signedness safety.
8255         (BYTE_C1_P): Use bit ops for char-signedness safety.
8256         (CHARSET_BY_LEADING_BYTE):
8257         (CHARSET_BY_ATTRIBUTES):
8258         Always use inline function.
8259         Use type_checking_assert.
8260         Hide chlook.
8261
8262         * mule-charset.c (non_ascii_charptr_copy_char):
8263         Modify to work with both ASCII and non-ASCII characters.
8264         Improve docs and variable names.
8265         Replace over-clever fall-through switch with a simple loop.
8266         (Lstream_get_emchar_1):
8267         Replace over-clever fall-through switch with a simple loop.
8268
8269         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
8270         Warning suppression.
8271
8272         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
8273         the return value of Lstream_getc, which could be EOF as well.
8274
8275         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
8276
8277         * lisp.h: Make Extbyte a char, not unsigned char, so that external
8278         APIs can be used on Extbytes without casts.  Risky!
8279         (SExtbyte): Remove.
8280         (UExtbyte): Remove.
8281
8282         * input-method-xlib.c (XIM_init_device):
8283         Use Xlib.h instead of IntrinsicP.h.
8284         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
8285         which will break in X11R7.
8286         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
8287         to call XRegisterIMInstantiateCallback with correct types.
8288
8289         * gui-x.c (button_item_to_widget_value): Type correctness.
8290
8291         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
8292
8293         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
8294         (xbm_instantiate_1): Type correctness.
8295         (BUILD_GLYPH_INST):  Type correctness.
8296
8297         * fileio.c (Fsubstitute_in_file_name): Type correctness.
8298
8299         * file-coding.c:
8300         (decode_coding_sjis):
8301         (decode_coding_big5):
8302         (decode_coding_ucs4):
8303         (decode_coding_utf8):
8304         (decode_coding_iso2022):
8305         (decode_coding_no_conversion):
8306         Make all decoding functions take an Extbyte * arg.
8307         (encode_coding_sjis):
8308         (encode_coding_big5):
8309         (encode_coding_ucs4):
8310         (encode_coding_utf8):
8311         (encode_coding_iso2022):
8312         (encode_coding_no_conversion):
8313         Make all encoding functions take a Bufbyte * arg.
8314         Use size_t instead of unsigned int for memory sizes.
8315         Only cast to unsigned char whenever dereferencing Extbyte *.
8316
8317         * doc.c (unparesseuxify_doc_string): Type correctness.
8318
8319         * console-x.c (split_up_display_spec):
8320         Rewrite without using details of internal string representation.
8321         (x_semi_canonicalize_device_connection): Type correctness.
8322
8323         * config.h.in:
8324         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
8325         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
8326         (HAVE_XFREE386): Removed.
8327
8328         * buffer.h (DEC_CHARPTR): `const' correctness.
8329         (bufbyte_strcmp): New.
8330         (bufbyte_memcmp): New.
8331
8332         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
8333
8334         * buffer.h (XCHAR_OR_CHAR_INT):
8335         Always use inline function.
8336         Remove redundant type checking assert() - XINT will abort quite nicely.
8337
8338 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
8339
8340         * search.c (Freplace_match): Set newtext to an empty string.
8341
8342 2000-10-10  Martin Buchholz  <martin@xemacs.org>
8343
8344         * s/decosf1-3.h: Remove #include of stropts.h
8345         * s/ptx.h: Remove #include of stropts.h
8346         * s/usg5-4.h: Remove #include of stropts.h
8347         * sysproc.h:
8348         * config.h.in:
8349         Use stropts.h, not sys/stropts.h.
8350         Use strtio.h, not sys/strtio.h.
8351
8352 2000-10-04  Martin Buchholz <martin@xemacs.org>
8353
8354         * XEmacs 21.2.36 is released.
8355
8356 2000-09-21  Andy Piper  <andy@xemacs.org>
8357
8358         * glyphs-x.c (x_redisplay_widget): make sure non-structural
8359         changes still involve copying the widget tree.
8360         (update_widget_face): make sure a change is register in the widget
8361         tree. Call update_tab_widget_face appropriately.
8362         (update_tab_widget_face): ditto.
8363         (x_tab_control_redisplay): make sure non-structural changes still
8364         involve copying the widget tree.
8365
8366 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
8367
8368         * lread.c (locate_file): Check the path element is non-nil.
8369
8370 2000-10-02  Martin Buchholz  <martin@xemacs.org>
8371
8372         * lisp.h: Warning suppression for SCO compilers.
8373
8374         * redisplay-tty.c (reset_tty_modes): Fix crash.
8375         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
8376
8377 2000-09-27  Martin Buchholz  <martin@xemacs.org>
8378
8379         Big signal/process handling overhaul.  Bugs fixed:
8380         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
8381         M-x comint-kill-subjob should work for both values nil and t of
8382         process-connection-type. It was broken on most platforms.
8383         Testing on Irix and Cygwin still needed.  Other plaforms tested.
8384         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
8385         * process-unix.c: Signal/Process handling overhaul.
8386         (pty_name): make 64 bytes, as `expect' does, for paranoia.
8387         (allocate_pty): Use all available modern methods of allocating
8388         ptys, falling back to old style BSD allocation as a last resort.
8389         Use allegedly more secure Unix98 pty allocation by default.
8390         (allocate_pty_the_old_fashioned_way): New. the last resort.
8391         (unix_create_process): Push ptem, ldterm, ttcompat where
8392         available.  Autoconfiscate.
8393         (try_to_initialize_subtty): New.
8394         (unix_kill_child_process): Proper signal handling for ptys on most
8395         platforms, using special knowledge of AIX, BSD, etc...
8396         (unix_create_process): Always disconnect_controlling_terminal() for
8397         subprocesses, whether using ptys or not.
8398         * process.h: Remove old getpt-dependent PTY code.
8399         * process.c (Fprocess_send_signal): New, obvious generic function.
8400         (decode_signal): New.
8401         (Finterrupt_process):
8402         (Fkill_process):
8403         (Fquit_process):
8404         (Fstop_process):
8405         (Fcontinue_process):
8406         (Fsignal_process): Use decode_signal.
8407         (process_send_signal):
8408         Many docstring corrections.
8409         Allow any signal to be sent to a process object.
8410         * config.h.in: Add symbols for big signal/process overhaul.
8411         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
8412         * sysproc.h: Include process-related headers, where available:
8413         sys/stropts.h sys/strtio.h pty.h libutil.h
8414         * s/irix4-0.h:
8415         * s/irix5-0.h:
8416         * s/cygwin32.h:
8417         * s/gnu.h:
8418         * s/linux.h:
8419         * s/hpux.h:
8420         * s/aix3-1.h:
8421         Remove old S&M pty stuff.
8422         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
8423         * systty.h: Simplify cpp hackery, improve comments.
8424         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
8425
8426         * editfns.c (Fformat_time_string):
8427         Be a little more paranoid with the return value of ctime.
8428
8429         * fileio.c (check_executable):
8430         (check_writable):
8431         Use symbolic constants X_OK, W_OK.
8432
8433         * console-x.c (split_up_display_spec): Fix a warning.
8434
8435 2000-10-02  Martin Buchholz  <martin@xemacs.org>
8436
8437         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
8438         * ntproc.c (sys_spawnve): make_string ==> build_string
8439         Small clarity improvements.
8440
8441 2000-09-30  Martin Buchholz  <martin@xemacs.org>
8442
8443         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
8444
8445         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
8446
8447         * config.h.in (HAVE_STRCASECMP): Remove.
8448
8449 2000-09-29  Martin Buchholz  <martin@xemacs.org>
8450
8451         * redisplay-output.c (redisplay_output_pixmap):
8452         Cleaner and possibly more 64-bit correct code.
8453
8454 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
8455
8456         * dumper.c (pdump_load_finish): move restoration of
8457         `noninteractive1' to emacs.c (main_1).
8458         * emacs.c (main_1): protect LISP-visible command-line flags
8459         from pdump_load().
8460
8461 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
8462
8463         * Makefile.in.in (versionclean):  Use EXE_TARGET and
8464         DUMP_TARGET instead of literal program names.
8465
8466 2000-09-20  Martin Buchholz  <martin@xemacs.org>
8467
8468         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
8469
8470 2000-09-19  Martin Buchholz  <martin@xemacs.org>
8471
8472         * *: Spelling mega-patch
8473
8474 2000-09-19  Martin Buchholz  <martin@xemacs.org>
8475
8476         * fns.c (bad_bad_turtle):
8477         Delete "Eek!" comment, since we fixed the bug to which it refers.
8478
8479 2000-09-16  Martin Buchholz  <martin@xemacs.org>
8480
8481         * alloca.c: Replace REGISTER with register.
8482
8483 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
8484
8485         * file-coding.c (ucs_to_char): Use countof.
8486
8487 2000-09-16  Martin Buchholz  <martin@xemacs.org>
8488
8489         * file-coding.c: (ucs_to_char):
8490         (complex_vars_of_file_coding):
8491         Use countof instead of sizeof.
8492         Use CHECK_NATNUM instead of CHECK_INT.
8493
8494         * sysdep.c (strcasecmp): Remove.
8495         * device-x.c (ascii_strcasecmp): New.
8496         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
8497         Avoid using non-standard non-portable strcasecmp.
8498
8499 2000-09-16  Martin Buchholz  <martin@xemacs.org>
8500
8501         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
8502         * font-lock.c: remove reference to emacsfns.h.
8503         * search.c: small doc improvement.
8504         * event-Xt.c: correct file names in comments.
8505         * console-x.h Correct file names in comments.
8506         * frame.c: Correct file names in comments.
8507         * event-stream.c: remove Energize from comments.
8508
8509 2000-09-15  Martin Buchholz  <martin@xemacs.org>
8510
8511         * symeval.h (DEFERROR_STANDARD):
8512         (DEFERROR):
8513         (DEFSYMBOL):
8514         (DEFSYMBOL_NO_DUMP):
8515         (DEFSYMBOL_MULTIWORD_PREDICATE):
8516         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
8517         (DEFKEYWORD):
8518         The construct &##name is not sensible C.
8519         Fixes compilation errors with Unixware native compiler.
8520
8521 2000-09-14  Martin Buchholz  <martin@xemacs.org>
8522
8523         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
8524         (next_frame_internal): Removed.  We now just have next_frame.
8525         (next_frame):
8526         Write a simpler and cleaner one-pass algorithm.
8527         Remove called_from_delete_device arg and #ifdefed-out code.
8528         (previous_frame):
8529         Renamed from prev_frame.  Update callers.
8530         Cleaned up to have an analogous implementation to next_frame.
8531         (other_visible_frames_internal): Remove the
8532         called_from_delete_device bogus arg, and hence, remove this
8533         function.  Just use other_visible_frames().
8534
8535         * window.c (Fnext_window):
8536         Prettify docstring.
8537         Since next_frame() is guaranteed to return a frame, remove check
8538         for nil inserted in previous patch.
8539         (Fprevious_window):
8540         Prettify docstring.
8541         Make code look more like Fnext_window.
8542         (window_loop):
8543         Respect the `console' arg when iterating through windows.
8544         Fixes bug: (get-buffer-window buffer t device) not respecting
8545         the `device' arg.
8546         This function needs more work, as others have pointed out.
8547
8548         * frame.h: Rename prev_frame to previous_frame.
8549         device_matches_console_spec no longer takes a `frame' arg.
8550
8551         * s/gnu.h:
8552         * s/linux.h:
8553         * s/hpux.h:
8554         Use EMACS_BLOCK_SIGNAL instead of sigblock.
8555         From "Golubev I. N." <gin@mo.msk.ru>.
8556
8557         * make-src-depend: Fix typo.
8558
8559 2000-09-13  Martin Buchholz  <martin@xemacs.org>
8560
8561         * window.c (Fnext_window):
8562         next_frame() might return nil, not a frame.
8563         Fixes this crash:
8564         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
8565
8566         * frame.c (next_frame_internal):
8567         We've passed a frame if we've passed its device.
8568         Fixes this crash:
8569         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
8570 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
8571
8572 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
8573
8574         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
8575         Allow option to suppress accelerators in menu/dialog items.
8576         (populate_or_checksum_helper): Pass dialog title through above.
8577
8578 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
8579
8580         * event-msw.c (mswindows_key_to_emacs_keysym):
8581         Add "pause" key, fix "menu" key.
8582
8583 2000-09-09  Martin Buchholz  <martin@xemacs.org>
8584
8585         * eval.c (reinit_vars_of_eval):
8586         Increase max_lisp_eval_depth to 1000,
8587         required for thai-xtis.el to byte-compile under some circumstances.
8588
8589 2000-09-04  Martin Buchholz  <martin@xemacs.org>
8590
8591         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
8592         From Kenichi Handa.
8593
8594 2000-09-01  Martin Buchholz  <martin@xemacs.org>
8595
8596         * make-src-depend: Make the generated Makefiles smaller.
8597
8598         * s/hpux.h (SETUP_SLAVE_PTY):
8599         Provide a %d in the format string for the errno argument.
8600
8601         * editfns.c (Ftemp_directory):
8602         Warning fix.
8603         Avoid buffer overrun on very long file name.
8604
8605         * input-method-xlib.c (XIM_init_device):
8606         6th parameter of XRegisterIMInstantiateCallback has different
8607         pointer types on different OSes, so simply cast to (void *).
8608
8609         * unexhp9k800.c: Warning fixes.  Fiddly changes.
8610
8611         * sysdll.c (dll_open):
8612         shl_load will hang hard if passed a NULL filename.
8613         Simply return NULL for compatibility with dlopen.
8614         * sysdll.c: Conform to XEmacs coding standards.
8615
8616         * sysdep.c (get_pty_max_bytes):
8617         Support pty input lines longer than 512 bytes on HP-UX 10.20.
8618
8619 2000-08-31  Martin Buchholz  <martin@xemacs.org>
8620
8621         * tooltalk.c: Add #include <syssignal.h>
8622
8623 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
8624
8625         * s/hpux.h: Don't use undefined function sigunblock().
8626
8627 2000-08-31  Martin Buchholz  <martin@xemacs.org>
8628
8629         * config.h.in: Add HAVE_BALLOON_HELP.
8630         * emacs.c: Use HAVE_BALLOON_HELP.
8631         * Makefile.in.in (x_objs):
8632         Make Balloon Help conditional on finding shape.h.
8633
8634 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
8635
8636         * syntax.c (regex_emacs_buffer_p): New variable.
8637         * syntax.h (regex_emacs_buffer_p): extern.
8638         * search.c (looking_at_1):
8639         (string_match_1):
8640         (fast_string_match):
8641         (search_buffer): Set regex_emacs_buffer_p.
8642         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
8643         when before_dot, at_dot, after_dot.
8644
8645 2000-08-23  Andy Piper  <andy@xemacs.org>
8646
8647         * gui-x.c (popup_selection_callback): Only set action_occurred
8648         when we really have an image instance.
8649         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
8650
8651 2000-08-23  Andy Piper  <andy@xemacs.org>
8652
8653         * gui-msw.c (mswindows_handle_gui_wm_command): set
8654         action_occurred.
8655         * gui-x.c (popup_selection_callback): ditto.
8656
8657         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
8658         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
8659         (struct Lisp_Image_Instance): add action_occurred flag.
8660
8661         * glyphs.c (redisplay_subwindow): use action_occurred flag.
8662         (image_instance_changed): ditto.
8663         (reset_frame_subwindow_instance_cache): only unmap windows - do
8664         not remove them from the cache also.
8665
8666         * glyphs-widget.c (tab_control_update): better debug.
8667         (progress_gauge_update): ditto.
8668         (layout_update): ditto.
8669         (layout_instantiate): ditto.
8670         (tab_control_order_only_changed): cope with null pending items.
8671
8672         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
8673         debug. Force selection of an item when an action occurred. Cope
8674         with null pending_items.
8675         (mswindows_progress_gauge_redisplay): better debug.
8676         * glyphs-x.c (x_tab_control_redisplay): ditto.
8677
8678         * redisplay.c (redisplay_frame): reset the frame cache if the
8679         frame is garbaged.
8680
8681         * window.c (Fset_window_configuration): potentially re-enable
8682         frame cache reset.
8683         (window_unmap_subwindows): need to finalize instances here since
8684         it is only used in mark_window_as_deleted.
8685
8686 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
8687
8688         * nas.c (SndOpenDataForReading):
8689         nas.c (WaveOpenDataForReading):
8690         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
8691         Somehow escaped from the 2000-08-14 patch.
8692
8693 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
8694
8695         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
8696         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
8697
8698 2000-08-21  Andy Piper  <andy@xemacs.org>
8699
8700         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
8701         window if it is not already displayed.
8702
8703         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
8704         it is not already displayed.
8705
8706         * window.c (Fset_window_configuration): don't reset the frame
8707         cache.
8708
8709         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
8710         instances from the frame cache if we are actually finalizing them.
8711         (reset_frame_subwindow_instance_cache): reset frame cache only
8712         after unmapping everything.
8713         (map_subwindow): set displayed flag after mapping.
8714
8715 2000-08-21  Martin Buchholz  <martin@xemacs.org>
8716
8717         * data.c (indirect_function):
8718         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
8719
8720         * eval.c (function_argcount):
8721         Use original function when signaling errors.
8722
8723 2000-08-18  Andy Piper  <andy@xemacs.org>
8724
8725         * frame.c (delete_frame_internal): use new
8726         free_frame_subwindow_instances name.
8727
8728         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
8729         (add_tab_item): make return type correct.
8730         (mswindows_tab_control_instantiate): assert index of tab.
8731         (mswindows_tab_control_redisplay): Re-code to use
8732         gui_item_equal_sans_selected and gui_item_list_find_selected.
8733
8734         * glyphs-widget.c (tab_control_update): Correct comment.
8735
8736         * window.c (window_unmap_subwindows): use new
8737         unmap_subwindow_instance_cache_mapper.
8738         (window_unmap_subwindows_cache_mapper): deleted.
8739         (Fset_window_configuration): comparisons should now be with
8740         EQ. Preserve the subwindow instance cache across configuration
8741         changes.
8742         (allocate_window): ditto.
8743         (make_dummy_parent): ditto.
8744
8745         * glyphs.c (free_frame_subwindow_instances): rename from
8746         free_frame_subwindow_instance_cache. finalize all instances rather
8747         than just those in the display cache.
8748         (finalize_all_subwindow_instances): walk windows unmapping and
8749         finalizing subwindows.
8750         (unmap_subwindow_instance_cache_mapper): moved from
8751         window.c. Allow finalization as well as unmapping.
8752
8753         * gui.c (gui_item_list_find_selected): new function.
8754
8755         * gui.h (gui_item_list_find_selected): declare.
8756
8757         * glyphs-x.c (x_tab_control_redisplay): pick tab
8758         explicitly. Re-code to use gui_item_equal_sans_selected and
8759         gui_item_list_find_selected.
8760
8761         * glyphs-x.h: add lwlib-utils.h
8762
8763         * buffer.c (Frecord_buffer): undo previous change.
8764
8765 2000-08-09  Vin Shelton  <acs@xemacs.org>
8766
8767         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
8768         possible.  Create temporary files more securely.  The patch was
8769         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
8770         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
8771         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
8772         for details.
8773
8774 2000-08-07  Ben Wing  <ben@xemacs.org>
8775
8776         * getloadavg.c: remove duplicate (and windows-breaking)
8777         includes of fcntl.h and sys/file.h.
8778
8779         * nt.c: remove duplicate getloadavg() definition.
8780
8781         * sysdll.h (Qdll_filename_encoding): add missing stand-in
8782         encodings.
8783
8784 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
8785
8786         * eval.c (function_argcount): If function needs to be autoloaded
8787         actually use the loaded definition.
8788         GCPRO function.
8789
8790 2000-08-05  Ben Wing  <ben@xemacs.org>
8791
8792         * getloadavg.c: add prototype for getloadavg().  remove
8793         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
8794         of the code).  remove duplicate header includes.
8795
8796         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
8797
8798         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
8799         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
8800         useful load average.
8801
8802         * alloc.c (reinit_alloc_once_early): removed references to
8803         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
8804         the lisp vars are the only things referencing the malloc_sbrk_*
8805         vars, and they were already if 0'd out.  these vars only exist
8806         in the older malloc.c, which is basically unused, and they're
8807         only for informational purposes.
8808
8809         * m\*.h: removed useless VIRT_ADDR_VARIES.
8810
8811         * m\powerpc.h: removed stray NO_ARG_ARRAY.
8812
8813 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
8814
8815         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
8816         color if the image is a mono pixmap.
8817
8818 2000-07-30  Ben Wing  <ben@xemacs.org>
8819
8820         * Makefile.in.in (release):
8821         Remove stray @.
8822
8823         * buffer.c (directory_is_current_directory):
8824         * dired-msw.c (mswindows_get_files):
8825         * dired.c:
8826         * dired.c (Fdirectory_files):
8827         * dired.c (file_name_completion_stat):
8828         * dired.c (Ffile_attributes):
8829         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
8830         preprocessor tricks, to avoid problems on some machines
8831         (e.g. SCO).
8832
8833         * callproc.c (egetenv): GC docs.
8834
8835         * console-msw.h:
8836         * console-msw.h (struct mswindows_dialog_id):
8837         * lrecord.h (lrecord_type):
8838         New object for use with MSW dialogs.
8839
8840         * console.h (struct console_methods):
8841         New enable/disable frame methods, for proper modal dialogs.
8842
8843         * device-msw.c (msprinter_default_printer): Fix to follow
8844         proper Mule conventions.
8845
8846         * device-msw.c:
8847         * device-msw.c (signal_open_printer_error):
8848         * device-msw.c (msprinter_init_device):
8849         * device-msw.c (ensure_not_printing):
8850         * device-msw.c (plist_get_margin):
8851         * device-msw.c (Fmsprinter_select_settings):
8852         * device-msw.c (finalize_devmode):
8853         * device-msw.c (Fmsprinter_settings_despecialize):
8854         * device-msw.c (signal_enum_priner_error):
8855         * extents.c (decode_extent):
8856         * extents.c (decode_map_extents_flags):
8857         * extents.c (decode_extent_at_flag):
8858         * extents.c (Fextent_at):
8859         * extents.c (Fextents_at):
8860         * extents.c (symbol_to_glyph_layout):
8861         [[[[2]]]] Use structured errors.
8862
8863         * dialog-msw.c:
8864         * dialog-msw.c (mswindows_is_dialog_msg):
8865         * dialog-msw.c (mark_mswindows_dialog_id):
8866         * dialog-msw.c (dialog_proc):
8867         * dialog-msw.c (handle_question_dialog_box):
8868         * dialog-msw.c (syms_of_dialog_mswindows):
8869         Define new object to clean up marking; use it as a dialog identifier.
8870         Call new delete-dialog-box-hook.
8871
8872         * dialog-x.c (dbox_selection_callback):
8873         * dialog-x.c (dbox_descriptor_to_widget_value):
8874         * dialog-x.c (x_make_dialog_box_internal):
8875         Call new delete-dialog-box-hook.
8876         Return an id.
8877
8878         * dialog.c:
8879         * dialog.c (syms_of_dialog):
8880         * dialog.c (vars_of_dialog):
8881         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
8882
8883         * eval.c:
8884         * eval.c (signal_call_debugger):
8885         when noninteractive, output stack traces on the console instead
8886         of in a (never-seen) buffer.
8887
8888         * eval.c (signal_type_error):
8889         * eval.c (invalid_argument_2):
8890         * lisp.h:
8891         new funs for use w/structured errors.
8892
8893         * event-Xt.c:
8894         * event-Xt.c (x_to_emacs_keysym):
8895         * event-Xt.c (describe_event):
8896         * event-Xt.c (emacs_Xt_event_handler):
8897         * event-Xt.c (vars_of_event_Xt):
8898         * event-msw.c:
8899         * event-msw.c (mswindows_wnd_proc):
8900         * event-msw.c (vars_of_event_mswindows):
8901         rename {x,mswindows}-debug-events to debug-{}-events for
8902         consistency with other debug-foo variables.
8903
8904         * event-stream.c:
8905         document next-event more clearly.
8906
8907         * fileio.c (Ffile_name_directory):
8908         * fileio.c (Ffile_name_nondirectory):
8909         * fileio.c (Funhandled_file_name_directory):
8910         * fileio.c (file_name_as_directory):
8911         * fileio.c (Ffile_name_as_directory):
8912         * fileio.c (directory_file_name):
8913         * fileio.c (Fdirectory_file_name):
8914         * fileio.c (Fmake_temp_name):
8915         * fileio.c (Ffile_truename):
8916         * fileio.c (Fsubstitute_in_file_name):
8917         * fileio.c (expand_and_dir_to_file):
8918         * fileio.c (barf_or_query_if_file_exists):
8919         * fileio.c (check_executable):
8920         * fileio.c (Ffile_exists_p):
8921         * fileio.c (Ffile_writable_p):
8922         * fileio.c (Ffile_directory_p):
8923         * fileio.c (Ffile_regular_p):
8924         * fileio.c (Ffile_modes):
8925         * fileio.c (Ffile_newer_than_file_p):
8926         * fileio.c (Fverify_visited_file_modtime):
8927         * fileio.c (Fset_visited_file_modtime):
8928         * fileio.c (auto_save_1):
8929         (1). (2).
8930         fix up gcpro's.
8931
8932         * frame-msw.c:
8933         * frame-msw.c (mswindows_init_frame_1):
8934         * frame-msw.c (mswindows_enable_frame):
8935         * frame-msw.c (error_frame_unsizable):
8936         * frame-msw.c (msprinter_init_frame_1):
8937         * frame-msw.c (msprinter_init_frame_3):
8938         * frame-msw.c (console_type_create_frame_mswindows):
8939         (2).
8940         implement new enable/disable frame methods.
8941
8942         * frame-x.c:
8943         * frame-x.c (x_enable_frame):
8944         * frame-x.c (console_type_create_frame_x):
8945         implement new enable/disable frame methods.
8946
8947         * frame.c:
8948         * frame.c (Fdisable_frame):
8949         * frame.c (syms_of_frame):
8950         * frame.h (struct frame):
8951         implement new enable/disable frame methods/functions.
8952
8953         * general-slots.h:
8954         add initial-focus.
8955
8956         * glyphs-msw.c (mswindows_widget_instantiate):
8957         comment that initial-focus should be implemented.
8958
8959         * glyphs-widget.c:
8960         * glyphs-widget.c (check_valid_instantiator):
8961         * glyphs-widget.c (check_valid_orientation):
8962         * glyphs-widget.c (check_valid_tab_orientation):
8963         * glyphs-widget.c (check_valid_justification):
8964         * glyphs-widget.c (check_valid_border):
8965         * glyphs-widget.c (check_valid_callback):
8966         * glyphs-widget.c (check_valid_int_or_function):
8967         * glyphs-widget.c (check_valid_string_or_vector):
8968         * glyphs-widget.c (check_valid_item_list_1):
8969         * glyphs-widget.c (widget_validate):
8970         * glyphs-widget.c (combo_box_validate):
8971         * glyphs-widget.c (widget_instantiate):
8972         * glyphs-widget.c (syms_of_glyphs_widget):
8973         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
8974         * glyphs-widget.c (image_instantiator_combo_box):
8975         * glyphs-widget.c (image_instantiator_scrollbar):
8976         * glyphs-widget.c (image_instantiator_tab_control):
8977         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
8978         (2).
8979         support (unimplemented) keyword initial-focus.
8980         reindent long macros.
8981
8982         * glyphs-x.c (x_redisplay_widget):
8983         * glyphs-x.c (x_button_instantiate):
8984         * glyphs-x.c (x_button_redisplay):
8985         * glyphs-x.c (x_progress_gauge_instantiate):
8986         * glyphs-x.c (x_edit_field_instantiate):
8987         * glyphs-x.c (x_combo_box_instantiate):
8988         * glyphs-x.c (x_tab_control_instantiate):
8989         * glyphs-x.c (x_label_instantiate):
8990         * gui-x.c:
8991         * gui-x.c (button_item_to_widget_value):
8992         * gui-x.c (gui_items_to_widget_values_1):
8993         * gui-x.c (gui_item_children_to_widget_values):
8994         * gui-x.c (gui_items_to_widget_values):
8995         * gui-x.h:
8996         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
8997         add new flag to gui-parsing routines to indicate whether
8998         accelerator specs should be supported.
8999
9000         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
9001
9002         * glyphs.h (struct Lisp_Image_Instance):
9003         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
9004         add initial-focus flag.
9005
9006         * gui.c:
9007         * gui.c (syms_of_gui):
9008         * gui.c (vars_of_gui):
9009         clean up menu-no-selection-hook.
9010
9011         * gui.h:
9012         support delete-dialog-box-hook.
9013
9014         * lread.c (Fload_internal):
9015         * lread.c (locate_file_in_directory_mapper):
9016         (1).
9017
9018         * lrecord.h:
9019         * lrecord.h (struct toolbar_button):
9020         * lrecord.h (syms_of_toolbar):
9021         document how to create a new object.
9022
9023         * menubar-msw.c (mswindows_char_is_accelerator):
9024         may be called on frames w/o menus.
9025
9026         * menubar.c (vars_of_menubar):
9027         clean up :filter docs.
9028
9029         * nt.c (readdir):
9030         * ntproc.c:
9031         (1).
9032
9033         * process-nt.c:
9034         * process-nt.c (validate_signal_number):
9035         * process-nt.c (signal_cannot_launch):
9036         * process-nt.c (nt_create_process):
9037         * process-nt.c (nt_send_process):
9038         * process-nt.c (nt_kill_child_process):
9039         * process-nt.c (nt_open_network_stream):
9040         * process-nt.c (syms_of_process_nt):
9041         (2).
9042         delete quote-handling.  call new lisp code that does it better.
9043
9044         * process-unix.c (connect_to_file_descriptor):
9045         * process-unix.c (allocate_pty):
9046         * process-unix.c (unix_send_process):
9047         * process-unix.c (unix_kill_child_process):
9048         * process-unix.c (unix_open_network_stream):
9049         * process-unix.c (unix_open_multicast_group):
9050         (1). (2).
9051
9052         * process.c:
9053         * process.c (Fstart_process_internal):
9054         (2).  need to canonicalize process path even if absolute.
9055
9056         * select-msw.c (symbol_to_ms_cf):
9057         * select-msw.c (ms_cf_to_symbol):
9058         * select-msw.c (cf_is_autofreed):
9059         * select-msw.c (mswindows_destroy_selection):
9060         * select.c:
9061         * select.c (syms_of_select):
9062         * select.h:
9063         support dibv5, fix bugs. (from Mike Alexander)
9064
9065         * select.c (Fget_selection_internal):
9066         * select.c (select_convert_out):
9067
9068         * sysdep.c:
9069         * sysdep.c (xemacs_stat):
9070         renamed.
9071
9072         * sysdep.c (mkdir):
9073         * sysdep.c (rmdir):
9074         but keep original stat() here because we provide encapsulation
9075         around these funs.
9076
9077         * sysfile.h:
9078         * sysfile.h (fstat):
9079         remove stat garbage.
9080
9081         * syswindows.h:
9082         fix X/MSW conflict.
9083         don't include tchar.h.  it's inappropriate because it makes
9084         compile-time distinctions when we want runtime distinctions.
9085         (we provide our own tchar replacements)
9086
9087         * toolbar.c:
9088         use default object printer for toolbar-button.
9089
9090         * unexcw.c:
9091         make sure we don't encapsulate.
9092
9093         * window.c (vars_of_window):
9094         emphasize that temp-buffer-show-hook is obsolete.
9095
9096 2000-08-05  Martin Buchholz  <martin@xemacs.org>
9097
9098         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
9099         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
9100
9101         * events.c (Fevent_timestamp_lessp):
9102         Not 64-bit clean.  Use EMACS_INT, not int.
9103
9104 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
9105
9106         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
9107         unsigned int and changed the last enum to
9108         lrecord_type_last_built_in_type.
9109         (lrecord_implementations_table): changed prototype to know how
9110         long the array is supposed to be.
9111         (lrecord_type_count): new unsigned int to keep track of the
9112         current number of lisp lrecord types.
9113         (DEFINE_EXTERNAL_LRECORD):
9114         (DECLARE_EXTERNAL_LRECORD): Added these two for external
9115         dynamic-modules to declare new lisp types. They are the same
9116         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
9117         int for each new type, and increment lrecord_type_count by 1.
9118
9119         * alloc.c (lrecord_implementations_table): Changed to reference
9120         lrecord_type_last_built_in_type for the size of the array.
9121         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
9122
9123 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
9124
9125         * glyphs.h (check_valid_item_list): Renamed from
9126         check_valid_item_list_1.
9127
9128 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
9129
9130         * select.c (Qselect_coerce): New.
9131         * select.c (Vselection_coercion_alist): New.
9132         * select.c (syms_of_select): Declare.
9133         * select.c (get-selection-internal): Use it.
9134         Use the new select-coerce functionality.
9135
9136         * select.c (select_coerce): New.
9137         * select.h (select_coerce): Declare.
9138         New function to coerce one type of data into another.
9139
9140 2000-08-03  Martin Buchholz  <martin@xemacs.org>
9141
9142         * callproc.c (Fcall_process_internal):
9143         (Fcall_process_internal):
9144         * process-unix.c (unix_create_process):
9145         Save and restore the value of errno, so that error messages are accurate.
9146
9147 2000-08-01  Martin Buchholz  <martin@xemacs.org>
9148
9149         * elhash.c (print_hash_table):
9150         Fix printing of hash tables to also use `key-and-value' instead of `t'.
9151         Prettify docstrings and indentation.
9152
9153 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
9154
9155         * window.c (Fwindow_pixel_edges): Subtract frame border and
9156         gutter size.
9157
9158 2000-07-31  Andy Piper  <andy@xemacs.org>
9159
9160         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
9161         will acknowledge the change.
9162
9163         * glyphs.h: declare tab_control_order_only_changed.
9164
9165         * glyphs-x.c (x_tab_control_redisplay): use
9166         tab_control_order_only_changed.
9167
9168         * glyphs-widget.c (tab_control_order_only_changed): new function.
9169
9170         * glyphs-msw.c (mswindows_tab_control_redisplay): use
9171         tab_control_order_only_changed.
9172
9173         * gui.c (gui_item_equal_sans_selected): new function.
9174         (gui_item_equal): use it.
9175
9176         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
9177         :properties in favor of :items..
9178
9179         * glyphs-widget.c (check_valid_item_list): rename from
9180         check_valid_item_list_1.
9181         (check_valid_item_list_1): renamed.
9182         (combo_box_validate): deprecate :properties in favor of :items.
9183         (widget_instantiate): ditto.
9184         (tab_control_update): ditto.
9185         (image_instantiator_combo_box): ditto.
9186         (image_instantiator_tree_view): ditto.
9187         (image_instantiator_tab_control): ditto.
9188         (layout_post_instantiate): remove dead code.
9189
9190         * print.c (debug_print_no_newline): only write to debugger if in
9191         WIN32_NATIVE.
9192
9193         * elhash.c (Fmake_hash_table): update doc string.
9194
9195         * event-msw.c (mswindows_wnd_proc): don't allow processing of
9196         messages whilst in GC. This at least stops XEmacs crashing but has
9197         the potential for wierd behaviour.
9198
9199 2000-07-31  Martin Buchholz  <martin@xemacs.org>
9200
9201         * config.h.in:
9202         Make existence of s&m files optional.
9203
9204         * s/bsd386.h: Remove HAVE_GETLOADAVG.
9205         * s/freebsd.h: Remove HAVE_GETLOADAVG.
9206         * s/gnu.h: Remove HAVE_GETLOADAVG.
9207         * s/netbsd.h: Remove HAVE_GETLOADAVG.
9208         * s/sol2.h: Remove HAVE_GETLOADAVG.
9209         * lisp.h: Remove getloadavg() declaration.
9210         * fns.c:
9211         Include <sys/loadavg.h> if available.
9212         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
9213         * config.h.in:  Group together getloadavg()-related macros.
9214         Use only configure-time tests to detect getloadavg().
9215
9216 2000-07-30  Martin Buchholz  <martin@xemacs.org>
9217
9218         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
9219
9220 2000-07-25  Andy Piper  <andy@xemacs.org>
9221
9222         * syswindows.h: add tchar.h for native builds.
9223
9224         * frame.c (syms_of_frame): remove set-glyph-image.
9225
9226         * general-slots.h: add Qset_glyph_image.
9227
9228         * glyphs-widget.c (layout_update): add domain arg to
9229         set-glyph-image.
9230         (syms_of_glyphs_widget): remove set-glyph-image.
9231
9232 2000-07-23  Ben Wing  <ben@xemacs.org>
9233
9234         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
9235         Vpopup_frame_list.
9236
9237 2000-07-22  Andy Piper  <andy@xemacs.org>
9238
9239         * symsinit.h: add syms_of_win32().
9240
9241         * gui-msw.c (syms_of_gui_mswindows): remove
9242         Fmswindows_shell_execute.
9243         (Fmswindows_shell_execute): moved to win32.c.
9244
9245         * emacs.c (main_1): add syms_of_win32 ().
9246
9247         * win32.c (init_potentially_nonexistent_functions): rewrite in
9248         compiler-friendly terms.
9249         (Fmswindows_shell_execute): move here from gui-msw.c.
9250         (syms_of_win32): new.
9251
9252         * device-msw.c (Fmswindows_printer_list): clean up args to
9253         EnumPrinters.
9254         Don't include tchar under cygwin or mingw.
9255         (msprinter_default_printer): make cygwin-friendly.
9256
9257 2000-07-21  Andy Piper  <andy@xemacs.org>
9258
9259         * glyphs-widget.c (image_instantiator_tree_view): use tab
9260         control's update function.
9261         (layout_property): new function. Retrieve items.
9262
9263         * glyphs-msw.c (mswindows_tree_view_redisplay): new
9264         function. Re-populate the tree view from the pending items.
9265
9266         * glyphs.c (instantiate_image_instantiator): Make sure the domain
9267         is designated the parent if the domain is an image instance. This
9268         is needed so that dirtiness can be cascade up the hierarchy and
9269         thus for layout children to be redisplayed correctly.
9270         (allocate_image_instance): rename glyph -> parent.
9271
9272         * redisplay.h: change redisplay_output_layout signature.
9273
9274         * redisplay-msw.c (mswindows_output_display_block): use domain
9275         arg.
9276
9277         * redisplay-x.c (x_output_display_block): use domain arg.
9278
9279 2000-07-10  Andy Piper  <andy@xemacs.org>
9280
9281         * window.c (Fset_window_configuration): add comment.
9282
9283         * redisplay-output.c (compare_runes):
9284         (redisplay_output_subwindow): redisplay rather than update subwindow.
9285         (redisplay_output_layout): ditto.
9286
9287         * redisplay-msw.c (mswindows_frame_output_end):
9288         (mswindows_frame_output_end): make defer window pos optional.
9289
9290         * lisp.h: add Flast.
9291
9292         * glyphs.h (struct image_instantiator_methods): add dest_mask top
9293         normalize method. Change update method to be for changed
9294         instantiators. Add redisplay method. Change signature of layout
9295         method.
9296         (struct Lisp_Image_Instance): add instantiator.
9297         (IMAGE_INSTANCE_INSTANTIATOR): new.
9298         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
9299         (XIMAGE_INSTANCE_INSTANTIATOR): new.
9300         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
9301
9302         * glyphs.c:
9303         (find_instantiator_differences): new function.
9304         (Fset_instantiator_property): new convenience function.
9305         (check_image_instance_structure): strictly check for vector
9306         instantiators.
9307         (normalize_image_instantiator): make non-static.
9308         (instantiate_image_instantiator): pass on dest_mask and use new
9309         signatures for image_instance_layout and friends.
9310         (mark_image_instance): mark the instantiator. Mark the subwindow
9311         face not the widget face.
9312         (image_instance_equal): add instantiator.
9313         (image_instance_hash): ditto.
9314         (allocate_image_instance): ditto.
9315         (Fset_image_instance_property): removed.
9316         (Fimage_instance_file_name): ditto.
9317         (Fcolorize_image_instance): ditto.
9318         (image_instance_layout): add offsets to be set.
9319         (update_image_instance): new function. update an image instance
9320         from its changed instantiator.
9321         (inherit_normalize): add dest_mask.
9322         (xbm_normalize): ditto.
9323         (xface_normalize): ditto.
9324         (xpm_normalize): ditto.
9325         (text_update): set_property -> update.
9326         (image_instantiate): use the glyph identity as a hash key, not the
9327         instantiator.
9328         (glyph_width): use new image_instance_layout signature.
9329         (glyph_ascent): ditto.
9330         (glyph_descent): ditto.
9331         (glyph_height): ditto.
9332         (glyph_query_geometry): ressurrect.
9333         (glyph_layout): ditto.
9334         (redisplay_subwindow): update -> redisplay.
9335         (syms_of_glyphs): add Fset_instantiator_property.
9336         (image_instantiator_format_create): set_property -> update.
9337
9338         * glyphs-x.c:
9339         (autodetect_normalize): add dest_maks to signature.
9340         (x_redisplay_subwindow): update -> redisplay.
9341         (x_redisplay_widget): ditto.
9342         (x_button_redisplay): ditto.
9343         (x_progress_gauge_redisplay): ditto.
9344         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
9345         stacking order.
9346         (console_type_create_glyphs_x): update -> redisplay.
9347         (image_instantiator_format_create_glyphs_x): ditto.
9348
9349         * glyphs-widget.c:
9350         (check_valid_instantiator): disallow glyphs in the instantiator,
9351         they must now be vectors.
9352         (check_valid_instantiator_list): ditto.
9353         (glyph_instantiator_to_glyph): use internal symbol rather than
9354         intern.
9355         (widget_update): renamed from widget_set_property. Call cascaded
9356         update methods.
9357         (redisplay_widget): renamed from update_widget.
9358         (widget_layout): image_instance_layout now takes position as well
9359         as size.
9360         (widget_normalize): ditto.
9361         (widget_instantiate): ditto.
9362         (tab_control_query_geometry) ditto.:
9363         (tab_control_update): renamed from tab_control_set_property.
9364         (progress_gauge_update): set_property -> update.
9365         (layout_normalize): rewrite so that child instantiators are
9366         normalized also.
9367         (layout_update): new function. Create glyphs from the normalized
9368         children and cope with any other layout keywords. We do not
9369         instantiate children here that will be take care of by
9370         redisplay_output_layout.
9371         (layout_instantiate): call layout_update and not much else.
9372         (layout_post_instantiate): not sure whether this is needed
9373         anymore.
9374         (layout_query_geometry): query glyph geometry rather than
9375         image_instance geometry.
9376         (layout_layout): set offsets from pass in parameters. Use glyph
9377         geometry and layout functions rather than image instance ones.
9378         (native_layout_layout): ditto.
9379         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
9380         (image_instantiator_widget): set_property -> update.
9381         (image_instantiator_buttons): ditto.
9382         (image_instantiator_progress_guage): ditto.
9383         (image_instantiator_tab_control): ditto.
9384         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
9385         (image_instantiator_layout): add update method.
9386
9387         * glyphs-msw.c (bmp_normalize):
9388         (mswindows_resource_normalize): add dest_mask so that it can be
9389         proprogated by layout_normalize.
9390         (begin_defer_window_pos): make optional because it may not be the
9391         right thing to do and it introduces differences with X.
9392         (mswindows_unmap_subwindow): ditto.
9393         (mswindows_map_subwindow): ditto.
9394         (mswindows_redisplay_subwindow): renamed from
9395         mswindows_update_subwindow.
9396         (mswindows_redisplay_widget): ditto.
9397         (mswindows_button_redisplay): renamed from
9398         mswindows_button_update. Update is now what the instantiation
9399         function does for a changed instantiator.
9400         (mswindows_progress_gauge_instantiate): set the progress value
9401         here if appropriate.
9402         (mswindows_tab_control_redisplay): cope with re-ordering of the
9403         members of the tab widget by simply selecting the new top
9404         widget. This makes things appear ok if you click on a tab.
9405         (mswindows_combo_box_instantiate): image_instance_layout now takes
9406         position as well as size.
9407         (mswindows_progress_gauge_redisplay): renamed from
9408         mswindows_progress_gauge_update.
9409         (console_type_create_glyphs_mswindows): fix update -> redisplay.
9410         (image_instantiator_format_create_glyphs_mswindows): ditto.
9411
9412         * glyphs-eimage.c (jpeg_normalize):
9413         (gif_normalize):
9414         (png_normalize):
9415         (tiff_normalize): add dest_mask so that it can be proprogated by
9416         layout_normalize.
9417
9418         * elhash.c:
9419         (print_hash_table):
9420         (hash_table_weakness_validate):
9421         (decode_hash_table_weakness):
9422         (Fhash_table_weakness):
9423         (Fhash_table_type):
9424         (syms_of_elhash): use Ben's naming scheme for hashtable types..
9425
9426         * console.h (struct console_methods): move update_* to
9427         redisplay_*.
9428
9429 2000-07-20  Ben Wing  <ben@xemacs.org>
9430
9431         * *.[ch] (XSETOBJ): remove unused middle argument.
9432         lisp-disunion.h: correct wrap_object() to one argument.
9433
9434 2000-07-15  Ben Wing  <ben@xemacs.org>
9435
9436         * s/cygwin32.h:
9437         * s/cygwin32.h (CYGWIN_CONV_PATH):
9438         Add missing logb prototype for v1.1.
9439         Use post-b20 names and alias to pre-b20 names when pre-b20.
9440
9441         * s/windowsnt.h: [5].
9442
9443 2000-07-15  Ben Wing  <ben@xemacs.org>
9444
9445         * Makefile.in.in (x_objs):
9446         * Makefile.in.in (sheap_objs):
9447         * Makefile.in.in (objs):
9448         added win32.o, cosmetic cleanups.
9449
9450         * alloc.c (Fmake_byte_code):
9451         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
9452         etc. macros which declare their own args now.
9453
9454         * alloc.c (syms_of_alloc):
9455         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
9456
9457         * buffer.c:
9458         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
9459
9460         * buffer.c (Fget_file_buffer):
9461         Fixed GCPRO problem.
9462
9463         * buffer.c (get_truename_buffer):
9464         Fixed comment about GC checking.
9465
9466         * buffer.c (syms_of_buffer):
9467         Undeclared those dedicated frame funs.
9468         [2].
9469
9470         * buffer.h:
9471         Define convenience macros for internal/external conversions.
9472         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
9473         and Qenvironment_variable_encoding for cleaner code.
9474
9475         * bufslots.h:
9476         Remove dedicated-frame; in lisp.
9477
9478         * bytecode.c (funcall_compiled_function):
9479         [1].
9480
9481         * bytecode.c (syms_of_bytecode):
9482         [2].
9483
9484         * console-msw.c:
9485         * console-msw.c (mswindows_show_console): Rewrote.
9486
9487         * console-msw.c (Fmswindows_debugging_output): New.
9488         Sends to OutputDebugString (special MSWin debugger interface).
9489
9490         * console-msw.c (Fmswindows_message_box):
9491         Fixed stupid bugs so it works when called from kill-emacs.
9492
9493         * console-msw.c (syms_of_console_mswindows):
9494         Declare Fmswindows_debugging_output.
9495
9496         * console-msw.h:
9497         New MSWin prototypes.
9498
9499         * console-msw.h (struct mswindows_frame):
9500         New entry last-click-mods for improved button-modifier support.
9501
9502         * console-msw.h (FRAME_MSWINDOWS_POPUP):
9503         New struct entry `popup' with corresponding accessor.
9504
9505         * console-x.c:
9506         * console-x.c (split_up_display_spec):
9507         * console-x.c (get_display_arg_connection):
9508         * console-x.c (x_semi_canonicalize_console_connection):
9509         * console-x.c (x_canonicalize_device_connection):
9510         [[[6]]]: Change char to more specific type.
9511         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
9512
9513         * console-x.c (x_semi_canonicalize_console_connection):
9514         * console-x.c (x_canonicalize_device_connection):
9515         [[[9]]]: Fix up error signalling to use new structured error system.
9516
9517         * console-x.h:
9518         [[[4]]]: Define codesys aliases:
9519         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
9520         Qx_color_name_encoding, Qx_display_name_encoding.
9521
9522         * console.h (struct console_methods):
9523         New method make_dialog_box_internal supersedes older
9524         popup_dialog_box method.
9525
9526         * data.c:
9527         Define many new errors, part of new structured errors.
9528
9529         * data.c (init_errors_once_early):
9530         * data.c (syms_of_data):
9531         [2].
9532
9533         * device-msw.c (mswindows_init_device):
9534         [[[5]]]: Cleanup to support NT 3.51.
9535
9536         * device-msw.c (decode_devmode): Cleanup.
9537
9538         * device-msw.c (mswindows_handle_print_setup_dialog_box):
9539         * device-msw.c (mswindows_handle_print_dialog_box):
9540         * device-msw.c (mswindows_handle_page_setup_dialog_box):
9541         * device-msw.c (syms_of_device_mswindows):
9542         Delete the dialog box primitives recently introduced by Kirill and
9543         instead interface to general dialog box interface.
9544
9545         * device-x.c:
9546         * device-x.c (compute_x_app_name):
9547         * device-x.c (x_init_device):
9548         * device-x.c (Fx_valid_keysym_name_p):
9549         * device-x.c (Fx_set_font_path):
9550         [6].
9551         [7].
9552
9553         * device.h (wrap_device): New.
9554         First of its kind; meant to replace XSETDEVICE.
9555
9556         * dialog-msw.c: Many file-dialog symbols.
9557
9558         * dialog-msw.c (mswindows_register_popup_frame): New.
9559         * dialog-msw.c (mswindows_is_dialog_msg): New.
9560         For supporting kbd traversal in dialog boxes.
9561
9562         * dialog-msw.c (dialog_proc):
9563         Support hitting ESC in dialogs.
9564
9565         * dialog-msw.c (struct):
9566         Common dialog box errors.
9567
9568         * dialog-msw.c (handle_file_dialog_box): New.
9569         Add file dialog code.
9570
9571         * dialog-msw.c (handle_question_dialog_box):
9572         Redo existing code to support new question dialog syntax.
9573
9574         * dialog-msw.c (console_type_create_dialog_mswindows):
9575         We support new dialog console method.
9576
9577         * dialog-msw.c (syms_of_dialog_mswindows):
9578         * dialog-msw.c (vars_of_dialog_mswindows):
9579         New file dialog symbols, vars.
9580
9581         * dialog-x.c:
9582         * dialog-x.c (maybe_run_dbox_text_callback):
9583         * dialog-x.c (dbox_descriptor_to_widget_value):
9584         * dialog-x.c (x_make_dialog_box_internal):
9585         * dialog-x.c (console_type_create_dialog_x):
9586         Mule-ize entire file.
9587         Redo to support question dialog syntax.
9588         [6].
9589
9590         * dialog.c:
9591         * dialog.c (Fmake_dialog_box_internal):
9592         * dialog.c (syms_of_dialog):
9593         Kill old popup-dialog-box, replace with new primitive.
9594         Just call device method or signal error.
9595
9596         * eldap.c (Fldap_open):
9597         * eldap.c (Fldap_search_basic):
9598         * eldap.c (Fldap_add):
9599         * eldap.c (Fldap_modify):
9600         [1].
9601         [7].
9602
9603         * emacs.c:
9604         * emacs.c (make_arg_list_1):
9605         * emacs.c (make_arg_list):
9606         Mule-ize call to dll_init().
9607         [6].
9608         [8].
9609
9610         * emacs.c (make_argc_argv):
9611         * emacs.c (free_argc_argv):
9612         * emacs.c (init_cmdargs):
9613         * emacs.c (main_1):
9614         * emacs.c (Fkill_emacs):
9615         * emacs.c (Fdump_emacs):
9616         Update comments about what can be used in syms_* etc.
9617         Call init_win32() when necessary.
9618         Fix up MS Win dialog box in kill-buffer to actually work right.
9619         [7].
9620
9621         * eval.c:
9622         * eval.c (For):
9623         * eval.c (Fand):
9624         * eval.c (Fprogn):
9625         * eval.c (Fprog1):
9626         * eval.c (Fprog2):
9627         * eval.c (FletX):
9628         * eval.c (Flet):
9629         * eval.c (condition_case_3):
9630         * eval.c (Feval):
9631         * eval.c (function_argcount):
9632         * eval.c (funcall_lambda):
9633         [1].
9634
9635         * eval.c (type_error): New.
9636         * eval.c (maybe_type_error): New.
9637         * eval.c (continuable_type_error): New.
9638         * eval.c (maybe_continuable_type_error): New.
9639         * eval.c (type_error_with_frob): New.
9640         * eval.c (maybe_type_error_with_frob): New.
9641         * eval.c (continuable_type_error_with_frob): New.
9642         * eval.c (maybe_continuable_type_error_with_frob): New.
9643         New functions for use with structured errors.
9644
9645         * event-Xt.c:
9646         * event-Xt.c (x_event_to_emacs_event):
9647         Buttons are now modifiers too.
9648
9649         * event-Xt.c (emacs_Xt_current_event_timestamp):
9650         Implement new event method.
9651         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
9652
9653         * event-msw.c:
9654         * event-msw.c (ntpipe_shove_writer): [5].
9655         * event-msw.c (mswindows_enqueue_mouse_button_event):
9656         * event-msw.c (mswindows_drain_windows_queue):
9657         * event-msw.c (mswindows_wnd_proc): [7].
9658         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
9659         * event-msw.c (mswindows_modifier_state):
9660         Throughout: support new button modifiers.
9661
9662         * event-msw.c (emacs_mswindows_current_event_timestamp):
9663         Implement new event method.
9664         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
9665
9666         * event-stream.c:
9667         * event-stream.c (event_stream_current_event_timestamp): New.
9668         * event-stream.c (maybe_kbd_translate): New functionality.
9669         * event-stream.c (vars_of_event_stream):
9670         Document new kbd-translate-table functionality.
9671
9672         * event-stream.c (Fcurrent_event_timestamp): New.
9673         New primitive for use in fabricated events.
9674         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
9675
9676         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
9677
9678         * events.c:
9679         * events.c (Fmake_event):
9680         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
9681         [1].
9682         [9].
9683
9684         * events.c (format_event_object): fix gcc warnings.
9685
9686         * events.c (Fevent_timestamp): Document new primitives.
9687
9688         * events.c (TIMESTAMP_HALFSPACE): New.
9689
9690         * events.c (Fevent_timestamp_lessp): New.  New primitive for
9691         comparing timestamps correctly (half-space algorithm).
9692
9693         * events.c (Fevent_modifier_bits): Doc fix.
9694
9695         * events.c (Fevent_modifiers): Major doc addition.
9696         * events.c (event_x_y_pixel_internal): Typo fix.
9697         * events.c (syms_of_events): Declare new primitives.
9698
9699         * events.h:
9700         Update long comment for button modifiers, timestamps.
9701
9702         * events.h (struct event_stream):
9703         New current_event_timestamp method.
9704
9705         * extents.c:
9706         * extents.c (extent_in_region_p):
9707         * extents.c (decode_extent):
9708         * extents.c (Fset_extent_parent):
9709         * extents.c (decode_map_extents_flags):
9710         Fix gcc warnings.
9711         [9].
9712
9713         * extents.c (struct extent_at_arg):
9714         * extents.c (decode_extent_at_flag):
9715         * extents.c (extent_at_mapper):
9716         * extents.c (extent_at_bytind):
9717         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
9718         * extents.c (Fextents_at): New primitive. [9].
9719         * extents.c (symbol_to_glyph_layout): [9].
9720         Support new primitive `extents-at'.
9721
9722
9723         * extents.c (get_text_property_bytind):
9724         extent_at_bytind has another arg.
9725         [9].
9726
9727         * extents.c (syms_of_extents): New primitive.
9728
9729         * file-coding.c (Fmake_coding_system): [1].
9730         * file-coding.c (subsidiary_coding_system): fix gcc warning
9731         * file-coding.c (syms_of_file_coding): [2].
9732
9733         * fileio.c (Fexpand_file_name):
9734         * fileio.c (Fsysnetunam):
9735         * fileio.c (Ffile_exists_p):
9736         * fileio.c (Ffile_executable_p):
9737         * fileio.c (Fverify_visited_file_modtime):
9738         Clean up GCPROing.
9739
9740         * fileio.c (syms_of_fileio): [2].
9741
9742         * filelock.c (lock_file_1):
9743         * filelock.c (current_lock_owner):
9744         * filelock.c (lock_if_free):
9745         * filelock.c (lock_file):
9746         * filelock.c (unlock_file):
9747         Clean up GCPROing.
9748
9749         * fns.c (concat): Fix gcc warning.
9750
9751         * fns.c (Fmember):
9752         * fns.c (Fold_member):
9753         * fns.c (Fmemq):
9754         * fns.c (Fold_memq):
9755         * fns.c (memq_no_quit):
9756         * fns.c (Fassoc):
9757         * fns.c (Fold_assoc):
9758         * fns.c (Fassq):
9759         * fns.c (Fold_assq):
9760         * fns.c (assq_no_quit):
9761         * fns.c (Frassoc):
9762         * fns.c (Fold_rassoc):
9763         * fns.c (Frassq):
9764         * fns.c (Fold_rassq):
9765         * fns.c (rassq_no_quit):
9766         * fns.c (Fdelete):
9767         * fns.c (Fold_delete):
9768         * fns.c (Fdelq):
9769         * fns.c (Fold_delq):
9770         * fns.c (delq_no_quit):
9771         * fns.c (Fremassoc):
9772         * fns.c (Fremassq):
9773         * fns.c (remassq_no_quit):
9774         * fns.c (Fremrassoc):
9775         * fns.c (Fremrassq):
9776         * fns.c (remrassq_no_quit):
9777         * fns.c (Freverse):
9778         * fns.c (mapcar1):
9779         [1].
9780
9781         * frame-msw.c (mswindows_init_frame_1):
9782         * frame-msw.c (mswindows_delete_frame):
9783         Register popups with dialog code so keyboard traversing works.
9784
9785         * frame-tty.c (tty_raise_frame_no_select): [1].
9786
9787         * frame-x.c:
9788         * frame-x.c (x_set_frame_text_value):
9789         * frame-x.c (x_set_frame_properties):
9790         * frame-x.c (x_create_widgets):
9791         [7].
9792
9793         * frame.c:
9794         * frame.c (Fmouse_pixel_position): Minor doc fixes.
9795
9796         * frame.h (wrap_frame): New.
9797         Macro like wrap_device.
9798
9799         * general.c:
9800         * general.c (SYMBOL):
9801         * general.c (syms_of_general):
9802         Major reorg.  This is now just a wrapper and symbols themselves
9803         are listed in general-slots.h.
9804
9805         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
9806         * glyphs-msw.c (mswindows_resource_instantiate): [5].
9807
9808         * glyphs-msw.c (mswindows_native_layout_instantiate):
9809         Add DS_CONTROL so keyboard traversal will work.
9810
9811         * glyphs-widget.c:
9812         * glyphs-widget.c (syms_of_glyphs_widget):
9813         Move some symbols to general-slots.h.
9814
9815         * glyphs-x.c:
9816         * glyphs-x.c (xbm_instantiate_1):
9817         * glyphs-x.c (x_xbm_instantiate):
9818         * glyphs-x.c (x_xface_instantiate):
9819         * glyphs-x.c (autodetect_instantiate):
9820         * glyphs-x.c (cursor_font_instantiate):
9821         * glyphs-x.c (x_update_widget):
9822         * glyphs-x.c (x_widget_instantiate):
9823         * glyphs.c (bitmap_to_lisp_data):
9824         * glyphs.c (pixmap_to_lisp_data):
9825         [7].
9826
9827         * glyphs.c (syms_of_glyphs):
9828         [2].
9829
9830         * gui-x.c:
9831         * gui-x.c (print_widget_value):
9832         * gui-x.c (menu_separator_style_and_to_external):
9833         * gui-x.c (add_accel_and_to_external):
9834         * gui-x.c (button_item_to_widget_value):
9835         * gui-x.c (gui_items_to_widget_values_1):
9836         * gui-x.c (gui_items_to_widget_values):
9837         * gui-x.c (syms_of_gui_x):
9838         * gui-x.c (vars_of_gui_x):
9839         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
9840         [9].
9841
9842         * gui-x.h:
9843         Muleize, prototype changes matching gui-x.c.
9844
9845         * gui.c:
9846         * gui.c (separator_string_p):
9847         * gui.c (gui_item_add_keyval_pair):
9848         * gui.c (make_gui_item_from_keywords_internal):
9849         * gui.c (signal_too_long_error):
9850         * gui.c (parse_gui_item_tree_item):
9851         * gui.c (syms_of_gui):
9852         * gui.c (vars_of_gui):
9853         * gui.h:
9854         menu-no-selection-hook moved here (used by MSWin).
9855         Move some symbols to general-slots.h.
9856         [6].
9857         [9].
9858
9859         * insdel.c (get_buffer_pos_char):
9860         * insdel.c (get_buffer_range_char):
9861         Add GC comments.
9862
9863         * keymap.c (keymap_lookup_directly):
9864         * keymap.c (keymap_store):
9865         * keymap.c (ensure_meta_prefix_char_keymapp):
9866         * keymap.c (describe_map):
9867         * keymap.h:
9868         Support new button modifiers.
9869
9870         * lisp-disunion.h (wrap_object):
9871         * lisp-disunion.h (XSETOBJ):
9872         Rename make_obj to wrap_object.
9873
9874         * lisp-union.h:
9875         * lisp-union.h (make_int):
9876         * lisp-union.h (make_char):
9877         Support wrap_object.
9878
9879         * lisp.h:
9880         * lisp.h (LIST_LOOP):
9881         * lisp.h (EXTERNAL_LIST_LOOP):
9882         * lisp.h (LIST_LOOP_2):
9883         * lisp.h (EXTERNAL_LIST_LOOP_1):
9884         * lisp.h (EXTERNAL_LIST_LOOP_2):
9885         * lisp.h (EXTERNAL_LIST_LOOP_3):
9886         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
9887         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
9888         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
9889         * lisp.h (EXTERNAL_ALIST_LOOP_5):
9890         * lisp.h (EXTERNAL_ALIST_LOOP_6):
9891         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
9892         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
9893         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
9894         * lisp.h (struct Lisp_Symbol):
9895         * lisp.h (maybe_continuable_error_with_frob):
9896         Fix up section comments.
9897         Add new types for char to indicate usage.
9898         Delete symbols auto-generated from general-slots.h.
9899         Add prototypes for structured error functions.
9900         Add long comments describing looping macros and change interface
9901         so that lvalues are automatically declared.
9902         Add NO_DECLARE macro in case callers want to declare lvalues
9903         themselves.
9904
9905         * lread.c (read_syntax_error):
9906         * lread.c (continuable_read_syntax_error):
9907         * lread.c (read_structure):
9908         * lread.c (sequence_reader):
9909         * lread.c (read_list_conser):
9910         * lread.c (read_compiled_function):
9911         Rename syntax_error and continuable_syntax_error to avoid clash
9912         with same-named structured error functions.
9913
9914         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
9915         * menubar-msw.c (populate_menu_add_item):
9916         * menubar-msw.c (populate_or_checksum_helper):
9917         [5].
9918         [9].
9919
9920         * menubar-x.c:
9921         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9922         Mule-ize whole file.
9923
9924         * menubar.c (Fnormalize_menu_item_name): Add optimization.
9925
9926         * mule-charset.c (Fmake_charset):
9927         * mule-wnnfns.c (Fwnn_set_param):
9928         [1].
9929
9930         * ntproc.c (create_child):
9931         * ntproc.c (Fwin32_set_current_locale):
9932         Add comments portending doom.
9933
9934         * objects-msw.c:
9935         * objects-msw.c (old_font_enum_callback_2):
9936         * objects-msw.c (font_enum_callback_1):
9937         * objects-msw.c (mswindows_enumerate_fonts):
9938         [5].
9939
9940         * objects-x.c:
9941         * objects-x.c (allocate_nearest_color):
9942         * objects-x.c (x_parse_nearest_color):
9943         * objects-x.c (x_initialize_color_instance):
9944         * objects-x.c (x_print_color_instance):
9945         * objects-x.c (x_finalize_color_instance):
9946         * objects-x.c (x_valid_color_name_p):
9947         * objects-x.c (x_initialize_font_instance):
9948         * objects-x.c (x_print_font_instance):
9949         * objects-x.c (valid_x_font_name_p):
9950         * objects-x.c (truename_via_FONT_prop):
9951         * objects-x.c (truename_via_random_props):
9952         * objects-x.c (truename_via_XListFonts):
9953         * objects-x.c (x_font_truename):
9954         * objects-x.c (x_font_instance_truename):
9955         * objects-x.c (x_font_instance_properties):
9956         * objects-x.c (x_list_fonts):
9957         * objects-x.c (x_find_charset_font):
9958         Mule-ize entire file.
9959         [7].
9960
9961         * objects-x.h:
9962         Mule-verify.
9963
9964         * print.c:
9965         * print.c (std_handle_out_external):
9966         * print.c (debug_print_no_newline):
9967         * print.c (syms_of_print):
9968         Output to all debugger kinds in debug-print.
9969         Fix console-output code under MSWin to actually work.
9970
9971         * process-nt.c (send_signal):
9972         * process-nt.c (nt_create_process):
9973         Use newer Unicode macros.
9974
9975         * process-unix.c (unix_create_process):
9976         * process-unix.c (unix_canonicalize_host_name):
9977         * process-unix.c (unix_open_network_stream):
9978         [7].
9979
9980         * scrollbar-x.c:
9981         Mule-verify.
9982
9983         * search.c (syms_of_search):
9984         [2].
9985
9986         * select-msw.c (mswindows_destroy_selection):
9987         Use LIST_LOOP_2.
9988
9989         * select-x.c (symbol_to_x_atom):
9990         [7].
9991
9992         * select.c (syms_of_select):
9993         [2].
9994
9995         * sound.c (Fplay_sound_file):
9996         [7].
9997
9998         * specifier.c:
9999         * specifier.c (decode_specifier_type):
10000         * specifier.c (Fvalid_specifier_locale_type_p):
10001         * specifier.c (check_valid_locale_or_locale_type):
10002         * specifier.c (decode_locale):
10003         * specifier.c (decode_locale_type):
10004         * specifier.c (decode_locale_list):
10005         * specifier.c (check_valid_domain):
10006         * specifier.c (decode_specifier_tag_set):
10007         * specifier.c (Fcanonicalize_tag_set):
10008         * specifier.c (Fdefine_specifier_tag):
10009         * specifier.c (Fspecifier_tag_predicate):
10010         * specifier.c (check_valid_inst_list):
10011         * specifier.c (check_valid_spec_list):
10012         * specifier.c (decode_how_to_add_specification):
10013         * specifier.c (check_modifiable_specifier):
10014         * specifier.c (specifier_add_spec):
10015         * specifier.c (boolean_validate):
10016         * specifier.c (display_table_validate):
10017         [9].
10018
10019         * specifier.c (syms_of_specifier):
10020         Move some symbols to general-slots.h.
10021         [2].
10022
10023         * symbols.c:
10024         * symbols.c (Fmapatoms):
10025         * symbols.c (Fapropos_internal):
10026         Add GCPROs.
10027
10028         * symbols.c (set_default_buffer_slot_variable):
10029         * symbols.c (set_default_console_slot_variable):
10030         [1].
10031
10032         * symbols.c (defsymbol_massage_name_1):
10033         * symbols.c (defkeyword_massage_name):
10034         * symbols.c (deferror_1):
10035         * symbols.c (deferror):
10036         * symbols.c (deferror_massage_name_and_message):
10037         * symeval.h:
10038         * symeval.h (DEFSYMBOL):
10039         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
10040
10041         * symbols.c (syms_of_symbols):
10042         [2].
10043
10044         * symsinit.h:
10045         * symsinit.h (init_win32): New.
10046         Also new is syms_of_dialog_mswindows.
10047
10048         * syswindows.h:
10049         Add new Unicode macros, missing Cygwin wide-char functions,
10050         convenience conversion macros for Qmswindows_tstr, macros for
10051         encapsulating required MSWin <-> Cygwin filename conversions,
10052         prototype for dynamically-extracted (not in NT 3.51) functions.
10053
10054         * toolbar-x.c:
10055         Mule-verify.
10056
10057         * tooltalk.c (Fadd_tooltalk_message_arg):
10058         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
10059         * tooltalk.c (Fadd_tooltalk_pattern_arg):
10060         [7].
10061
10062         * tooltalk.c (syms_of_tooltalk):
10063         [2].
10064
10065         * unexnt.c:
10066         * unexnt.c (unexec):
10067         Fix up headers, declaration of unexec() to be more standard.
10068
10069 2000-07-20  Martin Buchholz  <martin@xemacs.org>
10070
10071         * offix.h: Revert change to guard macros - they're used in offix.c!
10072
10073 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10074
10075         * lisp.h: Defsubred Fdelete.
10076
10077         * console-msw.h:  (msprinter_default_printer): Added.
10078
10079         * console-msw.c (msprinter_canonicalize_console_connection):
10080         (msprinter_canonicalize_device_connection): Added.
10081
10082         * device-msw.c (msprinter_default_printer):
10083         (Fmswingows_get_default_printer):
10084         (signal_enum_priner_error):
10085         (Fmswingows_printer_list): Added.
10086
10087 2000-07-19  Martin Buchholz <martin@xemacs.org>
10088
10089         * XEmacs 21.2.35 is released.
10090
10091 2000-07-19  Martin Buchholz  <martin@xemacs.org>
10092
10093         * select-x.c (x_handle_selection_request):
10094         Text selected in xemacs and pasted into xterm failed to appear.
10095         Spelling fixes and cosmetic changes.
10096
10097 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10098
10099         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
10100         XEmacs frame (fix for doubling chars in dialog boxes).
10101
10102 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
10103
10104         * select.c (select_convert_in, select_convert_out):
10105         Don't call intern() every time.
10106
10107         * select.c (Qselect_convert_in, Qselect_convert_out): New.
10108         * select.c (vars_of_select): Initialise them.
10109
10110 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
10111
10112         * select.c (selection-coercible-types): New.
10113
10114         * select.c (own-selection-internal):
10115         * select.c (get-selection-internal):
10116         MULE bug fix - these should default to COMPOUND_TEXT and not
10117         STRING for MULE. I think.
10118
10119         * select.c (select_convert_out): Use selection-coercible-types
10120         to find types that we can attempt to perform coercions on.
10121
10122 2000-07-18  Martin Buchholz  <martin@xemacs.org>
10123
10124         * mule-wnnfns.c:
10125         * mule-canna.c:
10126         Add coding: cookie to identify encoding.
10127
10128         * mule-canna.c (CANNA_mode_keys): make static.
10129         Use proper prototypes, even for functions of no arguments.
10130         Remove external prototype for Fding().
10131
10132         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
10133
10134         * select.c (syms_of_select): Add missing DEFSUBR.
10135
10136 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
10137
10138         * select.c (get_selection_internal, own_selection_internal):
10139         Make the type default to STRING, rather than placing a nil type
10140         into Vselection_alist.
10141
10142 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
10143
10144         * gpmevent.c (tty_selection_exists_p):
10145         * gpmevent.c (tty_own_selection):
10146         Updated parameter lists.
10147
10148 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
10149
10150         * select.h (selection-alist): Removed declaration.
10151
10152         * select.h (get_local_selection):
10153         * select.c (get_local_selection):
10154         Made static.
10155
10156         * select.h (convert_selection): Removed declaration.
10157         * select.c (convert_selection): Removed.
10158         This function belongs in Lisp.
10159
10160         * select.h (select_convert_in): Declare.
10161         * select.h (select_convert_out): Declare.
10162         * select.c (select_convert_in): New.
10163         * select.c (select_convert_out): New.
10164         New conversion functions for other files to call.
10165
10166         * select.h (select_notify_buffer_kill): Declare.
10167         * select.c (select_notify_buffer_kill): New.
10168         New functions that get called from kill-buffer.
10169
10170         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
10171         X-specific lisp code.
10172
10173         * select.h: Declare some of the lisp-visible functions for
10174         external use.
10175
10176         * select.c (clean_local_selection_data): Removed. This was
10177         a disgusting function, and previously should have been in
10178         select-x.c in any case. The functionality is now provided
10179         in select-convert-from-integer (select.el).
10180
10181         * select.c (available-selection-types): Fixed stupidity where
10182         INTEGER and ATOM got added twice. Also add STRING when we see an
10183         extent.
10184
10185         * select.c (get-selection-internal): Removed symbol stripping. No
10186         longer causes conversion when data comes from the internal cache.
10187
10188         * select.c (syms_of_select): Added new functions.
10189
10190         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
10191         error checking - previously this called abort!
10192
10193         * select-x.c (x_own_selection): Changed comment.
10194
10195         * select-x.c (x_handle_selection_request): Use select_convert_out.
10196         Don't mess with selection-alist; it's an internal variable of select.c.
10197
10198         * select-x.c (x_get_foreign_selection): Use select_convert_in.
10199
10200         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
10201         rather than messing with selection-alist.
10202
10203         * select-msw.c (mswindows_get_foreign_selection):
10204         Use TO_INTERNAL_FORMAT rather than hacking.
10205
10206 2000-07-14  Martin Buchholz  <martin@xemacs.org>
10207
10208         * process-unix.c (unix_open_multicast_group):
10209         (unix_open_multicast_group): Remove useless casts.
10210
10211 2000-07-13  Martin Buchholz  <martin@xemacs.org>
10212
10213         * sound.c (Fplay_sound): Fix `unused variable' warning.
10214
10215         * emacs.c (main): Use correct type for _environ on SCO5.
10216
10217 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
10218
10219         * console.h (own_selection_method):
10220         * console.h (selection_exists_p_method):
10221         * console.h (available_selection_types_method): New.
10222         * console.h (register_selection_data_type_method): New.
10223         * console.h (selection_data_type_name): New.
10224
10225         * console-msw.h (mswindows_destroy_selection): Declare it.  New
10226         function & alist to track GlobalAlloc()'d handles that need
10227         releasing when the clipboard data gets replaced or emptied.
10228
10229         * event-msw.c (mswindows_wnd_proc): Call it.
10230
10231         * lisp.h, general.c (Qappend): New symbol representing a
10232         `how-to-add' mode.
10233
10234         * select.c (own-selection-internal):
10235         * select.c (selection-exists-p):
10236         * select.c (available-selection-types): New.
10237         * select.c (register-selection-data-type): New.
10238         * select.c (selection-data-type-name): New.  New functions to deal
10239         with device-specific selection data formats.
10240         * select.c (selection-converter-out-alist): Renamed.
10241         * select.c (selection-converter-in-alist): New.
10242         * select.c (selection-appender-alist): New.  Added new alists.
10243         * select.c (syms_of_select, vars_of_select): Added new symbols &
10244         variables.
10245         * select.c (get_local_selection): Split.
10246         * select.c: Removed spurious type checking - selections may now be
10247         of any type, not just strings.
10248         * select.c (own-selection-internal):
10249
10250         * select.h, select.c (convert_selection): New. Created
10251         convert_selection() function based on get_local_selection().
10252         * select.h, select.c (QCF_*): New symbols representing mswindows
10253         clipboard formats.
10254         * select.h, select.c (Qreplace_all, Qreplace_existing): New
10255         symbols representing `how-to-add' modes.
10256
10257         * select-msw.c (x_sym_p): New.
10258         * select-msw.c (symbol_to_ms_cf): New.
10259         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
10260         symbols & clipboard formats. Can also handle string names.
10261         * select-msw.c (mswindows_own_selection):
10262         * select-msw.c (mswindows_selection_exists_p):
10263         Added `data-type' parameter. Use it.
10264         * select-msw.c (mswindows_available_selection_types): New.
10265         * select-msw.c (mswindows_register_selection_data_type): New.
10266         * select-msw.c (mswindows_selection_data_type_name): New.
10267         * select-msw.c (mswindows_own_selection):
10268         * select-msw.c (mswindows_get_foreign_selection):
10269         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
10270         * select-msw.c (console_create_select_mswindows): Added new methods.
10271         * select-msw.c (mswindows_destroy_selection): New.
10272         * select-msw.c (Vhandle_alist): New list.
10273         * select-msw.c (mswindows_own_selection):
10274
10275         * select-x.c (x_own_selection):
10276         * select-x.c (x_selection_exists_p):
10277         * select-x.c: Added some comments about maybe using new
10278         functionality.
10279         * select-x.c (x_own_selection):
10280
10281         * specifier.c: Remove definition of Qappend (now in general.c)
10282         * specifier.c (syms_of_specifier): Remove Qappend.
10283
10284 2000-07-12  Martin Buchholz  <martin@xemacs.org>
10285
10286         * config.h.in: Add socklen_t.
10287
10288         * s/decosf4-0.h: No special compiler flags needed or desired.
10289         In particular, undefine _BSD for DEC OSF 4.0.
10290
10291 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10292
10293         * redisplay-msw.c (msprinter_frame_output_end): Added.
10294         (console_type_create_redisplay_mswindows): Referred the above.
10295
10296         * frame.c (setup_frame_without_minibuffer): Do not create a
10297         default minibuffer frame on a printer device.
10298
10299         * frame-msw.c (apply_dc_geometry): Added.
10300         (msprinter_start_page):
10301         (msprinter_init_frame_3):
10302         (msprinter_eject_page): Use it.
10303
10304         * console-msw.h (struct msprinter_frame): Added pix_left and top,
10305         and removed residual duplex and orientation properties.
10306
10307 2000-07-11  Martin Buchholz  <martin@xemacs.org>
10308
10309         * eval.c (function_argcount): Work around a DEC CC compiler bug.
10310
10311         * unexalpha.c: Remove system prototypes from C sources!
10312
10313 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
10314
10315         * eval.c: Remove references to M-x edit-options in DEFUNs for
10316         `defvar' and `defconst'.
10317
10318 2000-07-09  Martin Buchholz  <martin@xemacs.org>
10319
10320         * config.h.in: Remove SMART_INCLUDE hackery.
10321
10322         PostgreSQL hacking:
10323         * config.h.in: Don't use SMART_INCLUDE.
10324
10325         * postgresql.h: Include libpq-fe.h here.  Fix typo.
10326         * inline.c: Simply #include "postgresql.h"
10327         * postgresql.c:
10328         - Don't use SMART_INCLUDE
10329         - Use simply "const".
10330         - Use standard doc string conventions.
10331         - Use correct type for result of PQstatus.
10332
10333 2000-07-09  Martin Buchholz  <martin@xemacs.org>
10334
10335         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
10336
10337         C++ compilation changes.
10338         * config.h.in (EXTERN_C): Define.
10339         * config.h.in (not): This is also a C++ keyword.
10340         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
10341         * cm.c: Use EXTERN_C.
10342         * redisplay-tty.c: Use EXTERN_C.
10343         * sysdep.c: Use EXTERN_C.  Remove Gould support.
10344
10345 2000-07-09  Martin Buchholz  <martin@xemacs.org>
10346
10347         * general.c: Remove duplicate definition for Qfunction.
10348
10349 2000-07-08  Ben Wing  <ben@xemacs.org>
10350
10351         * device-msw.c (msprinter_init_device):
10352         * device-msw.c (sync_printer_with_devmode):
10353         * device-msw.c (handle_devmode_changes):
10354         * device-msw.c (print_dialog_worker):
10355         * device-msw.c (Fmsprinter_apply_settings):
10356         * device-msw.c (hash_devmode):
10357         * device-msw.c (Fmsprinter_settings_despecialize):
10358         use Qmswindows_tstr, not Qctext.
10359
10360         * vm-limit.c (check_memory_limits):
10361         avoid infinite loop printing warning messages.
10362
10363 2000-07-05  Craig Lanning  <lanning@scra.org>
10364
10365         * Makefile.in.in: Add support for including the Windows resources
10366         when building with the cygwin and mingw targets.
10367
10368         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
10369         not set or not correct.
10370         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
10371         (init_initial_directory): Don't try to use $PWD on the
10372         WIN32_NATIVE target.
10373
10374         * s\cygwin32.h:
10375         [[Add -mwindows to eliminate console window.]] not required --ben
10376         (HAVE_NATIVE_SOUND): removed; now handled by configure.
10377         (MAIL_USE_POP): removed; now handled by configure.
10378
10379         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
10380         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
10381         (HAVE_NATIVE_SOUND): removed; now handled by configure.
10382         (MAIL_USE_POP): removed; now handled by configure.
10383         (ENCAPSULATE_STAT): from Dan Holmsand, added.
10384         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
10385         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
10386         constant string.
10387         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
10388         up from <winsock.h> via systime.h.
10389         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
10390         (getpagesize): from Dan Holmsand, added.
10391         Added #endif which was left dangling by Ben's mega patch; added
10392         comment to help prevent this in the future.
10393
10394         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
10395
10396 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10397
10398         * console-msw.h (struct mswindows_device): Removed unnecessary
10399         cached device geometry values.
10400         Added update_tick and an accessor macro.
10401         (Lisp_Devmode): Added lrecord declaration.
10402         (struct msprinter_device): Contain devmode as a Lisp object.
10403         Added mswindows_get_selected_frame_hwnd();
10404
10405         * console.h (struct console_methods): Indentation nitpicking.
10406
10407         * device-msw.c (mswindows_init_device): Do not initialize geometry
10408         cache. Initialize update tick.
10409         (mswindows_device_system_metrics): Ask the device for its geometry.
10410         (global_free_2_maybe):
10411         (devmode_to_hglobal):
10412         (handle_printer_changes):
10413         (ensure_not_printing):
10414         (print_dialog_worker):
10415         (Fmsprinter_print_setup_dialog):
10416         (Fmsprinter_print_dialog):
10417         (plist_get_margin):
10418         (plist_set_margin):
10419         (Fmsprinter_page_setup_dialog): Added functions.
10420         (sync_printer_with_devmode):
10421         (handle_devmode_changes):
10422         (Fmsprinter_get_settings):
10423         (Fmsprinter_select_settings):
10424         (Fmsprinter_apply_settings):
10425         (allocate_devmode):
10426         (Fmsprinter_settings_copy):
10427         (Fmsprinter_settings_despecialize):
10428         (print_devmode):
10429         (finalize_devmode):
10430         (equal_devmode):
10431         (hash_devmode): Added functions
10432         (syms_of_device_mswindows): Init devmode lrecord class.
10433
10434         * device.h: Added an exfun for find-device.
10435
10436         * event-msw.c (mswindows_wnd_proc): Do not update the cached
10437         geometry; although, recreate the device compatible DC.
10438
10439         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
10440         (msprinter_init_frame_3):
10441         (msprinter_frame_property):
10442         (msprinter_internal_frame_property_p):
10443         (msprinter_frame_properties):
10444         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
10445         print job properties (will move to device settings).
10446
10447         * lisp.h: Added symbols.
10448
10449         * general.c (syms_of_general): Declared them.
10450
10451         * hash.c (string_hash): Added.
10452
10453         * lrecord.h (lrecord_type): Added devmode lrecord type.
10454
10455 2000-07-02  Mike Sperber <mike@xemacs.org>
10456
10457         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
10458         FreeBSD 4.0.
10459
10460 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
10461
10462         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
10463         integer.
10464
10465 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
10466
10467         * data.c (Fstring_to_number): Don't recognize floating point if
10468         base is not 10.
10469
10470 2000-06-22  Martin Buchholz  <martin@xemacs.org>
10471
10472         * glyphs-widget.c (tab_control_query_geometry):
10473         (widget_query_geometry):
10474         (button_query_geometry):
10475         * glyphs.c (text_query_geometry):
10476         Enforce type correctness.
10477
10478 2000-06-18  Martin Buchholz  <martin@xemacs.org>
10479
10480         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
10481         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
10482
10483 2000-06-17  Martin Buchholz  <martin@xemacs.org>
10484
10485         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
10486         conflicts with gcc's fixincluded version of FOO.h.
10487
10488         * glyphs.h (image_instance_geometry): Remove trailing `,'
10489
10490 2000-06-08  Mike Alexander  <mta@arbortext.com>
10491
10492         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
10493         (shove_thread): Don't write the same output twice
10494         (make_ntpipe_output_stream): Increase priority of shove thread
10495         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
10496         chance to run
10497         (ntpipe_shove_closer): Don't delete the pipe until we're done with
10498         it.
10499
10500 2000-06-12  Ben Wing  <ben@xemacs.org>
10501
10502         * s\mingw32.h (sigset):
10503         * s\windowsnt.h (sigset):
10504         rename msw_ to mswindows_ for consistency with general convention.
10505
10506 2000-06-12  Ben Wing  <ben@xemacs.org>
10507
10508         * console-msw.c:
10509         * console-msw.c (mswindows_get_console_hwnd):
10510         * console-msw.c (mswindows_ensure_console_allocated):
10511         * console-msw.c (mswindows_hide_console):
10512         * console-msw.c (mswindows_show_console):
10513         * console-msw.c (mswindows_ensure_console_buffered):
10514         * console-msw.c (mswindows_output_console_string):
10515         * console-msw.c (mswindows_windows9x_p):
10516         * console-msw.h:
10517         * device-msw.c (mswindows_get_workspace_coords):
10518         * device-msw.c (mswindows_device_system_metrics):
10519         * dialog-msw.c (mswindows_popup_dialog_box):
10520         * event-msw.c (mswindows_wnd_proc):
10521         * frame-msw.c (mswindows_size_frame_internal):
10522         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
10523         * menubar-msw.c (displayable_menu_item):
10524         * menubar-msw.c (mswindows_char_is_accelerator):
10525         * nt.c:
10526         * nt.c (mswindows_sigset):
10527         * nt.c (mswindows_sigrelse):
10528         * nt.c (mswindows_sigpause):
10529         * nt.c (mswindows_raise):
10530         * nt.c (timer_proc):
10531         * ntproc.c:
10532         * ntproc.c (find_child_console):
10533         * ntproc.c (sys_kill):
10534         * print.c:
10535         * print.c (std_handle_out_external):
10536         * process-nt.c (find_child_console):
10537         * process-nt.c (send_signal_the_95_way):
10538         * process-nt.c (ensure_console_window_exists):
10539         * process-nt.c (nt_create_process):
10540         * syssignal.h:
10541         rename msw_ to mswindows_ for consistency with general convention.
10542
10543         * emacs.c:
10544         * dumper.c:
10545         include nt.h, not syswindows.h.
10546
10547         * nt.c (mswindows_fstat):
10548         * nt.c (mswindows_stat):
10549         prefix mswindows_ instead of attempting to directly override the
10550         library functions.  fix declarations.
10551
10552         * nt.h:
10553         include syswindows.h.  move some sysdep.h stuff here.
10554
10555         * ntheap.h:
10556         include syswindows.h, not <windows.h>.
10557
10558         * ntplay.c:
10559         clean up headers.
10560
10561         * sysdep.c:
10562         clean up headers.
10563
10564         * sysdep.c (sys_fstat):
10565         * sysdep.c (sys_stat):
10566         call mswindows versions when appropriate.
10567
10568         * sysdep.h:
10569         move mswin decls to nt.h.
10570
10571         * syswindows.h:
10572         add long comment describing appropriate use of the various windows
10573         headers.
10574
10575 2000-06-11  Ben Wing  <ben@xemacs.org>
10576
10577         * device-x.c: Correct doc string for sixth arg of x-get-resource.
10578
10579 2000-06-10  Ben Wing  <ben@xemacs.org>
10580
10581         * Makefile.in.in (release):
10582         Correction to make sure xemacs.exe always dumped when correct.
10583
10584         * alloca.c:
10585         * balloon_help.c:
10586         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
10587
10588         * buffer.c (set_buffer_internal):
10589         [[[[2]]]]: Remove HAVE_FEP code.
10590
10591         * buffer.c (init_initial_directory):
10592         [3].
10593
10594         * bytecode.c:
10595         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
10596         individual files.
10597
10598         * callproc.c:
10599         * callproc.c (call_process_cleanup):
10600         * callproc.c (Fold_call_process_internal):
10601         * callproc.c (child_setup):
10602         * callproc.c (getenv_internal):
10603         * callproc.c (init_callproc):
10604         * callproc.c (vars_of_callproc):
10605         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
10606         __CYGWIN32__ -> CYGWIN.
10607         DOS_NT -> WIN32_NATIVE.
10608         Remove MSDOS support/references, converting to WIN32_NATIVE
10609           where correct.
10610         __MINGW32__ -> MINGW.
10611         Fix windows.h includes.
10612         Remove bogus HAVE_NTGUI.
10613
10614         * config.h.in:
10615         [2].
10616
10617         * console-msw.c:
10618         mswindows_message_outputted added for use in allowing startup
10619         errors on the console to be seen.
10620
10621         * console-msw.c (msw_ensure_console_allocated):
10622         * console-msw.c (msw_output_console_string):
10623         * console-msw.c (DHEADER):
10624         * console-msw.c (DOPAQUE_DATA):
10625         * console-msw.c (DEVENT):
10626         * console-msw.c (DCONS):
10627         * console-msw.c (DCONSCDR):
10628         * console-msw.c (DSTRING):
10629         * console-msw.c (DVECTOR):
10630         * console-msw.c (DSYMBOL):
10631         * console-msw.c (DSYMNAME):
10632         Fix warnings.
10633
10634         * console-stream.c (stream_init_console):
10635         Fix text/binary problems.
10636
10637         * device-msw.c:
10638         * device-msw.c (mswindows_finish_init_device):
10639         * device-msw.c (mswindows_delete_device):
10640         [1].
10641
10642         * device.c (handle_asynch_device_change):
10643         [3].
10644
10645         * dgif_lib.c:
10646         * dgif_lib.c (DGifOpenFileName):
10647         * dgif_lib.c (DGifOpenFileHandle):
10648         * dgif_lib.c (DGifGetLine):
10649         * dgif_lib.c (DGifGetPixel):
10650         Added config.h/lisp.h, fix up includes.
10651         [1].
10652
10653         * dired-msw.c:
10654         [4].
10655
10656         * dired.c:
10657         * dired.c (file_name_completion):
10658         * dired.c (Ffile_attributes):
10659         * dired.c (syms_of_dired):
10660         [1].
10661
10662         * dumper.c:
10663         * dumper.c (pdump_file_unmap):
10664         * dumper.c (pdump_load):
10665         [1].
10666
10667         * editfns.c:
10668         * editfns.c (Ftemp_directory):
10669         * editfns.c (user_login_name):
10670         * editfns.c (Fuser_real_login_name):
10671         * editfns.c (get_home_directory):
10672         [1].
10673
10674         * elhash.c (finish_marking_weak_hash_tables):
10675         [[[[5]]]]: Fix GCC warnings.
10676
10677         * emacs.c:
10678         * emacs.c (mswindows_handle_hardware_exceptions):
10679         * emacs.c (make_arg_list_1):
10680         * emacs.c (main_1):
10681         * emacs.c (Fkill_emacs):
10682         * emacs.c (Fdump_emacs):
10683         [1].
10684         Fix problems with nested crashes, add long comment.
10685
10686         * event-Xt.c (init_event_Xt_late):
10687         [1].
10688
10689         * event-msw.c:
10690         * event-msw.c (mswindows_dde_callback):
10691         * event-msw.c (mswindows_handle_sticky_modifiers):
10692         * event-msw.c (mswindows_wnd_proc):
10693         [1].
10694         [5].
10695
10696         * events.c (character_to_event):
10697         [1].
10698
10699         * fileio.c:
10700         * fileio.c (Ffile_name_directory):
10701         * fileio.c (Ffile_name_nondirectory):
10702         * fileio.c (directory_file_name):
10703         * fileio.c (Fexpand_file_name):
10704         * fileio.c (Fsubstitute_in_file_name):
10705         * fileio.c (Ffile_name_absolute_p):
10706         * fileio.c (check_executable):
10707         * fileio.c (Ffile_readable_p):
10708         * fileio.c (Ffile_accessible_directory_p):
10709         * fileio.c (Ffile_modes):
10710         * fileio.c (Funix_sync):
10711         * fileio.c (vars_of_fileio):
10712         [1]. [4].
10713
10714         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
10715
10716         Expand getdefdir defn.
10717         Fix bogus rename() comment.
10718
10719         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
10720         to use standard XEmacs include files, e.g. sysfile.h, rather
10721         than system-specific includes.
10722
10723         * fns.c:
10724         * fns.c (Fsubseq):
10725         [5]. [6].
10726
10727         * frame.c (vars_of_frame):
10728         [1].
10729
10730         * getloadavg.c:
10731         * getloadavg.c (getloadavg):
10732         [1]. [6].
10733         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
10734         (We don't use it elsewhere in the code; just add a comment.)
10735
10736         * gif_io.c:
10737         [6].
10738         Add config.h.
10739
10740         * glyphs-msw.c:
10741         * glyphs-msw.c (mswindows_resource_instantiate):
10742         [1].
10743
10744         * glyphs-x.c (x_native_layout_instantiate):
10745         [5].
10746
10747         * gui-msw.c (Fmswindows_shell_execute):
10748         [1].
10749
10750         * insdel.c:
10751         [4].
10752
10753         * lisp.h:
10754         [4]. [5].
10755
10756         * lread.c (locate_file_in_directory_mapper):
10757         [1].
10758
10759         * lstream.c:
10760         [4].
10761
10762         * mem-limits.h:
10763         * mem-limits.h (get_lim_data):
10764         [1].
10765
10766         * menubar-msw.c:
10767         [4].
10768
10769         * ndir.h:
10770         [1].
10771
10772         * nt.c:
10773         * nt.c (getwd):
10774         * nt.c (closedir):
10775         * nt.c (rva_to_section):
10776         * nt.c (mswindows_executable_type):
10777         [1]. [6].
10778         Fix closedir() defn.
10779
10780         * nt.h:
10781         [[[[8]]]]: *_OK defs moved to sysfile.h.
10782
10783         * ntproc.c:
10784         [6]. [7].
10785
10786         * objects-x.c:
10787         [4].
10788
10789         * print.c:
10790         * print.c (std_handle_out_external):
10791         [1]. [4].
10792
10793         * process-nt.c:
10794         * process-nt.c (nt_create_process):
10795         [6].
10796         try to fix process quoting somewhat.
10797
10798         * process-unix.c (unix_create_process):
10799         [1].
10800
10801         * process.c:
10802         * process.c (vars_of_process):
10803         Add Vnull_device.
10804
10805         * process.h:
10806         [1].
10807
10808         * realpath.c:
10809         * realpath.c (xrealpath):
10810         [1].
10811
10812         * redisplay-tty.c (init_tty_for_redisplay):
10813         [3].
10814
10815         * redisplay.c:
10816         [4]. [6].
10817
10818         * scrollbar-msw.c:
10819         [4].
10820
10821         * sheap.c:
10822         * sheap.c (more_static_core):
10823         * sheap.c (report_sheap_usage):
10824         [5]. [6].
10825
10826         * signal.c:
10827         * signal.c (alarm_signal):
10828         [1]. [6].
10829
10830         * sound.c:
10831         [6].
10832
10833         * strftime.c:
10834         * strftime.c (zone_name):
10835         [1]. [5].
10836
10837         * symsinit.h (init_sunpro):
10838         [1].
10839
10840         * syscommctrl.h:
10841         commctrl.h not in Cygwin b20.1.
10842
10843         * sysdep.c:
10844         * sysdep.c (endif):
10845         * sysdep.c (sys_subshell):
10846         * sysdep.c (init_baud_rate):
10847         * sysdep.c (emacs_get_tty):
10848         * sysdep.c (emacs_set_tty):
10849         * sysdep.c (tty_init_sys_modes_on_device):
10850         * sysdep.c (init_system_name):
10851         * sysdep.c (sys_open):
10852         * sysdep.c (interruptible_open):
10853         * sysdep.c (sys_fopen):
10854         * sysdep.c (sys_mkdir):
10855         * sysdep.c (sys_rename):
10856         * sysdep.c (get_process_times_1):
10857         [1]. [6].
10858
10859         * sysdep.h:
10860         [1].
10861
10862         * sysdir.h:
10863         * sysdir.h (DIRENTRY_NONEMPTY):
10864         [1]. [6].
10865
10866         * sysdll.c (dll_init):
10867         * sysdll.h:
10868         [1].
10869
10870         * sysfile.h:
10871         [1]. [6]. [8].
10872         added text/binary defs.
10873
10874         * sysfloat.h:
10875         [1].
10876
10877         * sysproc.h:
10878         * sysproc.h (EDESTADDRREQ):
10879         * sysproc.h (poll_fds_for_input):
10880         [1]. [6].
10881
10882         * syspwd.h:
10883         [6].
10884
10885         * syssignal.h:
10886         [1].
10887
10888         * systime.h:
10889         [1]. [6].
10890
10891         * systty.h:
10892         [1].
10893
10894         * syswindows.h:
10895         [1].
10896         Always define WIN32_LEAN_AND_MEAN.
10897
10898         * unexcw.c (unexec):
10899         [5].
10900
10901         * unexec.c:
10902         * unexec.c (copy_text_and_data):
10903         * unexec.c (adjust_lnnoptrs):
10904         [1].
10905
10906         * unexnt.c:
10907         * unexnt.c (_start):
10908         [1].
10909
10910 2000-06-07  Ben Wing  <ben@xemacs.org>
10911
10912         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
10913         was used only as a model.  We've long since extracted any useful
10914         logic or code out of this. (I just did an exhaustive search.)
10915
10916         * s\msdos.h: Removed.
10917
10918         * s\windows95.h: Removed.
10919
10920 2000-06-10  Ben Wing  <ben@xemacs.org>
10921
10922         * s\cygwin32.h:
10923         [1]. [5].
10924         Don't use extern with fun defs.
10925
10926         * s\mingw32.h:
10927         [1]. [7].
10928         Remove nt\inc include.
10929         Remove getdisk, getdefdir. (The former is unused, the latter
10930         expanded in fileio.h.)
10931
10932         * s\windowsnt.h:
10933         * s\windowsnt.h (WIN32_NATIVE):
10934         * s\windowsnt.h (HAVE_STRCASECMP):
10935         [1]. [7].
10936         Add long comment about preprocessor changes.
10937         Remove getdisk, getdefdir. (The former is unused, the latter
10938         expanded in fileio.h.)
10939
10940 2000-06-10  Ben Wing  <ben@xemacs.org>
10941
10942         * m\arm.h:
10943         * m\delta.h:
10944         * m\intel386.h:
10945         * m\sequent.h:
10946         * m\template.h:
10947         * m\windowsnt.h:
10948         [1].
10949         Remove bogus/unused NO_SOCK_SIGIO.
10950
10951 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
10952
10953         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
10954         not an Emchar.
10955
10956 2000-06-04  Mike Sperber <mike@xemacs.org>
10957
10958         * casetab.c (set_case_table): For `set-standard-case-table',
10959         actually deposit the new case tables where the rest of XEmacs can
10960         see them.
10961
10962 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
10963
10964         * data.c (Faset): Don't cast XCHAR() to unsigned char.
10965
10966 2000-06-05  Ben Wing  <ben@xemacs.org>
10967
10968         * callproc.c (child_setup): Don't do close_load_descs() under
10969         MS Windows.  Put in a comment explaining why.
10970
10971 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
10972
10973         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
10974         Toolkit shell" which breaks `kill-compilation' on Windows NT
10975         native, retaining STDERR handling improvements.
10976
10977 2000-06-01  Andreas Jaeger  <aj@suse.de>
10978
10979         * s/s390.h: Support for S390, based on a patch by Martin
10980         Schwidefsky <schwidefsky@de.ibm.com>.
10981
10982 2000-05-30  Andy Piper  <andy@xemacs.org>
10983
10984         * window.c (allocate_window):
10985         (make_dummy_parent):
10986         (Fset_window_configuration): use new hashtable type.
10987
10988         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
10989         (struct image_instantiator_methods):
10990         (struct Lisp_Image_Instance): make instance geometry signed.
10991
10992         * glyphs.c (instantiate_image_instantiator):
10993         (image_instance_query_geometry):
10994         (image_instance_layout):
10995         (image_instance_layout):
10996         (query_string_geometry):
10997         (text_query_geometry):
10998         (image_instantiate):
10999         (image_instantiate):
11000         (cache_subwindow_instance_in_frame_maybe):
11001         (subwindow_query_geometry): make instance geometry signed.
11002
11003         * glyphs-widget.c (widget_query_geometry):
11004         (widget_layout):
11005         (button_query_geometry):
11006         (tree_view_query_geometry):
11007         (tab_control_query_geometry):
11008         (layout_query_geometry):
11009         (layout_layout):
11010         (native_layout_layout): make instance geometry signed.
11011
11012 2000-05-29  Olivier Galibert  <galibert@pobox.com>
11013
11014         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
11015         constant.
11016
11017         * general.c (syms_of_general): Add Qfull_assoc symbol.
11018
11019         * data.c (finish_marking_weak_lists): Mark full-assoc lists
11020         correctly.
11021         (decode_weak_list_type): Decode full-assoc type.
11022         (encode_weak_list_type): Encode full-assoc type.
11023         (Fmake_weak_list): Update doc string.
11024
11025 2000-05-30  Andy Piper  <andy@xemacs.org>
11026
11027         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
11028
11029         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
11030         (decode_hash_table_weakness): ditto.
11031         (Fhash_table_weakness): ditto.
11032         (Fhash_table_type): ditto.
11033         (finish_marking_weak_hash_tables): ditto.
11034         (hash_table_weakness_validate): ditto.
11035         (syms_of_elhash): ditto.
11036
11037 2000-05-28  Martin Buchholz <martin@xemacs.org>
11038
11039         * XEmacs 21.2.34 is released.
11040
11041 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
11042
11043         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
11044         start cache.
11045         (updating_line_start_cache): Gone.
11046         (regenerate_window): Replace resetting of VERTICAL_CLIP by
11047         generic code to force a minimum of 1 line laid out in the
11048         CMOTION_DISP case.
11049
11050 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
11051
11052         * glyphs.c (instantiate_image_instantiator): Check for initialized
11053         height & width no longer special cases IMAGE_NOTHING.
11054         (nothing_instantiate): Set height and width of instance.
11055
11056 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
11057
11058         * unexelf.c (unexec): Search for ".data" section.
11059         Initialize new_data2_offset from old_data_index.
11060         Remove redundant check for ElfW.
11061
11062 2000-05-23  Andy Piper  <andy@xemacs.org>
11063
11064         * glyphs.c (get_image_instantiator_governing_domain): allow more
11065         specific domains as the governing domain rather than expecting an
11066         exact match. This fixes problems with layouts.
11067
11068 2000-05-22  Andy Piper  <andy@xemacs.org>
11069
11070         * redisplay-output.c (compare_runes): check for non-images
11071
11072         * glyphs.c (set_glyph_dirty_p): ditto.
11073         (update_glyph_cachel_data): ditto.
11074
11075         * glyphs-widget.c (layout_post_instantiate): ditto.
11076         (layout_post_instantiate): ditto.
11077
11078         * event-msw.c (mswindows_wnd_proc): warning removal.
11079
11080 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
11081
11082         * s\mingw32.h: Added #undef for CLASH_DETECTION.
11083
11084         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
11085
11086         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
11087
11088         * nt.c (rva_to_section): mingw32 needs rva_to_section.
11089         (mswindows_executable_type): mingw32 now has enough headers for
11090         this to work.
11091
11092 2000-05-20  Andy Piper  <andy@xemacs.org>
11093
11094         * console-msw.c (mswindows_output_last_error): ; -> ,
11095
11096 2000-05-12  Andy Piper  <andy@xemacs.org>
11097
11098         * console-msw.c (FROB): compare ints with ints.
11099
11100 2000-05-11  Andy Piper  <andy@xemacs.org>
11101
11102         * glyphs-x.c (x_finalize_image_instance): make minimal build
11103         happy.
11104
11105 2000-05-20  Ben Wing  <ben@xemacs.org>
11106
11107         * event-Xt.c:
11108         * event-Xt.c (vars_of_event_Xt):
11109         move modifier-keys-are-sticky to event-stream.c.
11110
11111         * event-msw.c:
11112         * event-msw.c (mswindows_enqueue_mouse_button_event):
11113         * event-msw.c (key_needs_default_processing_p):
11114         * event-msw.c (XEMSW_LCONTROL):
11115         * event-msw.c (mswindows_handle_sticky_modifiers):
11116         * event-msw.c (FROB):
11117         * event-msw.c (clear_sticky_modifiers):
11118         * event-msw.c (output_modifier_keyboard_state):
11119         * event-msw.c (output_alt_keyboard_state):
11120         * event-msw.c (mswindows_wnd_proc):
11121         * event-msw.c (mswindows_modifier_state):
11122         * event-msw.c (emacs_mswindows_handle_magic_event):
11123         implement sticky modifiers.
11124
11125         * event-stream.c:
11126         * event-stream.c (vars_of_event_stream):
11127         move modifier-keys-are-sticky here.
11128
11129         * lisp.h:
11130         add CHECK_FUNCTION.
11131
11132         * rangetab.c:
11133         implement map-range-table.
11134
11135
11136 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
11137
11138         * redisplay-tty.c (reset_tty_modes):
11139         (tty_redisplay_shutdown): Adjust argument type to
11140         tty_frame_output_end.
11141
11142 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
11143
11144         * eval.c (Fbacktrace): Don't output a line with only right
11145         parenthesis.
11146
11147 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
11148
11149         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
11150         (Fpq_reset_poll): Ditto.
11151
11152 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
11153
11154         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
11155
11156 2000-05-16  Ben Wing  <ben@xemacs.org>
11157
11158         * buffer.c:
11159         * buffer.c (dfc_convert_to/from_internal_format):
11160         * buffer.c (reinit_vars_of_buffer):
11161         Fix conversion functions to allow reentrancy.
11162
11163         * console-msw.c:
11164         * console-msw.c (mswindows_output_last_error):
11165         New fun, generally useful -- output a human-readable
11166         version of GetLastError() on the console.
11167
11168         * console-msw.h:
11169         * console-msw.h (struct mswindows_frame):
11170         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
11171
11172         * console-stream.c (stream_output_begin):
11173         * console-stream.c (stream_output_end):
11174         * console-stream.c (stream_output_vertical_divider):
11175         * console-stream.c (stream_clear_region):
11176         * console-stream.c (stream_flash):
11177         * console-stream.c (console_type_create_stream):
11178         Delete blank stream methods, not needed.
11179
11180         * console.h (struct console_methods):
11181         Split begin/end methods into window and frame.
11182
11183         * event-msw.c:
11184         * event-msw.c (mswindows_handle_paint):
11185         * event-msw.c (output_alt_keyboard_state):
11186         * event-msw.c (mswindows_wnd_proc):
11187         * event-msw.c (vars_of_event_mswindows):
11188         Comment about problems with ignored-expose.
11189         Define mswindows-debug-events; not really implemented.
11190
11191         * frame-msw.c (mswindows_init_frame_1):
11192         random cleanups.
11193
11194         * glyphs-msw.c:
11195         * glyphs-msw.c (begin_defer_window_pos):
11196         * glyphs-msw.c (mswindows_unmap_subwindow):
11197         * glyphs-msw.c (mswindows_map_subwindow):
11198         * glyphs-msw.c (mswindows_resize_subwindow):
11199         Use DeferWindowPos to reduce flashing when mapping/unmapping.
11200
11201         * glyphs.c (make_image_instance_1):
11202         Fix crash.
11203
11204         * gutter.c (Fredisplay_gutter_area):
11205         Use new begin/end methods.
11206
11207         * lisp.h (Dynarr_new2):
11208         New creation fun.
11209
11210         * redisplay-msw.c:
11211         * redisplay-msw.c (mswindows_frame_output_begin):
11212         * redisplay-msw.c (mswindows_frame_output_end):
11213         * redisplay-msw.c (console_type_create_redisplay_mswindows):
11214         New begin/end methods -- handle DeferWindowPos.
11215
11216         * redisplay-output.c (redisplay_move_cursor):
11217         * redisplay-output.c (redraw_cursor_in_window):
11218         * redisplay-output.c (redisplay_update_line):
11219         * redisplay-output.c (redisplay_output_window):
11220         New begin/end methods.
11221
11222         * redisplay-tty.c:
11223         * redisplay-tty.c (tty_frame_output_begin):
11224         * redisplay-tty.c (tty_frame_output_end):
11225         * redisplay-tty.c (console_type_create_redisplay_tty):
11226         New begin/end methods.
11227
11228         * redisplay-x.c:
11229         * redisplay-x.c (x_window_output_begin):
11230         * redisplay-x.c (x_window_output_end):
11231         * redisplay-x.c (console_type_create_redisplay_x):
11232         New begin/end methods.
11233
11234         * redisplay.c (redisplay_frame):
11235         * redisplay.c (Fredisplay_echo_area):
11236         New begin/end methods.
11237         use MAYBE_DEVMETH for clear_frame; it may not exist.
11238
11239         * window.h (WINDOW_XFRAME):
11240         WINDOW_XFOO macros -- get locale and decode struct pointer.
11241
11242
11243 2000-05-12  Ben Wing  <ben@xemacs.org>
11244
11245         * emacs.c:
11246         * emacs.c (ensure_no_quitting_from_now_on):
11247         * emacs.c (fatal_error_signal):
11248         * emacs.c (mswindows_handle_hardware_exceptions):
11249         * emacs.c (main):
11250         * emacs.c (Fkill_emacs):
11251         * emacs.c (shut_down_emacs):
11252         * emacs.c (assert_failed):
11253         various improvements in fatal error handling.
11254
11255         * eval.c:
11256         move preparing_for_armageddon to emacs.c.
11257
11258         * lisp.h:
11259         declare fatal_error_in_progress.
11260
11261         * print.c:
11262         * print.c (std_handle_out_external):
11263         * print.c (std_handle_out_va):
11264         * print.c (stderr_out):
11265         * print.c (stdout_out):
11266         use console under mswin when no standard output.
11267         don't do code conversion during fatal error.
11268
11269         * scrollbar.c (Fscrollbar_page_up):
11270         * scrollbar.c (Fscrollbar_page_down):
11271         fix missing else.  reindent.
11272
11273 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
11274
11275         Emergency fix.
11276
11277         * glyphs.h (GLYPH_CACHEL_DESCENT):
11278         (GLYPH_CACHEL_DESCENT):
11279         (GLYPH_CACHEL_DESCENT):
11280         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
11281         used in case these are inline functions.
11282         Use more absurd values to error check.
11283
11284         include window.h for error check functions.
11285
11286 2000-05-11  Ben Wing  <ben@xemacs.org>
11287
11288         * cmdloop.c (Freally_early_error_handler):
11289         Display message box under windows; otherwise, message will disappear
11290         before it can be viewed.
11291
11292         * console-msw.c:
11293         * console-msw.c (Fmswindows_message_box):
11294         * console-msw.c (FROB):
11295         * console-msw.c (syms_of_console_mswindows):
11296         Define new fun `mswindows-message-box'.
11297         #### I will merge this into `popup-dialog-box'; just give me
11298         a bit of time.
11299
11300         * general.c:
11301         * general.c (syms_of_general):
11302         Some new symbols used in `mswindows-message-box'.
11303
11304         * glyphs.c:
11305         * glyphs.c (Fset_image_instance_property):
11306         put warning in this fun.
11307
11308         * glyphs.h:
11309         * glyphs.h (GLYPH_CACHEL_WIDTH):
11310         * glyphs.h (GLYPH_CACHEL_ASCENT):
11311         * glyphs.h (GLYPH_CACHEL):
11312         * glyphs.h (GLYPH_CACHEL_GLYPH):
11313         define error-checking versions to try to catch a bug i've seen --
11314         redisplay gets in an infinite loop because the glyph width of the
11315         continuation glyph is 65535.
11316
11317         * lisp.h:
11318         Extern message-box stuff.
11319
11320         * window.c (allocate_window):
11321         * window.c (make_dummy_parent):
11322         * window.c (Fset_window_configuration):
11323         Use EQUAL not EQ for subwindow caches to make them work a bit
11324         better. (Something is still very broken.)
11325
11326
11327 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
11328
11329         * glyphs.c (image_instantiate): Suppress gcc warnings.
11330         (Fmake_image_instance): Fix doc string.
11331         * specifier.c (Fmake_specifier): Ditto.
11332
11333 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
11334
11335         * paths.h.in (PATH_LOCK): Removed.
11336         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
11337         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
11338
11339 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
11340
11341         * fns.c (Ffeaturep): Update e-mail address in doc-string.
11342         Document (featurep '(and xemacs 21.02)).
11343
11344 2000-05-09  Ben Wing  <ben@xemacs.org>
11345
11346         * buffer.c (complex_vars_of_buffer):
11347         update modeline-format doc.
11348
11349         * device.h:
11350         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
11351
11352         * emacs.c:
11353         timeline of all released versions of Emacs, for use in creating
11354         authorship comments and in synching up.
11355
11356         * glyphs-widget.c (image_instantiator_buttons):
11357         * glyphs-widget.c (image_instantiator_edit_fields):
11358         * glyphs-widget.c (image_instantiator_combo_box):
11359         * glyphs-widget.c (image_instantiator_scrollbar):
11360         * glyphs-widget.c (image_instantiator_progress_guage):
11361         * glyphs-widget.c (image_instantiator_tree_view):
11362         * glyphs-widget.c (image_instantiator_tab_control):
11363         * glyphs-widget.c (image_instantiator_labels):
11364         * glyphs-widget.c (image_instantiator_layout):
11365         * glyphs-widget.c (image_instantiator_native_layout):
11366         rename decode_domain method to governing_domain.
11367
11368         * glyphs.c:
11369         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
11370         * glyphs.c (add_entry_to_device_ii_format_list):
11371         make sure we don't put an entry more than once into the list.
11372         * glyphs.c (check_instance_cache_mapper):
11373         *************************************************************
11374         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
11375         HAVE BEEN GETTING.
11376         *************************************************************
11377         * glyphs.c (get_image_instantiator_governing_domain):
11378         clean up, expand on new concept of governing domain.
11379         * glyphs.c (instantiate_image_instantiator):
11380         * glyphs.c (allocate_image_instance):
11381         use governing_domain instead of cache_domain in naming.
11382         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
11383         * glyphs.c (make_image_instance_1):
11384         * glyphs.c (Fmake_image_instance):
11385         allow for any domain (not just device), and process the
11386         governing domain correctly.  very big doc fix.
11387         * glyphs.c (Fimage_instance_domain):
11388         new primitive, to retrieve the governing domain of an image instance.
11389         * glyphs.c (image_instantiate):
11390         use new governing_domain stuff.  this fixes a crash you could get
11391         by instantiating certain widget glyphs in frame locales. (should
11392         signal an error instead of crashing.)
11393         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
11394         * glyphs.c (Fglyphp): clean up doc.
11395         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
11396         * glyphs.c (syms_of_glyphs):
11397         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
11398         * glyphs.c (image_instantiator_format_create): add some comments about
11399         bogus code.
11400         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
11401         for current-display-table. (Apparently Hrjove implemented in 1998 a
11402         design I wrote up in 1996, but didn't update the doc string.)
11403
11404         * glyphs.h: clean up a doc string.
11405         * glyphs.h (governing_domain):
11406         * glyphs.h (struct image_instantiator_methods):
11407         changes for governing_domain stuff.
11408
11409         * gutter.c:
11410         * gutter.c (Fgutter_specifier_p):
11411         * gutter.c (Fgutter_size_specifier_p):
11412         * gutter.c (Fgutter_visible_specifier_p):
11413         * objects.c:
11414         * objects.c (Fcolor_specifier_p):
11415         * objects.c (Ffont_specifier_p):
11416         * objects.c (Fface_boolean_specifier_p):
11417         doc strings moved to make-*-specifier.
11418
11419         * redisplay.c (add_disp_table_entry_runes_1):
11420         * redisplay.c (generate_fstring_runes):
11421         * redisplay.c (screen):
11422         add random comments and doc strings.
11423
11424         * specifier.c:
11425         * specifier.c (Fmake_specifier):
11426         major overhaul of this doc string.
11427
11428         * specifier.c (Fvalid_specifier_domain_p):
11429         comment about the bogosity of image instances being domains.
11430         * specifier.c (decode_domain):
11431         now non-static, used in glyphs.c.
11432         * specifier.c (specifier_instance):
11433         comment about the bogosity of image instances being domains.
11434         * specifier.c (Fgeneric_specifier_p):
11435         move doc string to make-generic-specifier.
11436         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
11437         rebackslashify.
11438
11439         * specifier.h:
11440         * specifier.h (DOMAIN_FRAME):
11441         * specifier.h (DOMAIN_LIVE_P):
11442         * specifier.h (DOMAIN_XDEVICE):
11443         rebackslashify.
11444         add comments about problems with these macros.
11445         prototype for decode_domain.
11446
11447         * toolbar.c:
11448         * toolbar.c (Ftoolbar_specifier_p):
11449         move doc string to `make-toolbar-specifier'.
11450
11451         * window.c (window_unmap_subwindows_cache_mapper):
11452         *************************************************************
11453         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
11454         HAVE BEEN GETTING.
11455         *************************************************************
11456
11457 2000-05-09  Andy Piper  <andy@xemacs.org>
11458
11459         * glyphs.h: declare reset_frame_subwindow_instance_cache.
11460
11461         * window.c (Fset_window_configuration): reset the frame subwindow
11462         cache and re-initialize the window subwindow caches.
11463
11464         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
11465
11466 2000-05-09  Ben Wing  <ben@xemacs.org>
11467
11468         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
11469         DWORD.
11470
11471 2000-04-26  Mike Woolley  <mike@bulsara.com>
11472
11473         * ntheap.c: Changed recreate_heap to limit the amount reserved
11474         for the heap to that which is actually available. Also now
11475         displays a message box (with some dignostics) in the event that
11476         it still can't start.
11477
11478 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
11479
11480         * callproc.c (Fold_call_process_internal): GCPRO path
11481
11482 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
11483
11484         Patch by Bill Perry.
11485
11486         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
11487         back data instead of #ifdef.
11488         (Fscrollbar_page_down): ditto.
11489
11490 2000-05-07  Ben Wing  <ben@xemacs.org>
11491
11492         * buffer.h:
11493         Kludge for defining Qmswindows_tstr.
11494
11495         * nt.c:
11496         * nt.c (open_input_file):
11497         * nt.c (open_output_file):
11498         * nt.c (rva_to_section):
11499         * nt.c (mswindows_executable_type):
11500         Move all memory-mapped-file routines here (some were in unexnt.c,
11501         which is bad because they are used by process-nt.c, and unexnt
11502         won't be around when portable dumping).  Synched the above routines
11503         with FSF 20.6.
11504
11505         * nt.h:
11506         Removed ifdef'd out bogus code.
11507         Fixed some prototypes.
11508
11509         * nt.h (file_data):
11510         * nt.h (OFFSET_TO_RVA):
11511         * nt.h (RVA_TO_OFFSET):
11512         * nt.h (RVA_TO_PTR):
11513         Moved the memory-mapped-file structures, macros and prototypes
11514         here, to parallel nt.c.  ntheap.h should really be removed
11515         entirely, and it's a non-portable-dumper specific file.
11516
11517         * ntheap.h (round_to_next):
11518         Moved the memory-mapped-file structures, macros and prototypes
11519         to nt.h.
11520
11521         * ntproc.c (compare_env):
11522         Moved rva_to_section and mswindows_executable_type to nt.c.
11523         Moved compare_env to process-nt.c.
11524         ntproc.c will die, one day.
11525
11526         * ntproc.c (sys_spawnve):
11527         Account for win32_ -> mswindows_.
11528
11529         * process-nt.c:
11530         * process-nt.c (struct nt_process_data):
11531         * process-nt.c (ensure_console_window_exists):
11532         * process-nt.c (compare_env):
11533         * process-nt.c (nt_create_process):
11534         * process-nt.c (nt_kill_process_by_pid):
11535         * process-nt.c (syms_of_process_nt):
11536         * process-nt.c (vars_of_process_nt):
11537         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
11538         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
11539         changes).  Eliminate our old `nt-quote-process-args' mechanism.
11540         Synch up nt_create_process with FSF 20.6 sys_spawnve.
11541         Move compare_env here from ntproc.c.
11542
11543         * process.c (Fprocess_send_region):
11544         Takes an optional fourth argument, BUFFER, which should fix some
11545         problems with call-process.
11546
11547         * syscommctrl.h:
11548         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
11549
11550         * syswindows.h:
11551         Move ICC_BAR_CLASSES to syscommctrl.h.
11552         Add preliminary macros for MSWindows/Mule.  More to come.
11553
11554         * unexnt.c:
11555         * unexnt.c (unexec):
11556         open_output_file moved to nt.c.
11557
11558
11559 2000-05-05  Andy Piper  <andy@xemacs.org>
11560
11561         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
11562         instance from the frame cache also since GC may catch up too late
11563         to make frame deletion sane.
11564
11565 2000-05-04  Andy Piper  <andy@xemacs.org>
11566
11567         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
11568         (x_finalize_image_instance): ungcpro on deletion.
11569
11570         * glyphs.c (image_instantiator_format_create): give pointers a
11571         query geometry method so that the geometry is at least set.
11572
11573         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
11574         initialize layouts if using widgets.
11575
11576 2000-05-03  Andy Piper  <andy@xemacs.org>
11577
11578         * nt.c: remove bogus reference to sysmmsystem.h
11579
11580         * gui-x.c (popup_selection_callback): fix no selection abort.
11581
11582 2000-05-02  Andy Piper  <andy@xemacs.org>
11583
11584         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
11585         (mswindows_widget_instantiate): ditto.
11586
11587         * glyphs-widget.c (initialize_widget_image_instance): initialize
11588         children correctly.
11589         (widget_instantiate): cope with children and items in the same
11590         instance.
11591
11592         * glyphs.c (mark_image_instance): cope with children as a first
11593         class member.
11594         (image_instance_equal): ditto.
11595         (image_instance_hash): ditto.
11596         (image_instance_changed): ditto.
11597
11598 2000-04-30  Andy Piper  <andy@xemacs.org>
11599
11600         * glyphs.c (subwindow_query_geometry): new function. Return some
11601         defaults.
11602         (subwindow_instantiate): don't assign dimensions if none have been
11603         given.
11604         (image_instantiator_format_create): add subwindow_query_geometry.
11605         (print_image_instance): cope with layouts as widgets.
11606
11607 2000-04-29  Andy Piper  <andy@xemacs.org>
11608
11609         * frame.c (delete_frame_internal): call
11610         free_frame_subwindow_instance_cache so that all subwindows are
11611         finalized before their parent.
11612         (mark_frame): remove subwindow_cachels.
11613         (Fmake_frame): remove subwindow_cachel manipulation.
11614         (allocate_frame_core): subwindow_instance_cache is a weak list.
11615         (delete_frame_internal): set subwindow_instance_cache to nil.
11616
11617         * glyphs-msw.c (mswindows_finalize_image_instance): make double
11618         finalization safe.
11619         (mswindows_finalize_image_instance): use the device
11620         not the domain as the domain may have died already.
11621
11622         * glyphs-x.c (x_finalize_image_instance): ditto.
11623         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
11624         HEIGHT.
11625
11626         * redisplay-output.c (redisplay_unmap_subwindows): update for
11627         subwindow instance cache as a weak list.
11628         (redisplay_unmap_subwindows_maybe): ditto.
11629         (redisplay_unmap_subwindows_except_us): ditto.
11630
11631         * glyphs.c (unmap_subwindow): error checking will check the domain
11632         so don't deal with it here. Don't use cachels anymore.
11633         (map_subwindow): ditto.
11634         (update_subwindow_cachel_data): remove old accessor names.
11635         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
11636         (Fresize_subwindow): don't update cachel.
11637         (mark_subwindow_cachels):
11638         (update_subwindow_cachel_data):
11639         (add_subwindow_cachel):
11640         (get_subwindow_cachel_index):
11641         (update_subwindow_cachel):
11642         (reset_subwindow_cachels):
11643         (mark_subwindow_cachels_as_not_updated): deleted.
11644         (cache_subwindow_instance_in_frame_maybe): new function. Add a
11645         subwindow instance to the frame cache.
11646         (find_matching_subwindow): update for subwindow instance cache as
11647         a weak list.
11648         (update_widget_instances): ditto.
11649         (image_instance_type_to_mask):inlined.
11650         (free_frame_subwindow_instance_cache): new function. finalize all
11651         subwindows that are instantiated.
11652
11653         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
11654         of cachel information.
11655         (IMAGE_INSTANCE_DISPLAY_X):
11656         (IMAGE_INSTANCE_DISPLAY_Y):
11657         (IMAGE_INSTANCE_DISPLAY_WIDTH):
11658         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
11659         (XIMAGE_INSTANCE_DISPLAY_X):
11660         (XIMAGE_INSTANCE_DISPLAY_Y):
11661         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
11662         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
11663         remove subwindow_cachel structure and function references.
11664         (image_instance_type_to_mask): inline from glyphs.c
11665
11666         * redisplay.c (redisplay_frame): remove subwindow_cachel
11667         references.
11668
11669         * frame.h (struct frame): remove subwindow_cachels.
11670         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
11671
11672         * frameslots.h: add subwindow_instance_cache.
11673
11674         * window.c (replace_window): check subwindow cache of replacement.
11675         (window_unmap_subwindows_cache_mapper):
11676         (window_unmap_subwindows): new functions. Unmap all subwindows
11677         cached on this window.
11678         (mark_window_as_deleted): unmap all subwindows.
11679
11680 2000-04-27  Andy Piper  <andy@xemacs.org>
11681
11682         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
11683
11684         * glyphs-widget.c (widget_layout): return something.
11685         (layout_layout): return something. Fail if not initialized.
11686         (layout_query_geometry): ditto.
11687         (image_instantiator_native_layout): new function. Initialized the
11688         native layout type.
11689         (widget_instantiate): don't do layout stuff here.
11690
11691         * glyphs.c (instantiate_image_instantiator): reorded calling or
11692         instantiate and post_instantiate with layout in between.
11693         (image_instance_layout): be more selective about deciding whether
11694         the layout has been done or not.
11695
11696         * glyphs.h (struct image_instantiator_methods): return a value
11697         from layout_method.
11698
11699 2000-04-26  Andy Piper  <andy@xemacs.org>
11700
11701         * glyphs.c (allocate_image_instance): make initial width and
11702         height unspecified. Set initialized to 0.
11703
11704         * syscommctrl.h new file. Encapsulates commctrl.h.
11705
11706         * syswindows.h new file. Encapsulates windows.h.
11707
11708         * ntplay.c: use new syswindows.h and syscommctrl.h header.
11709         * nt.c: ditto.
11710         * console-msw.h: ditto.
11711
11712         * redisplay-tty.c (tty_output_display_block): remove layout references.
11713
11714         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
11715         window handle rather than just the frame.
11716
11717         * glyphs.c (mark_image_instance): remove layout references.
11718         (print_image_instance): ditto.
11719         (image_instance_equal): ditto.
11720         (image_instance_hash): ditto.
11721         (decode_image_instance_type): ditto.
11722         (encode_image_instance_type): ditto.
11723         (image_instantiate): ditto.
11724         (allocate_glyph): ditto.
11725         (Fimage_instance_height): ditto.
11726         (Fimage_instance_width): ditto.
11727         (update_subwindow): ditto.
11728
11729         * redisplay-x.c (x_output_display_block): recode for layouts as
11730         widgets.
11731
11732         * redisplay-output.c (redisplay_output_layout): recode for layouts
11733         as widgets.
11734         (compare_runes): remove layout references.
11735
11736         * redisplay-msw.c (mswindows_output_display_block): recode for
11737         layouts as widgets.
11738
11739         * glyphs-widget.c (image_instantiator_layout): remove
11740         layout_possible_dest_types.
11741         (layout_possible_dest_types): deleted.
11742
11743         * glyphs.h (image_instance_type): remove layout references.
11744         (struct Lisp_Image_Instance): ditto. Add initialized flag.
11745         (IMAGE_INSTANCE_INITIALIZED): new accessor.
11746         (XIMAGE_INSTANCE_INITIALIZED): ditto.
11747
11748 2000-04-25  Andy Piper  <andy@xemacs.org>
11749
11750         * glyphs-widget.c (image_instantiator_buttons):
11751         (image_instantiator_edit_fields):
11752         (image_instantiator_combo_box):
11753         (image_instantiator_scrollbar):
11754         (image_instantiator_progress_guage):
11755         (image_instantiator_tree_view):
11756         (image_instantiator_tab_control):
11757         (image_instantiator_labels):
11758         (image_instantiator_layout): call default post_instantiate method.
11759         (widget_post_instantiate): new function. Simply lays out the
11760         widgets.
11761
11762         * glyphs.h (struct image_instantiator_methods): add
11763         post_instantiate method.
11764
11765         * glyphs.c (instantiate_image_instantiator): add post_instantiate
11766         method calls.
11767
11768 2000-04-23  Andy Piper  <andy@xemacs.org>
11769
11770         * glyphs.h (struct image_instantiator_methods): add
11771         decode_domain_method.
11772         (struct Lisp_Image_Instance): remove subwindow frame - it can be
11773         derived from the domain.
11774         (IMAGE_INSTANCE_FRAME): new accessor.
11775         (XIMAGE_INSTANCE_FRAME): ditto.
11776
11777         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
11778         instead of _SUBWINDOW_FRAME.
11779         (finalize_image_instance): ditto.
11780         (Fimage_instance_foreground): ditto.
11781         (Fimage_instance_background): ditto.
11782         (image_instantiate): ditto.
11783         (update_subwindow_cachel): ditto.
11784         (update_subwindow): ditto.
11785         (unmap_subwindow): ditto.
11786         (map_subwindow): ditto
11787         (subwindow_instantiate): ditto.
11788         * glyphs-msw.c (mswindows_update_widget): ditto.
11789         (mswindows_progress_gauge_instantiate): ditto.
11790         (mswindows_tab_control_update): ditto.
11791         * glyphs-x.c (x_update_widget): ditto.
11792         (x_widget_instantiate): ditto.
11793         (x_tab_control_instantiate): ditto.
11794         (x_tab_control_update): ditto.
11795         * event-msw.c (mswindows_wnd_proc): ditto
11796
11797         * glyphs-widget.c (image_instantiator_layout): use
11798         subwindow_decode_domain.
11799         (image_instantiator_buttons): ditto.
11800         (image_instantiator_edit_fields): ditto.
11801         (image_instantiator_combo_box): ditto.
11802         (image_instantiator_scrollbar): ditto.
11803         (image_instantiator_progress_guage): ditto.
11804         (image_instantiator_tree_view): ditto.
11805         (image_instantiator_tab_control): ditto.
11806         (image_instantiator_labels): ditto.
11807         (image_instantiator_layout): ditto.
11808
11809         * glyphs.c: add instance error checking to many functions.
11810         (instantiate_image_instantiator): decode device from cache_domain.
11811         (image_instantiate): partially rewrite by using
11812         decode_image_instantiator_domain to determine what domain the
11813         instance needs to be cached in.
11814         (decode_image_instantiator_domain): new function. Determine what
11815         domain the image needs to be cached in.
11816         (check_window_subwindow_cache): new error checking function.
11817         (check_instance_cache_mapper): ditto.
11818         (check_image_instance_structure): ditto.
11819         (subwindow_decode_domain): new function. Encodes a window as a
11820         subwindow's cache domain.
11821         (image_instantiator_format_create): use it for text and
11822         subwindows.
11823
11824 2000-04-21  Andy Piper  <andy@xemacs.org>
11825
11826         * glyphs.c (image_instance_device): new function.
11827         (image_instance_frame): new function.
11828         (image_instance_window): new function.
11829         (image_instance_live_p): new function.
11830
11831         * window.c (mark_window_as_deleted): reset the subwindow_instance_
11832         cache to nil.
11833
11834         * glyphs.h (struct Lisp_Image_Instance): device->domain.
11835         (IMAGE_INSTANCE_DOMAIN): new accessor.
11836         (XIMAGE_INSTANCE_DOMAIN): ditto.
11837
11838         * glyphs-x.c (x_finalize_image_instance): device->domain.
11839
11840         * glyphs-msw.c (init_image_instance_geometry): device->domain.
11841         (mswindows_finalize_image_instance): ditto.
11842
11843         * glyphs-eimage.c (jpeg_instantiate): device->domain.
11844         (gif_instantiate): ditto.
11845         (png_instantiate): ditto.
11846         (tiff_instantiate): ditto.
11847
11848         * glyphs.c (instantiate_image_instantiator): use domain rather
11849         than device.
11850         (mark_image_instance): device -> domain.
11851         (print_image_instance): ditto.
11852         (finalize_image_instance): ditto.
11853         (image_instance_equal): ditto.
11854         (allocate_image_instance): ditto.
11855         (Fcolorize_image_instance): ditto.
11856         (query_string_geometry): ditto.
11857         (image_instantiate): ditto
11858         (query_string_font): ditto.
11859         (image_instantiate): ditto.
11860         (update_subwindow): ditto.
11861         (unmap_subwindow): ditto.
11862         (map_subwindow): ditto.
11863         (subwindow_instantiate): ditto.
11864
11865         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
11866         (DOMAIN_FRAME): ditto.
11867         (DOMAIN_WINDOW): ditto.
11868         (DOMAIN_LIVE_P): ditto.
11869         (XDOMAIN_DEVICE): ditto.
11870         (XDOMAIN_FRAME): ditto.
11871         (XDOMAIN_WINDOW): ditto.
11872
11873         * specifier.c (Fvalid_specifier_domain_p): add image instances as
11874         a valid specifier domain.
11875
11876 2000-04-19  Andy Piper  <andy@xemacs.org>
11877
11878         * glyphs-widget.c (syms_of_glyphs_widget): remove
11879         widget-callback-current-channel.
11880         (vars_of_glyphs_widget): ditto.
11881         * glyphs.h: ditto
11882
11883         * gui.c (get_gui_callback): revert to previous behaviour.
11884
11885 2000-04-18  Andy Piper  <andy@xemacs.org>
11886
11887         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
11888         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
11889         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
11890
11891         * glyphs.c (image_instance_equal): add margin_width.
11892         (image_instance_hash): ditto.
11893
11894         * glyphs-widget.c (widget_instantiate): deal with margin-width.
11895         (layout_query_geometry): ditto.
11896         (layout_layout): ditto.
11897         (syms_of_glyphs_widget): add margin-width.
11898         (image_instantiator_layout): allow margin-width.
11899
11900         * glyphs.c (update_widget_instances): make a normal function.
11901         (syms_of_glyphs): remove Qupdate_widget_instances.
11902         * glyphs.h: ditto.
11903
11904         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
11905         so that we don't corrupt ideas about the last event or
11906         command. Remove widget-callback-current-channel fiddling.
11907         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
11908
11909 2000-05-01  Martin Buchholz <martin@xemacs.org>
11910
11911         * XEmacs 21.2.33 is released.
11912
11913 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
11914
11915         * make-src-depend: Allow dots in header file name.
11916
11917 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
11918
11919         * mule-charset.h (struct charset_lookup): Add
11920         next_allocated_1_byte_leading_byte and
11921         next_allocated_2_byte_leading_byte.
11922         * mule-charset.c: Move above two variables so that those values
11923         will be dumped.
11924
11925 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
11926
11927         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
11928         when string length is zero.
11929         (find_charsets_in_emchar_string): Ditto.
11930
11931 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
11932
11933         * lisp.h: extern Qdialog and Qmenubar.
11934
11935         * gui-x.c: added events.h.
11936                 also fixed typo which made the file uncompilable.
11937
11938         * general.c: Added Qmenubar and Qdialog
11939
11940 2000-04-28  Ben Wing  <ben@xemacs.org>
11941
11942         * frame-msw.c (mswindows_init_frame_1):
11943         * frame-msw.c (mswindows_mark_frame):
11944         * event-msw.c (mswindows_enqueue_dispatch_event):
11945         * console-msw.h:
11946         * console-msw.h (struct mswindows_frame):
11947         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
11948         there are now three hash tables for callbacks.
11949         mswindows_enqueue_dispatch_event is no longer static.
11950
11951         * dialog-x.c (maybe_run_dbox_text_callback):
11952         * dialog-x.c (dbox_descriptor_to_widget_value):
11953         switch to new cons3 form for callbacks.
11954
11955         * glyphs-msw.c (mswindows_register_gui_item):
11956         * glyphs-msw.c (mswindows_widget_instantiate):
11957         * glyphs-msw.c (add_tree_item):
11958         * glyphs-msw.c (add_tab_item):
11959         new image instance parameter, so it can be passed to callback-ex.
11960         respect :callback-ex as well as :callback.
11961
11962         * glyphs-widget.c (VALID_GUI_KEYWORDS):
11963         add :callback-ex.
11964
11965         * glyphs.c (print_image_instance):
11966         prettify, e.g. now prints widget type.
11967
11968         * gui-x.h:
11969         certain funs have new image instance parameter.
11970
11971         * gui.c:
11972         * gui.c (get_gui_callback):
11973         * gui.c (gui_item_add_keyval_pair):
11974         * gui.c (gui_item_init):
11975         * gui.c (gui_add_item_keywords_to_plist):
11976         * gui.c (mark_gui_item):
11977         * gui.c (gui_item_hash):
11978         * gui.c (gui_item_equal):
11979         * gui.c (copy_gui_item):
11980         * gui.c (syms_of_gui):
11981         recognize callback-ex in a number of places.
11982         also, fix the annoying "can't get out of yes-no dialog" bug.
11983
11984         * gui.h:
11985         * gui.h (struct Lisp_Gui_Item):
11986         recognize callback-ex in a number of places.
11987
11988         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
11989         new parameter in button_item_to_widget_value.
11990
11991         * glyphs-x.c (x_update_widget):
11992         * glyphs-x.c (x_button_instantiate):
11993         * glyphs-x.c (x_button_update):
11994         * glyphs-x.c (x_progress_gauge_instantiate):
11995         * glyphs-x.c (x_edit_field_instantiate):
11996         * glyphs-x.c (x_combo_box_instantiate):
11997         * glyphs-x.c (x_tab_control_instantiate):
11998         * glyphs-x.c (x_label_instantiate):
11999         new image instance parameter in various places.
12000
12001         * event-Xt.c:
12002         * event-Xt.c (enqueue_Xt_dispatch_event):
12003         this fun gets exported.
12004
12005         * gui-msw.c:
12006         * gui-msw.c (mswindows_handle_gui_wm_command):
12007         handle both :callback and :callback-ex, and generate our own
12008         event because it's one of the callback-ex arguments.
12009
12010         * gui-x.c:
12011         * gui-x.c (popup_selection_callback):
12012         handle both :callback and :callback-ex, and generate our own
12013         event because it's one of the callback-ex arguments.
12014         * gui-x.c (button_item_to_widget_value):
12015         * gui-x.c (gui_items_to_widget_values_1):
12016         * gui-x.c (gui_item_children_to_widget_values):
12017         * gui-x.c (gui_items_to_widget_values):
12018         new image instance parameter in various places.
12019
12020         * fns.c (Freplace_list):
12021         fix small typo in doc string.
12022
12023         * lisp.h:
12024         declare enqueue_Xt_dispatch_event.
12025
12026 2000-04-28  Ben Wing  <ben@xemacs.org>
12027
12028         * buffer.c:
12029         * buffer.c (Frecord_buffer):
12030         * buffer.c (syms_of_buffer):
12031         delete record-buffer-hook.
12032
12033         * fns.c:
12034         * fns.c (Freplace_list):
12035         * fns.c (syms_of_fns):
12036         new primitive replace-list.
12037
12038         * frameslots.h:
12039         slot for old buffer-alist.
12040
12041         * lisp.h:
12042         exfun replace-list.
12043
12044         * redisplay.c:
12045         * redisplay.c (redisplay_frame):
12046         * redisplay.c (syms_of_redisplay):
12047         * redisplay.c (vars_of_redisplay):
12048         new hook buffer-list-changed-hook.
12049         call it.
12050
12051 2000-04-27  Ben Wing  <ben@xemacs.org>
12052
12053         * extents.h: extern in_modeline_generation.
12054
12055         * redisplay.c (generate_formatted_string_db): set
12056         in_modeline_generation.
12057
12058         * extents.c (extent_changed_for_redisplay): don't mark redisplay
12059         flags if in modeline generation.  otherwise frame-modified-tick
12060         is ticked far too often.
12061         Declare in_modeline_generation.
12062
12063 2000-04-26  Ben Wing  <ben@xemacs.org>
12064
12065         * emacs.c (vars_of_emacs): document quick-build "error-checking"
12066         option.
12067         (vars_of_emacs): add quick-build as an error-checking option.
12068         A bit kludgy, but there doesn't seem much point in creating
12069         a real var for this.
12070
12071         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
12072
12073 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12074
12075         * redisplay.h (struct display_line): Add a new variable,
12076         line_continuation.
12077
12078         * redisplay.c (create_text_block): Set dl->line_continuation if
12079         the line continues.
12080         (create_string_text_block): Ditto.
12081         (regenerate_window_incrementally): Use line_continuation instead
12082         of searching continuation glyph.
12083         (add_margin_runes): Call add_glyph_rune.
12084         (add_glyph_rune): Handle margin glyph.
12085
12086 2000-04-20  Martin Buchholz  <martin@xemacs.org>
12087
12088         * filelock.c (fill_in_lock_file_name):
12089         ANSIfy.
12090         Check for IS_ANY_SEP instead of '/'.
12091         (lock_file_1):
12092         Avoid generating gratuitous garbage.  Call user_login_name() directly.
12093         Never check errno without first seeing that system call failed.
12094         (unlock_file): Add GCPRO.
12095         (Flock_buffer): Fix docstring.
12096         (Ffile_locked_p): Fix docstring.  Add GCPRO.
12097
12098 2000-04-19  Martin Buchholz  <martin@xemacs.org>
12099
12100         * sysdep.c (get_pty_max_bytes):
12101         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
12102         strings longer than 252 bytes.
12103
12104         * md5.c: Unconditionally include ANSI header <limits.h>
12105
12106         * glyphs-x.c (convert_EImage_to_XImage):
12107         * lisp-union.h (union Lisp_Object):
12108         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
12109
12110 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
12111
12112         * filelock.c (current_lock_owner): Remove unused variable o, p.
12113
12114 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
12115
12116         * callint.c: Remove multiply defined symbol Qlet
12117         (syms_of_callint): ditto.
12118
12119 2000-04-14  Andy Piper  <andy@xemacs.org>
12120
12121         * general.c (syms_of_general): add last-command, this-command, let
12122         and funcall.
12123
12124         * lisp.h: declare various symbols.
12125
12126         * glyphs.h: declare Qwidget_callback_current_channel;
12127
12128         * glyphs-widget.c (syms_of_glyphs_widget): add
12129         Qgui_callback_current_channel.
12130         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
12131
12132         * gui-msw.c (mswindows_handle_gui_wm_command): bind
12133         widget-callback-current-channel when invoking the interactive
12134         arg. Also bind last-command and next-command when invoking the
12135         widget updates.
12136         * gui-x.c (popup_selection_callback): ditto.
12137
12138         * gui.c (get_gui_callback): massage args so that we are always
12139         calling eval. This allows us to add our own variable bindings
12140         outside.
12141
12142         * glyphs-x.c (x_button_instantiate): use
12143         gui_items_to_widget_values since this is GC safe.
12144         (x_progress_gauge_instantiate): ditto.
12145         (x_edit_field_instantiate): ditto.
12146         (x_label_instantiate): ditto.
12147
12148         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
12149         (emacs_Xt_event_widget_focus_out): new function
12150         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
12151         focus.
12152         (emacs_Xt_event_add_widget_actions): new function. add focus
12153         functions as actions.
12154         (init_event_Xt_late): use it.
12155
12156 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
12157
12158         * event-stream.c (Fdispatch_event): Doc fix.
12159
12160 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
12161
12162         * postgresql.c: Remove all references to PQsetenv*.
12163
12164         * postgresql.h: Remove references to PGsetenvHandler object.
12165         * lrecord.h (lrecord_type): Ditto.
12166
12167 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12168
12169         * glyphs-msw.h (struct mswindows_image_instance_data): Added
12170         real_heigh and real_width members, and accessor macros for these.
12171
12172         * glyphs-msw.c (init_image_instance_geometry): New function.
12173         (init_image_instance_from_dibitmap): Use it.
12174         (mswindows_resource_instantiate): Use it.
12175         (init_image_instance_from_xbm_inline): Use it.
12176         (mswindows_initialize_image_instance_mask): Use real bitmap
12177         geometry.
12178         (mswindows_create_resized_bitmap): Ditto.
12179         (mswindows_create_resized_mask): Ditto.
12180
12181         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
12182         and bitmap to their surface size.
12183
12184 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
12185
12186         * process-unix.c (unix_send_process): Guard against process MIA
12187         after Faccept_process_output.
12188
12189 2000-04-11  Ben Wing  <ben@xemacs.org>
12190
12191         * eval.c (unbind_to_hairy): fix brokenness introduced by
12192         nanosecond speed improvements.
12193
12194 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
12195
12196         * sunplay.c (init_device): To play sounds correctly, the device
12197         apparently needs to be initialized at least once by XEmacs.  Make
12198         it so.
12199
12200 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12201
12202         * redisplay.c (add_margin_runes): Add text image glyph
12203           handling.
12204
12205 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
12206
12207         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
12208         gcc is newer than 2.5.
12209
12210 2000-04-06  Colin Rafferty  <colin@xemacs.org>
12211
12212         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
12213
12214         * fns.c (size_bit_vector):
12215         * alloc.c (size_vector):
12216         (make_vector_internal):
12217         (make_bit_vector_internal):
12218         (sweep_bit_vectors_1):
12219         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
12220
12221 2000-04-06  Andy Piper  <andy@xemacs.org>
12222
12223         * gmalloc.c (malloc): undo previous change.
12224         (malloc): ditto.
12225         (free): ditto.
12226         (realloc): ditto.
12227
12228 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
12229
12230         * line-number.c (buffer_line_number): Revert to former version.
12231
12232 2000-04-06  Andy Piper  <andy@xemacs.org>
12233
12234         * gmalloc.c (malloc): add error checking.
12235         (malloc): ditto.
12236         (free): ditto.
12237         (realloc): ditto.
12238
12239         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
12240         button_item_to_widget_value arg.
12241
12242         * glyphs-x.c (x_button_instantiate): add extra
12243         button_item_to_widget_value arg.
12244         (x_progress_gauge_instantiate): ditto.
12245         (x_edit_field_instantiate): ditto.
12246         (x_label_instantiate): ditto.
12247
12248         * gui-x.c (gui_items_to_widget_values_1): add extra
12249         button_item_to_widget_value arg.
12250         (button_item_to_widget_value): add extra menu_item_p arg.
12251
12252         * gui-x.h: change signature of button_item_to_widget_value.
12253
12254         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
12255         button_item_to_widget_value arg.
12256
12257 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
12258
12259         * buffer.h (struct buffer): auto_save_modified should be long.
12260
12261 2000-04-05  Andy Piper  <andy@xemacs.org>
12262
12263         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
12264         type.
12265         (button_query_geometry): give a little more room so that athena
12266         buttons fit.
12267
12268 2000-04-05  Andy Piper  <andy@xemacs.org>
12269
12270         * faces.c (complex_vars_of_faces): The widget face should inherit
12271         the font of the gui-element face.
12272
12273 2000-04-04  Andy Piper  <andy@xemacs.org>
12274
12275         * glyphs-x.c (x_button_update): new function. unconditionally
12276         update a button's state when the instance is dirty.
12277         (image_instantiator_format_create_glyphs_x): add x_button_update.
12278         (x_widget_instantiate): remove old resize cruft.
12279
12280 2000-04-02  Andy Piper  <andy@xemacs.org>
12281
12282         * frame.c (change_frame_size_1): The introduction of gutters means
12283         that we need to allow 0 as a potential frame dimension.
12284
12285 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12286
12287         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
12288         image glyph if allow_cursor.
12289         (add_hscroll_rune): Don't allow cursor to border glyph.
12290         (create_text_block): Ditto.
12291
12292         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
12293         text not in buffer.
12294         (redisplay_output_layout): Call ensure_face_cachel_complete for
12295         text image glyph.
12296
12297
12298 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12299
12300         * redisplay.c (add_glyph_rune): Adding text image as text runes.
12301
12302         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
12303         not in buffer
12304
12305         * redisplay-tty.c (tty_output_display_block): Delete the routine
12306         for text image glyph
12307         * redisplay-x.c (x_output_display_block): ditto
12308         * redisplay-msw.c (mswindows_output_display_block): ditto
12309
12310 2000-02-02  Mike Alexander  <mta@arbortext.com>
12311
12312         Note: Some of these were committed by accident as part of other
12313         patches.
12314
12315         * regex.c (regex_compile): Avoid compiler warnings.
12316
12317         * ntproc.c (sys_spawnve): Avoid compiler warnings.
12318
12319         * nt.h: Declare term_ntproc correctly.
12320
12321         * nt.c: Remove incorrect declaration of get_home_directory which
12322         is declared correctly in lisp.h.
12323
12324         * keymap.c (get_keyelt): Avoid compiler warnings.
12325         (raw_lookup_key_mapper): Avoid compiler warnings.
12326
12327         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
12328
12329         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
12330
12331         * filemode.c (mode_string): Avoid compiler warnings.
12332
12333         * file-coding.c (Fcoding_system_aliasee): Add return statement to
12334         avoid warning.
12335
12336         * events-mod.h: Undef some things that winuser.h defines differently.
12337
12338         * data.c (Faset): Avoid compiler warnings.
12339
12340         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
12341
12342 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
12343
12344         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
12345         Fall through to simple beep on error.
12346         Replace "extern" by real header file.
12347
12348         * linuxplay.c: Use nativesound.h
12349         (play_sound_data): Return error code. Be less verbose on error.
12350
12351         * sunplay.c: Use nativesound.h
12352         (play_sound_data): Return error code. Be less verbose on error.
12353
12354         * ntplay.c: Use nativesound.h
12355         (play_sound_data): Return fake error code
12356
12357         * sgiplay.c: Use nativesound.h
12358         (play_sound_data): Return error code
12359
12360         * hpplay.c: Use nativesound.h, partially implement
12361         new error code. Break compilation until finished.
12362         (play_sound_data): error code.
12363
12364         * nativesound.h (play_sound_file):
12365           (play_sound_data): Prototype in new header.
12366
12367 2000-03-31  Andy Piper  <andy@xemacs.org>
12368
12369         * glyphs-widget.c: (button_query_geometry): new function. Adjust
12370         for toggle and radio buttons.
12371         (image_instantiator_buttons): use it.
12372
12373 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
12374
12375         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
12376         (x_update_horizontal_scrollbar_callback): Return if no mirror was
12377         found. Scrollbar event probably belonged to some old config.
12378
12379 2000-03-31  Andy Piper  <andy@xemacs.org>
12380
12381         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
12382         than 1.
12383         (initialize_widget_image_instance): default layout to
12384         LAYOUT_HORIZONTAL rather than 0.
12385         (widget_instantiate): reverse the item list at the end rather than
12386         every iteration.
12387         (layout_layout): re-code for the border text at the front of the
12388         item list rather than at the end.
12389         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
12390         provided by the user.
12391         (widget_query_geometry): comment.
12392
12393 2000-03-30  Andy Piper  <andy@xemacs.org>
12394
12395         * glyphs-widget.c (image_instantiator_layout): allow standard
12396         widget keywords in layouts.
12397
12398         * gutter.c (output_gutter): cope with nil gutter contents.
12399
12400         * frame.c (Fset_frame_properties): add gutter docs.
12401
12402 2000-03-29  Andy Piper  <andy@xemacs.org>
12403
12404         * toolbar-msw.c (TBSTYLE_FLAT): add.
12405         (mswindows_output_toolbar): minor fiddling.
12406
12407 2000-03-29  Andy Piper  <andy@xemacs.org>
12408
12409         * gutter.c (output_gutter): force gutter size recalculation if
12410         what we are trying to display won't fit.
12411         (update_gutter_geometry): new function. A per-gutter version of
12412         update_frame_gutter_geometry.
12413         (update_frame_gutter_geometry): use it.
12414         (redraw_exposed_gutter): add extra debugging output.
12415
12416 2000-03-28  Mike Alexander  <mta@arbortext.com>
12417
12418         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
12419         (pdump_file_unmap): Implement it on Windows
12420         (pdump_file_get): Save alocated handles for pdump_file_unmap
12421
12422 2000-03-28  Andy Piper  <andy@xemacs.org>
12423
12424         * gui.c (get_gui_callback): treat Quit specially.
12425
12426 2000-03-27  Andy Piper  <andy@xemacs.org>
12427
12428         * glyphs.c (image_instantiate): be careful to check in the same
12429         way we assigned.
12430
12431 2000-03-27  Didier Verna  <didier@xemacs.org>
12432
12433         * config.h.in: define the proper SMART_INCLUDE macro.
12434         handle renaming of `foo_h_path' to `foo_h_file'.
12435
12436         * database.c: ditto.
12437
12438         * emacs.c: ditto.
12439
12440         * linuxplay.c: ditto.
12441
12442         * terminfo.c: ditto.
12443
12444         * tooltalk.h: ditto.
12445
12446 2000-03-27  Andy Piper  <andy@xemacs.org>
12447
12448         * glyphs-msw.c (mswindows_update_widget): make sure the widget
12449         gets updated whenever the face might have changed.
12450
12451 2000-03-26  Mike Alexander  <mta@arbortext.com>
12452
12453         * dumper.c (pdump_resource_free): Fix the comment.
12454
12455 2000-03-21  Olivier Galibert  <galibert@pobox.com>
12456
12457         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
12458
12459 2000-03-22  Mike Alexander  <mta@arbortext.com>
12460
12461         * dumper.c: Include Windows headers on Windows
12462         (pdump_resource_free): Add a body to the function
12463         (pdump_load): exe_name -> exe_path and add some comments.
12464
12465 2000-03-25  Mike Alexander  <mta@arbortext.com>
12466
12467         * gui.c (copy_gui_item_tree): Return a value in all cases
12468
12469 2000-03-21  Didier Verna  <didier@xemacs.org>
12470
12471         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
12472         lwlib/config.h.in.
12473         (SMART_INCLUDE): new macro.
12474         (POSTGRES_INCLUDE): new macro to include postgresql headers from
12475         the proper location.
12476
12477         * postgresql.c: use it.
12478
12479         * inline.c: ditto.
12480
12481 2000-03-24  Andy Piper  <andy@xemacs.org>
12482
12483         * gutter.c (redraw_exposed_gutters): must be "in display" when we
12484         do this.
12485
12486 2000-03-24  Andy Piper  <andy@xemacs.org>
12487
12488         * redisplay-output.c (compare_runes): use image_instance_changed
12489         to detect changes. Do not depend on glyphs_changed, only depend on
12490         dirtiness.
12491          (redisplay_output_layout): add debug messages.
12492         (compare_runes): ditto.
12493
12494         * glyphs.h: declare new functions.
12495         (struct Lisp_Image_Instance): remove percent and associated
12496         accessors.
12497
12498         * gui.h: declare new copying functions.
12499
12500         * gui.c (copy_gui_item_tree): new function.
12501         (copy_gui_item): new function.
12502         (gui_item_id_hash): revert to standard hash.
12503         (gui_item_hash): ditto.
12504         (gui_item_hash_internal): deleted.
12505         (mark_gui_item): mark value.
12506         (gui_item_add_keyval_pair): add value.
12507         (gui_item_init): ditto.
12508         (gui_add_item_keywords_to_plist): ditto.
12509         (gui_item_equal): ditto.
12510         (syms_of_gui): add Q_value.
12511
12512         * glyphs-x.c (x_progress_gauge_update): use pending items and
12513         value for setting the state.
12514         (x_update_widget): don't set items from pending here.
12515
12516         * glyphs-widget.c (update_widget): update items here.
12517         (progress_gauge_set_property): use items for storing value. Put
12518         new value in pending items.
12519
12520         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
12521         items for new value. Convert percent -> value.
12522         (mswindows_tab_control_update): don't update items here.
12523
12524         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
12525         (update_subwindow): ditto.
12526         (image_instance_changed): new function. Compare hash values and
12527         past and present widget items.
12528         (image_instantiate): We more careful about where we instantiate
12529         things.
12530         (image_instantiate): add error checking.
12531
12532         * gutter.c (syms_of_gutter): use -hook.
12533
12534 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
12535
12536         * console-tty.c (Fset_console_tty_input_coding_system): Use
12537         Qkeyboard.
12538         (Fset_console_tty_output_coding_system): Use Qterminal.
12539         (tty_init_console): Use Qkeyboard and Qterminal.
12540
12541 2000-03-21  Ben Wing  <ben@xemacs.org>
12542
12543         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
12544         From Mike Alexander <mta@arbortext.com>.
12545
12546 2000-03-21  Ben Wing  <ben@xemacs.org>
12547
12548         * event-msw.c (mswindows_need_event): Horrible kludge to fix
12549         process brokenness.  Proper implementation to come.
12550         * callproc.c:
12551         Rename call-process-internal to old-call-process-internal.
12552         New impl. in process.el.
12553
12554 2000-03-21  Martin Buchholz  <martin@xemacs.org>
12555
12556         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
12557
12558 2000-03-20  Andy Piper  <andy@xemacs.org>
12559
12560         * glyphs.c (full_list_hash): make hashes of the same elements in
12561         different orders return different values.
12562
12563 2000-03-20  Martin Buchholz <martin@xemacs.org>
12564
12565         * XEmacs 21.2.32 is released.
12566
12567 2000-03-20  Martin Buchholz  <martin@xemacs.org>
12568
12569         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
12570         (DFC_MALLOC_USE_CONVERTED_DATA):
12571         Add aliasing-safe casts to allow use with char* or unsigned char*
12572         lvalues.
12573
12574         * eldap.c (Fldap_open):
12575         (Fldap_search_basic):
12576         (Fldap_add):
12577         (Fldap_modify):
12578         Make C++-compilable.
12579         Make sure GCPRO'ed variables are initialized.
12580         Use temp variables to avoid repeated calls to Flength.
12581
12582 2000-03-16  Martin Buchholz  <martin@xemacs.org>
12583
12584         * sysfile.h:
12585         Make sure PATH_MAX is always defined.
12586         Include limits.h for PATH_MAX.
12587         Deprecate use of MAXPATHLEN.
12588
12589 2000-03-10  Martin Buchholz  <martin@xemacs.org>
12590
12591         * emacs.c: Add reinit_vars_of_fileio.
12592         * symsinit.h: Add reinit_vars_of_fileio.
12593         * fileio.c (reinit_vars_of_fileio): New.
12594         * fileio.c (Fmake_temp_name):
12595         Initialize temp_name random number from microseconds to make
12596         collisions even less likely.  Initialize always at process startup
12597         time.  (make-temp-name) used to return the same file name twice in
12598         a row when PDUMP.
12599         Random stylistic fiddling.
12600         Comment fixes.
12601
12602 2000-03-20  Andy Piper  <andy@xemacs.org>
12603
12604         * glyphs.c (image_instantiate): allow text glyphs to be
12605         instantiated in the minibuffer window.
12606
12607 2000-03-19  Andy Piper  <andy@xemacs.org>
12608
12609         * glyphs.c (image_instance_hash): be careful about which items we
12610         hash on.
12611
12612         * glyphs-widget.c (tab_control_set_property): record into pending
12613         items rather than the actual items.
12614
12615         * glyphs-x.c (x_update_widget): use pending items to update with.
12616
12617         * glyphs-msw.c (mswindows_tab_control_update): use pending items
12618         to update with.
12619
12620         * glyphs.c (mark_image_instance): mark pending items.
12621
12622         * window.c (Fset_window_configuration): record the buffer.
12623         (Fselect_window): totally revert previous change which breaks many
12624         things.
12625
12626 2000-03-18  Andy Piper  <andy@xemacs.org>
12627
12628         * glyphs-msw.c (mswindows_tab_control_update): force selected
12629         item.
12630
12631         * glyphs.c (image_instantiate): don't allow the minibuffer as a
12632         window domain cache, otherwise we get inconsistencies at
12633         startup. There is something fishy at startup which can lead to the
12634         minibuffer being the selected window when the gutter content is
12635         instantiated.
12636
12637         * gui.c (parse_gui_item_tree_list): add probably unnecessary
12638         gcpros.
12639         (parse_gui_item_tree_children): ditto.
12640         (parse_gui_item_tree_item): ditto.
12641
12642         * glyphs.c (Fupdate_widget_instances): return something.
12643
12644 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
12645
12646         * window.c (Fselect_window): Undo 2000-03-17 change.
12647
12648 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
12649
12650         * postgresql.c (Fpq_setenv): Remove this turkey when linking
12651         against v7.0 libraries.  Insta-coredump city until the postgres
12652         folks fix it.
12653
12654 2000-03-17  Andy Piper  <andy@xemacs.org>
12655
12656         * faces.c (complex_vars_of_faces): don't give the widget face an
12657         inherited background pixmap.
12658
12659         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
12660         selected item.
12661
12662         * event-stream.c (Fdispatch_non_command_events): return something.
12663
12664         * gutter.c (output_gutter): use widget face.
12665         (clear_gutter): ditto.
12666
12667         * NEWS: adjust again.
12668
12669         * window.c (Fselect_window): make sure this runs to completion to
12670         avoid oddities with Fset_window_configuration.
12671         (Fcurrent_window_configuration): in general do not save the
12672         minibuffer as the selected window.
12673
12674         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
12675
12676 2000-03-16  Olivier Galibert  <galibert@pobox.com>
12677
12678         * emacs.c (Frunning_temacs_p): Revert previous patch.
12679         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
12680
12681 2000-03-16  Andy Piper  <andy@xemacs.org>
12682
12683         * glyphs-x.c (x_tab_control_update): if no widget values then
12684         return.
12685
12686         * NEWS: update for new features.
12687
12688         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
12689         synthetic event to the native system.
12690         (reinit_vars_of_event_Xt): set force_event_pending to
12691         emacs_Xt_force_event_pending.
12692
12693         * events.h (struct event_stream): add force_event_pending.
12694
12695         * specifier.c (recompute_one_cached_specifier_in_window): add
12696         comment.
12697
12698         * redisplay.c (redisplay_frame): don't call
12699         update_frame_subwindows. Reset subwindow cachels when
12700         subwindows_changed, removing this was an optimization too far.
12701
12702         * redisplay-output.c (compare_runes): reorganize so that we catch
12703         glyph changes when we want them. Set optimize_output when this
12704         would help layouts.
12705         (redisplay_output_layout): remove frame_really_changed, use
12706         optimize_output instead.
12707
12708         * redisplay-msw.c (mswindows_output_display_block): reset
12709         optimize_output after outputting a glyph.
12710         * redisplay-x.c (x_output_display_block): ditto.
12711         * redisplay-tty.c (tty_output_display_block): ditto.
12712
12713         * gutter.c: (specifier_vars_of_gutter): use new spec changed
12714         functions.
12715         (gutter_specs_changed): do specific gutter positions.
12716         (top_gutter_specs_changed): new function. Only update the
12717         specified gutter specs.
12718         (bottom_gutter_specs_changed): ditto.
12719         (left_gutter_specs_changed): ditto.
12720         (right_gutter_specs_changed): ditto.
12721
12722         * gui.c (gui_item_hash_internal): new function, does a real hash.
12723         (gui_item_id_hash): use it.
12724         (gui_item_hash): hash the eval'ed gui_item.
12725
12726         * gui-x.c (popup_selection_callback): send an eval event to call
12727         Fupdate_widget_instances.
12728
12729         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
12730         to call Fupdate_widget_instances.
12731
12732         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
12733         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
12734
12735         * glyphs.c: (update_frame_subwindows): deleted.
12736         (Fupdate_widget_instances): new function for updating the dirty
12737         state of widgets that might have changed.
12738         (syms_of_glyphs): add Qupdate_widget_instances.
12739         (full_list_hash): hash a list completely.
12740         (image_instance_hash): use it for items and properties.
12741
12742         * frame-msw.c (mswindows_size_frame_internal): remove unused
12743         variable.
12744
12745         * faces.h (struct face_cachel): fix comment.
12746
12747         * event-stream.c (Fdispatch_non_command_events): new
12748         function. Process non-command events, forcing an event cycle
12749         beforehand.
12750         (syms_of_event_stream): declare.
12751         (event_stream_force_event_pending): new function. Force an event
12752         on the native event queue so that an event cycle will occur next
12753         time we check.
12754
12755         * event-msw.c:
12756         (struct ntpipe_shove_stream):
12757         (mswindows_enqueue_dispatch_event):
12758         (mswindows_dequeue_dispatch_event):
12759         (mswindows_cancel_dispatch_event):
12760         (mswindows_pump_outstanding_events):
12761         (mswindows_drain_windows_queue):
12762         (mswindows_handle_paint):
12763         (mswindows_wnd_proc):
12764         (mswindows_key_to_emacs_keysym):
12765         (get_process_input_waitable):
12766         (emacs_mswindows_delete_stream_pair): re-indent file.
12767         (mswindows_need_event): do not process further fds if the windows
12768         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
12769         fixes the 100% cpu problem.
12770         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
12771
12772 2000-03-15  Olivier Galibert  <galibert@pobox.com>
12773
12774         * alloc.h: New.
12775         * dumper.h: New.
12776         * dumper.c: New.
12777
12778         * emacs.c: Moved dump file searching to dumper.c.
12779         (Frunning_temacs_p): Fixed.
12780
12781         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
12782         last_lrecord_type_index_assigned.
12783
12784 2000-02-20  Olivier Galibert  <galibert@pobox.com>
12785
12786         * symsinit.h: Added reinit parameter to init_console_stream
12787         declaration.
12788
12789         * lisp.h: Added file parameter to pdump_load declaration.
12790
12791         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
12792         support.  Added dump file searching.
12793
12794         * config.h.in: Added EMACS_PROGNAME.
12795
12796         * console-stream.c (init_console_stream): Fix reinitialisation
12797         when running from temacs.
12798
12799         * alloc.c (pdump): Add id support.
12800         (pdump_load): Add file parameter and signature/id support.
12801
12802         * Makefile.in.in: Add full pdump support.
12803
12804 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
12805
12806         * postgresql.c: Update documentation to reflect latest code
12807         status.
12808         (print_result): Show tuple counts in printed representation when
12809         appropriate.
12810         (Fpq_put_nbytes): MULE-ize.
12811         (Fpq_get_line_async): Ditto.
12812
12813 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
12814
12815         * postgresql.c (Fpq_lo_import): Fix return value.
12816         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
12817
12818 2000-03-13  Ben Wing  <ben@xemacs.org>
12819
12820         * alloc.c (pdump_load):
12821         Fix compile warning under mswin.
12822
12823 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
12824
12825         * postgresql.c: Mule-ization, bug fixes.
12826         Use PG_CODING to encapsulate coding system name changes.
12827         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
12828         (pg-coding-system): Create.
12829
12830         (Fpq_conn_defaults): Mule-ize.
12831         (Fpq_connectdb): Mule-ize & bug fix.
12832         (Fpq_connect_start): Mule-ize.
12833         (Fpq_set_client_encoding): Mule-ize.
12834         (Fpq_finish): Document `DEAD' connection status.
12835         (Fpq_clear): Ditto.
12836         (Fpq_pgconn): Mule-ize.
12837         (Fpq_exec): Mule-ize & bug fix.
12838         (Fpq_send_query): Ditto.
12839         (Fpq_get_result): Ditto.
12840         (Fpq_res_status): Mule-ize.
12841         (Fpq_result_error_message): Mule-ize.
12842         (Fpq_ntuples): fix comments.
12843         (Fpq_fname): Mule-ize.
12844         (Fpq_fnumber): Mule-ize.
12845         (Fpq_ftype): fix comments.
12846         (Fpq_get_value): Mule-ize.
12847         (Fpq_cmd_status): Ditto.
12848         (Fpq_cmd_tuples): Ditto.
12849         (Fpq_oid_value): Ditto.
12850         (Fpq_notifies): Ditto.
12851         (Fpq_lo_import): Ditto.
12852         (Fpq_lo_export): Ditto.
12853         (Fpq_get_line): Ditto.
12854         (Fpq_put_line): Mule-ize and bug fix.
12855         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
12856
12857 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
12858
12859         * postgresql.c (vars_of_postgresql): Mule-ize.
12860         (Fpq_conn_defaults): Ditto.
12861
12862 2000-03-12  Ben Wing  <ben@xemacs.org>
12863
12864         * alloc.c (Fmake_byte_code):
12865         * alloc.c (debug_string_purity_print):
12866         * alloc.c (pdump_backtrace):
12867         * alloc.c (pdump_get_indirect_count):
12868         * alloc.c (pdump_register_sub):
12869         * alloc.c (pdump_register_object):
12870         * alloc.c (pdump_register_struct):
12871         * alloc.c (pdump_dump_data):
12872         * alloc.c (pdump_reloc_one):
12873         Minor cleanups.
12874
12875         * console-msw.c:
12876         * console-msw.c (GetConsoleHwnd):
12877         * console-msw.c (msw_hide_console):
12878         * console-msw.c (msw_show_console):
12879         * console-msw.c (msw_ensure_console_buffered):
12880         * console-msw.c (msw_output_console_string):
12881         * console-msw.c (console_type_create_mswindows):
12882
12883         a) Added functions to manipulate the console window for use with
12884         shell support.
12885
12886         b) Added support for writing text to the console, which is now
12887         used under Windows when xemacs is not being run non-interactively,
12888         to write text that would otherwise be destined for stdout because
12889         under these circumstances, text written to stdout tends to
12890         disappear and not be seen.
12891
12892         * console-msw.h:
12893         * event-Xt.c:
12894         * event-Xt.c (x_event_to_emacs_event):
12895         * event-Xt.c (describe_event_window):
12896         * events-mod.h (XEMACS_MOD_CONTROL):
12897         * events.c:
12898         * events.c (Fmake_event):
12899         * events.c (character_to_event):
12900         * events.c (event_to_character):
12901         * events.c (format_event_object):
12902         * events.c (Fevent_modifiers):
12903         * events.h:
12904         * events.h (struct key_data):
12905         * events.h (struct button_data):
12906         * events.h (struct misc_user_data):
12907         * frame-x.c (Fcde_start_drag_internal):
12908         * frame-x.c (Foffix_start_drag_internal):
12909         * gpmevent.c (Freceive_gpm_event):
12910         * keymap.c:
12911         * keymap.c (bucky_sym_to_bucky_bit):
12912         * keymap.c (control_meta_superify):
12913         * keymap.c (make_key_description):
12914         * keymap.c (keymap_lookup_directly):
12915         * keymap.c (create_bucky_submap):
12916         * keymap.c (keymap_store):
12917         * keymap.c (define_key_check_and_coerce_keysym):
12918         * keymap.c (define_key_parser):
12919         * keymap.c (define_key_alternate_name):
12920         * keymap.c (Fdefine_key):
12921         * keymap.c (raw_lookup_key_mapper):
12922         * keymap.c (struct map_keymap_unsorted_closure):
12923         * keymap.c (map_keymap_unsorted_mapper):
12924         * keymap.c (map_keymap_sort_predicate):
12925         * keymap.c (map_keymap_sorted):
12926         * keymap.c (accessible_keymaps_mapper_1):
12927         * keymap.c (where_is_recursive_mapper):
12928         * keymap.c (describe_map_mapper):
12929         * keymap.c (describe_map_sort_predicate):
12930         * keymap.c (describe_map):
12931         * keymap.c (complex_vars_of_keymap):
12932         And a number of other files, the key modifier preprocessor
12933         constants that xemacs uses have names that conflict with constants
12934         defined under MS Windows for other purposes, so they were renamed
12935         to begin with the prefix XEMACS_. The variables that hold such
12936         modifiers were changed to consistently be of type int to fix
12937         various compile warnings.
12938
12939         * console.c (complex_vars_of_console):
12940         * device.c:
12941         * device-msw.c:
12942         * device-msw.c (mswindows_finish_init_device):
12943         * device-msw.c (msw_get_workspace_coords):
12944         * device-msw.c (mswindows_device_system_metrics):
12945         and various other files, added support for a new
12946         device property called offset-workspace which returns the position
12947         of the upper left corner of the workspace area and goes along with
12948         the existing size-workspace property.
12949
12950         * dialog-msw.c:
12951         * dialog-msw.c (push_bufbyte_string_as_unicode):
12952         * dialog-msw.c (mswindows_popup_dialog_box):
12953         Added support for XEmacs-style accelerator specifications in
12954         button text.  Note: I didn't add support for this under X Windows,
12955         and somebody needs to do this.
12956
12957         * dialog.c:
12958         * dialog.c (Fpopup_dialog_box):
12959         Documented the support for accelerators that was just mentioned.
12960
12961         editfns.c (get_home_directory): Changed behavior under Windows
12962         when HOME not defined; former behavior was irretrievably broken.
12963
12964         * emacs.c:
12965         * emacs.c (main_1):
12966         * emacs.c (main):
12967         * minibuf.c (clear_echo_area_internal):
12968         * minibuf.c (echo_area_append):
12969         * print.c:
12970         * print.c (std_handle_out_external):
12971         * print.c (std_handle_out_va):
12972         * print.c (fatal):
12973         * print.c (write_string_to_stdio_stream):
12974         * print.c (output_string):
12975         * print.c (debug_print):
12976         * print.c (debug_backtrace):
12977         * print.c (debug_short_backtrace):
12978         Cleaned up the code that prints text to stdout so that this can be
12979         changed to output into a console window instead under MS Windows,
12980         as described above.
12981
12982         * eval.c:
12983         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
12984         * eval.c (internal_catch):
12985         * eval.c (unwind_to_catch):
12986         * eval.c (throw_or_bomb_out):
12987         * eval.c (condition_case_1):
12988         * eval.c (signal_1):
12989         * eval.c (check_error_state_sanity):
12990         * eval.c (call_with_suspended_errors_1):
12991         * eval.c (call_with_suspended_errors):
12992         * eval.c (reinit_vars_of_eval):
12993         Added code to catch throw loops and check for a pesky bug that may
12994         be gone now.
12995
12996         * event-msw.c:
12997         * event-msw.c (key_needs_default_processing_p):
12998         * event-msw.c (mswindows_wnd_proc):
12999         * event-msw.c (mswindows_modifier_state):
13000         * event-msw.c (emacs_mswindows_quit_p):
13001         * event-msw.c (vars_of_event_mswindows):
13002         a) Added support for using the alt key to select menu items as is
13003         standard under MS Windows.  This is controlled using the variable
13004         menu-accelerator-enabled, just like under X Windows.  There is an
13005         option on the options menu to turn this support on.  I really
13006         think that it should be on by default under Windows, but I'm not
13007         going to make this change yet.
13008
13009         b)  Added support for dynamic display size changes under Windows.
13010
13011         * event-stream.c:
13012         * event-stream.c (maybe_echo_keys):
13013         * event-stream.c (Fnext_event):
13014         * event-stream.c (command_builder_find_leaf):
13015         * event-stream.c (lookup_command_event):
13016         * event-stream.c (execute_command_event):
13017         * event-stream.c (pre_command_hook):
13018         * event-stream.c (post_command_hook):
13019         * event-stream.c (syms_of_event_stream):
13020         * event-stream.c (vars_of_event_stream):
13021         * event-stream.c (complex_vars_of_event_stream):
13022         * events.h (struct command_builder):
13023
13024         a) Tried to clean up a little bit the horribly written x-specific
13025         accelerator code that crept into this file.  I moved this code
13026         into menubar-x.c where it belongs. I also needed to move the
13027         command builder structure into the file events.h because it is
13028         accessed directly by this accelerator code.  What I didn't do, but
13029         which should be done at some point, is to properly abstract this
13030         code using device methods instead of the kludgy way that it
13031         currently hooks into the event code.
13032
13033         b) Added the lisp variables this-command-properties and
13034         last-command- properties, which should be used to synchronize two
13035         adjacent commands in preference to playing games with the variable
13036         this-command, which is typically what happens.
13037
13038         c) Added some slightly nasty code to hook into the lisp support
13039         for shifted- motion-key selection.  This is actually necessary for
13040         somewhat complicated reasons, which are described in
13041         simple.el. (NB: I think the proper thing would be to have the code
13042         that calls the pre and post command hooks also call out to generic
13043         lisp functions in simple.el, where all built-in stuff could be
13044         added.  I will think about this more.)
13045
13046         * event-unixoid.c (poll_fds_for_input):
13047         * lread.c (readchar):
13048         * redisplay-tty.c (tty_clear_frame):
13049         * redisplay-x.c (x_get_gc):
13050         * signal.c (interrupt_signal):
13051         And a whole bunch of other files: fixed up places that printed
13052         directly to stderr to instead call the function stderr_out so that
13053         the changes I made under Windows work correctly.
13054
13055         * filemode.c (mode_string):
13056         Warning fixes.
13057
13058         * frame-msw.c:
13059         * frame-msw.c (mswindows_size_frame_internal):
13060         Fixed the computation of frame size and position to keep the frame
13061         within the workspace area, rather than within the physical
13062         dimensions of the screen, so that the frame doesn't overlap window
13063         manager decorations, such as the start menu and toolbar, typically
13064         at the bottom of the screen.
13065
13066         * frame.c (vars_of_frame):
13067         Changed the default frame title format under MS Windows to consist
13068         of buffername-XEmacs, which is standard under MS Windows.  I think
13069         it might be a good idea to change this everywhere because I think
13070         it is superior to the current frame title format, but this is the
13071         kind of change that is likely to cause some people to get annoyed,
13072         so I'm not making it.
13073
13074         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
13075
13076         * gui-msw.c (mswindows_handle_gui_wm_command):
13077         Fixed compile warnings.
13078
13079         * gui-x.c:
13080         * gui-x.c (strdup_and_add_accel):
13081         * gui-x.c (button_item_to_widget_value):
13082         * gui-x.h:
13083         Added code to automatically put an accelerator onto the beginning
13084         of menu items that don't have one as is now the standard, and is
13085         described more later.  Also fixed things so that the menu item
13086         name can be an evaluated expression, again a new standard.
13087
13088         * gui.c:
13089         * gui.c (gui_item_add_keyval_pair):
13090         * gui.c (make_gui_item_from_keywords_internal):
13091         * gui.c (gui_add_item_keywords_to_plist):
13092         * gui.c (gui_item_accelerator):
13093         * gui.c (gui_name_accelerator):
13094         * gui.c (gui_item_included_p):
13095         * gui.c (gui_item_display_flush_left):
13096         * gui.c (gui_item_display_flush_right):
13097         * gui.c (parse_gui_item_tree_item):
13098         * gui.c (parse_gui_item_tree_children):
13099         * gui.c (parse_gui_item_tree_list):
13100         Mule-ized.  Cleanup.  GCPRO addition.
13101
13102         * line-number.c (buffer_line_number):
13103         * lisp.h:
13104         * lisp.h (EMACS_INT_MAX):
13105         Added the manifest constant EMACS_INT_MIN corresponding to the
13106         existing constant EMACS_INT_MAX.  This is partially to fix compile
13107         warnings under Windows, and partly for cleanliness.
13108
13109         * menubar-msw.c:
13110         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
13111         * menubar-msw.c (msw_translate_menu_or_dialog_item):
13112         * menubar-msw.c (displayable_menu_item):
13113         * menubar-msw.c (populate_menu_add_item):
13114         * menubar-msw.c (populate_or_checksum_helper):
13115         * menubar-msw.c (populate_menu):
13116         * menubar-msw.c (update_frame_menubar_maybe):
13117         * menubar-msw.c (prune_menubar):
13118         * menubar-msw.c (msw_char_is_accelerator):
13119         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
13120         * menubar-msw.c (mswindows_handle_wm_command):
13121         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
13122         * menubar-msw.c (mswindows_handle_wm_initmenu):
13123         * menubar-msw.c (mswindows_update_frame_menubars):
13124         * menubar-msw.c (mswindows_free_frame_menubars):
13125         * menubar-msw.c (mswindows_popup_menu):
13126         Fixed a bug in handling accelerators where an extra character
13127         would be displayed in the menu item.  Also generalized the
13128         function displayable_menu_item because it is now used by the
13129         dialog box code as well.  And finally, added code in the functions
13130         that create the menubar to extract a list of accelerators for the
13131         top level menubar, which is used in the event code to determine
13132         whether a particular alt-key combination should be used to invoke
13133         a menu item, or should be passed through to access the standard
13134         XEmacs keymap binding for this key combination.
13135
13136         Much needed GCPROing.
13137
13138         * menubar-x.c:
13139         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
13140         * menubar-x.c (menu_item_descriptor_to_widget_value):
13141         * menubar-x.c (restore_in_menu_callback):
13142         * menubar-x.c (x_popup_menu):
13143         * menubar-x.c (menu_move_up):
13144         * menubar-x.c (menu_move_down):
13145         * menubar-x.c (menu_move_left):
13146         * menubar-x.c (menu_move_right):
13147         * menubar-x.c (menu_select_item):
13148         * menubar-x.c (command_builder_operate_menu_accelerator):
13149         * menubar-x.c (menu_accelerator_junk_on_error):
13150         * menubar-x.c (command_builder_find_menu_accelerator):
13151         * menubar-x.c (Faccelerate_menu):
13152         * menubar.h:
13153         Moved a whole bunch of code here that was previously in
13154         event-stream.c as described above.  There is also code connected
13155         to the new standard of adding an accelerator to the beginning of
13156         menu items that don't have one as described above and below.
13157
13158         * menubar.c:
13159         * menubar.c (menu_parse_submenu_keywords):
13160         * menubar.c (Fmenu_find_real_submenu):
13161         * menubar.c (Fnormalize_menu_item_name):
13162         * menubar.c (syms_of_menubar):
13163         * menubar.c (vars_of_menubar):
13164         * menubar.c (complex_vars_of_menubar):
13165
13166         a) Cleaned up a bunch of documentation and improved it.
13167
13168         b) XEmacs now automatically adds an accelerator onto the beginning
13169         of any menu items that don't have one.  I did this because there
13170         will inevitably be some menu items on the main menubar that don't
13171         have accelerators on them because the package that adds that
13172         particular menu item hasn't yet been fixed up to have accelerators
13173         in them and it looked rather strange to have some items with and
13174         some items without accelerators, especially since even in items
13175         without accelerators, you can, at least under windows, still
13176         access the item through an accelerator corresponding to the first
13177         character in the item's name.  If people don't like this behavior,
13178         I can add a variable to turn it off optionally, but I'm not sure
13179         this is a good idea because we really do need to have accelerators
13180         on all of the menu items, and if a package doesn't like the
13181         accelerators being put on the first character, then it should put
13182         the accelerators where they belong.
13183
13184         c) I made a behavior change, which is that the descriptor that
13185         specifies the text of the menu item, which formerly was just a
13186         string, can now also be an evaluated expression.  This makes this
13187         descriptor parallel with all of the others, which could also be
13188         evaluated expressions.  This also obviates the need for the
13189         keyword :label, which was previously listed in the documentation
13190         as unimplemented, and which was for the same purpose.
13191
13192         d) GCPROing.
13193
13194         * ntproc.c:
13195         * ntproc.c (new_child):
13196         * ntproc.c (sys_spawnve):
13197         * ntproc.c (find_child_console):
13198         * ntproc.c (sys_kill):
13199         Fixed compile warnings.  By the way, this file should really go
13200         away entirely, and this will happen as soon as Kirill makes his
13201         final round of process cleanups, which affect the function
13202         call-process.
13203
13204         * process-nt.c:
13205         * process-nt.c (struct nt_process_data):
13206         * process-nt.c (find_process_from_pid):
13207         * process-nt.c (send_signal_the_nt_way):
13208         * process-nt.c (enable_child_signals):
13209         * process-nt.c (find_child_console):
13210         * process-nt.c (send_signal_the_95_way):
13211         * process-nt.c (nt_finalize_process_data):
13212         * process-nt.c (ensure_console_window_exists):
13213         * process-nt.c (nt_create_process):
13214         * process-nt.c (nt_kill_child_process):
13215         * process-nt.c (nt_kill_process_by_pid):
13216         * process-nt.c (nt_open_network_stream):
13217         * process-nt.c (vars_of_process_nt):
13218         Copied over code from Emacs 20.5 to correctly send signals to sub-
13219         processes under Windows 95.  Also added code to automatically
13220         create and hide console window when a sub-process is created under
13221         Windows 95, which obviates the need for the separate runemacs.exe
13222         executable, and finally implemented some variables that were
13223         implemented in Emacs 20.5, but previously not in XEmacs.  These
13224         include mswindows- start-process-share-console and
13225         mswindows-start-process-inherit-error-mode. (Both of these only
13226         apply to Windows 95.)
13227
13228         * regex.c (regex_compile): Fixed a compile warning.
13229
13230         * select-msw.c:
13231         * select-msw.c (mswindows_own_selection):
13232         * select-msw.c (mswindows_get_foreign_selection):
13233         * select-msw.c (mswindows_disown_selection):
13234         * select-msw.c (console_type_create_select_mswindows):
13235         * select-msw.c (syms_of_select_mswindows):
13236         Cleaned up the file and implemented the device method
13237         selection_exists_p, which had accidentally been left out.  Also
13238         removed four lisp functions that were remnants from before the
13239         time when the selection code was properly device abstracted.
13240         These functions are no longer needed because there are generic
13241         equivalents, and because they were added recently and don't exist
13242         in FSF Emacs, I don't think there's any problem with just deleting
13243         them.
13244
13245         * sysdep.c:
13246         * sysdep.c (sys_subshell):
13247         Fixed a compile warning, although in this case there's probably
13248         something wrong with this code, and it ought to be looked into
13249         more thoroughly by somebody who understands it.
13250
13251         * window.c:
13252         * window.c (Fwindow_text_area_height):
13253         * window.c (Fwindow_width):
13254         * window.c (Fwindow_full_width):
13255         * window.c (Fwindow_pixel_width):
13256         * window.c (debug_print_window):
13257         * window.c (syms_of_window):
13258         Added functions window-text-area-height and window-full-width,
13259         which are functions for returning various width and height
13260         characteristics of a window. (One of these functions is necessary
13261         for making the file dialog box work correctly, and the other one
13262         was added for completeness.)  Also added a table to the
13263         documentation for window-height which describes the entire scheme
13264         for accessing width and height characteristics of a window.
13265
13266 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13267
13268         * nt.c (fstat): Added a comment for another problem with
13269         non-encapsulated [f]stat(), reported by Adrian Aichner
13270         <aichner@ecf.teradyne.com>.
13271
13272 2000-03-11  Andy Piper  <andy@xemacs.org>
13273
13274         * window.c (make_dummy_parent): initialize subwindow instance
13275         cache.
13276         (Fset_window_configuration): zero extent_modiff.
13277
13278 2000-03-10  Andy Piper  <andy@xemacs.org>
13279
13280         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
13281         more changes can be triggered.
13282         (Fredisplay_frame): ditto.
13283         (Fredraw_device): ditto.
13284         (Fredisplay_device): ditto.
13285         (redisplay_frame): make non-static.
13286         (redisplay_frame): call update_frame_gutter_geometry outside of
13287         display proper.
13288
13289         * gutter.h: declare update_frame_gutter_geometry.
13290
13291         * redisplay.h: declare redisplay_frame.
13292
13293         * gutter.c (update_frame_gutter_geometry): move geometry changes
13294         in update_frame_gutters here. Geometry changes can only occur
13295         outside of redisplay.
13296         (update_frame_gutters): remove geometry change code.
13297         (Fredisplay_gutter_area): make sure that we are in display when we
13298         update and that we have flushed any size changes.
13299
13300 2000-03-11  Andy Piper  <andy@xemacs.org>
13301
13302         * alloc.c (pdump_dump_data): remove i & count shadows.
13303
13304 2000-02-27  Mike Alexander  <mta@arbortext.com>
13305
13306         * sysdep.h: Declare pdump_read_file
13307
13308         * sysdep.c (pdump_read_file): New function
13309
13310         * alloc.c (pdump_load): Call pdump_read_file to get the portable
13311         dump data
13312
13313 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
13314
13315         * lrecord.h: add `lrecord_type_pgsetenv'.
13316
13317 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
13318
13319         * symsinit.h: declare (vars|syms)_of* functions.
13320         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
13321
13322 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
13323
13324         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
13325
13326         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
13327         GCCs.
13328
13329         * emacs.c (main_1): Call postgres initialization code.
13330
13331         * postgresql.h: New file.  PostgreSQL RDBMS support.
13332         * postgresql.c: New file.
13333
13334 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
13335
13336         * redisplay-output.c (redisplay_output_display_block): Disable
13337         redundant code.
13338
13339 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
13340
13341         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
13342         (Fcanna_henkan_next): Ditto.
13343         (Fcanna_bunsetu_henkou): Ditto.
13344         (Fcanna_henkan_kakutei): Ditto.
13345         (Fcanna_henkan_end): Ditto.
13346         (Fcanna_henkan_quit): Ditto.
13347         (Fcanna_henkan_next): Set retun value correctly.
13348         (c2mu): Use unsigned char instead of signed char.
13349
13350 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
13351
13352         * emacs.c (main_1): Always call syms_of_gui.
13353         * inline.c: include gui.h
13354
13355 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
13356
13357         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
13358         converted to Lisp_Object.
13359         (Qtop_bottom): New variable.
13360         (syms_of_redisplay): Initialize it.
13361         * redisplay.h (Vvisible_bell): Ditto.
13362         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
13363         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
13364         only flash top and bottom.
13365
13366 2000-03-08  Andy Piper  <andy@xemacs.org>
13367
13368         * buffer.c (Frename_buffer): record new buffer name the right way.
13369
13370 2000-03-08  Andy Piper  <andy@xemacs.org>
13371
13372         * glyphs.c (update_subwindow): increase hash depth so that widget
13373         items get picked up properly.
13374
13375         * redisplay-output.c (compare_runes): increase hash depth so that
13376         widget items get picked up properly.
13377
13378 2000-03-08  Andy Piper  <andy@xemacs.org>
13379
13380         * gutter.c (output_gutter): add some debug.
13381
13382         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
13383         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
13384         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
13385
13386         * redisplay-output.c (compare_runes): use display_hash to
13387         determine if glyphs really are not the same.
13388
13389         * glyphs.c (update_subwindow): check display_hash to see if
13390         anything really needs to be updated. If not then do
13391         nothing. Record the display_hash after updating.
13392         (image_instance_equal): compare the image_instance face also.
13393
13394 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
13395
13396         * redisplay.h: Fix comment style.
13397
13398 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13399
13400         * consle-msw.h (struct mswindows_frame):
13401         Added new member paint_pending to indicate whether a WM_PAINT
13402         magic event has been queued for this frame.
13403
13404         * event-msw.c (mswindows_drain_windows_queue):
13405         Don't queue a WM_PAINT magic event if one is already queued.
13406         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
13407
13408         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
13409
13410 2000-03-07  Didier Verna  <didier@xemacs.org>
13411
13412         * dired.c: #include `regex.h' after `sysfile.h'.
13413
13414 2000-03-06  Martin Buchholz  <martin@xemacs.org>
13415
13416         * sound.c (init_nas_sound): Fix compiler warning.
13417
13418         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
13419         (FREE_STRUCT_P):
13420         (MARK_STRUCT_AS_FREE):
13421         (MARK_STRUCT_AS_NOT_FREE):
13422         Make `gcc -fstrict-aliasing' work properly.
13423
13424 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13425
13426         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
13427         (mswindows_delete_device): Call CoUnnitialize().
13428
13429         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
13430
13431 2000-02-25    <CraigL@DyCon.com>
13432
13433         * process-nt.c: MinGW now has <shellapi.h>, but still needs
13434         <errno.h>.
13435
13436         * sysdep.c: This extern declaration for environ prevents MinGW
13437         from finding the variable in CRTDLL.DLL.
13438
13439         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
13440         windows headers.
13441         (SHGFI_EXETYPE): ..
13442         (WM_MOUSEWHEEL): ..
13443         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
13444         definitions.
13445         (MMRESULT): Removed, now defined in cygwin's windows headers.
13446         (TIMECAPS): ..
13447         (uid_t,gid_t,pid_t,ssize_t): ..
13448         (_timeb): Removed, MinGW defines both _timeb and timeb.
13449         (HAVE_H_ERRNO): Added.
13450         (HAVE_TZNAME): Added, configure is not detecting this.
13451
13452 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
13453
13454         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
13455         * syntax.c (syntax_match): Use it.
13456
13457         * cmds.c: Import auto-fill-chars from FSF Emacs.
13458         (Vauto_fill_chars): New variables.
13459         (internal_self_insert): Check Vauto_fill_chars.
13460         (vars_of_cmds):
13461         Declare auto-fill-chars as a Lisp variable and initialize it.
13462
13463 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13464
13465         * fileio.c (Fmake_symbolic_link):
13466         (Ffile_symlink_p):
13467         Run handlers even if local machine doesn't have symlinks.
13468
13469 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13470
13471         * event-msw.c (mswindows_drain_windows_queue):
13472         Don't generate paint magic events for non-XEmacs frames.
13473
13474 2000-03-05  Andy Piper  <andy@xemacs.org>
13475
13476         * redisplay.c (redisplay_frame): generate_displayable_area and
13477         friends assumes that we are not in GC, we therefore have to make
13478         sure that this doesn't happen.
13479
13480         * gutter.c (calculate_gutter_size): generate_displayable_area
13481         assumes that we are not in GC, we therefore have to make sure that
13482         this doesn't happen.
13483
13484 2000-03-05  Martin Buchholz  <martin@xemacs.org>
13485
13486         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
13487
13488 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
13489
13490         * redisplay.c (regenerate_window): Make sure we set a sane value
13491         for end_pos even if we jump out of the loop.
13492         (regenerate_window): Answer Ben's question :-).
13493         (start_end_of_last_line): Add may_error argument.
13494         (start_of_last_line):
13495         (end_of_last_line): Pass may_error = 0.
13496         (end_of_last_line_may_error): New function.
13497         (pixel_to_glyph_translation): Use it, so we don't crash in
13498         event_to_glyph.
13499
13500 2000-03-04  Andy Piper  <andy@xemacs.org>
13501
13502         * window.h (struct window): add gutter_extent_modiff.
13503
13504         * window.c (allocate_window): zero out gutter_extent_modiff.
13505
13506         * redisplay.h: declare sync_display_line_structs.
13507
13508         * redisplay.c (add_glyph_rune): add a better comment.
13509
13510         * redisplay-output.c (sync_display_line_structs): made non-static.
13511         (compare_runes): remove unneccesary glyph cachel access.
13512
13513         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
13514
13515         * gutter.c (output_gutter): don't output the gutter if extent
13516         changes only involve extents in buffers. use 4 sets of display
13517         lines.
13518         (gutter_extent_signal_changed_region_maybe): new function. Mark
13519         extents in gutters as changed.
13520         (update_frame_gutters): use 4 sets of display lines.
13521         (reset_gutter_display_lines): ditto.
13522         (free_frame_gutters): ditto.
13523         (redraw_exposed_gutter): force output of gutters.
13524
13525         * frame.h (struct frame): add 4 sets of gutter display lines.
13526
13527         * extents.c: (extent_changed_for_redisplay): signal changes to
13528         extents in strings in the gutter as well as extents in buffers.
13529
13530 2000-03-02  Andy Piper  <andy@xemacs.org>
13531
13532         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
13533
13534         * frame.c (Fmake_frame): make sure the gutters get initialized
13535         after the frame is visible.
13536         (set_frame_selected_window): re-arrange compilation macros a
13537         little.
13538         (change_frame_size_1): mark gutters changed.
13539
13540         * device.c (Fset_device_class): mark gutters changed.
13541
13542 2000-03-01  Andy Piper  <andy@xemacs.org>
13543
13544         * window.c (window_top_frame_gutter_height): deleted.
13545         (window_bottom_frame_gutter_height): ditto.
13546         (window_left_frame_gutter_height): ditto.
13547         (window_right_frame_gutter_height): ditto.
13548         (window_top_gutter_height): don't use them.
13549         (window_bottom_gutter_height): ditto.
13550         (window_left_gutter_width): ditto.
13551         (window_right_gutter_width): ditto.
13552         (Fsplit_window): ditto.
13553         (Fwindow_pixel_edges): don't use border dimensions here.
13554
13555         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
13556         (update_scrollbar_instance): ditto.
13557
13558         * redisplay.c (generate_modeline): don't take gutters into account.
13559         (generate_modeline): ditto.
13560         (redisplay_frame): small gutter display optimization.
13561
13562         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
13563
13564         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
13565         gutters into account.
13566
13567         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
13568         for window position and type.
13569
13570         * gutter.c (get_gutter_coords): fix for frame gutters.
13571         (update_frame_gutters): update frame geometry if the gutters have
13572         changed.
13573         (init_frame_gutters): record current gutter geometries.
13574
13575         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
13576         var.
13577         (mswindows_widget_instantiate): ditto.
13578
13579         * frame.h (struct frame): add current_gutter_bounds.
13580
13581         * frame.c (change_frame_size_1): position window and minibuffer
13582         appropriately taking into account the frame gutters.
13583
13584         * frame-x.c: (x_initialize_frame_size): take into account the
13585         frame gutters.
13586
13587 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
13588
13589         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
13590
13591 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
13592
13593         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
13594
13595 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
13596
13597         * file-coding.c (reset_decoding_stream): Clear previous
13598         detection state when autodetect.
13599
13600 2000-02-29  Didier Verna  <didier@xemacs.org>
13601
13602         * extents.c (set_extent_glyph_1): don't require extents to be
13603         attached.
13604
13605 2000-02-27  Andy Piper  <andy@xemacs.org>
13606
13607         * gutter.c (Fset_default_gutter_position): don't default left and
13608         right gutter visibility to t.
13609         (Fset_default_gutter_position): run
13610         default-gutter-position-changed-hook.
13611         (syms_of_gutter): add default-gutter-position-changed-hook.
13612
13613 2000-02-26  Andy Piper  <andy@xemacs.org>
13614
13615         * specifier.c (Fmake_specifier): add gutter references.
13616
13617         * gutter.h (RAW_WINDOW_GUTTER): new macro.
13618
13619         * lisp.h: declare Fvalid_plist_p.
13620
13621         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
13622         as changed.
13623         (default_gutter_visible_p_changed_in_window): invalidate gutter as
13624         well as its visibility so that it gets reconstructed.
13625         (construct_window_gutter_spec): new function. Construct a string
13626         to be displayed in the gutter from a plist of strings. Take care
13627         to only use elements that are declared as visible.
13628         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
13629         WINDOW_GUTTER.
13630         (gutter_validate): allow plists of strings in the specifier.
13631         (gutter_specs_changed): construct the real_gutter from the gutter
13632         specs using construct_window_gutter_spec.
13633         (gutter_visible_validate): gutter-visible is a new specifier type.
13634         (Fgutter_visible_specifier_p): new function for the new specifier.
13635         (syms_of_gutter): declare gutter-visible and
13636         Fgutter_visible_specifier_p.
13637         (specifier_type_create_gutter): intitalize new gutter-visible
13638         specifier.
13639         (reinit_specifier_type_create_gutter): ditto.
13640         (specifier_vars_of_gutter): use new specifier type for gutter
13641         visibility.
13642         (init_frame_gutters): construct real_gutter correctly.
13643         (Fgutter_specifier_p): beef up documentation.
13644         (Fgutter_size_specifier_p): ditto.
13645
13646         * winslots.h: add real_gutter slots.
13647
13648 2000-02-25  Andy Piper  <andy@xemacs.org>
13649
13650         * device-msw.c: Be kind to older cygwin versions. From Raymond
13651         Toy <toy@rtp.ericsson.se>.
13652
13653         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
13654         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
13655
13656 2000-02-25  Martin Buchholz  <martin@xemacs.org>
13657
13658         * elhash.c (MARK_OBJ): Practice macro hygiene.
13659
13660 2000-02-24  Martin Buchholz  <martin@xemacs.org>
13661
13662         * miscplay.c: s/__inline__/inline/g;
13663         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
13664         (get_device_compdc): INLINE ==> static inline
13665         * *.[ch]: Change INLINE to INLINE_HEADER globally.
13666         find -name '*.h' | \
13667         xargs global-replace \
13668         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
13669
13670 2000-02-25  Andy Piper  <andy@xemacs.org>
13671
13672         * window.c (window_top_frame_gutter_height): new function.
13673         (window_top_window_gutter_height): ditto.
13674         (window_top_gutter_height): use them.
13675         (window_bottom_frame_gutter_height): new function.
13676         (window_bottom_window_gutter_height): ditto.
13677         (window_bottom_gutter_height): use them.
13678         (window_left_window_gutter_width): new function.
13679         (window_left_frame_gutter_width): ditto.
13680         (window_left_gutter_width): use them.
13681         (window_right_window_gutter_width): new function.
13682         (window_right_frame_gutter_width): ditto.
13683         (window_right_gutter_width): use them.
13684         (window_pixel_height): new function. calulate window pixel height
13685         with frame gutter involvement.
13686         (Fsplit_window): calculate new sizes taking frame gutters into
13687         account.
13688         (window_char_height_to_pixel_height): don't include frame gutters.
13689         (window_char_height): use window_pixel_height.
13690         (window_pixheight): rename from window_pixel_height.
13691         (change_window_height): use it.
13692         (window_pixel_height_to_char_height): don't include frame gutters.
13693         (window_char_width_to_pixel_width): ditto.
13694
13695 2000-02-25  Andy Piper  <andy@xemacs.org>
13696
13697         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
13698         if it is.
13699
13700 2000-02-24  Martin Buchholz  <martin@xemacs.org>
13701
13702         * alloc.c (staticpro):
13703         (staticpro_nodump):
13704         (dumpstruct):
13705         (dumpopaque):
13706         (pdump_wire):
13707         (pdump_wire_list):
13708         (compact_string_chars):
13709         (pdump_dump_wired):
13710         Convert:  if (foo) abort();  ==>  assert (! foo);
13711
13712         * eldap.c (Fldap_search_basic):
13713         (Fldap_add):
13714         (Fldap_modify):
13715         (Fldap_delete):
13716         Fix compiler warnings, and possible crashes if (random) return
13717         value were to be used.
13718
13719 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13720
13721         * device-msw.c: Workaround ResetDC failure.
13722
13723         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
13724         applying a devmode.
13725
13726         * redisplay-msw.c (get_frame_dc): Added start_page_p.
13727         (mswindows_text_width): Do not start printer page.
13728
13729         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
13730
13731         * glyphs-msw.c: Added image methods to msprinter console and
13732         msprinter-specific image instantiation.
13733
13734 2000-02-20  Mike Alexander  <mta@arbortext.com>
13735
13736         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
13737         to avoid crashes when selection-sets-clipboard is on
13738         (mswindows_own_selection): ditto
13739
13740 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13741
13742         * glyphs-msw.c:
13743         * redisplay-msw.c (get_frame_dc):
13744         (get_frame_compdc):
13745         * console-msw.h:
13746         * device-msw.c (mswindows_init_device):
13747         (mswindows_delete_device):
13748         (msprinter_init_device):
13749         (msprinter_delete_device):
13750         * frame-msw.c (mswindows_init_frame_1):
13751         (mswindows_delete_frame):
13752         (msprinter_init_frame_3):
13753         (msprinter_delete_frame): Move compatible DC to device object from
13754         frame object, for both mswindows and msprinter. Only one at a time
13755         is needed, it is a real waste to have one per frame!
13756
13757 2000-02-23  Andy Piper  <andy@xemacs.org>
13758
13759         * glyphs.c: add dynamic width and height elements.
13760         (image_instance_equal): ditto.
13761
13762         * glyphs-widget.c (widget_query_geometry): calculate width and
13763         height dynamically if required.
13764         (initialize_widget_image_instance): initialize dynamic dimensions.
13765         (widget_instantiate): pick-up dynamic dimensions.
13766
13767         * glyphs.h (struct Lisp_Image_Instance): add width and height for
13768         dynamic determination. Add appropriate macros.
13769
13770         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
13771         dimensions safe.
13772         (WINDOW_GUTTER_SIZE): ditto.
13773         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
13774
13775         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
13776         inline.
13777         (get_frame_dc): ditto.
13778
13779         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
13780         here.
13781
13782 2000-02-23  Martin Buchholz <martin@xemacs.org>
13783
13784         * XEmacs 21.2.31 is released.
13785
13786 2000-02-22  Ben Wing <ben@xemacs.org>
13787
13788         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
13789
13790 2000-02-22  Andy Piper  <andy@xemacs.org>
13791
13792         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
13793
13794 2000-02-21  Mike Sperber <mike@xemacs.org>
13795
13796         * .dbxrc:
13797         * .gdbinit:
13798         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
13799         variables.
13800
13801 2000-02-21  Mike Sperber <mike@xemacs.org>
13802
13803         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
13804
13805 2000-02-21  Martin Buchholz <martin@xemacs.org>
13806
13807         * XEmacs 21.2.30 is released.
13808
13809 2000-02-20  Martin Buchholz  <martin@xemacs.org>
13810
13811         Performance hacking.
13812         * *.c (syms_of_*):
13813         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
13814         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
13815         * emacs.c (main_1):
13816         * lisp.h (DEFUN):
13817         * console.c (DEFVAR_CONSOLE_LOCAL_1):
13818         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
13819         * symeval.h (DEFVAR_SYMVAL_FWD):
13820         * symbols.c (guts_of_unbound_marker):
13821         Make all c_readonly objects also lisp_readonly and marked for life.
13822         * lrecord.h (struct lrecord_implementation):
13823         Document flags better.
13824         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
13825         * lrecord.h (DECLARE_LRECORD):
13826         * lrecord.h (XSETRECORD):
13827         * lrecord.h (RECORDP):
13828         * lrecord.h (RECORD_TYPEP):
13829         * lrecord.h (RECORD_MARKER): New.
13830         * lrecord.h (error_check_*):
13831         * lrecord.h (CONCHECK_NONRECORD):
13832         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
13833         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
13834         * lrecord.h (set_lheader_implementation):
13835         * lrecord.h (enum lrecord_type): New.
13836         * symeval.h (SYMBOL_VALUE_MAGIC_P):
13837         * alloc.c (disksave_object_finalization_1):
13838         * alloc.c (mark_object):
13839         * alloc.c (lrecord_type_index):
13840         * alloc.c (tick_lcrecord_stats):
13841         * alloc.c (Fgarbage_collect):
13842         * alloc.c (init_alloc_once_early):
13843         * alloc.c (pdump_load):
13844         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
13845         * alloc.c (lrecord_type_index): Delete.
13846         Make lisp object type indexes be constant.
13847           Makes (byte-compile) 5% faster.
13848         Put all marker functions into their own array.
13849           Makes (garbage-collect) 5% faster.
13850         Optimize SYMBOL_VALUE_MAGIC_P.
13851           Makes (byte-compile) 2-3% faster.
13852         * config.h.in (gc_checking_assert): New.
13853         * alloc.c: Use gc_checking_assert().
13854         * .dbxrc: Make compatible with new object type implementation.
13855         * .gdbinit: Make compatible with new object type implementation.
13856         * alloc.c: Delete all symbols defined only for debugging, such as
13857         Lisp_Type_Vector and lrecord_charset.
13858
13859 2000-02-21  Andy Piper  <andy@xemacs.org>
13860
13861         * gui-msw.c (Fmswindows_shell_execute): fix file location
13862         problems.
13863
13864         * buffer.c (Fkill_buffer): remove buffer from alist buffer
13865         unshowing so that set_window_buffer doesn't undo
13866         kill_buffer_hook's hard work.
13867
13868         * glyphs-widget.c (tab_control_query_geometry): don't count the
13869         first item when calculating geometry.
13870
13871         * glyphs.c (map_subwindow): remove redundant code.
13872         (update_frame_subwindows): be more circumspect about when to
13873         update subwindows.
13874
13875         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
13876         when items haven't changed. Update faces if faces have changed as
13877         well as just the widget face.
13878         (x_tab_control_update): Update faces if faces have changed as well
13879         as just the widget face.
13880
13881 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13882
13883         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
13884         registration.
13885         (build_syscolor_string): Use mswindows_color_to_string to try to
13886         get a named color.
13887         (mswindows_device_system_metrics): Reverse the foreground and
13888         background colors so that they match the documentation.
13889
13890         * objects-msw.c: (mswindows_X_color_map): tweak some values so
13891         they match the default Windows palette.
13892         (mswindows_color_to_string): New function.
13893
13894 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13895
13896         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
13897
13898 2000-02-18  Olivier Galibert  <galibert@pobox.com>
13899
13900         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
13901         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
13902
13903         * symbols.c (init_symbols_once_early): Removed obsolete
13904         DATA_SEG_BITS related kludge.
13905         (defvar_magic): Ditto.
13906
13907         * malloc.c: Removed obsolete DATA_SEG_BITS
13908         * ralloc.c: Ditto.
13909         * mem-limits.h: Ditto.
13910
13911         * Makefile.in.in: Removed obsolete HAVE_SHM
13912         * emacs.c: Ditto.
13913
13914 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13915
13916         *  device-msw.c (mswindows_delete_device): Free DDE string
13917         handles.
13918
13919 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13920
13921         * keymap.c (get_keyelt):
13922         * unexnt.c (unexec):
13923         * vm-limit.c (memory_warnings):
13924         * ntheap.c (recreate_heap):
13925         * ntheap.h (UNINIT_PTR):
13926         * select-msw.c (Fmswindows_get_clipboard):
13927         (Fmswindows_set_clipboard):
13928         * objects-msw.h (MSWINDOWS_BAD_HFONT):
13929         * objects-msw.c:
13930         * menubar-msw.c (displayable_menu_item):
13931         * glyphs-msw.c:
13932         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
13933         * sysdep.c (sys_subshell):
13934         * process-nt.c (nt_create_process):
13935         * nt.c (normalize_filename):
13936         (dostounix_filename):
13937         (unixtodos_filename):
13938         * ntproc.c (win32_executable_type):
13939         * ntplay.c (play_sound_data_1):
13940         (play_sound_file):
13941         * editfns.c (get_home_directory):
13942         * event-msw.c (struct winsock_stream):
13943         (mswindows_dde_callback):
13944         * device-msw.c (msprinter_init_device):
13945         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
13946
13947         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
13948         mswindows_clear_toolbar were swapped!
13949
13950         * objects-msw.c:(colormap_t):
13951         (fontmap_t):
13952         * emacs.c (struct standard_args): Fixed const jumble.
13953
13954         * glyphs-widget.c (update_widget): Fixed comparison notation.
13955
13956         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
13957
13958         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
13959         __declspec(noreturn) syntax.
13960
13961 2000-02-19  Martin Buchholz  <martin@xemacs.org>
13962
13963         * eldap.c (Fldap_open):
13964         (Fldap_search_basic):
13965         (Fldap_add):
13966         (Fldap_modify):
13967         Use new coding system conversion macros.
13968
13969 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
13970
13971         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
13972
13973 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
13974
13975         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
13976         (Fldap_add, Fldap_modify, Fldap_delete): New functions
13977
13978         * eldap.c (Qadd, Qreplace): New constant symbols
13979         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
13980         interruptions by XEmacs signals
13981         Remove unnecessary calls to slow_down_interrupts and
13982         speed_up_interrupts
13983         (Fldap_search_basic): Renamed from Fldap_search_internal
13984         Added new optional parameter VERBOSE that triggers the
13985         display of progress messages
13986         Remove unnecessary calls to slow_down_interrupts and
13987         speed_up_interrupts
13988         LDAP result code analysis rewritten
13989         (Fldap_add, Fldap_modify, Fldap_delete): New functions
13990         (syms_of_eldap): Define the new symbols and functions
13991
13992
13993 2000-02-17  Martin Buchholz  <martin@xemacs.org>
13994
13995         * realpath.c: Determine PATH_MAX maximally portably.
13996
13997         * insdel.c (bytecount_to_charcount): Optimize.
13998         The function used to be optimized for entirely ASCII sequences.
13999         Now it is optimized for successive characters from the same
14000         charset.  This also wins big for _mostly_ ASCII sequences.
14001
14002         * fileio.c (Ffile_truename): convert return from realpath() using
14003         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
14004         - Rewrite GCPROing slightly.
14005
14006         * sysdep.c (sys_open): Do filename conversion, like all other
14007         sys_* functions.  Fixes bug:
14008         (let ((file-name-coding-system 'iso-8859-2))
14009            (write-region x y latin2-name))
14010         ==> writes filename using internal encoding.
14011
14012 2000-02-18  Martin Buchholz  <martin@xemacs.org>
14013
14014         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
14015         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
14016         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
14017         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
14018         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
14019         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
14020         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
14021         (CONST_IF_NOT_DEBUG): Delete.
14022         * alloc.c (this_one_is_unmarkable): Delete.
14023         (mark_object): Don't check for this_one_is_unmarkable. Use the
14024         c_readonly flag instead.
14025         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
14026
14027 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14028
14029         * event-msw.c (mswindows_drain_windows_queue):
14030         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
14031         away redundant repaint events.
14032
14033 2000-02-17  Andy Piper  <andy@xemacs.org>
14034
14035         * redisplay.h: declare mark_redisplay_structs.
14036
14037         * redisplay.c (redisplay_window):
14038         (redisplay_frame): don't check subwindows_state_changed.
14039         (mark_redisplay): mark gutters here.
14040
14041         * glyphs.c: (instantiate_image_instantiator): always layout if we
14042         haven't done so already.
14043         (allocate_image_instance): don't mark as dirty.
14044         (update_subwindow): bind inhibit_quit.
14045
14046         * gutter.c (mark_gutters): new function.
14047
14048         * glyphs-x.c (x_update_widget): Always resize to get round a
14049         widget bug.
14050
14051         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
14052         breaking absolutely everything.
14053
14054         * gutter.h: declare mark_gutters.
14055
14056 2000-02-16  Martin Buchholz <martin@xemacs.org>
14057
14058         * XEmacs 21.2.29 is released.
14059
14060 2000-02-15  Olivier Galibert  <galibert@pobox.com>
14061
14062         * fns.c (size_bit_vector): Fix computation of the size.
14063
14064 2000-02-15  Martin Buchholz  <martin@xemacs.org>
14065
14066         * *.[ch]: Change CONST to const globally.
14067         find -name '*.[ch]' | \
14068         xargs global-replace \
14069         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
14070         - Remove vestigial references to CONST_IS_LOSING
14071
14072 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14073
14074         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
14075         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
14076         events instead of dispatching them directly.
14077         (mswindows_handle_paint): New function to do repainting.
14078         (mswindows_wnd_proc):
14079         (emacs_mswindows_handle_magic_event): Call above function.
14080
14081 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14082
14083         * objects-msw.c (mswindows_create_font_variant): Return the new
14084         font handle.
14085         (initialize_font_instance): Get font metrics from the underlined
14086         variant of the font to cope with the case where the underlined
14087         font has a bigger descent.
14088
14089 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
14090
14091         * gui.c (gui_item_accelerator): Return the first underlined
14092         character in item name.
14093
14094 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14095
14096         * lisp.h: Added Qprinter.
14097
14098         * general.c (syms_of_general): Initialized it.
14099
14100         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
14101         (get_frame_dc):
14102         (get_frame_compdc): Made inline.
14103
14104         * console.h (struct console_methods): Added eject_page method.
14105
14106         * frame.h: Added FRAME_DISPLAY_P and friends.
14107         Aligned backslahes in many macros in more readable fashion.
14108         Added page_number to struct frame, and an accessor macro
14109         for it.
14110
14111         * defice.h: Added DEVICE_DISPLAY_P and friends.
14112
14113         * device.c (Fdevice_printer_p): Used these.
14114
14115         * frame.c (allocate_frame_core): Initialize page number.
14116         (Fprint_job_page_number):
14117         (Fprint_job_eject_page): Implemented.
14118
14119         * frame-msw.c (msprinter_eject_page): Added method.
14120         (msprinter_start_page): Added.
14121
14122         * window.c (Fwindow_truncated_p): Fixed docstring.
14123         (Fwindow_last_line_visible_height): Implemented.
14124
14125 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14126
14127         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
14128
14129 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14130
14131         * syntax.c (scan_words): Always advance at least one character.
14132
14133 2000-02-13  Andy Piper  <andy@xemacs.org>
14134
14135         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
14136         to make sure the glyph is in the cachels.
14137
14138         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
14139         global image instance flag.
14140         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
14141         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
14142
14143         * glyphs.c (allocate_image_instance): set dirty bits correctly.
14144         (Fset_image_instance_property): mark layout as changed.
14145         (invalidate_glyph_geometry_maybe): mark layout as changed.
14146         (glyph_width): use new NEEDS_LAYOUT macro.
14147         (glyph_ascent): ditto.
14148         (glyph_descent): ditto.
14149         (glyph_height): ditto.
14150         (image_instance_layout): mark layout as clean after laying out.
14151         (update_subwindow): don't mark layout as clean here.
14152
14153         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
14154         should no longer be needed.
14155
14156         * glyphs-x.c (x_update_widget): sanitize asserts.
14157         (x_finalize_image_instance): sanitize assignment to widgets.
14158
14159         * glyphs-widget.c (widget_instantiate): don't need to clear the
14160         layout flag here.
14161
14162 2000-02-13  Martin Buchholz  <martin@xemacs.org>
14163
14164         * sysdep.c (getcwd): Use standard prototype.
14165         * sysdep.h (getcwd): Use standard prototype.
14166
14167         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
14168         (sequence, start, end).
14169         Remove redundant type checking.
14170         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
14171         view of `caller-protects') to avoid a crash where the real fix was
14172         found elsewhere.
14173
14174 2000-02-12  Martin Buchholz  <martin@xemacs.org>
14175
14176         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
14177
14178         * s/sol2.h: Remove feature macro initialization.
14179
14180         * alloc.c (alloc_lcrecord): Add more type checking assertions.
14181         (vector_hash): New.  Code from internal_hash.
14182         * lrecord.h:
14183         Fix up allocation subsystem comments.
14184
14185         * config.h.in: Add __EXTENSIONS__ for Solaris.
14186
14187         * systime.h (EMACS_GETTIMEOFDAY): New.
14188         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
14189         Remove Solaris-specific code.
14190         Use void* for the (ignored) second arg for gettimeofday().
14191
14192         * elhash.c (hash_table_hash): Implement it, finally.
14193         * elhash.c:  Use hashcode_t.
14194
14195         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
14196         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
14197
14198         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
14199         * fns.c (size_bit_vector):
14200         * alloc.c (size_vector):
14201         (make_vector_internal):
14202         (make_bit_vector_internal):
14203         (sweep_bit_vectors_1):
14204         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
14205
14206 2000-02-10  Martin Buchholz  <martin@xemacs.org>
14207
14208         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
14209         Include strings.h to avoid warnings for bzero and strcasecmp.
14210
14211 2000-02-10  Olivier Galibert  <galibert@pobox.com>
14212
14213         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
14214         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
14215
14216         * fns.c (size_bit_vector): New.  Declare bit vectors as a
14217         sequence.
14218
14219 2000-02-10  Olivier Galibert  <galibert@pobox.com>
14220
14221         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
14222         use a value field instead.
14223         (symbol_value_forward_forward): Use value field.
14224         (DEFVAR_SYMVAL_FWD): Use value field.
14225         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
14226         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
14227         (DEFVAR_CONST_INT): Ditto.
14228         (DEFVAR_BOOL): Ditto.
14229         (DEFVAR_CONST_BOOL): Ditto.
14230         (DEFVAR_INT_MAGIC): Ditto.
14231         (DEFVAR_BOOL_MAGIC): Ditto.
14232
14233         * symbols.c (guts_of_unbound_marker): Use value field.
14234         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
14235         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
14236
14237         * lisp.h: Declare dumpopaque and noninteractive1.
14238
14239         * alloc.c (dumpopaque): Added.
14240         (pdump_dump_opaquevec): Added.
14241         (pdump): Call pdump_dump_opaquevec to dump opaque data.
14242         (pdump_load): Reload opaque data.  Sync noninteractive1 with
14243         noninteractive.
14244
14245 2000-02-10  Andy Piper  <andy@xemacs.org>
14246
14247         * glyphs.c (image_instance_layout): if the size changes, mark it
14248         as such.
14249
14250         * redisplay-output.c (redisplay_output_layout): Update the
14251         subwindow here.
14252         (redisplay_output_subwindow): ditto.
14253
14254         * glyphs.c (update_subwindow): make sure we reset flags for
14255         layouts as well as everything else.
14256
14257         * glyphs-widget.c (layout_layout): don't need to set the instances
14258         dimensions here.
14259
14260 2000-02-09  Martin Buchholz  <martin@xemacs.org>
14261
14262         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
14263         not HAVE_DLOPEN, which is a lower-level thing.
14264
14265         * .cvsignore: Ignore gmon.out
14266
14267 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
14268
14269         * .cvsignore: Ignore portable dumper xemacs.dmp file
14270
14271 2000-02-09  Andy Piper  <andy@xemacs.org>
14272
14273         * redisplay-output.c (redisplay_output_layout): be more clever
14274         about when we output based on the changed flags.
14275
14276         * glyphs.h (struct image_instantiator_methods): add update_method.
14277         (struct Lisp_Image_Instance): add changed flags. Declare new
14278         macros for manipulating them.
14279
14280         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
14281         (image_instance_parent_glyph): find an image_instance's parent
14282         glyph or image_instance.
14283         (image_instance_layout): mark the size as changed.
14284         (set_image_instance_dirty_p): new function. mark an image
14285         instance, plus all of its parents, as dirty.
14286         (Fset_image_instance_property): use it.
14287         (Fglyph_animated_timeout_handler): use it.
14288         (update_subwindow): call update_widget and device methods for
14289         update_subwindow. Mark all changed flags as clean.
14290         (Fresize_subwindow): mark size as changed.
14291
14292         * glyphs-x.c (x_finalize_image_instance): try and detect gc
14293         failures.
14294         (x_update_subwindow): only resize subwindows here.
14295         (x_update_widget): new function. Update all changed properties of
14296         a widget.
14297         (x_resize_subwindow): deleted.
14298         (x_widget_set_property): deleted.
14299         (x_progress_gauge_set_property): deleted.
14300         (x_progress_gauge_update): new function. Implement recorded
14301         changes.
14302         (x_tab_control_update): ditto.
14303         (x_tab_control_set_property): deleted.
14304         (console_type_create_glyphs_x): declare new functions.
14305         (image_instantiator_format_create_glyphs_x): ditto.
14306
14307         * glyphs-widget.c (widget_set_property): mark text changed.
14308         (update_widget): new function. Update properties of a widget.
14309         (widget_instantiate): for layouts make sure we set their
14310         children's parent correctly.
14311         (tab_control_set_property): new function. Record changes that will
14312         take place under redisplay's control.
14313         (progress_gauge_set_property): ditto.
14314         (image_instantiator_progress_guage): declare new functions.
14315         (image_instantiator_tab_control): ditto.
14316
14317         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
14318         now.
14319         (mswindows_update_widget): new function. Update all properties on
14320         a widget that have changed.
14321         (mswindows_button_update): new function. Update a button's set
14322         state.
14323         (mswindows_tab_control_update): new function. Update the items in
14324         a tab.
14325         (mswindows_tab_control_set_property): deleted.
14326         (mswindows_progress_gauge_update): new function. Update the
14327         progress gauge's progress.
14328         (mswindows_widget_set_property): deleted. This is all done
14329         asynchronously now.
14330         (mswindows_progress_gauge_set_property): ditto.
14331         (console_type_create_glyphs_mswindows): declare new methods.
14332         (image_instantiator_format_create_glyphs_mswindows): ditto.
14333
14334         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
14335         (msprinter_set_frame_properties): ditto.
14336
14337         * console.h (struct console_methods): Add update_widget_method.
14338
14339 2000-02-09  Andy Piper  <andy@xemacs.org>
14340
14341         * gui-msw.c (Fmswindows_shell_execute): Make
14342         mswindows-shell-execute industrial strength.
14343
14344 2000-02-08  Martin Buchholz  <martin@xemacs.org>
14345
14346         * lrecord.h: Make macro argument `props' match member function `plist'.
14347         * fns.c (Fget):
14348         * fns.c (Fput):
14349         * fns.c (Fremprop):
14350         * fns.c (Fobject_plist):
14351         * alloc.c:
14352         * symbols.c:
14353         Object property list frobbing cleanup.
14354         - Allow any lisp object (compared with `eq'), not just symbols, as
14355           keys in object plists.
14356         - Move symbol plist frobbing into symbols.c, where it belongs.
14357         - Move string plist frobbing into alloc.c, where it belongs.
14358         - Everything's an lrecord now, so no need to test for symbolp, etc.
14359         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
14360
14361         * extents.c: Reorder code to remove declarations.
14362
14363         * frame.h (store_in_alist): Remove useless declaration.
14364
14365 2000-02-07  Martin Buchholz  <martin@xemacs.org>
14366
14367         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
14368         * config.h.in: Add HAVE_XCONVERTCASE.
14369
14370 2000-02-07  Andy Piper  <andy@xemacs.org>
14371
14372         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
14373         it breaks many things.
14374
14375 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
14376
14377         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
14378         actually can start a common comment type.
14379         * src/syntax.h (SYNTAX_END_P): ditto for end.
14380
14381 2000-02-07  Martin Buchholz <martin@xemacs.org>
14382
14383         * XEmacs 21.2.28 is released.
14384
14385 2000-02-06  Martin Buchholz  <martin@xemacs.org>
14386
14387         * event-Xt.c (x_keysym_to_character): New.
14388         (maybe_define_x_key_as_self_inserting_character): New.
14389         (x_has_keysym): New.
14390         Auto-define all keys on the keyboard as self-insert-key.
14391
14392 2000-02-02  Martin Buchholz  <martin@xemacs.org>
14393
14394         * menubar.c (vars_of_menubar): A small code simplification.
14395
14396         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
14397
14398         * ExternalShell.c:
14399         * ExternalClient.c:
14400         * EmacsShell-sub.c:
14401         * EmacsManager.c:
14402         * EmacsFrame.c:
14403         Use consistent style for specifying X resources.
14404
14405         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
14406         This makes (dontusethis-set-symbol-value-handler) actually usable.
14407
14408         * lrecord.h (lrecord_decription_type):
14409         * alloc.c (pdump_register_sub):
14410         (pdump_dump_data):
14411         (pdump_reloc_one):
14412         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
14413         Comply with XEmacs coding style.
14414         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
14415         args, and XD_LISP_OBJECT_ARRAY with 3 args.
14416
14417         * keymap.c (Faccessible_keymaps):
14418         Make (accessible-keymaps map "\C-h") do the Right Thing.
14419         Make (accessible-keymaps map []) do the Right Thing.
14420         Make (accessible-keymaps map "") do the Right Thing.
14421         (check_keymap_definition_loop): New function.
14422         (keymap_store_internal): Keep luser from shooting self in foot,
14423           via (define-key ctl-x-4-map "p" global-map).
14424         Remove fullness slot from struct Lisp_Keymap, since hash tables
14425         are now reliable.
14426         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
14427
14428 2000-01-30  Martin Buchholz  <martin@xemacs.org>
14429
14430         * redisplay.c (init_redisplay): Fix small memory leak.
14431         * elhash.h:
14432         * elhash.c (pdump_reorganize_hash_table):
14433         Rename from reorganize_hash_table. Change prototype.
14434         Reuse the original memory for hentries.  Save 100k.
14435         * alloc.c (PDUMP_READ): new macro.
14436         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
14437         * alloc.c: No need to #ifndef before #undef.
14438
14439         * print.c: Allow debug_print() to print readably by modifying
14440         debug_print_readably.  Use consistent variable names.
14441
14442         * .dbxrc: Try to get things to work even if stopped in a function
14443         without source available by explicitly specifying source files.
14444 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14445
14446         * unexnt.c (_start): Removed bogus code which caused loading heap
14447         from differrent executable file.
14448         Removed bogus assignment to _fmode, which caused inconsistencies.
14449
14450 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14451
14452         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
14453         Have spawnve encapsulation regard DONT_ENCAPSULATE.
14454         Do not preliminary `#define signal sigset'.
14455
14456         * systime.h: Do not prototype environ on windows nt and cygwin,
14457         this conflicts with system header.
14458
14459         * syssignal.h: Use correct define for WINDOWSNT
14460
14461         * sysdep.h: Do not prototype environ on windows nt, this conflicts
14462         with system header.
14463
14464         * sysdep.c (near start of file): Fixed commentary and rearranged
14465         ifdefs in readable order.
14466         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
14467         (start_of_text):
14468         (end_of_text):
14469         (end_of_data): Do not compile in if using PDUMP.
14470
14471         * symsinit.h: Prototyped vars_of_nt().
14472
14473         * ntproc.c (windows9x_p): Added, instead of os_subtype.
14474         (find_child_console): Use it.
14475         (sys_kill): Use it.
14476
14477         * ntheap.h: Do not extern os_subtype.
14478
14479         * ntheap.c (cache_system_info): Do not cache unneeded:
14480         nt_major_version, nt_minor_version and os_subtype.
14481         (recreate_heap): Do not compile in when PDUMPing.
14482
14483         * nt.c (geteuid and friends): Use the new varibale
14484         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
14485         (init_user_info): Removed the above mentioned hackery.
14486         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
14487         stat has been fixed in the C runtime.
14488         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
14489
14490         * file-coding.c (struct file_coding_dump): Do not define
14491         ucs_to_mule_table in the struct if not MULE.
14492         (struct struct lrecord_description fcd_description_1): Do not dump
14493         the above.
14494
14495         * emacs.c (main_1): Call vars_of_nt().
14496         (right before Fdump_emacs_data): Don't need lastfile if using both
14497         portabe dumper and system malloc.
14498
14499         * alloc.c (Fmemory_limit): Conditionalized out.
14500         (pdump): Use OPEN_BINARY for the portable dump file.
14501         (pdump_load): Ditto.
14502
14503 2000-02-02  Mike Alexander  <mta@arbortext.com>
14504
14505         * nt.c (convert_time): Set tm_isdst before calling mktime and
14506         avoid calling it at all if the compiler supports 64 bit integers.
14507         Also initialize utc_base_ft before using it.
14508
14509 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
14510
14511         * frame.c (change_frame_size_1): Take f->internal_border_width
14512         into consideration when calculating the width of the frame.
14513
14514 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14515
14516         * window.c (frame_min_height):
14517         (frame_size_valid_p):
14518         (frame_pixsize_valid_p): Added.
14519         (check_frame_size): Generalized.
14520
14521         * window.h: Prototyped the above.
14522
14523         * lisp.h:
14524         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
14525         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
14526         Deleted Vwin32_* and Vbinary_process_* unused variables.
14527
14528         * device-msw.c (msprinter_init_device): Do not get printer font
14529         list; Added DEVMODE functions.
14530
14531         * frame-msw.c: Added lots of printer code.
14532
14533         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
14534         general.c.
14535
14536         * console-msw.h: Added more msprinter device private slots.
14537
14538 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14539
14540         * event-msw.c (key_needs_default_processing_p): Added.
14541         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
14542
14543 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14544
14545         * glyphs.c (image_instance_layout): Mark image instance as clean
14546         after layout.
14547         (glyph_dirty_p): Removed redundant function.
14548         (invalidate_glyph_geometry_maybe): Added.
14549         (update_glyph_cachel_data): Call it.
14550
14551         * glyphs.h: Prototyped it.
14552
14553         * redisplay.c (add_glyph_rune): Call it.
14554         (redisplay_window): Reset glyphs cachels when frame faces have
14555         changed, thus forcing recomputation of built-in border glyphs.
14556
14557 2000-01-30  Martin Buchholz  <martin@xemacs.org>
14558
14559         * Makefile.in.in: Make portable dumper and purify play well together.
14560         Add imperfect, but better than nothing, support for pdump.
14561         Remove xemacs.dmp when temacs is re-generated.
14562         Don't ignore errors when dumping xemacs.
14563
14564         * symbols.c (maybe_call_magic_handler): Remove one magic number.
14565
14566 2000-01-28  Andy Piper  <andy@xemacs.org>
14567
14568         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
14569         (setup_normal_frame): ditto.
14570         (setup_frame_without_minibuffer): ditto.
14571         (setup_minibuffer_frame): ditto.
14572         (delete_frame_internal): ditto.
14573         (Fmake_frame_invisible): ditto.
14574         (Ficonify_frame): ditto.
14575
14576         * window.h: change Fset_window_buffer signature.
14577
14578         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
14579         (Fset_window_buffer): allow recording of buffer if the window is
14580         the selected window.
14581         (window_loop): Use new Fset_window signature.
14582
14583 2000-01-23  Daniel Pittman  <daniel@danann.net>
14584
14585         * config.h.in: Added template for `HAVE_ATHENA_3D'
14586
14587 2000-01-29  Andy Piper  <andy@xemacs.org>
14588
14589         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
14590
14591         * gutter.c (output_gutter): Don't output if the window isn't live.
14592
14593 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14594
14595         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
14596         of 01/12/00: Moved SetFocus back here where it belongs.
14597
14598 2000-01-23  Andy Piper  <andy@xemacs.org>
14599
14600         * s/cygwin32.h: declare printer things.
14601
14602 2000-01-26  Andy Piper  <andy@xemacs.org>
14603
14604         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
14605         Alexander.
14606
14607 2000-01-24  Andy Piper  <andy@xemacs.org>
14608
14609         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
14610         (mswindows_button_instantiate): Make sure glyph is a pixmap.
14611
14612         * glyphs-widget.c (widget_instantiate): Avoid shadows.
14613
14614         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
14615
14616         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
14617
14618         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
14619         (mswindows_output_display_block): Avoid local shadows.
14620
14621         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
14622         (mswindows_enqueue_mouse_button_event): ditto.
14623         (mswindows_handle_gui_wm_command): remove declaration.
14624
14625         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
14626         warnings.
14627
14628         * console-msw.h: Avoid shadows.
14629         (mswindows_get_toolbar_button_text):
14630         (emacs_mswindows_create_stream_pair):
14631         (emacs_mswindows_delete_stream_pair):
14632         (mswindows_handle_toolbar_wm_command): declare.
14633
14634         * device-msw.c (build_syscolor_string): Avoid shadows.
14635
14636 2000-01-23  Andy Piper  <andy@xemacs.org>
14637
14638         * glyphs-widget.c (widget_instantiate): reverse the items for
14639         layouts so that children are in the expected order.
14640
14641 2000-01-28  Martin Buchholz  <martin@xemacs.org>
14642
14643         * ralloc.c: safe_bcopy ==> memmove
14644         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
14645         * s/msdos.h: Remove BCOPY macros.
14646         * insdel.c (gap_right): Remove BCOPY conditional code.
14647         * insdel.c (gap_left): Remove BCOPY conditional code.
14648         XEmacs demands a working ANSI C compiler - hence memmove.
14649
14650         * regex.c (regex_compile): Remove accidental use of trigraphs.
14651
14652 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14653
14654         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
14655         event timestamp.
14656
14657 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14658
14659         * event-msw.c (mswindows_drain_windows_queue): Added the
14660         parameter.
14661         (mswindows_need_event): Commented the call to
14662         mswindows_drain_windows_queue().
14663         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
14664         only.
14665
14666         * console-msw.h: Moved a few function prototypes here from
14667         event-msw.c.
14668
14669         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
14670         parameter from unsigned short to unsigned long.
14671         (Fmswindows_shell_execute): Added return value.
14672
14673 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
14674
14675         * sysdep.c (init_system_name):
14676           process-unix.c (unix_canonicalized_host_name):
14677         Don't call freeaddrinfo() if getaddrinfo() fails.
14678
14679         * process-unix.c (unix_open_unix_network_stream):
14680         Moved the code to get a port # into address loop.
14681
14682 2000-01-27  Martin Buchholz  <martin@xemacs.org>
14683
14684         * buffer.c (reinit_vars_of_buffer):
14685         The right place to initialize conversion_in_dynarr and
14686         conversion_out_dynarr.
14687
14688         * alloc.c (pdump): Use the real open() till sys_open() is functional.
14689
14690         * process-unix.c (unix_canonicalize_host_name): Muleize.
14691         (unix_open_network_stream): Muleize.
14692
14693         * buffer.h: Fix up prototypes for ralloc.c functions.
14694
14695 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
14696         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
14697         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
14698                 instead of gethostbyname()
14699         * process-unix.c: In unix_canonicalize_host_name() and
14700                 unix_open_network_stream(), add code to use getaddrinfo()
14701                 instead of gethostbyname().
14702
14703 2000-01-27  Daniel Pittman <daniel@danann.net>
14704
14705         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
14706         libs when built with flat Athena.
14707
14708 2000-01-27  Martin Buchholz  <martin@xemacs.org>
14709
14710         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
14711         Use coding standards for function prototypes.
14712
14713 2000-01-25  Martin Buchholz  <martin@xemacs.org>
14714
14715         * dialog-msw.c (push_lisp_string_as_unicode):
14716         * doc.c (unparesseuxify_doc_string):
14717         * dired.c (Fuser_name_completion_1):
14718         * dired.c (Fuser_name_all_completions):
14719         * dired.c (free_user_cache):
14720         * dired.c (user_name_completion):
14721         * console-x.c (get_display_arg_connection):
14722         * minibuf.c (clear_echo_area_internal):
14723         * minibuf.c (echo_area_append):
14724         * eldap.c (Fldap_open):
14725         * eldap.c (Fldap_search_internal):
14726         * frame-x.c (x_set_frame_text_value):
14727         * frame-x.c (x_set_frame_properties):
14728         * frame-x.c (x_create_widgets):
14729         * redisplay-tty.c (term_get_fkeys_1):
14730         * objects-x.c (x_parse_nearest_color):
14731         * objects-x.c (x_valid_color_name_p):
14732         * objects-x.c (x_initialize_font_instance):
14733         * objects-x.c (x_list_fonts):
14734         * objects-x.c (x_find_charset_font):
14735         * tooltalk.c (Fadd_tooltalk_message_arg):
14736         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
14737         * tooltalk.c (Fadd_tooltalk_pattern_arg):
14738         * process-unix.c (unix_create_process):
14739         * ntproc.c (sys_spawnve):
14740         * sound.c (Fplay_sound_file):
14741         * sound.c (Fplay_sound):
14742         * buffer.c (init_initial_directory):
14743         * buffer.c (init_buffer):
14744         * editfns.c (init_editfns):
14745         * editfns.c (Ftemp_directory):
14746         * editfns.c (Fuser_full_name):
14747         * editfns.c (uncache_home_directory):
14748         * editfns.c (get_home_directory):
14749         * editfns.c (Fuser_home_directory):
14750         * editfns.c (Fformat_time_string):
14751         * editfns.c (Fcurrent_time_string):
14752         * gui-x.c (button_item_to_widget_value):
14753         * database.c (Fopen_database):
14754         * event-Xt.c (x_to_emacs_keysym):
14755         * event-Xt.c (x_event_to_emacs_event):
14756         * event-Xt.c (describe_event_window):
14757         * event-msw.c (mswindows_wnd_proc):
14758         * glyphs-eimage.c (jpeg_instantiate):
14759         * glyphs-eimage.c (gif_instantiate):
14760         * glyphs-eimage.c (png_instantiate):
14761         * glyphs-eimage.c (tiff_instantiate):
14762         * glyphs-x.c (xbm_instantiate_1):
14763         * glyphs-x.c (x_xbm_instantiate):
14764         * glyphs-x.c (x_xface_instantiate):
14765         * glyphs-x.c (autodetect_instantiate):
14766         * glyphs-x.c (cursor_font_instantiate):
14767         * glyphs-x.c (x_widget_instantiate):
14768         * glyphs-x.c (x_widget_set_property):
14769         * glyphs-x.c (x_widget_property):
14770         * glyphs-x.c (BUILD_GLYPH_INST):
14771         * print.c (write_string_to_stdio_stream):
14772         * print.c (output_string):
14773         * print.c (Falternate_debugging_output):
14774         * print.c (Fexternal_debugging_output):
14775         * glyphs-msw.c (extract_xpm_color_names):
14776         * glyphs-msw.c (mswindows_xpm_instantiate):
14777         * glyphs-msw.c (bmp_instantiate):
14778         * glyphs-msw.c (resource_name_to_resource):
14779         * glyphs-msw.c (mswindows_resource_instantiate):
14780         * glyphs-msw.c (xbm_instantiate_1):
14781         * glyphs-msw.c (mswindows_xbm_instantiate):
14782         * glyphs-msw.c (mswindows_xface_instantiate):
14783         * glyphs-msw.c (mswindows_widget_instantiate):
14784         * glyphs-msw.c (add_tree_item):
14785         * glyphs-msw.c (add_tab_item):
14786         * glyphs-msw.c (mswindows_combo_box_instantiate):
14787         * glyphs-msw.c (mswindows_widget_property):
14788         * glyphs-msw.c (mswindows_combo_box_property):
14789         * glyphs-msw.c (mswindows_widget_set_property):
14790         * console.c (stuff_buffered_input):
14791         * objects-msw.c (mswindows_initialize_color_instance):
14792         * objects-msw.c (mswindows_valid_color_name_p):
14793         * objects-msw.c (mswindows_list_fonts):
14794         * objects-msw.c (mswindows_font_instance_truename):
14795         * bytecode.c (optimize_compiled_function):
14796         * select-x.c (symbol_to_x_atom):
14797         * select-x.c (x_atom_to_symbol):
14798         * select-x.c (hack_motif_clipboard_selection):
14799         * select-x.c (selection_data_to_lisp_data):
14800         * select-x.c (lisp_data_to_selection_data):
14801         * select-x.c (Fx_get_cutbuffer_internal):
14802         * select-x.c (Fx_store_cutbuffer_internal):
14803         * buffer.h (TO_EXTERNAL_FORMAT): New function.
14804         * buffer.h (TO_INTERNAL_FORMAT): New function.
14805         * emacs.c (make_arg_list_1):
14806         * emacs.c (make_argc_argv):
14807         * emacs.c (main_1):
14808         * emacs.c (Fdump_emacs):
14809         * emacs.c (split_string_by_emchar_1):
14810         * file-coding.h:
14811         * lisp.h:
14812         * lstream.h:
14813         * symsinit.h:
14814         * device-x.c (x_init_device):
14815         * device-x.c (Fx_valid_keysym_name_p):
14816         * device-x.c (Fx_get_font_path):
14817         * device-x.c (Fx_set_font_path):
14818         * glyphs.c (bitmap_to_lisp_data):
14819         * glyphs.c (pixmap_to_lisp_data):
14820         * alloc.c (make_ext_string): Use coding system arguments.  Update
14821         all callers.
14822         * alloc.c (build_string):
14823         * callproc.c (child_setup):
14824         * callproc.c (init_callproc):
14825         * fileio.c (lisp_strerror):
14826         * fileio.c (directory_file_name):
14827         * fileio.c (Fexpand_file_name):
14828         * fileio.c (Ffile_truename):
14829         * fileio.c (Fsysnetunam):
14830         * fileio.c (Fdo_auto_save):
14831         * sysdep.c (sys_readdir):
14832         * tests.c: New file.  Allow adding C tests.
14833         Replace GET_* macros with a more comprehensible and flexible
14834         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
14835         Modify all calls.
14836         Any coding system can be used to do format conversion.
14837         Eliminate enum external_data_format.
14838         Eliminate convert_to_external_format.
14839         Eliminate convert_to_internal_format.
14840         Make sure file-name, keyboard, terminal, and ctext are always
14841         defined as coding systems or aliases.  Make
14842         file-name-coding-system, terminal-coding-system, and
14843         keyboard-coding-system magical variables that are equivalent to
14844         defining the corresponding coding system aliases.
14845
14846         * file-coding.c (Fcoding_system_canonical_name_p): New function.
14847         * file-coding.c (Fcoding_system_alias_p): New function.
14848         * file-coding.c (Fcoding_system_aliasee): New function.
14849         * file-coding.c (append_suffix_to_symbol): New function.
14850         * file-coding.c (dangling_coding_system_alias_p): New function.
14851         * file-coding.c (Ffind_coding_system):
14852         * file-coding.c (Fcopy_coding_system):
14853         * file-coding.c (encode_coding_no_conversion):
14854         * file-coding.c (syms_of_file_coding):
14855         * file-coding.c (vars_of_file_coding):
14856         Rewrite coding system alias code.
14857         Allow nested aliases, like symbolic links.
14858         Allow redefinition of coding system aliases.
14859         Prevent existence of dangling coding system aliases.
14860
14861         * dired.c (Fuser_name_completion_1):
14862         * dired.c (Fuser_name_all_completions):
14863         A crash would happen if user did QUIT in the middle of building
14864         user_name_cache.  Remove redundant code in mainline and unwind_protect.
14865
14866         * lisp.h:
14867         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
14868
14869         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
14870         an unsigned char *.  Update all callers.
14871
14872 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14873
14874         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
14875
14876 2000-01-25  Martin Buchholz  <martin@xemacs.org>
14877
14878         * elhash.c (hentry_description): Use more portable definition.
14879         (resize_hash_table): Initialize new hentries using
14880         xnew_array_and_zero, thereby simplifying the code.
14881
14882         * mule-charset.c (make_charset): Make sure entire object is
14883         initialized, to avoid Purify warnings.
14884
14885         * alloc.c (resize_string): Fix unlikely crash with big strings.
14886
14887 2000-01-24  Martin Buchholz  <martin@xemacs.org>
14888
14889         * realpath.c (xrealpath):
14890         Don't call getwd().
14891
14892 2000-01-25  Martin Buchholz  <martin@xemacs.org>
14893
14894         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
14895
14896 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
14897
14898         * unexelfsgi.c (unexec): Change the way we decide which segment
14899         should be extended.
14900
14901         Assumption that .bss section should be outside the PT_LOADable
14902         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
14903         it's present) is inside the 'data' segment. This would fail the
14904         test which was used to find a segment to grow and cover new
14905         heap. Instead of this assumption, I created another one - on IRIX
14906         the segment to grow should start below .bss and it's address
14907         should extent above the end of .bss. Once this segment is
14908         identified, it's grown to accommodate the new heap and new
14909         zero-length .bss section is added at the end of .data2.
14910
14911 2000-01-25  Martin Buchholz  <martin@xemacs.org>
14912
14913         * eval.c (Feval): Wrong number of arguments should use original
14914         function, not the indirect_function version of it.
14915
14916 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
14917
14918         * glyphs-x.c (x_button_instantiate): Don't add image if
14919         it is not a pixmap.
14920         (x_locate_pixmap_file): Call Fexpand_file_name when file name
14921         is relative.
14922
14923 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
14924
14925         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
14926         declaration.
14927         (DEFVAR_INT_MAGIC): Ditto.
14928         (DEFVAR_BOOL_MAGIC): Ditto.
14929         * glyphs.h: Reindent backslash.
14930
14931 2000-01-24  Martin Buchholz  <martin@xemacs.org>
14932
14933         * glyphs-widget.c (layout_query_geometry):
14934         (layout_layout): Use correct types for gheight, gwidth.
14935
14936 2000-01-24  Martin Buchholz  <martin@xemacs.org>
14937
14938         * EmacsManager.c (QueryGeometry): Purified.
14939
14940 2000-01-23  Martin Buchholz  <martin@xemacs.org>
14941
14942         * alloc.c (make_float): Make sure entire object is initialized, to
14943         avoid Purify warnings.
14944         (pdump_register_sub): Remove useless assignment.
14945         (pdump): Use xmalloc, not malloc.
14946         (pdump_load): Use xmalloc, not malloc.
14947
14948 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14949
14950         * callproc.c:
14951         * dired-msw.c:
14952         * fileio.c:
14953         * process-nt.c:
14954         * redisplay-msw.c:
14955         * sysdep.c: Removed redundant #include <windows.h>
14956
14957 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14958
14959         * frame.c (delete_frame_internal): Do not delete device when its
14960         implementation so declares.
14961         (delete_frame_internal): Set device selected frame to nil when
14962         last frame goes away.
14963
14964         * device-msw.c (msprinter_device_system_metrics): Implemented.
14965         (mswindows_device_system_metrics): Added 'device-dpi property.
14966
14967         * device.c: (Fdevice_printer_p): Added.
14968         Added 'offset-workspace device metric.
14969
14970         * console.h (device_metrics): Declared DM_offset_workspace.
14971
14972 2000-01-23  Martin Buchholz  <martin@xemacs.org>
14973
14974         * fileio.c (Ffile_truename): Remove pointless and confusing
14975         initialization of elen.
14976
14977         * glyphs-widget.c: Compiler warning fixes.
14978
14979 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
14980
14981         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
14982         instead of a Lisp_Object as argument to make it consistent with
14983         the other LIVE_P macros.
14984         (CHECK_LIVE_PROCESS): New macro.
14985
14986         * process.c: Declare Qprocess_live_p.
14987         (Fprocess_live_p): New function.
14988         (create_process): Use PROCESS_LIVE_P.
14989         (read_process_output): Ditto.
14990         (set_process_filter): Ditto.
14991         (Fdelete_process): Ditto.
14992         (kill_buffer_processes): Ditto
14993         (process_send_signal): Use CHECK_LIVE_PROCESS.
14994         (Fprocess_input_coding_system): Check whether process is still
14995         alive (fix PR#1061).
14996         (Fprocess_output_coding_system): Ditto.
14997         (Fprocess_coding_system): Ditto.
14998         (Fset_process_input_coding_system): Ditto.
14999         (Fset_process_output_coding_system): Ditto.
15000
15001 2000-01-23  Andy Piper  <andy@xemacs.org>
15002
15003         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
15004         layout and widget.
15005
15006         * glyphs.c (mark_image_instance): take into account changed
15007         image_instance format.
15008         (image_instance_equal): ditto.
15009         (image_instance_hash): ditto.
15010
15011         * glyphs-widget.c (widget_instantiate): Incorporate layout
15012         instantiation here. Delay layout of the layout until later.
15013         (layout_instantiate): deleted.
15014         (layout_query_geometry): new function. get the geometry of a
15015         layout.
15016         (layout_layout): layout a layout dynamically.
15017         (image_instantiator_widget): New function - splitting up
15018         image_instantiator_format_create_glyphs_widget for netwinder
15019         compilation.
15020         (image_instantiator_buttons):
15021         (image_instantiator_edit_fields):
15022         (image_instantiator_combo_box):
15023         (image_instantiator_scrollbar):
15024         (image_instantiator_progress_guage):
15025         (image_instantiator_tree_view):
15026         (image_instantiator_tab_control):
15027         (image_instantiator_labels):
15028         (image_instantiator_layout): ditto.
15029         (image_instantiator_format_create_glyphs_widget): Call preceding
15030         functions.
15031
15032 2000-01-22  Martin Buchholz  <martin@xemacs.org>
15033
15034         * process.c (Fset_process_coding_system):
15035         * device-x.c (Fx_keysym_hash_table):
15036         Docstring fixes.
15037
15038         * lstream.c (Lstream_write): Return documented value, not 0.
15039
15040         * fileio.c (directory_file_name):
15041         (Fsubstitute_in_file_name):
15042         (Fsubstitute_insert_file_contents_internal):
15043         (Fwrite_region_internal):
15044         * emacs.c:
15045         * sysdep.c:
15046         * getloadavg.c:
15047         * systty.h:
15048         Remove vestigial APOLLO-conditional code.
15049
15050 2000-01-21  Martin Buchholz  <martin@xemacs.org>
15051
15052         * getpagesize.h: Add guard macros.
15053         * libsst.h: Add guard macros.
15054         * libst.h: Add guard macros.
15055         * line-number.h: Add guard macros.
15056         * ndir.h: Add guard macros.
15057         * sysfloat.h: Add guard macros.
15058         * sysfile.h: Add guard macros.
15059         * sysproc.h: Add guard macros.
15060         * syswait.h: Add guard macros.
15061         * xintrinsic.h: Add guard macros.
15062         * xintrinsicp.h: Add guard macros.
15063         * xmmanager.h: Add guard macros.
15064         * xmmanagerp.h: Add guard macros.
15065         * xmprimitive.h: Add guard macros.
15066         * xmu.h: Add guard macros.
15067         * gpmevent.h: Add copyright statement. Add guard macros.
15068         * miscplay.h: Add guard macros.
15069         * *.h: Use consistent C-standards-approved guard macro names.
15070
15071         * opaque.c (make_opaque): Switch parameter order.
15072         * opaque.h (make_opaque): Switch parameter order.
15073         Update all callers.
15074         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
15075
15076         * config.h.in (type_checking_assert): Added.
15077         (bufpos_checking_assert): Added.
15078
15079 2000-01-21  Martin Buchholz  <martin@xemacs.org>
15080
15081         * alloc.c: Harmless pdump changes.
15082         - Use countof().
15083         - spell alignment correctly.
15084         * sysdep.c: Use countof()
15085
15086 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15087
15088         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
15089         initially_selected_for_input() console method, default to 0.
15090         (semi_canonicalize_console_connection): Try to delegate to
15091         canonicalize_console_connection if no such console method.
15092         (canonicalize_console_connection): Vice versa.
15093         (print_console): Do not print nil connection.
15094
15095         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
15096         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
15097         (XDEVIMPF_FRAMELESS_OK): Added.
15098         (CONSOLE_INHERITS_METHOD): Added.
15099
15100         * console-msw.c (mswindows_canonicalize_console_connection):
15101         Added.
15102         (mswindows_canonicalize_device_connection): Added.
15103
15104         * console-msw.h (struct msprinter_device): Added this struct and
15105         accessor macros.
15106         (mswindows_device): Made fontlist a lisp object.
15107
15108         * device.c (semi_canonicalize_device_connection):  Try to delegate
15109         to canonicalize_device_connection if no such console method.
15110         (canonicalize_device_connection): Vice versa.
15111         (print_device): Do not print nil connection.
15112
15113         * device-msw.c (mswindows_init_device): Call InitCommonControls
15114         when have widgets.
15115         (mswindows_delete_device): Removed fontlist deallocation.
15116         (mswindows_mark_device): Added.
15117
15118         * events.c (event_equal): Added abort() at unreached code.
15119         (event_hash): Ditto.
15120
15121         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
15122         fallback tags of Windows devices.
15123
15124         * general.c (syms_of_general): Initialized Qmsprinter.
15125
15126         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
15127         of fallback tags of Windows devices.
15128
15129         * lisp.h: Declared Qmsprinter.
15130
15131         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
15132         of strings.
15133         (mswindows_list_fonts): Ditto.
15134         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
15135         that it can be used by both mswindows and msprinter devices.
15136         (initialize_font_instance): Added.
15137         (mswindows_initialize_font_instance): Use it.
15138         (msprinter_initialize_font_instance): Added.
15139
15140         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
15141         and implementation flags check.
15142         (redisplay_without_hooks): Changed the call to the above.
15143         (Fredraw_device): Ditto.
15144         (Fredisplay_device): Ditto.
15145
15146         * redisplay-msw.c (get_frame_dc): Implemented.
15147         (get_frame_compdc): Implemented.
15148         (many functions): Use the two functions above to get device
15149         contexts, ether for a window or a printer.
15150
15151 2000-01-21  Olivier Galibert  <galibert@pobox.com>
15152
15153         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
15154         initialization here.
15155         (init_symbols_once_early): Call it.
15156         * emacs.c (main_1): Call it.
15157         * symsinit.h: Declare it.
15158
15159 2000-01-19  Olivier Galibert  <galibert@pobox.com>
15160
15161         * alloc.c: Use a lrecord_header * in the backtrace instead of a
15162         Lisp_Object.
15163         (pdump_backtrace): Ditto.
15164         (pdump_register_object): Ditto.  Cleanup use of the pointers.
15165         (pdump_get_entry): Abort if trying to register a null pointer.
15166         (pdump_dump_data): Cleanup types when relocating.
15167         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
15168         (pdump_dump_rtables): Remove bad casts.
15169         (pdump_load): Cleanup relocation w.r.t union type.  Use a
15170         Lisp_Object instead of a EMACS_INT for the hashtable
15171         reorganization.
15172
15173 2000-01-20  Martin Buchholz  <martin@xemacs.org>
15174
15175         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
15176
15177         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
15178
15179         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
15180
15181         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
15182
15183 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15184
15185         * faces.h (FACE_STRIKETHRU_P): Added.
15186
15187         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
15188         of font variants.
15189
15190         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
15191         (mswindows_set_dc_font): New function, aware of font variants,
15192         separated from mswindows_update_dc.
15193
15194         * objects-msw.h (struct mswindows_font_instance_data): Added
15195         definition.
15196
15197         * objects-msw.c (mswindows_finalize_font_instance): Delete all
15198         cached fonts and the data structure.
15199         (mswindows_initialize_font_instance): Added creation of font data
15200         structure.
15201         (mswindows_print_font_instance): Print at least something.
15202         (mswindows_create_font_variant): Implemented.
15203         (mswindows_get_hfont): Implemented.
15204
15205 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
15206
15207         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
15208         prototyping problem with msvc.
15209
15210         * emacs.c (main_1): added syms_of_gui_mswindows() call
15211
15212         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
15213         syms_of_gui_mswindows() function
15214
15215         * symsinit.h: added the prototype for syms_of_gui_mswindows()
15216
15217 2000-01-18  Martin Buchholz <martin@xemacs.org>
15218
15219         * XEmacs 21.2.27 is released.
15220
15221 2000-01-18  Martin Buchholz  <martin@xemacs.org>
15222
15223         * glyphs-eimage.c (struct tiff_error_struct):
15224         (tiff_error_func):
15225         (tiff_warning_func):
15226         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
15227
15228         * unexmips.c:
15229         * unexhp9k3.c:
15230         * unexfreebsd.c:
15231         * unexec.c: Remove vestigial Lucid C code.
15232         * unexalpha.c:
15233         * unexaix.c:
15234         * termcap.c:
15235         * libsst.c: Ansify.
15236         Remove declarations of errno and strerror().
15237
15238         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
15239
15240         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
15241
15242 2000-01-16  Martin Buchholz  <martin@xemacs.org>
15243
15244         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
15245         Optimize.
15246
15247 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15248
15249         * md5.c:
15250         * file-coding.c:
15251         * file-coding.h:
15252         Change enum eol_type to eol_type_t.
15253
15254 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15255
15256         * gui.c (get_gui_callback): Check cons before accessing car.
15257
15258 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15259
15260         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
15261         (XSETSPECIFIER_TYPE): Ditto.
15262
15263 2000-01-17  Didier Verna  <didier@xemacs.org>
15264
15265         * redisplay.c (generate_fstring_runes): compute string size in
15266         characters, not bytes.
15267
15268 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
15269
15270         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
15271
15272 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
15273
15274         * print.c (print_error_message): Call print_prepare().
15275
15276 2000-01-14  Martin Buchholz  <martin@xemacs.org>
15277
15278         * .dbxrc: Renamed from dbxrc.
15279
15280         * events.c (event_to_character):
15281         Use `assert (foo)' instead of `if (!foo) abort()'
15282
15283         * .gdbinit (xtype): Add documentation.
15284         * .gdbinit (check-temacs): New function.
15285         * .gdbinit (check-xemacs): New function.
15286         * dbxrc (check-xemacs): New function.
15287         * dbxrc (check-xemacs): New function.
15288
15289 2000-01-14  Andy Piper  <andy@xemacs.org>
15290
15291         * glyphs-widget.c (widget_query_geometry): Make sure that we
15292         calculate default dimensions correctly.
15293
15294 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15295
15296         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
15297
15298         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
15299         pdump_wire'd variable.
15300
15301         * emacs.c: (main_1): Conditionalized calls to
15302         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
15303
15304 2000-01-13  Martin Buchholz  <martin@xemacs.org>
15305
15306         * window.c (Fset_window_configuration):
15307         * sysdep.c (_start):
15308         * input-method-motif.c (res):
15309         * event-Xt.c (Xt_process_to_emacs_event):
15310         Simple compiler warning fixes.
15311
15312         * bytecode.c (funcall_compiled_function): Use the original
15313         function symbol on the backtrace list in preference to the
15314         compiled_function object in error messages.
15315
15316 2000-01-13  Andy Piper  <andy@xemacs.org>
15317
15318         * glyphs-x.c (update_widget_face): Make sure we update the widget
15319         background as well as foreground.
15320
15321 2000-01-13  Andy Piper  <andy@xemacs.org>
15322
15323         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
15324         fields to subwindow.
15325         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
15326         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
15327         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
15328         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
15329
15330         * glyphs-widget.c (check_valid_tab_orientation): new function.
15331         (initialize_widget_image_instance): zero orientation and
15332         justification.
15333         (widget_instantiate): pick up orientation.
15334         (tab_control_query_geometry): return appropriate values for
15335         vertical tabs.
15336
15337         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
15338         appropriate creation flags for left, right and bottom tabs.
15339
15340         * s/cygwin32.h: add tab definitions.
15341
15342 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15343
15344         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
15345         frame upon hiding a subwindow.
15346         (mswindows_button_instantiate): Changed the push button style to
15347         BS_PUSHBUTTON.
15348         (mswindows_button_instantiate): Removed button BS_NOTIFY
15349         style.
15350         (mswindows_button_instantiate): Removed redundant check for
15351         a disabled gui item.
15352         (mswindows_button_instantiate): Made use of WS_TABSTOP
15353         consistent: "operable" controls (edit, button, tree, scroll) have
15354         this style, "display-only" ones (static, progress gauge) do
15355         not. This style is currently ignored by XEmacs though. Also,
15356         removed the WS_EX_CONTROLPARENT style - it is not for children,
15357         it is for their parents!
15358         (mswindows_edit_field_instantiate): Ditto.
15359         (mswindows_progress_gauge_instantiate): Ditto.
15360         (mswindows_tree_view_instantiate): Ditto.
15361         (mswindows_tab_control_instantiate): Ditto.
15362         (mswindows_scrollbar_instantiate): Ditto.
15363         (mswindows_combo_box_instantiate): Ditto.
15364         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
15365         style to the "clip" window.
15366         (mswindows_button_instantiate): Removed compilation warning by
15367         equally typing terms of the ?: operator.
15368
15369 2000-01-12  Didier Verna  <didier@xemacs.org>
15370
15371         * redisplay.c (generate_fstring_runes): new parameter holding the
15372         last modeline-format extent.
15373         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
15374         extent, fill the glyph block with it.
15375         (generate_fstring_runes): handle these parameters.
15376         (generate_formatted_string_db): ditto.
15377
15378         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
15379         glyphs'extents in the modeline.
15380
15381 1999-01-11  Mike Woolley  <mike@bulsara.com>
15382
15383         * ntheap.c: Reduced the reserved heap space from 1Gb down to
15384         256Mb, as a workaround for the non-starting problem many people
15385         have experienced.
15386
15387 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15388
15389         * console-tty.c (Fset_console_tty_output_coding_system):
15390         Force redrawing tty frame.
15391
15392 2000-01-10  Didier Verna  <didier@xemacs.org>
15393
15394         * redisplay.c (generate_fstring_runes): fix size computation bug.
15395
15396 2000-01-09  William M. Perry <wmperry@aventail.com>
15397
15398         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
15399
15400 2000-01-09  Andy Piper  <andy@xemacs.org>
15401
15402         * glyphs-msw.c: index -> i to avoid shadows.
15403         (xbm_create_bitmap_from_data): make static.
15404         (check_valid_string_or_int): deleted.
15405         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
15406
15407         * glyphs-x.c (x_update_subwindow): remove unused args.
15408
15409         * glyphs.c (glyph_image_instance): return the thing. Don't set the
15410         back pointer - this is done in allocate_image_instance.
15411         (query_string_font): return Qnil to make the compiler happy.
15412         (unmap_subwindow): set to ~0 to make the compiler happy.
15413         (glyph_query_geometry): comment out until used.
15414         (glyph_layout): ditto.
15415
15416 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
15417
15418         * insdel.c (signal_after_change): Remove extraneous unbind_to().