update.
[chise/xemacs-chise.git.1] / src / ChangeLog
1 2003-04-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2
3         * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
4         n to -n; charset-id of non ISO-IR sets are changed to positive
5         numbers.
6
7 2003-03-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
8
9         * text-coding.c (decode_add_er_char): Use XUINT instead of XINT
10         for &MCS-XXXXXXXX; values.
11
12 2003-03-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
13
14         * mule.c (Vxemacs_chise_version): Renamed from
15         `Vutf_2000_version'.
16         (vars_of_mule): Add new variable `xemacs-chise-version'; define
17         `utf-2000-version' as an alias for `xemacs-chise-version'.
18
19 2003-03-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
20
21         * mule-charset.c: Include <chise.h> when `CHISE' is defined.
22         (load_char_decoding_entry_maybe): Use libchise when `CHISE' is
23         defined.
24
25         * config.h.in (CHISE): New macro.
26
27 2003-03-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
28
29         * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
30         of `ucs'.
31         (Qmap_ucs): New variable.
32         (syms_of_mule_charset): Add new symbol `=ucs'.
33         (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
34
35         * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
36         (simplify_char_spec): Likewise.
37
38         * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
39
40         * char-ucs.h (Qmap_ucs): New extern variable.
41
42 2003-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
43
44         * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
45         (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
46         don't define it when UTF2000 is not defined.
47         (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
48         `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
49         when UTF2000 is not defined.
50         (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
51         rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
52
53 2003-03-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
54
55         * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
56
57         * mule-charset.c (Vcharset_ucs_gb): Deleted.
58         (Qucs_gb): Deleted.
59         (syms_of_mule_charset): Delete `ucs-gb'.
60         (complex_vars_of_mule_charset): Likewise.
61
62 2003-03-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
63
64         * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
65
66         * mule-charset.c (Vcharset_ucs_cns): Deleted.
67         (Qucs_cns): Deleted.
68         (syms_of_mule_charset): Delete `ucs-cns'.
69         (complex_vars_of_mule_charset): Likewise.
70
71 2003-03-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
72
73         * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
74
75         * mule-charset.c (Vcharset_ucs_jis): Deleted.
76         (Qucs_jis): Deleted.
77         (syms_of_mule_charset): Delete `ucs-jis'.
78         (complex_vars_of_mule_charset): Likewise.
79
80 2003-03-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
81
82         * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
83
84         * mule-charset.c (Vcharset_ucs_ks): Deleted.
85         (Qucs_ks): Deleted.
86         (syms_of_mule_charset): Delete `ucs-ks'.
87         (complex_vars_of_mule_charset): Likewise.
88
89 2003-03-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
90
91         * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
92         (Qideograph_daikanwa_2): Deleted.
93         (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
94         (complex_vars_of_mule_charset): Likewise.
95
96         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
97         (LEADING_BYTE_DAIKANWA_1): Deleted.
98         (LEADING_BYTE_DAIKANWA_2): Deleted.
99         (MIN_CHAR_DAIKANWA): Deleted.
100         (MAX_CHAR_DAIKANWA): Deleted.
101
102 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
103
104         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
105         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
106         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
107
108         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
109         (Vcharset_ideograph_daikanwa): Deleted.
110         (Qideograph_hanziku_{1..12}): Deleted.
111         (Qideograph_daikanwa): Deleted.
112         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
113         Vcharset_ideograph_daikanwa.
114         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
115         `ideograph-hanziku-{1..12}'.
116         (complex_vars_of_mule_charset): Likewise.
117
118 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
119
120         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
121
122         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
123         (Qideograph_gt_pj_{1..11}): Deleted.
124         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
125         (complex_vars_of_mule_charset): Likewise.
126
127 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
128
129         * mule-charset.c (Vcharset_ucs_big5): Deleted.
130         (Vcharset_ideograph_gt): Deleted.
131         (Qucs_big5): Deleted.
132         (Qideograph_gt): Deleted.
133         (syms_of_mule_charset): Delete symbol `ucs-big5' and
134         `ideograph-gt'.
135         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
136         and `ideograph-gt'.
137
138         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
139         (LEADING_BYTE_GT): Deleted.
140         (MIN_CHAR_GT): Deleted.
141         (MAX_CHAR_GT): Deleted.
142
143 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
144
145         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
146
147 2003-01-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
148
149         * chartab.c (save_uint8_byte_table): Add new argument `filter'.
150         (save_uint16_byte_table): Likewise.
151         (save_byte_table): Likewise; convert values by it.
152         (Fput_char_attribute): Don't use `char-refs-simplify-char-specs'
153         for `ideographic-structure'.
154         (Fsave_char_attribute_table): Use `char-refs-simplify-char-specs'
155         as the filter for `ideographic-structure'.
156
157 2003-01-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
158
159         * chartab.c (put_char_composition): New function.
160         (Fput_char_attribute): Use `put_char_composition'; use
161         `Fchar_refs_simplify_char_specs' for `ideographic-structure'.
162
163         * fns.c (simplify_char_spec): New function.
164         (char_ref_simplify_spec): New function.
165         (Fchar_refs_simplify_char_specs): New function.
166         (syms_of_fns): Add new builtin function
167         `char-refs-simplify-char-specs'.
168
169 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
170
171         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
172         (Qideograph_cbeta): Deleted.
173         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
174         (complex_vars_of_mule_charset): Likewise.
175
176         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
177         (MIN_CHAR_CBETA): Comment out.
178         (MAX_CHAR_CBETA): Likewise.
179
180 2002-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
181
182         * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
183         `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
184         CHISE client feature.
185
186 2002-12-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
187
188         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
189
190 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
191
192         * mule-charset.c (charset_lookup_description_1): Use
193         `NUM_LEADING_BYTES' in UTF-2000.
194
195 2002-12-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
196
197         * char-ucs.h (GC_CHARSETP): Deleted.
198
199 2002-12-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
200
201         * char-ucs.h (MAX_CHAR_GT): Updated.
202
203 2002-12-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
204
205         * text-coding.c: Sync with XEmacs 21.4.10.
206
207 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
208
209         * mule-charset.c (Vcharset_china3_jef): Deleted.
210         (Qchina3_jef): Deleted.
211         (syms_of_mule_charset): Don't define `china3-jef'.
212         (complex_vars_of_mule_charset): Likewise.
213
214         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
215         (MIN_CHAR_CHINA3_JEF): Comment out.
216         (MAX_CHAR_CHINA3_JEF): Comment out.
217
218 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
219
220         * mule-charset.c (Vcharset_ucs_gb): New variable.
221         (Qucs_gb): New variable.
222         (syms_of_mule_charset): Add new symbol `ucs-gb'.
223         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
224
225         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
226
227 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
228
229         * mule-charset.c (charset_code_point): if a coded-charset has a
230         final-byte, don't inherit the builtin range of the mother CCS.
231
232 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
233
234         * mule-charset.c (charset_code_point): Fix problem about
235         inheritance.
236
237 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
238
239         * mule-charset.c (decode_builtin_char): Reorganized.
240
241 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
242
243         * text-coding.c (char_encode_as_entity_reference): Modify for
244         `charset_code_point'.
245         (char_encode_shift_jis): Likewise.
246         (char_encode_big5): Likewise.
247         (char_encode_utf8): Likewise.
248         (char_encode_iso2022): Likewise.
249
250         * mule-charset.c (charset_code_point): Add new argument
251         `defined_only'.
252         (Fencode_char): Add new optional argument `defined_only'.
253
254         * chartab.c (put_char_table): Modify for `charset_code_point'.
255
256         * char-ucs.h (charset_code_point): Add new argument
257         `defined_only'.
258         (encode_char_1): Modify for `charset_code_point'.
259
260 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
261
262         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
263         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
264
265 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
266
267         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
268         (Qjis_x0208): Likewise.
269         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
270         XCHARSET_FINAL(charset).
271         (charset_code_point): Modify condition for final-byte based
272         builtin-chars.
273         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
274         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
275         in UTF-2000; specify `=jis-x0208' as the mother of
276         `japanese-jisx0208-1978', `japanese-jisx0208' and
277         `japanese-jisx0208-1990' in UTF-2000.
278
279 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
280
281         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
282
283 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
284
285         * text-coding.c (decode_coding_utf16): Support UTF-16.
286         (char_encode_utf16): Fixed.
287
288 2002-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
289
290         * text-coding.c (Qutf16): New variable in MULE.
291         (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
292         (Fcoding_system_type): Add `utf-16' in MULE.
293         (struct detection_state): Add a structure for utf16 in MULE.
294         (detect_coding_type): Setup st->utf16.mask in MULE.
295         (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
296         MULE.
297         (reset_encoding_stream): Use `char_encode_utf16' and
298         `char_finish_utf16' for `CODESYS_UTF16' in MULE.
299         (detect_coding_utf16): New function [incomplete].
300         (decode_coding_utf16): New function [support only UCS-2].
301         (char_encode_utf16): New function.
302         (char_finish_utf16): New function.
303         (syms_of_file_coding): Add new symbol `utf-16'; setup
304         `coding_category_symbol[CODING_CATEGORY_UTF16]'.
305
306         * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
307         UTF-2000.
308         (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
309         (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
310
311 2002-10-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
312
313         * chartab.c (put_char_table): When a charset is specified as a
314         range in UTF-2000, don't support builtin characters.
315
316 2002-09-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
317
318         * mule-charset.c (decode_defined_char): Don't refer external
319         database if Qunbound or Qnil are found.
320         (Fsave_charset_mapping_table): Don't define it if
321         HAVE_CHISE_CLIENT is not defined.
322         (Freset_charset_mapping_table): New function.
323         (load_char_decoding_entry_maybe): Store Qnil if a character is not
324         found in external database.
325         (syms_of_mule_charset): Don't define `save-charset-mapping-table'
326         if HAVE_CHISE_CLIENT is not defined; add new builtin function
327         `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
328
329 2002-09-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
330
331         * text-coding.c (decode_coding_utf8): Check CCS is specified or
332         not.
333
334 2002-08-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
335
336         * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
337         Q_lowercase, Q_uppercase in UTF-2000.
338
339         * chartab.c (get_char_table): Add special code for the standard
340         case table to use character attribute `->downcase' and
341         `->uppercase' for case operations in UTF-2000.
342
343         * casetab.c (Qflippedcase): New variable in UTF-2000.
344         (Q_lowercase): Likewise.
345         (Q_uppercase): Likewise.
346         (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
347         and `->uppercase' in UTF-2000.
348         (complex_vars_of_casetab): Assign attribute name `downcase' to
349         downcase and CANON table of Vstandard_case_table in UTF-2000;
350         assign attribute name `flippedcase' to upcase and EQV table of
351         Vstandard_case_table in UTF-2000.
352
353 2002-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
354
355         * text-coding.c (decode_add_er_char): Support isolated-chars.
356         (char_encode_as_entity_reference): Likewise.
357
358 2002-08-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
359
360         * emacs.c (Vutf_2000_lisp_directory): New variable.
361         (Vconfigure_utf_2000_lisp_directory): Likewise.
362         (complex_vars_of_emacs): Add new variable
363         `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
364
365 2002-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
366
367         * char-ucs.h (DECODE_CHAR): Delete special code for
368         `chinese-big5-1' and `chinese-big5-2'.
369
370         * mule-charset.c (Qbig5_1): New variable in UTF-2000.
371         (Qbig5_2): Likewise.
372         (decode_defined_char): Support CONVERSION_BIG5_1 and
373         CONVERSION_BIG5_2.
374         (decode_builtin_char): Likewise.
375         (charset_code_point): Likewise.
376         (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
377         'conversion in UTF-2000.
378         (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
379         (complex_vars_of_mule_charset): Define `chinese-big5-1' and
380         `chinese-big5-2' as children of `chinese-big5'.
381
382         * char-ucs.h (CONVERSION_BIG5_1): New macro.
383         (CONVERSION_BIG5_2): New macro.
384
385 2002-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
386
387         * text-coding.c (char_encode_big5): Support entity-reference.
388
389 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
390
391         * text-coding.c (char_encode_as_entity_reference): New function.
392         (char_encode_utf8): Use `char_encode_as_entity_reference'.
393
394 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
395
396         * text-coding.c (decode_coding_big5): Support entity-reference
397         decoding feature.
398
399 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
400
401         * text-coding.c (allocate_coding_system): Initialize initial
402         charsets for CODESYS_UTF8.
403         (Fmake_coding_system): Accept charset-g0, charset-g1 and
404         charset-g2 for CODESYS_UTF8.
405         (decode_coding_utf8): Use charset-g0.
406         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
407         to force variants to map to UCS.
408
409 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
410
411         * text-coding.c (Qutf_8_mcs): New variable.
412         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
413         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
414         instead of `utf-8' in UTF-2000.
415
416 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
417
418         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
419         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
420         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
421         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
422         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
423         CONVERSION_96x96x96x96 are introduced.
424         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
425         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
426         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
427
428         * char-ucs.h (CONVERSION_94): New macro.
429         (CONVERSION_96): New macro.
430         (CONVERSION_94x94): New macro.
431         (CONVERSION_96x96): New macro.
432         (CONVERSION_94x94x94): New macro.
433         (CONVERSION_96x96x96): New macro.
434         (CONVERSION_94x94x94x60): New macro.
435         (CONVERSION_94x94x94x94): New macro.
436         (CONVERSION_96x96x96x96): New macro.
437
438 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
439
440         * chartab.c (Vcharacter_variant_table): Deleted.
441         (Fchar_variants): Use character-attribute `->ucs-variants' instead
442         of `Vcharacter_variant_table'.
443         (Fput_char_attribute): Likewise.
444         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
445         (complex_vars_of_chartab): Likewise.
446
447 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
448
449         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
450
451         * fns.c (Qideographic_structure): New variable.
452         (Qkeyword_char): New variable.
453         (ids_format_unit): New function.
454         (Fideographic_structure_to_ids): New function.
455         (syms_of_fns): Add new symbols `ideographic-structure' and
456         `:char'; add new builtin function `ideographic-structure-to-ids'.
457
458         * data.c (Fchar_ref_p): New function.
459         (syms_of_data): Add new builtin function `char-ref-p'.
460
461         * chartab.h: Add an EXFUN for `Ffind_char'.
462
463 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
464
465         * text-coding.c (Vcharacter_composition_table): Deleted.
466         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
467         in every UTF-2000.
468
469         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
470         UTF-2000.
471         (Vcharacter_composition_table): Deleted.
472         (Fget_composite_char): Use the implementation for external-DB
473         support in every UTF-2000.
474         (Fput_char_attribute): Likewise.
475         (char_attribute_system_db_file): Don't define if external-DB
476         feature is not available.
477         (Fsave_char_attribute_table): Likewise.
478         (Fmount_char_attribute_table): Likewise.
479         (Fclose_char_attribute_table): Likewise.
480         (Freset_char_attribute_table): Likewise.
481         (Fload_char_attribute_table): Likewise.
482         (syms_of_chartab): Don't define `save-char-attribute-table',
483         `mount-char-attribute-table', `reset-char-attribute-table',
484         `close-char-attribute-table' and `load-char-attribute-table' if
485         external-DB feature is not available.
486         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
487
488 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
489
490         * text-coding.c (Qcomposition): Add extern if external-DB feature
491         is supported.
492         (Vcharacter_composition_table): Don't add extern if external-DB
493         feature is supported.
494         (COMPOSE_ADD_CHAR): Modify for new data-representation of
495         character composition rule if external-DB feature is supported.
496
497         * chartab.c (Vcharacter_composition_table): Don't define if
498         external-DB feature is supported.
499         (Qcomposition): New variable.
500         (Fget_composite_char): New implementation for external-DB support.
501         (Fput_char_attribute): Use `composition' property of each
502         character instead of `Vcharacter_composition_table' to store
503         character-composition rules if external-DB feature is supported.
504         (syms_of_chartab): Add new symbol `composition'.
505         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
506         external-DB feature is supported.
507
508 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
509
510         * chartab.c (Vchar_db_stingy_mode): New variable.
511         (load_char_attribute_maybe): Close database if
512         Vchar_db_stingy_mode is not NIL.
513         (Fload_char_attribute_table_map_function): Use
514         `get_char_id_table_0' instead of `get_char_id_table'.
515         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
516
517         * chartab.h (get_char_id_table_0): New inline function.
518         (get_char_id_table): Use `get_char_id_table_0'.
519
520 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
521
522         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
523         and `COMPOSE_ADD_CHAR'.
524         (decode_coding_iso2022): Use `decode_flush_er_chars'.
525
526 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
527
528         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
529         instead of `DECODE_ADD_UCS_CHAR'.
530         (COMPOSE_ADD_CHAR): Likewise.
531
532 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
533
534         * text-coding.c (decode_flush_er_chars): New inline function.
535         (decode_add_er_char): New function.
536         (decode_coding_utf8): Use `decode_flush_er_chars' and
537         `decode_add_er_char'.
538
539 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
540
541         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
542         done before `decode_output_utf8_partial_char'.
543
544         * mule-charset.c (complex_vars_of_mule_charset): Specify
545         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
546         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
547
548 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
549
550         * mule-charset.c (decode_defined_char): New function; search
551         mother.
552         (decode_builtin_char): Don't search mother if
553         XCHARSET_MAX_CODE(charset) == 0.
554         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
555         == 0 even if code >= XCHARSET_MAX_CODE(charset).
556         (Fdecode_char): Use `decode_defined_char' instead of
557         `DECODE_DEFINED_CHAR'.
558         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
559         mother of `Vcharset_ucs_jis'.
560
561         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
562         instead of `DECODE_DEFINED_CHAR'.
563
564         * char-ucs.h (decode_defined_char): Renamed from
565         `DECODE_DEFINED_CHAR'; changed to normal function.
566         (DECODE_CHAR): Use `decode_defined_char' instead of
567         `DECODE_DEFINED_CHAR'.
568
569         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
570
571 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
572
573         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
574
575         * text-coding.c (Vcoded_charset_entity_reference_alist): New
576         variable.
577         (Quse_entity_reference): New variable.
578         (Qd): New variable.
579         (Qx): New variable.
580         (QX): New variable.
581         (coding_system_description): Add description for
582         `ccs_priority_list'.
583         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
584         (allocate_coding_system): Initialize `ccs_priority_list' in
585         UTF-2000.
586         (Fmake_coding_system): Add description about
587         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
588         (codesys).
589         (Fcoding_system_property): Accept `disable-composition' and
590         `use-entity-reference' in UTF-2000.
591         (struct decoding_stream): Add new member `er_counter' and `er_buf'
592         in UTF-2000.
593         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
594         (decode_coding_utf8): Decode entity-reference if
595         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
596         (char_encode_utf8): Encode non-Unicode characters as
597         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
598         (str->codesys).
599         (syms_of_file_coding): Add new symbols `use-entity-reference',
600         `d', `x', `X'.
601         (vars_of_file_coding): Add new variable
602         `coded-charset-entity-reference-alist'.
603         (complex_vars_of_file_coding): Declare `disable-composition' and
604         `use-entity-reference' to be coding-system-properties in UTF-2000.
605
606         * file-coding.h (struct Lisp_Coding_System): Add new member
607         `use_entity_reference' and `ccs_priority_list'.
608         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
609         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
610         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
611
612 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
613
614         * chartab.c (save_uint8_byte_table): Don't clear the table.
615         (save_uint16_byte_table): Likewise.
616         (save_byte_table): Likewise.
617         (Fmount_char_attribute_table): New function.
618         (syms_of_chartab): Add new builtin function
619         `mount-char-attribute-table'.
620
621 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
622
623         * mule-charset.c (Fsave_charset_mapping_table): Open database as
624         "w+" mode.
625         (load_char_decoding_entry_maybe): Open database as read-only mode.
626
627         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
628         open database as "w+" mode.
629         (load_char_attribute_maybe): Open database as read-only mode.
630         (Fload_char_attribute_table): Likewise.
631
632 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
633
634         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
635         (char_table_description): Delete member `db_file'.
636         (Fmake_char_table): Don't refer `ct->db_file'.
637         (Fcopy_char_table): Likewise.
638         (Fsave_char_attribute_table): Likewise.
639         (Fclose_char_attribute_table): Likewise.
640         (Freset_char_attribute_table): Likewise.
641         (load_char_attribute_maybe): Likewise.
642         (Fload_char_attribute_table): Likewise.
643
644         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
645
646 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
647
648         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
649         (Fsave_char_attribute_table): Don't check `ct->db_file' if
650         `ct->db' is living.
651         (load_char_attribute_maybe): Likewise.
652         (Fload_char_attribute_table): Likewise.
653
654 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
655
656         * chartab.c (Fclose_char_attribute_table): Set Qnil on
657         `ct->db_file' unconditionally.
658
659 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
660
661         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
662         UTF-2000.
663         (char_table_description): Add description for `db_file' and `db'
664         in UTF-2000.
665         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
666         UTF-2000.
667         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
668         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
669         (Fclose_char_attribute_table): New function.
670         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
671         (load_char_attribute_maybe): Change interface; use `cit->db_file'
672         and `cit->db'.
673         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
674         (syms_of_chartab): Add new builtin function
675         `Fclose_char_attribute_table'.
676
677 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
678
679         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
680         `db' in UTF-2000.
681         (load_char_attribute_maybe): Change interface.
682         (get_char_id_table): Modify for `load_char_attribute_maybe'.
683
684 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
685
686         * database.h: Add an EXFUN for `Fdatabase_live_p'.
687
688 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
689
690         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
691         instead of `DECODE_CHAR' for mother; don't use special code for
692         chinese-big5 to use code space of chinese-big5-1 and
693         chinese-big5-2.
694         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
695         `MAX_CHAR_BIG5_CDP' for chinese-big5.
696
697         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
698         (MAX_CHAR_BIG5_CDP): Revival.
699
700 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
701
702         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
703         the XLFD registry-encoding name of `chinese-big5'.
704
705 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
706
707         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
708         (Qchinese_big5_cdp): Deleted.
709         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
710         (complex_vars_of_mule_charset): Delete coded-charset
711         `chinese-big5-cdp'.
712
713         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
714         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
715         `CHARSET_ID_OFFSET - n' for private CCS.
716         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
717         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
718         of `MIN_LEADING_BYTE'.
719         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
720         `(CHARSET_ID_OFFSET - 97)'.
721         (MIN_CHAR_BIG5_CDP): Deleted.
722         (MAX_CHAR_BIG5_CDP): Deleted.
723
724 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
725
726         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
727
728 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
729
730         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
731         (vars_of_mule): Add new variable `utf-2000-version' [moved from
732         chartab.c].
733
734         * chartab.c (Vutf_2000_version): Moved to mule.c.
735         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
736
737 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
738
739         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
740         when HAVE_CHISE_CLIENT is not defined.
741
742         * mule.c (vars_of_mule): Provide feature `chise' when
743         HAVE_CHISE_CLIENT is defined.
744
745 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
746
747         * config.h.in (UTF2000): Add comment.
748         (HAVE_CHISE_CLIENT): New macro.
749
750 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
751
752         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
753         CONSP.
754         (Fput_char_attribute): Likewise.
755         (char_attribute_system_db_file): Encode file-name of attribute.
756         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
757         the initial value.
758
759 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
760
761         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
762         (Fsave_charset_mapping_table): Use
763         `char_attribute_system_db_file'.
764         (load_char_decoding_entry_maybe): Likewise.
765
766         * chartab.h (Qsystem_char_id): New external variable.
767         (char_attribute_system_db_file): New prototype.
768
769         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
770         (char_attribute_system_db_file): New function.
771         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
772         (Freset_char_attribute_table): Likewise.
773         (load_char_attribute_maybe): Likewise.
774         (Fload_char_attribute_table): Likewise.
775         (syms_of_chartab): Add new symbol `system-char-id'.
776
777 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
778
779         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
780         `XCHARSET_GRAPHIC(ccs)'.
781
782 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
783
784         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
785
786 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
787
788         * chartab.c (Q_ucs_variants): New variable.
789         (syms_of_chartab): Add new symbol `->ucs-variants'.
790         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
791         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
792         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
793
794         * mule-charset.c (load_char_decoding_entry_maybe): New function.
795
796         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
797         `HAVE_DATABASE' is defined.
798         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
799         `HAVE_DATABASE' is defined.
800
801 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
802
803         * chartab.c (Fsave_char_attribute_table): Don't clear internal
804         attribute-table.
805         (Freset_char_attribute_table): New function.
806         (syms_of_chartab): Add new builtin function
807         `reset-char-attribute-table'.
808
809 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
810
811         * chartab.c (load_char_attribute_maybe): Don't make directories.
812
813 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
814
815         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
816
817         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
818         for decoding-table.
819
820 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
821
822         * mule-charset.c (Fsave_charset_mapping_table): Use
823         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
824
825         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
826         instead of `XCHARSET_CHARS'.
827
828 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
829
830         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
831         (XCHARSET_BYTE_SIZE): Likewise.
832
833         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
834         mule-charset.c].
835         (XCHARSET_BYTE_SIZE): Likewise.
836
837 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
838
839         * chartab.c (Fput_char_attribute): Use exec-directory instead of
840         data-directory to store database.
841         (Fsave_char_attribute_table): Likewise.
842         (load_char_attribute_maybe): Likewise.
843         (Fload_char_attribute_table): Likewise.
844
845 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
846
847         * mule-charset.c (Fsave_charset_mapping_table): New function.
848         (syms_of_mule_charset): Add new builtin function
849         `save-charset-mapping-table'.
850
851 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
852
853         * char-ucs.h (decoding_table_check_elements): Delete prototype.
854         (get_ccs_octet_table): New inline function.
855         (put_ccs_octet_table): Likewise.
856         (decoding_table_put_char): Use `get_ccs_octet_table' and
857         `put_ccs_octet_table'.
858         (decoding_table_remove_char): Use `decoding_table_put_char'.
859         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
860
861         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
862         into encoding_table.
863         (make_charset): Use Qunbound instead Qnil as initial value of
864         decoding_table.
865
866 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
867
868         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
869         element is Qunloaded.
870         (map_over_uint16_byte_table): Likewise.
871         (map_over_byte_table): Likewise.
872         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
873         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
874         database support, load encoding-table of the specified
875         coded-charset if it is not loaded yet.
876         (save_uint8_byte_table): New function of UTF-2000 with external
877         database support.
878         (save_uint16_byte_table): Likewise.
879         (save_byte_table): Likewise.
880         (Fput_char_attribute): Don't store value into external database
881         even if the external database feature is supported in UTF-2000;
882         set `attribute' as name of char-table if the external database
883         feature is supported.
884         (Fsave_char_attribute_table): New function in UTF-2000.
885         (syms_of_chartab): Add new builtin function
886         `save-char-attribute-table' in UTF-2000.
887
888 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
889
890         * chartab.c (char_attribute_table_to_put): New variable in
891         UTF-2000.
892         (Qput_char_table_map_function): Likewise.
893         (value_to_put): Likewise.
894         (Fput_char_table_map_function): New function in UTF-2000.
895         (put_char_table): Use `Fmap_char_attribute' for
896         CHARTAB_RANGE_CHARSET in UTF-2000.
897         (Fput_char_attribute): Store symbol instead of string in
898         `XCHAR_TABLE_NAME (table)'.
899         (load_char_attribute_maybe): Likewise.
900         (syms_of_chartab): Add new symbol/function
901         `put-char-table-map-function'.
902
903 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
904
905         * database.h: Add new EXFUN for `Fmap_database'.
906
907         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
908         (syms_of_database): Likewise.
909
910         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
911         UTF-2000.
912         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
913         (XCHAR_TABLE_UNLOADED): Likewise.
914
915         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
916         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
917         HAVE_DATABASE is defined.
918         (char_attribute_table_to_load): New variable of UTF-2000 with
919         external database support.
920         (Qload_char_attribute_table_map_function): Likewise.
921         (Fload_char_attribute_table_map_function): New function of
922         UTF-2000 with external database support.
923         (Fload_char_attribute_table): New function of UTF-2000.
924         (Fmap_char_attribute): Call Fload_char_attribute_table if
925         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
926         (syms_of_chartab): Add new symbol and function
927         `load-char-attribute-table-map-function' in UTF-2000 with external
928         database support; add new function `load-char-attribute-table' in
929         UTF-2000.
930
931 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
932
933         * chartab.h (load_char_attribute_maybe): New prototype for
934         UTF-2000 with DATABASE support.
935         (get_char_id_table): Use `load_char_attribute_maybe' if
936         HAVE_DATABASE is defined.
937
938         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
939         with DATABASE support.
940
941 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
942
943         * chartab.c (Fput_char_attribute): Use S-expression as key of
944         external database.
945
946         * chartab.h (get_char_id_table): Use S-expression as key of
947         external database.
948
949 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
950
951         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
952         if an element is not loaded, load the corresponding attributes
953         from an external database.
954         (map_over_uint16_byte_table): Likewise.
955         (map_over_byte_table): Likewise.
956         (map_char_table): Modify for `map_over_uint8_byte_table',
957         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
958         element is not loaded, load the corresponding attributes from an
959         external database.
960         (Fput_char_attribute): Change initial values to Qunloaded.
961
962         * chartab.h (get_char_id_table): If a character attribute is not
963         loaded and the attribute value is not found in an external
964         database, store Qunbound as the attribute value.
965
966 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
967
968         * chartab.c (BT_UINT8_unloaded): New macro.
969         (UINT8_VALUE_P): Accept Qunloaded.
970         (UINT8_ENCODE): Likewise.
971         (UINT8_DECODE): Likewise.
972         (BT_UINT16_unloaded): New macro.
973         (UINT16_VALUE_P): Accept Qunloaded.
974         (UINT16_ENCODE): Likewise.
975         (UINT16_DECODE): Likewise.
976         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
977         BT_UINT16_unloaded.
978         (mark_char_table): Mark `ct->name' in UTF-2000.
979         (char_table_description): Add `name' in UTF-2000.
980         (Fmake_char_table): Initialize `ct->name'.
981         (Fcopy_char_table): Copy `ct->name'.
982         (Fput_char_attribute): Store value into an external database if
983         HAVE_DATABASE is defined.
984
985         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
986         UTF-2000.
987         (CHAR_TABLE_NAME): New macro in UTF-2000.
988         (XCHAR_TABLE_NAME): New macro in UTF-2000.
989         (get_char_id_table): Try to read an external database if Qunloaded
990         is stored in a table.
991
992         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
993         Qunloaded.
994
995 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
996
997         * database.h: Add EXFUN definitions for Fopen_database,
998         Fput_database, Fget_database and Fclose_database.
999
1000         * data.c (Qunloaded): New variable in UTF-2000.
1001
1002         * lisp.h (Qunloaded): New variable in UTF-2000.
1003
1004 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1005
1006         * mule-charset.c (put_char_ccs_code_point): Modify for
1007         `decoding_table_remove_char' and `decoding_table_put_char'.
1008         (remove_char_ccs): Modify for `decoding_table_remove_char'.
1009
1010         * char-ucs.h (decoding_table_remove_char): Change arguments to
1011         hide decoding_table vector.
1012         (decoding_table_put_char): Likewise.
1013
1014 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1015
1016         * mule-charset.c (decoding_table_remove_char): Moved to
1017         char-ucs.h.
1018         (decoding_table_put_char): Likewise.
1019
1020         * char-ucs.h (decoding_table_check_elements): New prototype [moved
1021         from mule-charset.c].
1022         (decoding_table_remove_char): New inline function [moved from
1023         mule-charset.c].
1024         (decoding_table_put_char): Likewise.
1025
1026 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1027
1028         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
1029         extension.
1030
1031 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1032
1033         * mule-charset.c (decode_builtin_char): Support mother charsets.
1034
1035 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1036
1037         * mule-charset.c (Q94x94x60): New variable.
1038         (charset_code_point): Support conversion `94x94x60'.
1039         (Fmake_charset): Likewise.
1040         (syms_of_mule_charset): Add new symbol `94x94x60'.
1041
1042         * char-ucs.h (CONVERSION_94x94x60): New macro.
1043
1044 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1045
1046         * mule-charset.c (charset_code_point): Unify code about
1047         `code-offset'.
1048
1049 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1050
1051         * mule-charset.c (charset_code_point): Merge code about builtin
1052         characters into code about mother charsets; don't use
1053         `range_charset_code_point'.
1054         (range_charset_code_point): Deleted.
1055
1056 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1057
1058         * mule-charset.c (Qcode_offset): New variable.
1059         (Fmake_charset): Use `XUINT' to get value of `min-code' and
1060         `max-code'; accept new property `code-offset'.
1061         (syms_of_mule_charset): Add new symbol `code-offset'.
1062
1063 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1064
1065         * mule-charset.c (range_charset_code_point): Fixed.
1066
1067 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1068
1069         * mule-charset.c (decode_builtin_char): Change semantics of
1070         code-offset of coded-charset.
1071         (charset_code_point): Likewise.
1072         (range_charset_code_point): Likewise.
1073         (complex_vars_of_mule_charset): Modify for the change.
1074
1075 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1076
1077         * mule-charset.c (Fencode_char): Reverse arguments.
1078
1079         * mule-charset.c (charset_code_point): Fixed.
1080
1081 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1082
1083         * mule-charset.c (Vcharset_mojikyo): Deleted.
1084         (Vcharset_mojikyo_2022_1): Deleted.
1085         (Vcharset_mojikyo_pj_{1..21}): Deleted.
1086         (Qmin_code): New variable in UTF-2000.
1087         (Qmax_code): Likewise.
1088         (Qmother): Likewise.
1089         (Qconversion): Likewise.
1090         (Q94x60): Likewise.
1091         (Qmojikyo): Deleted.
1092         (Qmojikyo_2022_1): Deleted.
1093         (Qmojikyo_pj_{1..22}): Deleted.
1094         (mark_charset): Mark `cs->mother'.
1095         (charset_description): Add description for `mother'.
1096         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
1097         new arguments `mother' and `conversion'; use
1098         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
1099         (charset_code_point): Moved from char-ucs.h; support `mother'
1100         charset feature.
1101         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
1102         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
1103         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
1104         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
1105         allow 2 as the value of `graphic' in UTF-2000; add new properties
1106         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
1107         require `final' in UTF-2000; modify for `make_charset'.
1108         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
1109         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
1110         (Fcharset_property): Support `mother', `min-code' and `max-code'.
1111         (Fencode_char): New function.
1112         (syms_of_mule_charset): Add new builtin function `encode-char' in
1113         UTF-2000; add new symbols `min-code', `max-code', `mother',
1114         `conversion' and `94x60'; delete symbols `mojikyo',
1115         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
1116         (complex_vars_of_mule_charset): Modify for `make_charset' change;
1117         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
1118         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
1119
1120         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
1121         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
1122
1123         * char-ucs.h (Vcharset_mojikyo): Deleted.
1124         (Vcharset_mojikyo_2022_1): Deleted.
1125         (LEADING_BYTE_MOJIKYO): Deleted.
1126         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
1127         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
1128         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
1129         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
1130         add new member `mother'; add new member `conversion'.
1131         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
1132         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
1133         (CHARSET_MOTHER): New macro.
1134         (CHARSET_CONVERSION): New macro.
1135         (CONVERSION_IDENTICAL): New macro.
1136         (CONVERSION_94x60): New macro.
1137         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
1138         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
1139         (XCHARSET_MOTHER): New macro.
1140         (XCHARSET_CONVERSION): New macro.
1141         (MIN_CHAR_MOJIKYO): Deleted.
1142         (MAX_CHAR_MOJIKYO): Deleted.
1143         (DECODE_MOJIKYO_2022): Deleted.
1144         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
1145         (charset_code_point): Changed to non-inline function.
1146         (encode_char_1): Use `charset_code_point'.
1147         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
1148
1149 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1150
1151         * lread.c (read_compiled_function): Fix prototype.
1152         (read_vector): Likewise.
1153
1154 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1155
1156         * lrecord.h (struct lrecord_header): Delete `older'.
1157         (set_lheader_implementation): Delete code for `older'.
1158         (set_lheader_older_implementation): Deleted.
1159         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
1160         (OLDER_RECORD_P): Deleted.
1161         (OLDER_RECORD_HEADER_P): Deleted.
1162         (alloc_older_lcrecord): Deleted.
1163         (alloc_older_lcrecord_type): Deleted.
1164
1165         * alloc.c (all_older_lcrecords): Deleted.
1166         (alloc_older_lcrecord): Deleted.
1167         (disksave_object_finalization_1): Delete code for older objects.
1168         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
1169         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
1170
1171 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1172
1173         * mule-charset.c (decoding_table_put_char): Use `make_vector'
1174         instead of `make_older_vector'.
1175         (put_char_ccs_code_point): Likewise.
1176         (mark_charset): Mark `cs->decoding_table'.
1177         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
1178
1179         * lisp.h (make_older_vector): Deleted.
1180         (make_vector_newer): Deleted.
1181
1182         * config.h.in (HAVE_GGC): Deleted.
1183
1184         * alloc.c (make_older_vector): Deleted.
1185         (make_vector_newer_1): Deleted.
1186         (make_vector_newer): Deleted.
1187
1188 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1189
1190         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
1191         (Qideograph_daikanwa_2): New variable.
1192         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
1193         (complex_vars_of_mule_charset): Add new coded-charset
1194         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
1195         `LEADING_BYTE_DAIKANWA'.
1196
1197         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
1198         (LEADING_BYTE_DAIKANWA_1): New macro.
1199         (LEADING_BYTE_DAIKANWA_2): New macro.
1200         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
1201
1202 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1203
1204         * mule-charset.c (complex_vars_of_mule_charset): Change
1205         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
1206         the second revised version.
1207
1208 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1209
1210         * mule-charset.c (Vcharset_ucs_smp): New variable.
1211         (Vcharset_ucs_sip): New variable.
1212         (Qucs_smp): New variable.
1213         (Qucs_sip): New variable.
1214         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
1215         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
1216         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
1217         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
1218         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
1219         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
1220
1221         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
1222         (LEADING_BYTE_UCS_SIP): New macro.
1223         (MIN_CHAR_SMP): New macro.
1224         (MAX_CHAR_SMP): New macro.
1225         (MIN_CHAR_SIP): New macro.
1226         (MAX_CHAR_SIP): New macro.
1227
1228 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
1229
1230         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
1231         utf-2000.
1232
1233 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1234
1235         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
1236         value; don't store value into `encoding_table' of `Lisp_Charset'.
1237         (mark_charset): `encoding_table' was deleted.
1238         (charset_description): Likewise.
1239         (make_charset): Likewise.
1240         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
1241         `put_char_ccs_code_point'.
1242
1243         * chartab.h (Fput_char_attribute): New EXFUN.
1244
1245         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
1246         is unified with normal symbol space.
1247         (Fget_char_attribute): Likewise.
1248         (Fput_char_attribute): Likewise; behavior of
1249         `put_char_ccs_code_point' is changed.
1250
1251         * char-ucs.h: Include "elhash.h".
1252         (Vchar_attribute_hash_table): New external variable.
1253         (struct Lisp_Charset): Delete `encoding_table'.
1254         (CHARSET_ENCODING_TABLE): New implementation; refer
1255         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
1256         `Lisp_Charset'.
1257
1258 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1259
1260         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
1261         (cs) == 0.
1262
1263 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1264
1265         * text-coding.c (char_encode_big5): Prefer charset-g1 than
1266         `chinese-big5'.
1267
1268 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1269
1270         * chartab.c (uint8_byte_table_description): New constant.
1271         (uint8-byte-table): Use `uint8_byte_table_description'.
1272         (uint16_byte_table_description): New constant.
1273         (uint16-byte-table): Use `uint16_byte_table_description'.
1274
1275 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1276
1277         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
1278         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
1279
1280 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1281
1282         * mule-charset.c (Vcharset_ucs_ks): New variable.
1283         (Qucs_ks): New variable.
1284         (syms_of_mule_charset): Add new symbol `ucs-ks'.
1285         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
1286
1287         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
1288
1289 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1290
1291         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
1292         (Fdecode_char): Likewise.
1293
1294         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
1295         chartab.h.
1296         (Fdefine_char): Modify for Fdecode_char.
1297         (Ffind_char): Likewise.
1298
1299         * mule-charset.c (Fdecode_char): Add new optional argument
1300         `defined-only'.
1301         (Fdecode_builtin_char): Modify for `Fdecode_char'.
1302
1303 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1304
1305         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
1306         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
1307         (allocate_coding_system): Initialize initial-charsets of
1308         CODESYS_BIG5 in XEmacs UTF-2000.
1309         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
1310         CODESYS_BIG5 in XEmacs UTF-2000.
1311         (decode_coding_big5): Use initial-charset-g0 and -g1 of
1312         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
1313
1314         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
1315         variables.
1316         (Qideograph_hanziku_{1 .. 12}): Likewise.
1317         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
1318         .. 12}'.
1319         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
1320         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
1321         `ideograph-hanziku-{1 .. 12}'.
1322
1323         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
1324         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
1325         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
1326         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
1327         (DECODE_DEFINED_CHAR): New inline function.
1328         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
1329
1330 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1331
1332         * mule-charset.c (Vcharset_china3_jef): Renamed from
1333         `Vcharset_japanese_jef_china3'.
1334         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
1335         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
1336         `{MIN|MAX}_CHAR_JEF_CHINA3'..
1337         (syms_of_mule_charset): Rename `china3-jef' from
1338         `japanese-jef-china3'.
1339         (complex_vars_of_mule_charset): Likewise; rename
1340         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
1341
1342         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
1343         `LEADING_BYTE_JEF_CHINA3'.
1344         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
1345         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
1346
1347 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1348
1349         * mule-charset.c (encode_builtin_char_1): Comment out special code
1350         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
1351
1352         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
1353         (MAX_CHAR_MOJIKYO_0): Comment out.
1354         (MIN_CHAR_CBETA): Changed to 0x00E20000.
1355         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
1356         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
1357         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
1358
1359 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1360
1361         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
1362         (Qideograph_cbeta): New variable.
1363         (encode_builtin_char_1): Comment out special code for
1364         coded-charset `mojikyo' and `japanese-jef-china3'.
1365         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
1366         (complex_vars_of_mule_charset): Add new coded-charset
1367         `ideograph-cbeta'.
1368
1369         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
1370         (MIN_CHAR_CBETA): New macro.
1371         (MAX_CHAR_CBETA): New macro.
1372
1373 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1374
1375         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
1376         (LEADING_BYTE_JEF_CHINA3): New macro.
1377         (MIN_CHAR_JEF_CHINA3): New macro.
1378         (MAX_CHAR_JEF_CHINA3): Likewise.
1379         (DECODE_CHAR): Fixed.
1380
1381 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1382
1383         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
1384         (Qjapanese_jef_china3): New variable.
1385         (encode_builtin_char_1): Support `japanese-jef-china3'.
1386         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
1387         (complex_vars_of_mule_charset): Add new coded-charset
1388         `japanese-jef-china3'.
1389
1390 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1391
1392         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
1393         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
1394         94^4, 96^3, 96^4, 128^n and 256^n set.
1395         (put_char_table): Use `XCHARSET_CELL_RANGE'.
1396         (map_char_table): Likewise.
1397
1398 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1399
1400         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
1401         UTF-2000.
1402
1403 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1404
1405         * chartab.h (get_char_id_table): New inline function.
1406
1407         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
1408         function.
1409
1410 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1411
1412         * chartab.h (decode_char_table_range): New prototype in XEmacs
1413         UTF-2000.
1414         (put_char_id_table): New inline function in XEmacs UTF-2000.
1415
1416         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
1417         function.
1418         (decode_char_table_range): Delete static declaration in XEmacs
1419         UTF-2000.
1420
1421 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1422
1423         * chartab.c (put_char_id_table): Use `put_char_table'.
1424
1425 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1426
1427         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
1428         (map_over_uint16_byte_table): Likewise.
1429         (map_over_byte_table): Likewise.
1430         (map_char_table): Modify for `map_over_uint8_byte_table',
1431         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
1432         UTF-2000.
1433
1434 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1435
1436         * chartab.c (struct map_char_table_for_charset_arg): New
1437         structure.
1438         (map_char_table_for_charset_fun): New function.
1439         (map_char_table): Use `map_char_table' for encoding_table of
1440         `range->charset'.
1441
1442 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1443
1444         * chartab.c (map_char_table): Check a character is found in
1445         range->charset instead of non default value is defined in
1446         char-table when range is CHARTAB_RANGE_ROW.
1447
1448 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1449
1450         * chartab.c (map_char_id_table): Deleted.
1451         (Fmap_char_attribute): Use `map_char_table' instead of
1452         `map_char_id_table'.
1453
1454 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1455
1456         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
1457         UTF-2000.
1458         (update_syntax_table): Deleted in XEmacs UTF-2000.
1459
1460         * syntax.c (find_defun_start): Use `syntax_table' instead of
1461         `mirror_syntax_table' in XEmacs UTF-2000.
1462         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
1463         UTF-2000.
1464         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
1465         XEmacs UTF-2000.
1466         (Fmatching_paren): Likewise.
1467         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
1468         in XEmacs UTF-2000.
1469         (find_start_of_comment): Likewise.
1470         (find_end_of_comment): Likewise.
1471         (Fforward_comment): Likewise.
1472         (scan_lists): Likewise.
1473         (char_quoted): Likewise.
1474         (Fbackward_prefix_chars): Likewise.
1475         (scan_sexps_forward): Likewise.
1476         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
1477         (update_syntax_table): Likewise.
1478
1479         * search.c (skip_chars): Use `syntax_table' instead of
1480         `mirror_syntax_table' in XEmacs UTF-2000.
1481         (wordify): Likewise.
1482         (Freplace_match): Likewise.
1483
1484         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
1485         `mirror_syntax_table' in XEmacs UTF-2000.
1486         (WORDCHAR_P_UNSAFE): Likewise.
1487         (re_match_2_internal): Likewise.
1488
1489         * font-lock.c (find_context): Use `buf->syntax_table' instead of
1490         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1491
1492         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
1493         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
1494
1495         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
1496         XEmacs UTF-2000.
1497
1498         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
1499         UTF-2000.
1500         (print_char_table): Print `default_value' in XEmacs UTF-2000.
1501         (char_table_description): Delete `mirror_table' in XEmacs
1502         UTF-2000.
1503         (fill_char_table): Don't call `update_syntax_table' in XEmacs
1504         UTF-2000.
1505         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
1506         (Fcopy_char_table): Likewise.
1507         (put_char_table): Don't call `update_syntax_table' in XEmacs
1508         UTF-2000.
1509
1510         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
1511         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1512         (casify_region_internal): Likewise.
1513
1514         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
1515
1516         * buffer.c (common_init_complex_vars_of_buffer): Don't use
1517         `mirror_syntax_table' in XEmacs UTF-2000.
1518
1519         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
1520         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1521         (Fexpand_abbrev): Likewise.
1522
1523 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1524
1525         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
1526
1527 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1528
1529         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
1530         (map_over_uint16_byte_table): Likewise.
1531         (map_over_byte_table): Likewise.
1532         (get_char_id_table): Refer `cit->default_value'.
1533         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1534         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
1535         of character-id ranges.
1536         (mark_char_table): Mark `ct->default_value'.
1537         (char_table_description): Add `default_value'.
1538         (fill_char_table): Use `default_value'.
1539         (decode_char_table_range): Decode `nil' as
1540         `CHARTAB_RANGE_DEFAULT'.
1541         (get_char_id_table): Refer `cit->default_value'.
1542         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1543         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
1544         temporary hack; check value of char-table is bound or not.
1545         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
1546
1547         * chartab.h (struct Lisp_Char_Table): Add new member
1548         `default_value' in XEmacs UTF-2000.
1549         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
1550         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
1551         UTF-2000.
1552
1553 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1554
1555         * chartab.h (Lisp_Char_ID_Table): Deleted.
1556
1557         * chartab.c (char_table_description): Fix typo.
1558         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
1559         `Lisp_Char_ID_Table'.
1560
1561 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1562
1563         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
1564         `CHAR_ID_TABLE_P'.
1565
1566         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
1567         `CHAR_ID_TABLE_P'.
1568
1569         * chartab.h (XCHAR_ID_TABLE): Deleted.
1570         (XSETCHAR_ID_TABLE): Deleted.
1571         (CHAR_ID_TABLE_P): Deleted.
1572
1573         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
1574         `CHAR_ID_TABLE_P'.
1575         (Fget_composite_char): Likewise.
1576         (put_char_table): Likewise.
1577         (add_char_attribute_alist_mapper): Fixed.
1578         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
1579         `CHAR_ID_TABLE_P'.
1580         (Fget_char_attribute): Likewise.
1581         (Fget_char_attribute): Likewise.
1582         (Fmap_char_attribute): Likewise.
1583
1584         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
1585         `CHAR_ID_TABLE_P'.
1586         (encode_char_1): Likewise.
1587
1588 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1589
1590         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
1591         `XCHAR_ID_TABLE'.
1592
1593         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
1594         instead of `XCHAR_ID_TABLE'.
1595         (remove_char_ccs): Likewise.
1596
1597         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
1598         `XCHAR_ID_TABLE'.
1599         (Fget_composite_char): Likewise.
1600         (Fchar_variants): Likewise.
1601         (put_char_table): Likewise.
1602         (add_char_attribute_alist_mapper): Likewise.
1603         (Fchar_attribute_alist): Likewise.
1604         (Fget_char_attribute): Likewise.
1605         (Fput_char_attribute): Likewise.
1606         (Fmap_char_attribute): Likewise.
1607         (Fmap_char_attribute): Likewise.
1608
1609         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
1610         `XCHAR_ID_TABLE'.
1611         (encode_char_1): Likewise.
1612
1613 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1614
1615         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
1616         `Lisp_Char_ID_Table'.
1617         (mark_char_id_table): Deleted.
1618         (print_char_id_table): Likewise.
1619         (char_id_table_equal): Likewise.
1620         (char_id_table_hash): Likewise.
1621         (char_id_table_description): Likewise.
1622         (char_id_table): Likewise.
1623         (make_char_id_table): Use `Fmake_char_table' and
1624         `fill_char_table'.
1625         (get_char_id_table): Use `Lisp_Char_Table' instead of
1626         `Lisp_Char_ID_Table'.
1627         (put_char_id_table): Likewise.
1628         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
1629         `XCHAR_ID_TABLE'.
1630         (Fremove_char_attribute): Likewise.
1631         (syms_of_chartab): Don't define type `char-id-table'.
1632
1633         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
1634         (char_id_table): Likewise.
1635         (GC_CHAR_ID_TABLE_P): Likewise.
1636         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
1637         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
1638         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
1639         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
1640         (get_char_id_table): Use `Lisp_Char_Table' instead of
1641         `Lisp_Char_ID_Table'.
1642         (put_char_id_table_0): Likewise.
1643         (put_char_id_table): Likewise.
1644
1645 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1646
1647         * chartab.h: Lisp_Byte_Table related codes are moved from
1648         chartab.h.
1649
1650         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
1651
1652 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1653
1654         * chartab.h: Don't include "chartab.h".
1655         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
1656         (Lisp_Char_ID_Table): Likewise.
1657         (char_id_table): Likewise.
1658         (XCHAR_ID_TABLE): Likewise.
1659         (XSETCHAR_ID_TABLE): Likewise.
1660         (CHAR_ID_TABLE_P): Likewise.
1661         (GC_CHAR_ID_TABLE_P): Likewise.
1662         (get_char_id_table): Likewise.
1663
1664         * char-ucs.h: Include "chartab.h".
1665         (struct Lisp_Char_ID_Table): Moved to chartab.h.
1666         (Lisp_Char_ID_Table): Likewise.
1667         (char_id_table): Likewise.
1668         (XCHAR_ID_TABLE): Likewise.
1669         (XSETCHAR_ID_TABLE): Likewise.
1670         (CHAR_ID_TABLE_P): Likewise.
1671         (GC_CHAR_ID_TABLE_P): Likewise.
1672         (get_char_id_table): Likewise.
1673
1674 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1675
1676         * chartab.c (copy_uint8_byte_table): New function.
1677         (copy_uint16_byte_table): New function.
1678         (copy_byte_table): New function.
1679         (map_over_uint8_byte_table): Modify to avoid huge numbers of
1680         characters to call.
1681         (map_over_uint16_byte_table): Likewise.
1682         (map_over_byte_table): Likewise.
1683         (get_byte_table): Move prototype to chartab.h.
1684         (put_byte_table): Likewise.
1685         (put_char_id_table_0): Moved to chartab.h.
1686         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
1687         (char_table_entry_equal): Likewise.
1688         (char_table_entry_hash): Likewise.
1689         (char_table_entry_description): Likewise.
1690         (char_table_entry): Likewise.
1691         (make_char_table_entry): Likewise.
1692         (copy_char_table_entry): Likewise.
1693         (get_non_ascii_char_table_value): Likewise.
1694         (map_over_charset_ascii): Likewise.
1695         (map_over_charset_control_1): Likewise.
1696         (map_over_charset_row): Likewise.
1697         (map_over_other_charset): Likewise.
1698         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
1699         (print_char_table): Likewise.
1700         (char_table_equal): Likewise.
1701         (char_table_hash): Likewise.
1702         (char_table_description): Likewise.
1703         (fill_char_table): Likewise.
1704         (Fcopy_char_table): Likewise.
1705         (get_char_table): Likewise.
1706         (Fget_range_char_table): Likewise.
1707         (put_char_table): Likewise.
1708         (map_char_table): Likewise.
1709         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
1710         UTF-2000.
1711
1712 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1713
1714         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
1715         `Vauto_fill_chars' in XEmacs UTF-2000.
1716
1717         * chartab.h (get_byte_table): New prototype [moved from
1718         chartab.c].
1719         (put_byte_table): Likewise [moved from chartab.c].
1720         (put_char_id_table_0): New inline function [moved from chartab.c].
1721         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
1722         (Lisp_Char_Table_Entry): Likewise.
1723         (char_table_entry): Likewise.
1724         (XCHAR_TABLE_ENTRY): Likewise.
1725         (XSETCHAR_TABLE_ENTRY): Likewise.
1726         (CHAR_TABLE_ENTRYP): Likewise.
1727         (CHECK_CHAR_TABLE_ENTRY): Likewise.
1728         (NUM_ASCII_CHARS): Likewise.
1729         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
1730         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
1731
1732 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1733
1734         * chartab.c (get_char_id_table): Change interface.
1735         (put_char_id_table_0): New function.
1736         (put_char_id_table): Change interface; new implementation.
1737         (Fget_composite_char): Modify for interface change of
1738         `get_char_id_table'.
1739         (Fchar_variants): Likewise.
1740         (add_char_attribute_alist_mapper): Likewise.
1741         (Fchar_attribute_alist): Likewise.
1742         (Fget_char_attribute): Likewise.
1743         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
1744         as same as character as the first argument like `put-char-table';
1745         modify for interface change of `put_char_id_table'.
1746         (Fremove_char_attribute): Modify for interface change of
1747         `put_char_id_table'.
1748
1749 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1750
1751         * text-coding.c: Sync up with XEmacs 21.2.41.
1752         (COMPOSE_ADD_CHAR): Modify for interface change of
1753         `get_char_id_table'.
1754
1755         * mule-charset.c (put_char_ccs_code_point): Modify for interface
1756         change of `put_char_id_table'.
1757         (remove_char_ccs): Likewise.
1758
1759         * chartab.h (put_char_id_table): Change interface.
1760
1761         * char-ucs.h (get_char_id_table): Change interface.
1762         (charset_code_point): Modify for interface change of
1763         `get_char_id_table'.
1764         (encode_char_1): Likewise.
1765
1766 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1767
1768         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
1769         argument `ccs'.
1770         (map_over_uint16_byte_table): Likewise.
1771         (map_over_byte_table): Likewise.
1772         (map_char_id_table): Add new argument `range' like
1773         `map_char_table'.
1774         (Fmap_char_attribute): Add new argument `range' like
1775         `Fmap_char_table'.
1776
1777 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1778
1779         * chartab.c (map_over_uint8_byte_table): Change interface of
1780         mapping function to use struct chartab_range instead of Emchar.
1781         (map_over_uint16_byte_table): Likewise.
1782         (map_over_byte_table): Likewise.
1783         (map_char_id_table): Likewise.
1784         (struct slow_map_char_id_table_arg): Deleted.
1785         (slow_map_char_id_table_fun): Deleted.
1786         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
1787         function `slow_map_char_table_fun' instead of struct
1788         `slow_map_char_id_table_arg' and function
1789         `slow_map_char_id_table_fun'.
1790
1791 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1792
1793         * mule-charset.c: Move char-it-table related codes to chartab.c.
1794         (Vutf_2000_version): Moved to chartab.c.
1795         (Fdefine_char): Likewise.
1796         (Ffind_char): Likewise.
1797         (syms_of_mule_charset): Move types `uint8-byte-table',
1798         `uint16-byte-table', `byte-table' and `char-id-table' to
1799         chartab.c; move functions `char_attribute_list,
1800         `find_char_attribute_table, `char_attribute_alist,
1801         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
1802         `map_char_attribute, `define_char, `find_char, `char_variants and
1803         `get_composite_char to chartab.c; move symbols `=>ucs',
1804         `->decomposition', `compat', `isolated', `initial', `medial',
1805         `final', `vertical', `noBreak', `fraction', `super', `sub',
1806         `circle', `square', `wide', `narrow', `small' and `font' to
1807         chartab.c.
1808         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
1809         setting codes for `Vcharacter_composition_table' and
1810         `Vcharacter_variant_table' to chartab.c.
1811         (complex_vars_of_mule_charset): Move setting code for
1812         `Vchar_attribute_hash_table' to chartab.c.
1813
1814         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
1815         (make_char_id_table): New prototype.
1816         (put_char_id_table): Likewise.
1817         (Fget_char_attribute): Likewise.
1818
1819         * chartab.c: Move char-id-table related code from mule-charset.c.
1820         (Vutf_2000_version): Moved from mule-charset.c.
1821
1822         * char-ucs.h (Qucs): New external variable.
1823         (put_char_ccs_code_point): New prototype.
1824         (remove_char_ccs): Likewise.
1825
1826 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1827
1828         * mule-charset.c (Vcharset_ucs_jis): New variable.
1829         (Qucs_jis): Likewise.
1830         (syms_of_mule_charset): Add new symbol `ucs-jis'.
1831         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
1832
1833         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
1834
1835 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1836
1837         * mule-charset.c (map_over_uint8_byte_table): New function.
1838         (map_over_uint16_byte_table): Likewise.
1839         (map_over_byte_table): Likewise.
1840         (map_char_id_table): Likewise.
1841         (slow_map_char_id_table_fun): Likewise.
1842         (Fmap_char_attribute): Likewise.
1843         (syms_of_mule_charset): Add new function `map-char-attribute'.
1844
1845 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1846
1847         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
1848         (syms_of_mule_charset): Add new function `find-char'.
1849
1850 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1851
1852         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
1853         XEmacs UTF-2000.
1854         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
1855         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
1856         XEmacs UTF-2000.
1857         (complex_vars_of_mule_charset): Add new coded-charset
1858         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
1859         `ideograph-gt-pj-*'.
1860
1861         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
1862
1863 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1864
1865         * mule-charset.c (encode_builtin_char_1): Purge codes about
1866         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
1867         {MIN|MAX}_CHAR_HEBREW.
1868         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
1869         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
1870
1871         * char-ucs.h (MIN_CHAR_GREEK): Purged.
1872         (MAX_CHAR_GREEK): Purged.
1873         (MIN_CHAR_CYRILLIC): Purged.
1874         (MAX_CHAR_CYRILLIC): Purged.
1875         (MIN_CHAR_HEBREW): Commented out.
1876         (MAX_CHAR_HEBREW): Likewise.
1877
1878 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1879
1880         * mule-charset.c (Qto_ucs): New variable.
1881         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
1882         (Fdefine_char): Likewise.
1883         (syms_of_mule_charset): Add new symbol `=>ucs'.
1884
1885 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1886
1887         * mule-charset.c (Fdecode_char): Fixed.
1888
1889 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1890
1891         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
1892         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
1893         "tcvn5712-1".
1894
1895 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1896
1897         * mule-charset.c (Vcharset_ucs_big5): New variable.
1898         (Qucs_big5): Likewise.
1899         (syms_of_mule_charset): Add new symbol `ucs-big5'.
1900         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
1901
1902         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
1903
1904 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1905
1906         * mule-charset.c (decode_builtin_char): Check Big5 code range
1907         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
1908
1909 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1910
1911         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
1912         (Qchinese_gb12345): Likewise.
1913         (Fdecode_builtin_char): Fixed.
1914         (syms_of_mule_charset): Add `chinese-gb12345'.
1915         (complex_vars_of_mule_charset): Add coded-charset
1916         `chinese-gb12345'.
1917
1918         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
1919         (LEADING_BYTE_CHINESE_GB12345): New macro.
1920
1921 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1922
1923         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
1924         and `latin-viscii-upper' for `latin-viscii'.
1925
1926 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1927
1928         * mule-charset.c (Fdecode_builtin_char): Comment out
1929         regularization code for ISO-IR GR representation.
1930
1931 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1932
1933         * mule-charset.c (decode_builtin_char): New function; renamed from
1934         `make_builtin_char'; return -1 instead of signal.
1935         (Fdecode_builtin_char): Use `decode_builtin_char'.
1936
1937         * char-ucs.h (decode_builtin_char): New prototype; renamed from
1938         `make_builtin_char'.
1939         (DECODE_CHAR): Use `decode_builtin_char' instead of
1940         `make_builtin_char'; use mapping table of `chinese-big5' for
1941         `chinese-big5-{1,2}'.
1942
1943 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1944
1945         * text-coding.c (char_encode_big5): New function.
1946         (char_finish_big5): Likewise.
1947         (reset_encoding_stream): Use `char_encode_big5' and
1948         `char_finish_big5' for CODESYS_BIG5.
1949         (mule_encode): Don't use `encode_coding_big5'.
1950         (encode_coding_big5): Deleted.
1951
1952 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1953
1954         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
1955         0x81- in XEmacs UTF-2000.
1956         (detect_coding_big5): Likewise.
1957
1958 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1959
1960         * mule-charset.c (Fdefine_char): Don't use a CCS property to
1961         generate character-id if the CCS property does not have
1962         corresponding predefined character.
1963         (make_builtin_char): Return -1 if corresponding predefined
1964         character is not found.
1965         (Fdecode_char): Return nil if corresponding character is not
1966         found.
1967         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
1968         don't map to builtin ucs space.
1969
1970 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1971
1972         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
1973         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
1974
1975 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1976
1977         * mule-charset.c (Vcharset_ideograph_gt): New variable.
1978         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
1979         (Qideograph_gt): Likewise.
1980         (Qideograph_gt_pj_{1..11}): Likewise.
1981         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
1982         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
1983         `ideograph-gt-pj-11'.
1984         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
1985         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
1986         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
1987
1988         * char-ucs.h (LEADING_BYTE_GT): New macro.
1989         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
1990         (MIN_CHAR_GT): Likewise.
1991         (MAX_CHAR_GT): Likewise.
1992
1993 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1994
1995         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
1996         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
1997
1998         * doprnt.c (unsigned_int_converters): Add `c'.
1999         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
2000
2001         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
2002         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
2003         `MIN_CHAR_MOJIKYO'.
2004         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
2005         (MAX_CHAR_MOJIKYO_0): New macro.
2006         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
2007
2008 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2009
2010         * mule-charset.c (Fdefine_char): Delete cemented out code.
2011         (encode_builtin_char_1): Modify for new allocation of builtin
2012         Mojikyo characters.
2013
2014         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
2015
2016 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2017
2018         * mule-charset.c (Vcharset_ucs_cns): New variable.
2019         (Qucs_cns): New variable.
2020         (syms_of_mule_charset): Add new symbol `ucs-cns'.
2021         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
2022
2023 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2024
2025         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
2026
2027 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2028
2029         * search.c (search_buffer): Make `charset_base_code' as
2030         character-id >> 6 to eliminate the corresponding last byte in
2031         UTF-8 representation [I'm not sure it is right thing].
2032         (boyer_moore): Likewise.
2033
2034 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2035
2036         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
2037         representation in MULE.
2038
2039 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2040
2041         * text-coding.c (Fmake_coding_system): Use
2042         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
2043         `EXTERNAL_PROPERTY_LIST_LOOP'.
2044
2045 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2046
2047         * text-coding.c (decode_output_utf8_partial_char): New function.
2048         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
2049
2050 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2051
2052         * text-coding.c (decode_coding_utf8): Output original byte
2053         sequence if it is broken; change order of conditions.
2054
2055         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
2056         of conditions.
2057
2058         * mb-multibyte.h (BYTE_ASCII_P):
2059         Use bit ops for char-signedness safety.
2060         (BYTE_C0_P): Use bit ops for char-signedness safety.
2061         (BYTE_C1_P): Use bit ops for char-signedness safety.
2062
2063         * character.h: (XCHAR_OR_CHAR_INT):
2064         Always use inline function.
2065         Remove redundant type checking assert() - XINT will abort quite
2066         nicely.
2067
2068 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2069
2070         * text-coding.c: (Fencode_shift_jis_char):
2071         (Fencode_big5_char):
2072         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
2073         Replace 0 with '\0' when working with bytes.
2074         Replace initial "(" with "\(" in docstrings.
2075
2076         (Fmake_coding_system):
2077         When type is ccl and value is vector, register it with a proper
2078         symbol.  And checks whether the given ccl program is valid.
2079         (mule_decode): When calling ccl_driver, if src indicates
2080         NULL pointer, set an empty string instead.
2081         (mule_encode): Likewise.
2082
2083         (detect_eol_type):
2084         (detect_coding_sjis):
2085         (decode_coding_sjis):
2086         (detect_coding_big5):
2087         (decode_coding_big5):
2088         (detect_coding_ucs4):
2089         (decode_coding_ucs4):
2090         (detect_coding_utf8):
2091         (decode_coding_utf8):
2092         (detect_coding_iso2022):
2093         (decode_coding_iso2022):
2094         (decode_coding_no_conversion):
2095         (mule_decode):
2096         Make all detecting and decoding functions take an Extbyte * arg.
2097         (text_encode_generic):
2098         (encode_coding_big5):
2099         (encode_coding_no_conversion):
2100         (mule_encode):
2101         Make all encoding functions take a Bufbyte * arg.
2102         Use size_t instead of unsigned int for memory sizes.
2103         Only cast to unsigned char whenever dereferencing Extbyte *.
2104
2105         (struct lrecord_description fcd_description_1): Use countof.
2106         (complex_vars_of_file_coding):
2107         Use countof instead of sizeof.
2108         Use CHECK_NATNUM instead of CHECK_INT.
2109
2110 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2111
2112         * mule-charset.c (Fget_char_attribute): Add new optional argument
2113         `default-value'.
2114         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
2115         (remove_char_ccs): Likewise.
2116
2117 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2118
2119         * text-coding.c (char_encode_shift_jis): New implementation in
2120         UTF-2000.
2121         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
2122         ...)'.
2123
2124         * mule-charset.c (Vcharset_chinese_big5): New variable in
2125         UTF-2000.
2126         (Qchinese_big5): New variable in UTF-2000.
2127         (BIG5_SAME_ROW): New macro in UTF-2000.
2128         (make_builtin_char): Use builtin characters of
2129         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
2130         characters of `Vcharset_chinese_big5'.
2131         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
2132         (complex_vars_of_mule_charset): Add new coded-charset
2133         `chinese-big5' in UTF-2000.
2134
2135         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
2136         (Vcharset_chinese_big5): New external variable declaration.
2137         (Vcharset_japanese_jisx0208_1990): Likewise.
2138
2139 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2140
2141         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
2142         function.
2143         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
2144
2145 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2146
2147         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
2148         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
2149         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
2150         `mojikyo-pj-*'.
2151
2152 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2153
2154         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
2155
2156 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2157
2158         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2159         to 0.17.
2160
2161 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2162
2163         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
2164         for `CHARSET_BY_ATTRIBUTES'.
2165         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2166         `CHARSET_BY_ATTRIBUTES'.
2167
2168         * text-coding.c (struct decoding_stream): Rename member `CH' to
2169         `CPOS'.
2170         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
2171         (decode_coding_sjis): Likewise.
2172         (decode_coding_big5): Likewise.
2173         (decode_coding_ucs4): Likewise.
2174         (decode_coding_utf8): Likewise.
2175         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2176         `CHARSET_BY_ATTRIBUTES'.
2177         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
2178         `str->counter'; decode 3, 4 bytes sets.
2179         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
2180         sets.
2181         (decode_coding_no_conversion): Use `str->cpos' instead of
2182         `str->ch'.
2183
2184         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
2185         (Qmojikyo_2022_1): New variable.
2186         (make_charset): Don't use `CHARSET_TYPE_*'.
2187         (range_charset_code_point): Support coded-charset
2188         `mojikyo-2022-1'.
2189         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
2190         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
2191         `CHARSET_BY_ATTRIBUTES'.
2192         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
2193         `CHARSET_BY_ATTRIBUTES'.
2194         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
2195         (complex_vars_of_mule_charset): Add new coded-charset
2196         `mojikyo-2022-1'.
2197
2198         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
2199         interface; changed to inline function.
2200
2201         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
2202         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
2203         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
2204         (CHARSET_TYPE_94): Deleted.
2205         (CHARSET_TYPE_94X94): Deleted.
2206         (CHARSET_TYPE_96): Deleted.
2207         (CHARSET_TYPE_96X96): Deleted.
2208         (CHARSET_TYPE_128): Deleted.
2209         (CHARSET_TYPE_128X128): Deleted.
2210         (CHARSET_TYPE_256): Deleted.
2211         (CHARSET_TYPE_256X256): Deleted.
2212         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
2213         to inline function.
2214         (DECODE_MOJIKYO_2022): New inline function.
2215         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
2216         `Vcharset_mojikyo_2022_1'.
2217
2218 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2219
2220         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
2221         instead of `EQ'.
2222         (put_byte_table): Likewise.
2223         (char_id_table_equal): Use `get_byte_table' [new implementation].
2224
2225 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2226
2227         * mule-charset.c: Include <limits.h> in UTF-2000.
2228         (BT_UINT8_MIN): New macro in UTF-2000.
2229         (BT_UINT8_MAX): New macro in UTF-2000.
2230         (BT_UINT8_t): New macro in UTF-2000.
2231         (BT_UINT8_nil): New macro in UTF-2000.
2232         (BT_UINT8_unbound): New macro in UTF-2000.
2233         (INT_UINT8_P): New inline function in UTF-2000.
2234         (UINT8_VALUE_P): New inline function in UTF-2000.
2235         (UINT8_ENCODE): New inline function in UTF-2000.
2236         (UINT8_DECODE): New inline function in UTF-2000.
2237         (mark_uint8_byte_table): New function in UTF-2000.
2238         (print_uint8_byte_table): New function in UTF-2000.
2239         (uint8_byte_table_equal): New function in UTF-2000.
2240         (uint8_byte_table_hash): New function in UTF-2000.
2241         (make_uint8_byte_table): New function in UTF-2000.
2242         (uint8_byte_table_same_value_p): New function in UTF-2000.
2243         (BT_UINT16_MIN): New macro in UTF-2000.
2244         (BT_UINT16_MAX): New macro in UTF-2000.
2245         (BT_UINT16_t): New macro in UTF-2000.
2246         (BT_UINT16_nil): New macro in UTF-2000.
2247         (BT_UINT16_unbound): New macro in UTF-2000.
2248         (INT_UINT16_P): New inline function in UTF-2000.
2249         (UINT16_VALUE_P): New inline function in UTF-2000.
2250         (UINT16_ENCODE): New inline function in UTF-2000.
2251         (UINT16_DECODE): New inline function in UTF-2000.
2252         (UINT8_TO_UINT16): New inline function in UTF-2000.
2253         (mark_uint16_byte_table): New function in UTF-2000.
2254         (print_uint16_byte_table): New function in UTF-2000.
2255         (uint16_byte_table_equal): New function in UTF-2000.
2256         (uint16_byte_table_hash): New function in UTF-2000.
2257         (make_uint16_byte_table): New function in UTF-2000.
2258         (uint16_byte_table_same_value_p): New function in UTF-2000.
2259         (print_byte_table): New function in UTF-2000.
2260         (byte-table): Use `print_byte_table' as printer.
2261         (make_byte_table): Delete second argument `older'.
2262         (byte_table_same_value_p): New function in UTF-2000.
2263         (copy_byte_table): Deleted.
2264         (get_byte_table): New function in UTF-2000.
2265         (put_byte_table): New function in UTF-2000.
2266         (print_char_id_table): New function in UTF-2000.
2267         (char-id-table): Use `print_char_id_table' as printer.
2268         (make_char_id_table): Delete second argument `older'.
2269         (get_char_id_table): Use `get_byte_table [new implementation].
2270         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
2271         implementation].
2272         (Ffind_char_attribute_table): New function in UTF-2000.
2273         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2274         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
2275         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
2276         (syms_of_mule_charset): Add new function
2277         `find-char-attribute-table' in UTF-2000.
2278
2279         * lrecord.h (enum lrecord_type): Add
2280         `lrecord_type_uint16_byte_table' and
2281         `lrecord_type_uint8_byte_table'.
2282
2283         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
2284         (Lisp_Uint8_Byte_Table): New type.
2285         (XUINT8_BYTE_TABLE): New macro.
2286         (XSETUINT8_BYTE_TABLE): New macro.
2287         (UINT8_BYTE_TABLE_P): New macro.
2288         (GC_UINT8_BYTE_TABLE_P): New macro.
2289         (struct Lisp_Uint16_Byte_Table): New structure.
2290         (Lisp_Uint16_Byte_Table): New type.
2291         (XUINT16_BYTE_TABLE): New macro.
2292         (XSETUINT16_BYTE_TABLE): New macro.
2293         (UINT16_BYTE_TABLE_P): New macro.
2294         (GC_UINT16_BYTE_TABLE_P): New macro.
2295
2296 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2297
2298         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
2299         (Vcharacter_ideographic_strokes_table): Deleted.
2300         (Vcharacter_total_strokes_table): Deleted.
2301         (Vcharacter_morohashi_daikanwa_table): Deleted.
2302         (Vcharacter_decomposition_table): Deleted.
2303         (Qname): Deleted because it is duplicated.
2304         (Qideographic_radical): Deleted.
2305         (Qideographic_strokes): Deleted.
2306         (Qtotal_strokes): Deleted.
2307         (Qmorohashi_daikanwa): Deleted.
2308         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
2309         `ideographic-radical', `ideographic-strokes', `total-strokes',
2310         `morohashi-daikanwa' and `->decomposition'.
2311         (Fget_char_attribute): Likewise.
2312         (Fput_char_attribute): Likewise; use `make-vector' instead of
2313         `make_older_vector' for `->decomposition' value.
2314         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
2315         `ideograph-daikanwa'.
2316         (syms_of_mule_charset): Delete builtin symbols `name',
2317         `ideographic-radical', `ideographic-strokes', `total-strokes' and
2318         `morohashi-daikanwa'.
2319         (vars_of_mule_charset): Don't setup
2320         `Vcharacter_ideographic_radical_table',
2321         `Vcharacter_ideographic_strokes_table',
2322         `Vcharacter_total_strokes_table',
2323         `Vcharacter_morohashi_daikanwa_table' and
2324         `Vcharacter_decomposition_table'.
2325
2326 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2327
2328         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
2329         `make_older_vector', `make_vector_newer_1' and
2330         `make_vector_newer'.
2331
2332         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
2333         `make_older_vector' and `make_vector_newer'.
2334
2335         * config.h.in (HAVE_GGC): New macro.
2336
2337 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2338
2339         * mule-charset.c (struct char_attribute_list_closure): New
2340         structure in UTF-2000.
2341         (add_char_attribute_to_list_mapper): New function in UTF-2000.
2342         (Fchar_attribute_list): Likewise.
2343         (Fset_charset_mapping_table): Use `make_vector_newer'.
2344         (Fdecode_builtin_char): New function in UTF-2000.
2345         (syms_of_mule_charset): Add new function `char-attribute-list' and
2346         `decode-builtin-char' in UTF-2000.
2347
2348         * lisp.h (make_vector_newer): New prototype.
2349
2350         * alloc.c (make_vector_newer_1): New function.
2351         (make_vector_newer): New function.
2352
2353 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2354
2355         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
2356         50100)'.
2357
2358 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2359
2360         * mule-charset.c (Vchar_attribute_hash_table): New variable.
2361         (Vcharacter_attribute_table): Deleted.
2362         (Vcharacter_name_table): Deleted.
2363         (put_char_attribute): Deleted.
2364         (remove_char_attribute): Deleted.
2365         (struct char_attribute_alist_closure): New structure.
2366         (add_char_attribute_alist_mapper): New function.
2367         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
2368         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
2369         (Fget_char_attribute): Likewise.
2370         (Fput_char_attribute): Likewise.
2371         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
2372         of `remove_char_attribute'.
2373         (Fdefine_char): Return character.
2374         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
2375         and `Vcharacter_name_table'.
2376         (complex_vars_of_mule_charset): Likewise
2377         `Vchar_attribute_hash_table'.
2378
2379 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2380
2381         * character.h (CHARC_CHARSET): New macro.
2382         (CHARC_CHARSET_ID): New macro.
2383         (CHARC_CODE_POINT): New macro.
2384         (CHARC_COLUMNS): New macro.
2385         (CHARC_TO_CHAR): New inline function.
2386         (CHARC_EQ): New inline function.
2387         (CHARC_ASCII_EQ): New inline function.
2388         (CHARC_IS_SPACE): New inline function.
2389         (ASCII_TO_CHARC): New inline function.
2390
2391         * char-ucs.h (encode_char_2): Deleted.
2392         (ENCODE_CHAR): Use `encode_char_1' again.
2393         (breakup_char_1): Likewise.
2394         (CHAR_TO_CHARC): New inline function.
2395
2396         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
2397
2398 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2399
2400         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
2401         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
2402         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
2403         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
2404         (create_string_text_block): Use `CHARC_ASCII_EQ' and
2405         `CHARC_IS_SPACE'.
2406         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
2407
2408         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
2409         `CHARC_CODE_POINT'.
2410         (x_output_display_block): Use `CHARC_CHARSET' and
2411         `CHARC_ASCII_EQ'.
2412
2413         * redisplay-tty.c (tty_output_display_block): Use
2414         `CHARC_ASCII_EQ'.
2415         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
2416
2417         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
2418
2419         * insdel.c (find_charsets_in_charc_string): Use
2420         `CHARC_CHARSET_ID'.
2421         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
2422         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
2423         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
2424         (convert_charc_string_into_malloced_string): Likewise.
2425
2426 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2427
2428         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
2429         instead of <Emchar_dynarr *> for buf; use
2430         `convert_bufbyte_string_into_charc_dynarr' instead of
2431         `convert_bufbyte_string_into_emchar_dynarr'; use
2432         `find_charsets_in_charc_string' instead of
2433         `find_charsets_in_emchar_string'.
2434
2435         * redisplay.h:
2436         - Include "character.h".
2437         (struct rune): New member `cglyph'; delete member `chr'.
2438
2439         * redisplay.c (redisplay_text_width_charc_string): New function;
2440         delete `redisplay_text_width_emchar_string'.
2441         (rtw_charc_dynarr): New variable; renamed from
2442         `rtw_emchar_dynarr'.
2443         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
2444         `rtw_emchar_dynarr'; use
2445         `convert_bufbyte_string_into_charc_dynarr' instead of
2446         `convert_bufbyte_string_into_emchar_dynarr'; use
2447         `redisplay_text_width_charc_string' instead of
2448         `redisplay_text_width_emchar_string'.
2449         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
2450         instead of `rtw_emchar_dynarr'; use
2451         `convert_bufbyte_string_into_charc_dynarr' instead of
2452         `convert_bufbyte_string_into_emchar_dynarr'.
2453         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
2454         `redisplay_text_width_charc_string' instead of
2455         `redisplay_text_width_emchar_string'.
2456         (create_text_block): Modify for <struct rune> change.
2457         (generate_formatted_string_db): Likewise.
2458         (create_string_text_block): Likewise.
2459         (pixel_to_glyph_translation): Likewise.
2460
2461         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
2462         instead of <const Emchar *>.
2463         (x_text_width): Likewise.
2464         (x_output_display_block): Use <Charc_dynarr *> instead
2465         <Emchar_dynarr *>; modify for <structure rune> change.
2466         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
2467         *>.
2468
2469         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
2470         <const Emchar *>; use `charc_string_displayed_columns' instead of
2471         `emchar_string_displayed_columns'.
2472         (tty_output_display_block): Use <Charc_dynarr *> instead of
2473         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
2474         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
2475         (tty_output_charc_dynarr_dynarr): New variable; renamed from
2476         `tty_output_emchar_dynarr_dynarr'.
2477         (tty_output_charc_dynarr): New function; delete
2478         `tty_output_charc_dynarr'.
2479
2480         * redisplay-output.c (compare_runes): Modify for `struct rune'.
2481         (redisplay_output_layout): Use <Charc_dynarr *> instead of
2482         <Emchar_dynarr *> for buf; use
2483         `convert_bufbyte_string_into_charc_dynarr' instead of
2484         `convert_bufbyte_string_into_emchar_dynarr'.
2485
2486         * frame.c (title_string_charc_dynarr): New variable; renamed from
2487         `title_string_emchar_dynarr'.
2488         (generate_title_string): Use `title_string_charc_dynarr' instead
2489         of `title_string_emchar_dynarr'; use
2490         `convert_charc_string_into_malloced_string' instead of
2491         `convert_emchar_string_into_malloced_string'.
2492         (init_frame): Use `title_string_charc_dynarr' instead of
2493         `title_string_emchar_dynarr'.
2494
2495         * console.h:
2496         - Include "character.h".
2497         (struct console_methods): Use <const Charc *> instead of <const
2498         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
2499         <Emchar_dynarr *> in output_string_method.
2500
2501         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
2502         <Emchar_dynarr *>.
2503
2504         * console-stream.c (stream_text_width): Use <const Charc *>
2505         instead of <const Emchar *>.
2506
2507         * character.h (Charc_dynarr): New type.
2508
2509         * char-ucs.h (structure Charc): New structure; define new type
2510         `Charc'.
2511
2512         * char-lb.h (DECODE_CHAR): New inline function.
2513         (encode_char_1): New inline function.
2514         (ENCODE_CHAR): New macro.
2515         (structure Charc): New structure; define new type `Charc'.
2516
2517         * char-1byte.h (Vcharset_control_1): New macro.
2518         (Vcharset_latin_iso8859_1): New macro.
2519         (DECODE_CHAR): New inline function.
2520         (encode_char_1): New inline function.
2521         (ENCODE_CHAR): New macro.
2522         (structure Charc): New structure; define new type `Charc'.
2523
2524         * insdel.c (find_charsets_in_charc_string): New function; delete
2525         `find_charsets_in_emchar_string'.
2526         (charc_string_displayed_columns): New function; delete
2527         `emchar_string_displayed_columns'.
2528         (convert_bufbyte_string_into_charc_dynarr): New function; delete
2529         `convert_bufbyte_string_into_emchar_dynarr'.
2530         (convert_charc_string_into_bufbyte_dynarr): New function; delete
2531         `convert_charc_string_into_bufbyte_dynarr'.
2532         (convert_charc_string_into_malloced_string): New function; delete
2533         `convert_charc_string_into_malloced_string'.
2534
2535         * buffer.h (find_charsets_in_charc_string): New prototype; delete
2536         `find_charsets_in_emchar_string'.
2537         (charc_string_displayed_columns): New prototype; delete
2538         `emchar_string_displayed_columns'.
2539         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
2540         `convert_charc_string_into_bufbyte_dynarr'.
2541         (convert_charc_string_into_malloced_string): New prototype; delete
2542         `convert_charc_string_into_malloced_string'.
2543
2544 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2545
2546         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
2547
2548 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2549
2550         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
2551
2552         * char-ucs.h: Use <short> for <Charset_ID>.
2553
2554         * mule-charset.h, char-1byte.h: Use <unsigned char> for
2555         <Charset_ID>.
2556
2557 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2558
2559         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2560         to 0.16.
2561
2562 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2563
2564         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
2565         variable.
2566         (Qmorohashi_daikanwa): New variable.
2567         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
2568         for `morohashi-daikanwa' attribute.
2569         (Fget_char_attribute): Likewise.
2570         (Fput_char_attribute): Likewise.
2571         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
2572         has the same value of `ideograph-daikanwa'.
2573         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
2574         (vars_of_mule_charset): Setup
2575         `Vcharacter_morohashi_daikanwa_table'.
2576
2577 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2578
2579         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
2580         attributes.
2581         (add_charset_to_list_mapper): Add `key' instead of
2582         `XCHARSET_NAME (value)' to return aliases.
2583
2584 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2585
2586         * mule-charset.c (Vcharacter_ideographic_radical_table): New
2587         variable.
2588         (Vcharacter_ideographic_strokes_table): New variable.
2589         (Qideographic_radical): New variable.
2590         (Qideographic_strokes): New variable.
2591         (Fchar_attribute_alist): Use
2592         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
2593         attribute; use `Vcharacter_ideographic_strokes_table' for
2594         `ideographic-strokes' attribute.
2595         (Fget_char_attribute): Likewise.
2596         (Fput_char_attribute): Likewise.
2597         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
2598         `ideographic-strokes'.
2599         (vars_of_mule_charset): Setup
2600         `Vcharacter_ideographic_radical_table' and
2601         `Vcharacter_ideographic_strokes_table'.
2602
2603 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2604
2605         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
2606         (Qtotal_strokes): New variable.
2607         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
2608         `total-strokes' attribute.
2609         (Fget_char_attribute): Likewise.
2610         (Fput_char_attribute): Likewise.
2611         (syms_of_mule_charset): Add new symbol `total-strokes'.
2612         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
2613
2614 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2615
2616         * mule-charset.c (Vcharacter_decomposition_table): New variable.
2617         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
2618         are found.
2619         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
2620         `->decomposition' attribute.
2621         (Fput_char_attribute): Likewise.
2622         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
2623
2624 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2625
2626         * mule-charset.c (decoding_table_check_elements): New function.
2627         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
2628
2629 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2630
2631         * mule-charset.c (Fset_charset_mapping_table): Use
2632         `put_char_ccs_code_point'.
2633
2634 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2635
2636         * mule-charset.c (decoding_table_put_char): New inline function.
2637         (put_char_ccs_code_point): Use `decoding_table_put_char'.
2638
2639 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2640
2641         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
2642         (XCHARSET_BYTE_SIZE): New macro.
2643         (decoding_table_remove_char): New inline function.
2644         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
2645         `decoding_table_remove_char'.
2646         (remove_char_ccs): Use `decoding_table_remove_char'.
2647         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
2648
2649 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2650
2651         * mule-charset.c (Vcharacter_name_table): New variable.
2652         (Qname): New variable.
2653         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
2654         attribute.
2655         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
2656         `Vcharacter_name_table' for `name' attribute.
2657         (Fremove_char_attribute): Use function `remove_char_ccs'.
2658         (put_char_ccs_code_point): New function.
2659         (remove_char_ccs): New function.
2660         (syms_of_mule_charset): Add new symbol `name'.
2661         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
2662
2663 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2664
2665         * mule-charset.c (make_byte_table): Add new argument `older'.
2666         (make_char_id_table): Likewise.
2667         (copy_char_id_table): Comment out because it is not used.
2668         (put_char_id_table): Modify for `make_byte_table'.
2669         (Fput_char_attribute): Make encoding_table as older object;
2670         inherit older bit of `Vcharacter_composition_table'.
2671         (mark_charset): Don't mark `cs->encoding_table'.
2672         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
2673         normal object; make `Vcharacter_composition_table' as an older
2674         object; delete staticpro for `Vcharacter_composition_table'; make
2675         `Vcharacter_variant_table' as a normal object.
2676
2677         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
2678         (mark_object): Don't check older object in UTF-2000.
2679
2680         * lrecord.h (struct lrecord_header): Add new member `older' in
2681         UTF-2000.
2682         (set_lheader_implementation): Setup `SLI_header->older' in
2683         UTF-2000.
2684         (set_lheader_older_implementation): New macro in UTF-2000.
2685         (OLDER_RECORD_P): New macro in UTF-2000.
2686         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
2687         (alloc_older_lcrecord): New prototype in UTF-2000.
2688         (alloc_older_lcrecord_type): New macro in UTF-2000.
2689
2690 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2691
2692         * mule-charset.c (byte_table_description): Use
2693         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
2694         (char_id_table_description): Delete bogus `, 1'.
2695         (Fget_char_attribute): Refer encoding_table of each coded-charset
2696         to get value of coded-charset attribute of a character.
2697         (Fput_char_attribute): Use `make_older_vector' instead of
2698         `make_vector'; use encoding_table of each coded-charset to store
2699         value of coded-charset attribute of a character.
2700         (Fremove_char_attribute): Use encoding_table of each coded-charset
2701         to store value of coded-charset attribute of a character.
2702         (mark_charset): Mark `cs->encoding_table'; don't mark
2703         `cs->decoding_table'.
2704         (charset_description): Add description of new member
2705         `encoding_table'.
2706         (make_charset): Initialize `encoding_table'.
2707
2708         * char-ucs.h (struct Lisp_Charset): Add new member
2709         `encoding_table'.
2710         (CHARSET_ENCODING_TABLE): New macro.
2711         (XCHARSET_ENCODING_TABLE): New macro.
2712         (charset_code_point): New implementation.
2713         (encode_char_1): Likewise.
2714
2715         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
2716         (disksave_object_finalization_1): Call finalizers of
2717         `all_older_lcrecords' in UTF-2000.
2718         (make_older_vector): New function in UTF-2000.
2719         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
2720         UTF-2000.
2721
2722         * lisp.h (make_older_vector): New prototype in UTF-2000.
2723
2724 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2725
2726         * lrecord.h (enum lrecord_type): Rename
2727         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
2728
2729         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
2730         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
2731         `get_char_code_table'.
2732
2733         * mule-charset.c (mark_char_id_table): Renamed from
2734         `mark_char_code_table'.
2735         (char_id_table_equal): Renamed from `char_code_table_equal'.
2736         (char_id_table_hash): Renamed from `char_code_table_hash'.
2737         (make_char_id_table): Renamed from `make_char_code_table'.
2738         (copy_char_id_table): Renamed from `copy_char_code_table'.
2739         (get_char_id_table): Renamed from `get_char_code_table'.
2740         (put_char_id_table): Renamed from `put_char_code_table'.
2741         (to_char_id): Renamed from `to_char_code'.
2742
2743         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
2744         `Lisp_Char_Code_Table'.
2745         (char_id_table): Renamed from `char_code_table'.
2746         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
2747         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
2748         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
2749         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
2750         (get_char_id_table): Renamed from `get_char_code_table'.
2751
2752 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2753
2754         * lrecord.h (enum lrecord_type): Rename
2755         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
2756
2757         * mule-charset.c (mark_byte_table): Renamed from
2758         `mark_char_byte_table'.
2759         (byte_table_equal): Renamed from `char_byte_table_equal'.
2760         (byte_table_hash): Renamed from `byte_table_hash'.
2761         (make_byte_table): Renamed from `make_byte_table'.
2762         (copy_byte_table): Renamed from `copy_char_byte_table'.
2763
2764         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
2765         `Lisp_Char_Byte_Table'.
2766         (byte_table): Renamed from `char_byte_table'.
2767         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
2768         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
2769         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
2770         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
2771
2772 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2773
2774         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
2775         (dfc_convert_to_internal_format): Likewise.
2776         
2777         * text-coding.c (Fcoding_system_canonical_name_p): New function.
2778         * text-coding.c (Fcoding_system_alias_p): New function.
2779         * text-coding.c (Fcoding_system_aliasee): New function.
2780         * text-coding.c (append_suffix_to_symbol): New function.
2781         * text-coding.c (dangling_coding_system_alias_p): New function.
2782         * text-coding.c (Ffind_coding_system):
2783         * text-coding.c (Fcopy_coding_system):
2784         * text-coding.c (encode_coding_no_conversion):
2785         * text-coding.c (syms_of_file_coding):
2786         * text-coding.c (vars_of_file_coding):
2787         Rewrite coding system alias code.
2788         Allow nested aliases, like symbolic links.
2789         Allow redefinition of coding system aliases.
2790         Prevent existence of dangling coding system aliases.
2791         Eliminate convert_to_external_format.
2792         Eliminate convert_to_internal_format.
2793         
2794         * text-coding.c: Change enum eol_type to eol_type_t.
2795
2796 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2797
2798         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
2799         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2800
2801         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
2802         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2803
2804 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2805
2806         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
2807         `ideograph-daikanwa'.
2808
2809         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
2810         (Vcharset_ucs_bmp): Likewise.
2811         (Vcharset_mojikyo): Add new extern variable definition.
2812         (Vcharset_latin_iso8859_2): Deleted because it is not used.
2813         (Vcharset_latin_iso8859_3): Likewise.
2814         (Vcharset_latin_iso8859_4): Likewise.
2815         (Vcharset_latin_iso8859_9): Likewise.
2816         (Vcharset_latin_viscii_lower): Likewise.
2817         (Vcharset_latin_viscii_upper): Likewise.
2818         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
2819         `mojikyo' code-point is used to decode.
2820         (encode_char_2): New function [to convert `mojikyo' code-point to
2821         Mojikyo font encoding].
2822         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
2823         (breakup_char_1): Likewise.
2824         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
2825
2826 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2827
2828         * text-coding.c (Fmake_coding_system): Add document about
2829         `disable-composition' property.
2830
2831 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2832
2833         * text-coding.c (Qdisable_composition): New variable; delete
2834         `Qcomposite'.
2835         (Fmake_coding_system): Add new property `disable-composite';
2836         delete property `composite'.
2837         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
2838         instead of `!CODING_SYSTEM_COMPOSITE'.
2839         (syms_of_file_coding): Add new symbol `disable-composition';
2840         delete symbol `composite'.
2841
2842         * file-coding.h (struct Lisp_Coding_System): Add
2843         `disable_composition'; delete `enable_composition'.
2844         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2845         `CODING_SYSTEM_COMPOSITE'.
2846         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2847         `XCODING_SYSTEM_COMPOSITE'.
2848
2849 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2850
2851         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2852         to 0.15.
2853
2854 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2855
2856         * text-coding.c (Qcomposite): New variable.
2857         (Fmake_coding_system): Add new property `composite'.
2858         (struct decoding_stream): Add `combined_char_count',
2859         `combined_chars' and `combining_table' in UTF-2000.
2860         (COMPOSE_FLUSH_CHARS): New macro.
2861         (COMPOSE_ADD_CHAR): New macro.
2862         (reset_decoding_stream): Reset `str->combined_char_count' and
2863         `str->combining_table' in UTF-2000.
2864         (decode_coding_iso2022): Modify for character-decomposition.
2865         (syms_of_file_coding): Add new symbol `composite'.
2866
2867 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2868
2869         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
2870         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
2871         of `Vcharacter_composition_table' if `->decomposition' property
2872         has only 1 element.
2873         (Qlatin_tcvn5712): New variable.
2874         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
2875         (complex_vars_of_mule_charset): Add new coded-charset
2876         `latin-tcvn5712'.
2877
2878         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
2879
2880 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2881
2882         * file-coding.h (struct Lisp_Coding_System): Add
2883         `enable_composition'.
2884         (CODING_SYSTEM_COMPOSITE): New macro.
2885         (XCODING_SYSTEM_COMPOSITE): New macro.
2886
2887 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
2888
2889         * mule-canna.c (c2mu): Fix problem with UTF-2000.
2890
2891 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
2892
2893         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
2894         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
2895
2896 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
2897
2898         * mule-charset.c (Vcharset_mojikyo): New variable.
2899         (Fdefine_char): Don't use coded-charset which does not have
2900         non-builtin character range to allocate character-id.
2901         (Qmojikyo): New variable.
2902         (syms_of_mule_charset): Add new symbol `mojikyo'.
2903         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
2904
2905         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
2906         (LEADING_BYTE_MOJIKYO): New macro.
2907         (MIN_CHAR_MOJIKYO): New macro.
2908         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
2909         (MAX_CHAR_MOJIKYO): New macro.
2910
2911 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
2912
2913         * mule-charset.c (remove_char_attribute): Fixed.
2914
2915 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
2916
2917         * mule-charset.c (remove_char_attribute): New function.
2918         (Fremove_char_attribute): New function.
2919         (encode_builtin_char_1): Comment out builtin-support for
2920         greek-iso8859-7 and cyrillic-iso8859-5.
2921         (Fdecode_char): Check `code' is an integer.
2922         (syms_of_mule_charset): Add `remove-char-attribute'.
2923         (MIN_CHAR_GREEK): Deleted.
2924         (MAX_CHAR_GREEK): Likewise.
2925         (MIN_CHAR_CYRILLIC): Likewise.
2926         (MAX_CHAR_CYRILLIC): Likewise.
2927         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
2928         MAX_CHAR_GREEK for `greek-iso8859-7'.
2929
2930         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
2931         (MAX_CHAR_GREEK): Likewise.
2932         (MIN_CHAR_CYRILLIC): Likewise.
2933         (MAX_CHAR_CYRILLIC): Likewise.
2934
2935 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
2936
2937         * mule-charset.c (Fdefine_char): Fix problem when new code-point
2938         format is used without `ucs' property.
2939         (Fdecode_char): Fix problem with GR representation.
2940         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
2941         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
2942
2943 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
2944
2945         * mule-charset.c (make_builtin_char): New function.
2946         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
2947         (Fset_charset_mapping_table): Modify for new representation of
2948         code-point.
2949         (Fdecode_char): New function.
2950         (syms_of_mule_charset): Add new builtin function `decode-char' in
2951         UTF-2000.
2952
2953         * char-ucs.h (make_builtin_char): New prototype.
2954         (DECODE_CHAR): New inline function.
2955         (MAKE_CHAR): Use `DECODE_CHAR'.
2956
2957 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
2958
2959         * text-coding.c (parse_charset_conversion_specs): Use
2960         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
2961         `XCHARSET_TYPE'.
2962         (iso2022_designate): Likewise.
2963
2964         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
2965         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
2966
2967         * mule-charset.c (Vcharset_ucs): New variable.
2968         (print_charset): Change design; use `CHARSET_CHARS' and
2969         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
2970         (make_charset): Change signature to specify `chars' and
2971         `dimension' instead of `type'.
2972         (range_charset_code_point): Modify for 256^n-set.
2973         (encode_builtin_char_1): Encode as `ucs' in default.
2974         (Fmake_charset): Modify for `make_charset'.
2975         (Fmake_reverse_direction_charset): Likewise.
2976         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
2977         UTF-2000.
2978         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
2979         for `make_charset'.
2980
2981         * char-ucs.h (Vcharset_ucs): New variable.
2982         (LEADING_BYTE_UCS): New macro.
2983         (struct Lisp_Charset): Delete `type'; change type of `dimension'
2984         and `chars' to `unsigned short' from `unsigned int'.
2985         (CHARSET_TYPE): Deleted.
2986         (XCHARSET_TYPE): Deleted.
2987
2988 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
2989
2990         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
2991
2992         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
2993         (ENCODE_CHAR): New macro.
2994
2995 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
2996
2997         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2998         to 0.14 (Kawachi-Katakami).
2999
3000 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3001
3002         * text-coding.c (char_encode_shift_jis): Modify for
3003         `charset_code_point'.
3004         (char_encode_iso2022): Likewise.
3005
3006         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
3007         (integer) instead of list of <Lisp_Object>s (integers) as the
3008         format of code-point of a coded-charset.
3009         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3010         (encode_builtin_char_1): New function; delete
3011         `split_builtin_char'.
3012         (charset_code_point): Return <int> instead of <Lisp_Object>.
3013         (Fsplit_char): Don't use `SPLIT_CHAR'.
3014
3015         * char-ucs.h (encode_builtin_char_1): New prototype; delete
3016         prototype for `split_builtin_char'.
3017         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3018         (charset_code_point): Likewise.
3019         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
3020         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
3021
3022 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
3023
3024         * mule-charset.c (complex_vars_of_mule_charset): Don't define
3025         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
3026
3027 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3028
3029         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
3030
3031         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
3032         (MAX_CHAR_OBS_94x94): Deleted.
3033
3034 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3035
3036         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
3037
3038         * char-ucs.h (MAX_CHAR_BMP): New macro.
3039
3040 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3041
3042         * text-coding.c: Sync with r21-2-24.
3043
3044 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
3045
3046         * file-coding.c: Modify for UTF-2000.
3047
3048 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3049
3050         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3051         to 0.13 (Takaida).
3052
3053 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3054
3055         * mule-charset.c (split_builtin_char): Delete builtin support for
3056         `katakana-jisx0201'.
3057         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
3058         BMP area in builtin representation.
3059
3060         * char-ucs.h (MAKE_CHAR): Delete builtin support for
3061         `Vcharset_katakana_jisx0201'.
3062
3063 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
3064
3065         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
3066         (Qisolated): New variable.
3067         (Qinitial): New variable.
3068         (Qmedial): New variable.
3069         (Qfinal): New variable.
3070         (Qvertical): New variable.
3071         (Qsmall): New variable.
3072         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
3073         `Qvertical' and `Qsmall'.
3074         (Qmojikyo_pj_[1 .. 21]): New variable.
3075         (syms_of_mule_charset): Add new symbols `isolated', `initial',
3076         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
3077         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
3078         .. 21]'.
3079
3080 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
3081
3082         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
3083         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
3084         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
3085
3086 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3087
3088         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
3089         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
3090         BMP.
3091         (Qjapanese_jisx0208_1990): New variable.
3092         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
3093         (complex_vars_of_mule_charset): Add new coded-charset
3094         `japanese-jisx0208-1990'.
3095
3096         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
3097         (MIN_CHAR_JIS_X0208_1990): New macro.
3098         (MAX_CHAR_JIS_X0208_1990): New macro.
3099
3100 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3101
3102         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
3103         coded-charset is not found.
3104
3105 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3106
3107         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
3108         (Fdefine_char): Use `Fmake_char'.
3109
3110 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3111
3112         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
3113         (Vcharset_hiragana_jisx0208): Deleted.
3114         (Vcharset_katakana_jisx0208): Deleted.
3115         (Qideograph_daikanwa): New variable.
3116         (Qhiragana_jisx0208): Deleted.
3117         (Qkatakana_jisx0208): Deleted.
3118         (split_builtin_char): Split `ideograph-daikanwa'.
3119         (Fsplit_char): New implementation for UTF-2000.
3120         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
3121         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
3122         (complex_vars_of_mule_charset): Add new coded-charset
3123         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
3124         `katakana-jisx0208'.
3125
3126         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
3127         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
3128         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
3129         (MIN_CHAR_DAIKANWA): New macro.
3130         (MAX_CHAR_DAIKANWA): New macro.
3131
3132 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3133
3134         * data.c (Fstring_to_number): Don't recognize floating point if
3135         base is not 10.
3136
3137 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3138
3139         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
3140
3141 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3142
3143         * mule-charset.c (Qsquare): New variable.
3144         (to_char_code): Add `Qsquare'.
3145         (syms_of_mule_charset): Add new symbol `square'.
3146
3147 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3148
3149         * mule-charset.c (Qcircle): New variable.
3150         (to_char_code): Add `Qcircle'.
3151         (syms_of_mule_charset): Add new symbol `circle'.
3152
3153 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3154
3155         * mule-charset.c (Qfont): New variable.
3156         (to_char_code): Add `Qfont'.
3157         (syms_of_mule_charset): Add new symbol `font'.
3158
3159 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3160
3161         * mule-charset.c (Qsub): New variable.
3162         (to_char_code): Add `Qsub'.
3163         (syms_of_mule_charset): Add new symbol `sub'.
3164
3165 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3166
3167         * mule-charset.c (Fput_char_attribute): Convert each element of
3168         VALUE to GL position if ATTRIBUTE is a GR-set,
3169
3170 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3171
3172         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
3173         coded-charset is a GR-set.
3174
3175 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3176
3177         * mule-charset.c (Fput_char_attribute): Check each element of
3178         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
3179
3180 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3181
3182         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
3183         UTF-2000.
3184         (Qethiopic_ucs): New variable in UTF-2000.
3185         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
3186         (complex_vars_of_mule_charset): Add new coded-charset
3187         `ethiopic-ucs' in UTF-2000.
3188
3189         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
3190         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3191         9)'.
3192         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3193         10)'.
3194         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
3195
3196 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
3197
3198         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
3199         `ascii'.
3200
3201 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3202
3203         * mule-charset.c (Vcharacter_variant_table): New variable.
3204         (Q_ucs): New variable.
3205         (Fchar_variants): New function.
3206         (Fput_char_attribute): Register `->ucs' value to
3207         `Vcharacter_variant_table'.
3208         (syms_of_mule_charset): Add new function `char-variants' and new
3209         symbol `->ucs'.
3210         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
3211
3212 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3213
3214         * mule-charset.c (get_char_code_table): Allow negative character
3215         code.
3216         (put_char_code_table): Likewise.
3217         (Vcharacter_composition_table): New variable.
3218         (Q_decomposition): New variable.
3219         (Qwide): New variable.
3220         (Qnarrow): New variable.
3221         (Qcompat): New variable.
3222         (QnoBreak): New variable.
3223         (Qsuper): New variable.
3224         (Qfraction): New variable.
3225         (to_char_code): New function.
3226         (Fget_composite_char): New function.
3227         (Fput_char_attribute): Register `->decomposition' value to
3228         `Vcharacter_composition_table'.
3229         (syms_of_mule_charset): Add new function `get-composite-char', new
3230         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
3231         `super' and `fraction'.
3232         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
3233
3234 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3235
3236         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
3237         character; copy the return value.
3238
3239 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3240
3241         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
3242
3243         * mule-charset.c (range_charset_code_point): Must use make_int.
3244         (split_builtin_char): New function.
3245
3246 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3247
3248         * mule-charset.c (char_byte_table): Change name from
3249         "char-code-table" to "char-byte-table".
3250         (mark_char_code_table): New function.
3251         (char_code_table_equal): New function.
3252         (char_code_table_hash): New function.
3253         (char_code_table_description): New constant.
3254         (char_code_table): New type.
3255         (make_char_code_table): New function.
3256         (copy_char_code_table): New function.
3257         (get_char_code_table): Modify for `char_code_table' type.
3258         (put_char_code_table): Likewise.
3259         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
3260         (Kashiwara).
3261
3262         * char-ucs.h (char_code_table): New type.
3263         (XCHAR_CODE_TABLE): New macro.
3264         (XSETCHAR_CODE_TABLE): New macro.
3265         (CHAR_CODE_TABLE_P): New macro.
3266         (GC_CHAR_CODE_TABLE_P): New macro.
3267         (struct Lisp_Char_Code_Table): New structure.
3268
3269 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3270
3271         * mule-charset.c (Fmake_charset): Setup byte_offset for
3272         {94|96}^n-set.
3273
3274 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3275
3276         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
3277         character.
3278
3279 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3280
3281         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
3282         is found.
3283
3284 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3285
3286         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
3287         charset, it is regarded as a charset.
3288         (put_char_attribute): New function in UTF-2000.
3289         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
3290         charset, mapping-table of the charset is modified.
3291         (Fdefine_char): New function in UTF-2000.
3292         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
3293         `Fput_char_attribute'.
3294         (syms_of_mule_charset): Add new function `define-char' and new
3295         symbol `ucs' in UTF-2000.
3296         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
3297
3298 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3299
3300         * mule-charset.c (Fcharset_name): Define `byte_offset' in
3301         non-UTF-2000 configuration.
3302
3303 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3304
3305         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
3306         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
3307
3308         * mule-charset.c (mark_charset): `cs->encoding_table' has been
3309         deleted.
3310         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
3311         (Fset_charset_mapping_table): Likewise.
3312
3313         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
3314         (CHARSET_ENCODING_TABLE): Delete.
3315         (XCHARSET_ENCODING_TABLE): Delete.
3316         (charset_code_point): New interface.
3317
3318 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3319
3320         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
3321         instead of `charset_get_byte1' and `charset_get_byte2'.
3322
3323         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
3324         (charset_get_byte2): Deleted.
3325
3326 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3327
3328         * char-ucs.h (SPLIT_CHAR): New inline function.
3329         (breakup_char_1): Use `SPLIT_CHAR'.
3330
3331         * mule-charset.c (range_charset_code_point): New function.
3332         (charset_code_point): New function.
3333
3334         * char-ucs.h (range_charset_code_point): New interface.
3335         (breakup_char_1): Use `range_charset_code_point'.
3336
3337 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3338
3339         * mule-charset.c (Fmake_charset): Delete unused local variable
3340         `code_offset'.
3341
3342         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
3343         (breakup_char_1): Find a charset and code-point in
3344         `Vcharacter_attribute_table'.
3345
3346 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3347
3348         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3349         to 0.10 (Yao).
3350
3351 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
3352
3353         * mule-charset.c (Vcharacter_attribute_table): New variable.
3354         (Fchar_attribute_alist): New function.
3355         (Fget_char_attribute): New function.
3356         (Fput_char_attribute): New function.
3357         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
3358         too.
3359         (syms_of_mule_charset): Add new function `char-attribute-alist',
3360         `get-char-attribute' and `put-char-attribute'.
3361         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
3362
3363 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
3364
3365         * mule-charset.c (Fmake_charset): Just use
3366         `get_unallocated_leading_byte'.
3367
3368         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
3369         sets; don't use final-byte based number for private sets.
3370
3371 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3372
3373         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
3374         integer.
3375
3376 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3377
3378         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3379         to 0.9.
3380
3381 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3382
3383         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
3384         of `CHAR_LEADING_BYTE' in UTF-2000.
3385
3386         * insdel.c (find_charsets_in_bufbyte_string): Use
3387         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
3388         (find_charsets_in_emchar_string): Likewise.
3389
3390         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
3391         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
3392
3393         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
3394         (CHAR_CHARSET_ID): New macro.
3395
3396 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3397
3398         * chartab.c (get_char_table): Don't use type `Charset_ID' for
3399         charset-id - MIN_LEADING_BYTE.
3400         (put_char_table): Likewise.
3401
3402 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3403
3404         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
3405         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
3406         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
3407         (CHARSET_ID_OFFSET): New macro.
3408         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
3409         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
3410         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
3411         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
3412         4).
3413         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
3414         5).
3415         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
3416         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
3417         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
3418         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
3419         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
3420
3421 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3422
3423         * mule-charset.c (next_allocated_leading_byte): New variable in
3424         UTF-2000.
3425         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
3426         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
3427         (get_unallocated_leading_byte): Simply use
3428         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
3429         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
3430         UTF-2000.
3431
3432         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
3433         (MAX_LEADING_BYTE_PRIVATE): New macro.
3434         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
3435         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
3436
3437 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3438
3439         * mule-charset.c (Fmake_charset): Allocate final-byte based
3440         charset-id for 94-set, 96-set and 94x94-set.
3441
3442 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3443
3444         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
3445         ambiguous `else'.
3446         (Fmake_charset): Likewise.
3447         (complex_vars_of_mule_charset): Modify the font registry of
3448         `ucs-bmp' not to match `Ethiopic-Unicode'.
3449
3450 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3451
3452         * mule-charset.c (complex_vars_of_mule_charset): Add font
3453         registory of `ucs-bmp'.
3454
3455 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3456
3457         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
3458         coded-charsets in `default-coded-charset-priority-list' when
3459         breaking up a character.
3460
3461         * mule-charset.c (Vcharset_latin_viscii): New variable.
3462         (Qlatin_viscii): New variable.
3463         (make_charset): Don't use `decoding_table'.
3464         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
3465         byte_offset.
3466         (Fset_charset_mapping_table): New implementation.
3467         (syms_of_mule_charset): Add new symbol `latin-viscii'.
3468         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
3469         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
3470         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
3471         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
3472         charset `latin_viscii'.
3473
3474         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
3475         (CHARSET_TYPE_94X94): Change to 1 from 2.
3476         (CHARSET_TYPE_96): Change to 2 from 1.
3477         (CHARSET_TYPE_128): New macro.
3478         (CHARSET_TYPE_128X128): Change to 5 from 4.
3479         (CHARSET_TYPE_256): New macro.
3480         (CHARSET_TYPE_256X256): Change to 7 from 5.
3481         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
3482
3483 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3484
3485         * text-coding.c (char_encode_shift_jis): Refer
3486         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
3487         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
3488
3489         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
3490         (char_byte_table_equal): New function in UTF-2000.
3491         (char_byte_table_hash): New function in UTF-2000.
3492         (char_byte_table_description): New constant in UTF-2000.
3493         (char_byte_table): New type in UTF-2000.
3494         (make_char_byte_table): New function in UTF-2000.
3495         (copy_char_byte_table): New function in UTF-2000.
3496         (make_char_code_table): New macro in UTF-2000.
3497         (get_char_code_table): New function in UTF-2000.
3498         (put_char_code_table): New function in UTF-2000.
3499         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3500         (charset_description): Add setting in UTF-2000.
3501         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
3502         `CHARSET_TO_BYTE1_TABLE(cs)'.
3503         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
3504         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
3505         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
3506         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
3507         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
3508         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
3509         `CHARSET_TO_BYTE2_TABLE(cs)'.
3510
3511         * char-ucs.h (char_byte_table): New type.
3512         (XCHAR_BYTE_TABLE): New macro.
3513         (XSETCHAR_BYTE_TABLE): New macro.
3514         (CHAR_BYTE_TABLE_P): New macro.
3515         (GC_CHAR_BYTE_TABLE_P): New macro.
3516         (struct Lisp_Char_Byte_Table): New structure.
3517         (get_char_code_table): New interface.
3518         (Emchar_to_byte_table): Deleted.
3519         (get_byte_from_character_table): Deleted.
3520         (struct Lisp_Charset): Add `encoding_table'; delete
3521         `to_byte1_table' and `to_byte2_table'.
3522         (CHARSET_ENCODING_TABLE): New macro.
3523         (CHARSET_TO_BYTE1_TABLE): Deleted.
3524         (CHARSET_TO_BYTE2_TABLE): Deleted.
3525         (XCHARSET_ENCODING_TABLE): New macro.
3526         (XCHARSET_TO_BYTE1_TABLE): Deleted.
3527         (XCHARSET_TO_BYTE2_TABLE): Deleted.
3528
3529 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3530
3531         * mule-charset.c (syms_of_mule_charset): Delete charset alias
3532         `vietnamese-viscii-*'.
3533
3534 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3535
3536         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
3537         (Qvietnamese_viscii_upper): New variable.
3538         (Fdefine_charset_alias): New function.
3539         (syms_of_mule_charset): Add new function `define-charset-alias'.
3540         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
3541         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
3542         `latin-viscii-*'.
3543
3544 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
3545
3546         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
3547         (MAX_CHAR_OBS_94x94): New macro.
3548         (breakup_char_1): Support obsolete XEmacs-UCS private code space
3549         for 94x94 sets.
3550
3551         * mule-charset.c (put_byte_from_character_table): Change unit size
3552         from 128 to 256.
3553         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
3554         not defined.
3555         (Fmake_reverse_direction_charset): Modify dummy argument of
3556         `make_charset' for non-UTF-2000 environment.
3557
3558 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3559
3560         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
3561
3562         * mule-charset.c (destroy_byte_from_character_table): New macro.
3563         (latin_jisx0201_to_ucs): Deleted.
3564         (latin_iso8859_2_to_ucs): Deleted.
3565         (latin_iso8859_3_to_ucs): Deleted.
3566         (latin_iso8859_4_to_ucs): Deleted.
3567         (latin_iso8859_9_to_ucs): Deleted.
3568         (latin_viscii_lower_to_ucs): Deleted.
3569         (latin_viscii_upper_to_ucs): Deleted.
3570         (mark_charset): Mark `cs->decoding_table'.
3571         (Fcharset_mapping_table): Fix DOC-string.
3572         (Fset_charset_mapping_table): New function.
3573         (syms_of_mule_charset): Add nwe function
3574         `set-charset-mapping-table'.
3575         (complex_vars_of_mule_charset): Don't setup and use
3576         `latin_*_to_ucs'.
3577
3578 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3579
3580         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
3581         charset.
3582
3583 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3584
3585         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
3586         (Vcharset_katakana_jisx0208): New variable.
3587         (Qhiragana_jisx0208): New variable.
3588         (Qkatakana_jisx0208): New variable.
3589         (make_charset): Add new argument `byte_offset'.
3590         (charset_get_byte1): Modify for new coded-charset definition; use
3591         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3592         `XCHARSET_BYTE_OFFSET'.
3593         (Fmake_charset): Modify for `make_charset'.
3594         (Fmake_reverse_direction_charset): Likewise.
3595         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
3596         `katakana-jisx0208'.
3597         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
3598         `.'  in font registry of charset `katakana-jisx0201',
3599         `latin-jisx0201', `vietnamese-viscii-lower' and
3600         `vietnamese-viscii-upper'; modify DOC-string of charset
3601         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
3602         registry of charset `japanese-jisx0208' not to use font for JIS
3603         X0208:1990; add new charset `hiragana-jisx0208' and
3604         `katakana-jisx0208'.
3605
3606         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
3607         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
3608         (struct Lisp_Charset): Add `byte_offset'.
3609         (CHARSET_BYTE_OFFSET): New macro.
3610         (XCHARSET_UCS_MIN): New macro.
3611         (XCHARSET_UCS_MAX): New macro.
3612         (XCHARSET_CODE_OFFSET): New macro.
3613         (XCHARSET_BYTE_OFFSET): New macro.
3614         (MIN_CHAR_HIRAGANA): New macro.
3615         (MAX_CHAR_HIRAGANA): New macro.
3616         (MIN_CHAR_KATAKANA): New macro.
3617         (MAX_CHAR_KATAKANA): New macro.
3618         (MAKE_CHAR): Modify for new coded-charset definition; use
3619         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3620         `XCHARSET_BYTE_OFFSET'.
3621
3622 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3623
3624         * mule-charset.c (CHAR96): Deleted.
3625         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
3626         <Lisp_Object>.
3627         (latin_iso8859_2_to_ucs): Likewise.
3628         (latin_iso8859_3_to_ucs): Likewise.
3629         (latin_iso8859_4_to_ucs): Likewise.
3630         (latin_iso8859_9_to_ucs): Likewise.
3631         (latin_viscii_lower_to_ucs): Likewise.
3632         (latin_viscii_upper_to_ucs): Likewise.
3633         (latin_tcvn5712_to_ucs): Commented out.
3634         (make_charset): Change type of argument `decoding_table' from
3635         <Emchar*> to <Lisp_Object> [vector of characters].
3636         (Fmake_charset): Modify for `make_charset'.
3637         (Fmake_reverse_direction_charset): Likewise.
3638         (Fcharset_mapping_table): New function in UTF-2000.
3639         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
3640         UTF-2000.
3641         (complex_vars_of_mule_charset): Modify for type change of
3642         `*_to_ucs'; modify for `make_charset'.
3643
3644         * char-ucs.h (struct Lisp_Charset): Change type of
3645         `decoding_table' from <Emchar*> to <Lisp_Object>.
3646         (MAKE_CHAR): Modify for new specification of `decoding_table'.
3647
3648 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
3649
3650         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
3651         error with non-UTF-2000-Mule.
3652
3653 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
3654
3655         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
3656         in lisp again].
3657         (Vcharset_chinese_cns11643_4): Likewise.
3658         (Vcharset_chinese_cns11643_5): Likewise.
3659         (Vcharset_chinese_cns11643_6): Likewise.
3660         (Vcharset_chinese_cns11643_7): Likewise.
3661         (Qchinese_cns11643_3): Likewise.
3662         (Qchinese_cns11643_4): Likewise.
3663         (Qchinese_cns11643_5): Likewise.
3664         (Qchinese_cns11643_6): Likewise.
3665         (Qchinese_cns11643_7): Likewise.
3666         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
3667         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3668         and `chinese-cns11643-7' to lisp/mule/chinese.el.
3669         (complex_vars_of_mule_charset): Likewise.
3670
3671 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3672
3673         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
3674         96-set.
3675         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
3676         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
3677
3678 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3679
3680         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
3681         0xFF60.
3682         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
3683         (breakup_char_1): Likewise.
3684
3685         * text-coding.c (char_encode_iso2022): Keep designated charsets if
3686         one of them includes the specified character.
3687
3688 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3689
3690         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
3691
3692 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3693
3694         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
3695
3696 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3697
3698         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
3699         definition for non-UTF-2000 Mule.
3700         (latin_iso8859_3_to_ucs): Likewise.
3701         (latin_iso8859_4_to_ucs): Likewise.
3702         (latin_iso8859_9_to_ucs): Likewise.
3703         (latin_jisx0201_to_ucs): Likewise.
3704         (MIN_CHAR_THAI): Likewise.
3705         (MAX_CHAR_THAI): Likewise.
3706         (MIN_CHAR_GREEK): Likewise.
3707         (MAX_CHAR_GREEK): Likewise.
3708         (MIN_CHAR_HEBREW): Likewise.
3709         (MAX_CHAR_HEBREW): Likewise.
3710         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
3711         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
3712         (MIN_CHAR_CYRILLIC): Likewise.
3713         (MAX_CHAR_CYRILLIC): Likewise.
3714
3715 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3716
3717         * char-ucs.h (breakup_char_1): Use
3718         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
3719         thai-tis620 and katakana-jisx0201 area.
3720
3721 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3722
3723         * char-ucs.h (breakup_char_1): Use
3724         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
3725         area.
3726
3727         * text-coding.c (reset_encoding_stream): Fixed.
3728         (char_encode_ucs4): Delete `& 255'.
3729
3730         * char-ucs.h (breakup_char_1): Use
3731         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
3732
3733 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3734
3735         * file-coding.c (Fmake_coding_system): Don't set up
3736         `codesys->fixed.size'.
3737         (encode_coding_no_conversion): Don't refer
3738         `str->codesys->fixed.size'.
3739
3740 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3741
3742         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
3743         (latin_a_char_to_byte1): Deleted.
3744         (latin_a_char_to_byte2): Deleted.
3745
3746 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3747
3748         * mule-charset.c (make_charset): Add new argument `ucs_min',
3749         `ucs_max' and `code_offset'.
3750         (charset_get_byte1): New implementation [delete specific charset
3751         depended implementations].
3752         (Fmake_charset): Modify for `make_charset'.
3753         (Fmake_reverse_direction_charset): Likewise.
3754         (complex_vars_of_mule_charset): Likewise.
3755
3756         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
3757         `code_offset'.
3758         (CHARSET_UCS_MIN): New macro.
3759         (CHARSET_UCS_MAX): New macro.
3760         (CHARSET_CODE_OFFSET): New macro.
3761         (MAKE_CHAR): Delete charset depended definitions [except
3762         katakana-jisx0201].
3763
3764 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
3765
3766         * char-ucs.h (breakup_char_1): Use
3767         `Vdefault_coded_charset_priority_list' for C0-Controls,
3768         Basic-Latin, C1-Controls and Latin-1-Supplement area.
3769
3770 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3771
3772         * char-ucs.h (charset_get_byte1): New function.
3773         (XCHARSET_GET_BYTE1): Deleted.
3774         (charset_get_byte2): New function.
3775         (XCHARSET_GET_BYTE2): Deleted.
3776         (Vdefault_coded_charset_priority_list): New external variable.
3777         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
3778         `Vdefault_preferred_coded_charset_list'.
3779
3780         * mule-charset.c (charset_get_byte1): New function.
3781         (charset_get_byte2): New function.
3782         (Vdefault_coded_charset_priority_list): New variable.
3783         (vars_of_mule_charset): Add new variable
3784         `default-coded-charset-priority-list'.
3785
3786 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3787
3788         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
3789         (XCHARSET_GET_BYTE2): New inline function.
3790         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
3791         `XCHARSET_GET_BYTE2'.
3792
3793 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3794
3795         * mule-charset.c (make_charset): Initialize
3796         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
3797         NULL if table is not defined.
3798
3799 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3800
3801         * text-coding.c (char_encode_shift_jis): Use
3802         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
3803         `ucs_to_latin_jisx0201'.
3804
3805         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
3806         (ucs_to_latin_iso8859_2): Deleted.
3807         (ucs_to_latin_iso8859_3): Deleted.
3808         (ucs_to_latin_iso8859_4): Deleted.
3809         (ucs_to_latin_iso8859_9): Deleted.
3810         (ucs_to_latin_viscii_lower): Deleted.
3811         (ucs_to_latin_viscii_upper): Deleted.
3812         (ucs_to_latin_tcvn5712): Deleted.
3813         (make_charset): Add new argument `decoding_table'; set up
3814         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
3815         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
3816         `decoding_table' is defined in UTF-2000.
3817         (Fmake_charset): Modify for `make_charset'.
3818         (Fmake_reverse_direction_charset): Likewise.
3819         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
3820         and `GENERATE_96_SET'.
3821
3822         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
3823         (ucs_to_latin_jisx0201): Deleted.
3824         (latin_iso8859_2_to_ucs): Deleted.
3825         (ucs_to_latin_iso8859_2): Deleted.
3826         (latin_iso8859_3_to_ucs): Deleted.
3827         (ucs_to_latin_iso8859_3): Deleted.
3828         (latin_iso8859_4_to_ucs): Deleted.
3829         (ucs_to_latin_iso8859_4): Deleted.
3830         (latin_iso8859_9_to_ucs): Deleted.
3831         (ucs_to_latin_iso8859_9): Deleted.
3832         (latin_viscii_lower_to_ucs): Deleted.
3833         (ucs_to_latin_viscii_lower): Deleted.
3834         (latin_viscii_upper_to_ucs): Deleted.
3835         (ucs_to_latin_viscii_upper): Deleted.
3836         (struct Lisp_Charset): Renamed `encoding_table' to
3837         `to_byte1_table'; add `to_byte2_table'.
3838         (CHARSET_DECODING_TABLE): New macro.
3839         (CHARSET_TO_BYTE1_TABLE): New macro.
3840         (CHARSET_TO_BYTE2_TABLE): New macro.
3841         (XCHARSET_DECODING_TABLE): New macro.
3842         (XCHARSET_TO_BYTE1_TABLE): New macro.
3843         (XCHARSET_TO_BYTE2_TABLE): New macro.
3844         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
3845         tables.
3846         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
3847         don't use `ucs_to_*' tables.
3848
3849 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3850
3851         * text-coding.c (Fmake_coding_system): Don't set up
3852         `codesys->fixed.size'.
3853         (encode_coding_no_conversion): Use `if' instead of `switch'.
3854
3855         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
3856
3857 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3858
3859         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
3860         (Fmake_charset): Modify for `make_charset'.
3861         (Fmake_reverse_direction_charset): Likewise.
3862         (complex_vars_of_mule_charset): Likewise.
3863
3864 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3865
3866         * text-coding.c (char_encode_shift_jis): Use table
3867         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
3868
3869 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3870
3871         * text-coding.c (text_encode_generic): Use `if' instead of
3872         `switch'.
3873         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
3874         decode JIS-Latin.
3875
3876 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3877
3878         * text-coding.c (encode_coding_sjis): Deleted.
3879         (char_encode_shift_jis): New function.
3880         (char_finish_shift_jis): New function.
3881         (reset_encoding_stream): Set up `encode_char' and `finish' for
3882         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
3883         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
3884         (char_encode_utf8): Treat `eol_type'.
3885
3886 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3887
3888         * file-coding.c (decode_coding_iso2022): Use
3889         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
3890
3891 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3892
3893         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3894         to 0.7 (Hirano).
3895
3896 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3897
3898         * char-lb.h (CHAR_COLUMNS): New macro.
3899
3900 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3901
3902         * text-coding.c (char_encode_ucs4): New function.
3903         (char_finish_ucs4): New function.
3904         (encode_coding_ucs4): Deleted.
3905         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
3906         (text_encode_generic): Delete local variable `charset' and `half'.
3907         (ucs_to_mule_table): Deleted.
3908         (mule_to_ucs_table): Deleted.
3909         (Fset_ucs_char): Deleted.
3910         (ucs_to_char): Deleted.
3911         (Fucs_char): Deleted.
3912         (Fset_char_ucs): Deleted.
3913         (Fchar_ucs): Deleted.
3914         (decode_ucs4): Deleted.
3915         (mule_char_to_ucs4): Deleted.
3916         (encode_ucs4): Deleted.
3917         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
3918         (decode_coding_utf8): Likewise.
3919         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
3920         (char_encode_iso2022): Fixed.
3921         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
3922         `Fset_char_ucs' and `Fchar_ucs'.
3923         (complex_vars_of_file_coding): Don't initialize
3924         `ucs_to_mule_table'.
3925
3926         * objects-tty.c (tty_initialize_font_instance): Don't use
3927         `XCHARSET_COLUMNS'.
3928
3929         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
3930         UTF-2000.
3931
3932         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
3933         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3934
3935         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
3936         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3937         (emchar_string_displayed_columns): Likewise.
3938
3939         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
3940         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3941         (string_column_at_point): Likewise.
3942         (Fmove_to_column): Likewise.
3943
3944         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
3945         `encoding_table' and `decoding_table'.
3946         (CHARSET_REP_BYTES): Deleted.
3947         (XCHARSET_REP_BYTES): Deleted.
3948         (XCHARSET_COLUMNS): Deleted.
3949         (CHAR_COLUMNS): New macro.
3950         (lookup_composite_char): Deleted unconditionally.
3951         (composite_char_string): Likewise.
3952
3953 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3954
3955         * char-ucs.h (Emchar_to_byte_table): New type.
3956         (get_byte_from_character_table): New function interface.
3957         (Vcharset_latin_jisx0201): New variable.
3958         (latin_jisx0201_to_ucs): New variable.
3959         (ucs_to_latin_jisx0201): New variable.
3960         (Vcharset_latin_iso8859_2): New variable.
3961         (latin_iso8859_2_to_ucs): New variable.
3962         (ucs_to_latin_iso8859_2): New variable.
3963         (Vcharset_latin_iso8859_3): New variable.
3964         (latin_iso8859_3_to_ucs): New variable.
3965         (ucs_to_latin_iso8859_3): New variable.
3966         (Vcharset_latin_iso8859_4): New variable.
3967         (latin_iso8859_4_to_ucs): New variable.
3968         (ucs_to_latin_iso8859_4): New variable.
3969         (Vcharset_latin_iso8859_9): New variable.
3970         (latin_iso8859_9_to_ucs): New variable.
3971         (ucs_to_latin_iso8859_9): New variable.
3972         (Vcharset_latin_viscii_lower): New variable.
3973         (latin_viscii_lower_to_ucs): New variable.
3974         (ucs_to_latin_viscii_lower): New variable.
3975         (Vcharset_latin_viscii_upper): New variable.
3976         (latin_viscii_upper_to_ucs): New variable.
3977         (ucs_to_latin_viscii_upper): New variable.
3978         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
3979         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
3980         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
3981         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
3982         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
3983         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
3984         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
3985         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
3986         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
3987         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
3988
3989         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
3990         (Vcharset_latin_viscii_upper): New variable.
3991         (make_byte_from_character_table): New function.
3992         (put_byte_from_character_table): New function.
3993         (get_byte_from_character_table): New function.
3994         (CHAR96): New macro.
3995         (ucs_to_latin_jisx0201): New variable.
3996         (latin_jisx0201_to_ucs): New variable.
3997         (ucs_to_latin_iso8859_2): New variable.
3998         (latin_iso8859_2_to_ucs): New variable.
3999         (ucs_to_latin_iso8859_3): New variable.
4000         (latin_iso8859_3_to_ucs): New variable.
4001         (ucs_to_latin_iso8859_4): New variable.
4002         (latin_iso8859_4_to_ucs): New variable.
4003         (ucs_to_latin_iso8859_9): New variable.
4004         (latin_iso8859_9_to_ucs): New variable.
4005         (ucs_to_latin_viscii_lower): New variable.
4006         (latin_viscii_lower_to_ucs): New variable.
4007         (ucs_to_latin_viscii_upper): New variable.
4008         (latin_viscii_upper_to_ucs): New variable.
4009         (ucs_to_latin_tcvn5712): New variable.
4010         (latin_tcvn5712_to_ucs): New variable.
4011         (Qlatin_viscii_lower): New variable.
4012         (Qlatin_viscii_upper): New variable.
4013         (syms_of_mule_charset): Set up new symbol
4014         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
4015         (complex_vars_of_mule_charset): Set up new charset
4016         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
4017         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
4018         `ucs_to_<CHARSET>' tables.
4019
4020 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
4021
4022         * text-coding.c: New file.
4023
4024 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4025
4026         * mule-charset.c (Fmake_char): Fix problem of 256-set.
4027
4028         * char-ucs.h (Vcharset_ucs_bmp): New variable.
4029         (MAKE_CHAR): Modify for `ucs-bmp'.
4030         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
4031         non-MULE characters of BMP.
4032
4033 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
4034
4035         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4036         to 0.6.
4037
4038 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4039
4040         * lstream.h:
4041         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
4042         - Include character.h for `CHAR_ASCII_P'.
4043
4044         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
4045
4046         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
4047         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
4048
4049         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
4050         (BYTE_C0_P): Likewise.
4051         (BYTE_C1_P): Likewise.
4052         (Lstream_get_emchar_1): Likewise.
4053         (Lstream_fput_emchar): Likewise.
4054         (Lstream_funget_emchar): Likewise.
4055         (copy_internal_to_external): Likewise.
4056         (copy_external_to_internal): Likewise.
4057
4058         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
4059         (BYTE_C0_P): Likewise.
4060         (BYTE_C1_P): Likewise.
4061         (Lstream_get_emchar_1): Likewise.
4062         (Lstream_fput_emchar): Likewise.
4063         (Lstream_funget_emchar): Likewise.
4064         (copy_internal_to_external): Likewise.
4065         (copy_external_to_internal): Likewise.
4066
4067         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
4068         (REP_BYTES_BY_FIRST_BYTE): Likewise.
4069
4070         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
4071         (BYTE_ASCII_P): Moved to mb-1byte.h.
4072
4073 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4074
4075         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
4076
4077         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
4078         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
4079         (VALID_CHARPTR_P): Moved to mb-*byte.h.
4080         (VALIDATE_CHARPTR_BACKWARD): Likewise.
4081         (VALIDATE_CHARPTR_FORWARD): Likewise.
4082         (simple_charptr_emchar): Moved to mb-multibyte.h.
4083         (simple_set_charptr_emchar): Likewise.
4084         (simple_charptr_copy_char): Likewise.
4085         (non_ascii_charptr_emchar): Likewise.
4086         (non_ascii_set_charptr_emchar): Likewise.
4087         (non_ascii_charptr_copy_char): Likewise.
4088         (charptr_emchar): Moved to mb-*byte.h.
4089         (set_charptr_emchar): Likewise.
4090         (charptr_copy_char): Likewise.
4091
4092         * mb-1byte.h, mb-multibyte.h: New files.
4093
4094 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4095
4096         * mb-utf-8.h (MULTIBYTE): New macro.
4097         (MAX_EMCHAR_LEN): Moved from buffer.h.
4098         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
4099
4100         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
4101
4102         * mb-lb.h, multibyte.h: New files.
4103
4104         * char-1byte.h (Charset_ID): Moved from buffer.h.
4105         (MIN_LEADING_BYTE): Likewise.
4106         (LEADING_BYTE_ASCII): Likewise.
4107         (NUM_LEADING_BYTES): Likewise.
4108         (CHARSETP): Likewise.
4109         (CHARSET_BY_LEADING_BYTE): Likewise.
4110         (XCHARSET_LEADING_BYTE): Likewise.
4111         (XCHARSET_GRAPHIC): Likewise.
4112         (XCHARSET_COLUMNS): Likewise.
4113         (XCHARSET_DIMENSION): Likewise.
4114         (CHAR_CHARSET): Likewise.
4115         (CHAR_LEADING_BYTE): Likewise.
4116         (BREAKUP_CHAR): Likewise.
4117         (Vcharset_ascii): Likewise.
4118
4119         * buffer.h: Include multibyte.h unconditionally.
4120         (VALID_CHARPTR_P): Moved to multibyte.h.
4121         (ASSERT_VALID_CHARPTR): Likewise.
4122         (REAL_INC_CHARPTR): Likewise.
4123         (REAL_INC_CHARBYTIND): Likewise.
4124         (REAL_DEC_CHARPTR): Likewise.
4125         (INC_CHARPTR): Likewise.
4126         (INC_CHARBYTIND): Likewise.
4127         (DEC_CHARPTR): Likewise.
4128         (VALIDATE_CHARPTR_BACKWARD): Likewise.
4129         (VALIDATE_CHARPTR_FORWARD): Likewise.
4130         (charptr_n_addr): Likewise.
4131         (MAX_EMCHAR_LEN): Moved to mb-*.h.
4132         (simple_charptr_emchar): Moved to multibyte.h.
4133         (simple_set_charptr_emchar): Likewise.
4134         (simple_charptr_copy_char): Likewise.
4135         (non_ascii_charptr_emchar): Likewise.
4136         (non_ascii_set_charptr_emchar): Likewise.
4137         (non_ascii_charptr_copy_char): Likewise.
4138         (charptr_emchar): Likewise.
4139         (set_charptr_emchar): Likewise.
4140         (charptr_copy_char): Likewise.
4141         (charptr_emchar_n): Likewise.
4142         (Charset_ID): Moved to char-1byte.h.
4143         (Vcharset_ascii): Likewise.
4144         (CHAR_CHARSET): Likewise.
4145         (CHAR_LEADING_BYTE): Likewise.
4146         (LEADING_BYTE_ASCII): Likewise.
4147         (NUM_LEADING_BYTES): Likewise.
4148         (MIN_LEADING_BYTE): Likewise.
4149         (CHARSETP): Likewise.
4150         (CHARSET_BY_LEADING_BYTE): Likewise.
4151         (XCHARSET_LEADING_BYTE): Likewise.
4152         (XCHARSET_GRAPHIC): Likewise.
4153         (XCHARSET_COLUMNS): Likewise.
4154         (XCHARSET_DIMENSION): Likewise.
4155         (BREAKUP_CHAR): Likewise.
4156
4157 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4158
4159         * character.h: Add document about interface for characters.
4160
4161         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
4162         (MAKE_CHAR): Delete comment about
4163         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
4164         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
4165         (BREAKUP_CHAR): Modify name of arguments.
4166         (CHAR_CHARSET): Modify name of argument.
4167
4168         * buffer.h: Delete document about Emchar accessors.
4169
4170 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4171
4172         * character.h (CHAR_INTP): Moved from buffer.h
4173         (CHAR_OR_CHAR_INTP): Likewise.
4174         (XCHAR_OR_CHAR_INT): Likewise.
4175         (CHECK_CHAR_COERCE_INT): Likewise.
4176
4177         * buffer.h (CHAR_INTP): Moved to character.h
4178         (CHAR_OR_CHAR_INTP): Likewise.
4179         (XCHAR_OR_CHAR_INT): Likewise.
4180         (CHECK_CHAR_COERCE_INT): Likewise.
4181
4182 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4183
4184         * character.h:
4185         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
4186         - Include char-1byte.h, char-lb.h or char-ucs.h.
4187
4188         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
4189
4190         * buffer.h: Include character unconditionally.
4191         (valid_char_p): Moved to char-*.h.
4192         (non_ascii_valid_char_p): Moved to char-lb.h.
4193
4194         * char-1byte.h, char-lb.h, char-ucs.h: New files.
4195
4196 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4197
4198         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
4199         in UTF-2000 because it is not ported yet and not to use
4200         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
4201         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
4202         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
4203
4204         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
4205         (CHAR_ASCII_P): Moved from character.h.
4206
4207         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
4208         (CHAR_ASCII_P): Likewise.
4209         (CHAR_FIELD1_MASK): Deleted.
4210         (CHAR_FIELD2_MASK): Deleted.
4211         (CHAR_FIELD3_MASK): Deleted.
4212         (MAX_CHAR_BASIC_LATIN): New macro.
4213         (CHAR_FIELD1): Deleted.
4214         (CHAR_FIELD2_INTERNAL): Deleted.
4215         (CHAR_FIELD3_INTERNAL): Deleted.
4216         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
4217         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
4218         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
4219         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
4220         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
4221         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
4222         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
4223         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
4224         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
4225         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
4226         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
4227         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
4228         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
4229         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
4230         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
4231         (MIN_CHAR_COMPOSITION): Deleted.
4232         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
4233         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
4234
4235 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
4236
4237         * buffer.h: Include mb-utf-8.h in UTF-2000.
4238
4239         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
4240
4241         * mb-utf-8.h: New file.
4242
4243 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
4244
4245         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
4246         instead of `int'.
4247
4248         * mule-charset.h, buffer.h (Charset_ID): New type.
4249
4250 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
4251
4252         * mule-canna.c (c2mu): Use `MAKE_CHAR',
4253         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
4254         instead of `MULE_CHAR_PRIVATE_OFFSET',
4255         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
4256         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
4257         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
4258
4259         * character.h (Vcharset_japanese_jisx0212): New variable
4260         definition.
4261
4262 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
4263
4264         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
4265         (charset_by_attributes): Delete array about direction.
4266         (latin_a_char_to_charset): New variable in UTF-2000.
4267         (latin_a_char_to_byte1): New variable in UTF-2000.
4268         (latin_a_char_to_byte2): New variable in UTF-2000.
4269         (Qucs_bmp): New variable.
4270         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
4271         `Bufbyte'.
4272         (next_allocated_2_byte_leading_byte): Likewise.
4273         (non_ascii_set_charptr_emchar): Likewise.
4274         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
4275         `CHARSET_TYPE_256X256' in UTF-2000; modify for
4276         `charset_by_attributes'.
4277         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
4278         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
4279         and `CHARSET_BY_LEADING_BYTE'.
4280         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
4281         `utf-2000-version' to `vars_of_mule_charset'.
4282         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
4283         define `leading-code-private-11' in UTF-2000; move setting of
4284         `utf-2000-version' from `syms_of_mule_charset'.
4285         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
4286         UTF-2000.
4287
4288         * character.h (Charset_ID): New type.
4289         (LEADING_BYTE_UCS_BMP): New macro.
4290         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
4291         (CHARSET_ID_OFFSET_94): New macro.
4292         (MIN_CHARSET_ID_PRIVATE_94): New macro.
4293         (MAX_CHARSET_ID_PRIVATE_94): New macro.
4294         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
4295         final-byte.
4296         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
4297         (LEADING_BYTE_LATIN_JISX0201): Likewise.
4298         (CHARSET_ID_OFFSET_96): New macro.
4299         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
4300         CHARSET_ID_OFFSET_96 and final-byte.
4301         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
4302         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
4303         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
4304         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
4305         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
4306         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
4307         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
4308         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
4309         (LEADING_BYTE_THAI_TIS620): Likewise.
4310         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
4311         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
4312         (CHARSET_ID_OFFSET_94x94): New macro.
4313         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
4314         CHARSET_ID_OFFSET_94x94 and final-byte.
4315         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
4316         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
4317         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
4318         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
4319         (LEADING_BYTE_CHINESE_GB2312): Likewise.
4320         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
4321         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
4322         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
4323         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
4324         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
4325         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
4326         (CHARSET_TYPE_128X128): New macro.
4327         (CHARSET_TYPE_256X256): New macro.
4328         (XCHARSET_PRIVATE_P): Delete unconditionally.
4329         (charset_by_attributes): Delete array about direction.
4330         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
4331         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
4332         (MIN_CHAR_94): New macro.
4333         (MAX_CHAR_94): New macro.
4334         (MIN_CHAR_96): New macro.
4335         (MAX_CHAR_96): New macro.
4336         (MIN_CHAR_94x94): New macro.
4337         (MAX_CHAR_94x94): New macro.
4338         (MIN_CHAR_96x96): New macro.
4339         (MAX_CHAR_96x96): New macro.
4340         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
4341         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
4342         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
4343         - 32)'.
4344         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
4345         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
4346         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
4347         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
4348         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
4349         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
4350         `XCHARSET_LEADING_BYTE' to make code-point.
4351         (latin_a_char_to_charset): New variable.
4352         (latin_a_char_to_byte1): New variable.
4353         (latin_a_char_to_byte2): New variable.
4354         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
4355         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
4356         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
4357
4358         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
4359         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
4360         (find_charsets_in_emchar_string): Likewise.
4361         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
4362
4363         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
4364         `int'.
4365         (decode_coding_iso2022): Likewise.
4366
4367         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
4368         of `unsigned char'.
4369
4370         * redisplay.c (redisplay_text_width_emchar_string): Use
4371         `Charset_ID' instead of `unsigned char'.
4372         (redisplay_frame_text_width_string): Likewise.
4373
4374         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
4375         `unsigned char'.
4376
4377         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
4378         instead of `unsigned char'.
4379         (face_cachel_charset_font_metric_info): Likewise.
4380
4381         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
4382         (get_non_ascii_char_table_value): Likewise.
4383         (get_char_table): Likewise.
4384         (put_char_table): Likewise.
4385         (map_over_other_charset): Likewise.
4386         (map_char_table): Likewise.
4387
4388         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
4389         instead of `unsigned char'.
4390
4391 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
4392
4393         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
4394         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
4395
4396         * mule-charset.c (leading_code_private_11): Don't define in
4397         UTF-2000.
4398
4399         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
4400         in UTF-2000 because it is not ported yet and not to use
4401         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
4402
4403 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
4404
4405         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
4406
4407 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4408
4409         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
4410         in UTF-2000.
4411
4412         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
4413         of unsigned char to store leading-byte.
4414
4415         * chartab.c (get_non_ascii_char_table_value): Don't use
4416         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
4417
4418         * file-coding.c (encode_coding_big5): Delete bogus implementation
4419         in UTF2000.
4420
4421         * character.h (LEADING_BYTE_*): Delete definition for
4422         non-UTF-2000.
4423         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
4424         (LEADING_BYTE_PREFIX_P): Deleted.
4425         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
4426         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
4427         (BUFBYTE_LEADING_BYTE_P): Deleted.
4428         (CHARSET_PRIVATE_P): Deleted unconditionally.
4429         (rep_bytes_by_first_byte): Deleted unconditionally.
4430         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
4431         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
4432         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
4433         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
4434         (CHAR_FIELD2): Deleted.
4435         (CHAR_FIELD3): Deleted.
4436         (MAKE_CHAR): Delete definition for non-UTF-2000.
4437         (BREAKUP_CHAR_1_UNSAFE): Deleted.
4438         (breakup_char_1): New implementation.
4439         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
4440         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
4441
4442 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4443
4444         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
4445         condition.
4446
4447 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4448
4449         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
4450         (CHARSET_PRIVATE_P): Likewise.
4451         (XCHARSET_PRIVATE_P): Likewise.
4452         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
4453
4454         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
4455         UTF2000.
4456         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
4457
4458 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4459
4460         * character.h (LEADING_BYTE_*): Changed in UTF2000.
4461         (NUM_LEADING_BYTES): Changed from 128 to 256.
4462         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
4463         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
4464         UTF2000.
4465         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
4466
4467         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
4468         UTF2000.
4469         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
4470         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
4471         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
4472         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
4473         (Qchinese_cns11643_3): New variable in UTF2000.
4474         (Qchinese_cns11643_4): New variable in UTF2000.
4475         (Qchinese_cns11643_5): New variable in UTF2000.
4476         (Qchinese_cns11643_6): New variable in UTF2000.
4477         (Qchinese_cns11643_7): New variable in UTF2000.
4478         (syms_of_mule_charset): Define `chinese-cns11643-3',
4479         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4480         and `chinese-cns11643-7' in UTF2000.
4481         (vars_of_mule_charset): Initialize
4482         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
4483         + 1 in UTF2000.
4484         (complex_vars_of_mule_charset): Setup charset
4485         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
4486         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
4487
4488 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4489
4490         * mule-charset.c: Move setting for `leading-code-private-11' from
4491         `syms_of_mule_charset' to `vars_of_mule_charset'.
4492
4493 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4494
4495         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
4496         and `NUM_LEADING_BYTES' in assert.
4497
4498 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4499
4500         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
4501         instead of 128.
4502         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
4503         `NUM_LEADING_BYTES' instead of 128.
4504
4505 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4506
4507         * mule-charset.h (charset_by_leading_byte): Use
4508         `NUM_LEADING_BYTES' instead of 128.
4509         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
4510
4511         * mule-charset.c (charset_by_leading_byte): Use
4512         `NUM_LEADING_BYTES' instead of 128.
4513         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
4514
4515         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
4516         128.
4517
4518 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
4519
4520         * mule-charset.c (syms_of_mule_charset): Update to
4521         0.4 (Shin-Imamiya).
4522
4523 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
4524
4525         * file-coding.c (encode_coding_sjis): New implementation for
4526         UTF2000.  (decode_coding_sjis): Ditto.
4527
4528 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4529
4530         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
4531         Don't define in UTF2000.
4532
4533         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
4534         defined.
4535
4536         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4537         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
4538         MULE.
4539
4540 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4541
4542         * config.h.in (CHAR_IS_UCS4): New macro.
4543
4544         * mule-charset.c (rep_bytes_by_first_byte): Modify for
4545         conventional MULE representation.
4546         (syms_of_mule_charset): Update to 0.3 (Imamiya).
4547
4548         * mule-charset.h: Reverted to original.
4549
4550         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4551         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
4552         "mule-charset.h" if CHAR_IS_UCS4 is defined.
4553
4554         * character.h: New file.
4555
4556         * file-coding.c (Fmake_coding_system): Set 1 to
4557         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
4558         defined.
4559         (encode_coding_no_conversion): New implementation for UTF2000.
4560
4561         * file-coding.h (struct Lisp_Coding_System): Add new member
4562         `fixed.size'.
4563
4564 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
4565
4566         * file-coding.c (decode_coding_iso2022): Code-point arguments of
4567         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
4568         (encode_coding_iso2022): New implementation for UTF2000.
4569
4570 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4571
4572         * mule-canna.c (c2mu): New implementation for UTF2000.
4573         (m2c): Likewise.
4574
4575 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4576
4577         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
4578
4579 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4580
4581         * file-coding.c (reset_encoding_stream): Set 0 to
4582         `str->iso2022.current_char_boundary' in UTF2000.
4583         (encode_utf8): Don't define in UTF2000.
4584         (encode_coding_utf8): New implementation for UTF-8 representation
4585         of UTF2000.
4586         (complex_vars_of_file_coding): Define coding-system `utf-8'.
4587
4588 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4589
4590         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
4591
4592         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
4593         UTF2000.
4594         (REP_BYTES_BY_FIRST_BYTE): Likewise.
4595
4596         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
4597
4598         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
4599         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
4600         as UTF-8 in UTF2000.
4601         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
4602         (non_ascii_valid_char_p): Don't define in UTF2000.
4603         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
4604         (Lstream_get_emchar_1): Likewise.
4605         (utf-2000-version): New variable in UTF2000.
4606
4607         * lread.c (read_escape): Add new reader `u'.
4608
4609         * insdel.c (three_to_one_table): Don't define in UTF2000.
4610         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
4611         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4612         UTF2000.
4613         (bytind_to_bufpos_func): Likewise.
4614         (buffer_mule_signal_inserted_region): Likewise.
4615         (vars_of_insdel): Don't initialize `three_to_one_table'.
4616         (init_buffer_text): Use `buf->text->mule_size' instead of
4617         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4618         UTF2000.
4619
4620         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
4621         UTF-8 representation in UTF2000.
4622         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
4623         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
4624         (decode_coding_iso2022): Don't define local variable `lb' in
4625         UTF2000; don't use LEADING_BYTE in UTF2000; use
4626         `DECODE_ADD_UCS_CHAR' in UTF2000.
4627         (convert_to_external_format): Decode as UTF-8 in UTF2000.
4628
4629         * config.h.in (UTF2000): New macro.
4630
4631         * buffer.h (struct buffer_text): Add new member `mule_size' and
4632         don't add `mule_shifter' and `mule_three_p' in UTF2000.
4633         (valid_char_p): Return always 1 in UTF2000.
4634         (MAX_EMCHAR_LEN): 6 in UTF2000.
4635         (three_to_one_table): Don't define in UTF2000.
4636         (real_bufpos_to_bytind): Modify for UTF-8 representation in
4637         UTF2000.
4638         (real_bytind_to_bufpos): Likewise.
4639
4640         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
4641
4642 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4643
4644         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
4645         representation change.
4646         (Vutf_2000_version): New variable.
4647         (leading_code_private_11): New variable.
4648         (syms_of_mule_charset): Add new variables `utf-2000-version' and
4649         `leading-code-private-11'.
4650
4651         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
4652         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
4653         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
4654         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
4655         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
4656         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
4657         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
4658         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
4659         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
4660         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
4661         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
4662         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
4663         (MIN_CHAR_GREEK): New macro.
4664         (MAX_CHAR_GREEK): New macro.
4665         (MIN_CHAR_CYRILLIC): New macro.
4666         (MAX_CHAR_CYRILLIC): New macro.
4667         (MIN_CHAR_HEBREW): New macro.
4668         (MAX_CHAR_HEBREW): New macro.
4669         (MIN_CHAR_THAI): New macro.
4670         (MAX_CHAR_THAI): New macro.
4671         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
4672         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
4673         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
4674         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
4675         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
4676         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
4677         (CHAR_FIELD2): New inline function.
4678         (CHAR_FIELD3): New inline function.
4679         (MULE_CHAR_PRIVATE_OFFSET): New macro.
4680         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
4681         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
4682         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
4683         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
4684         (MIN_CHAR_COMPOSITION): Likewise.
4685         (CHAR_LEADING_BYTE): Modified for character representation change.
4686         (MAKE_CHAR): Likewise.
4687
4688         * lisp.h (Vcharset_latin_iso8859_1): New variable.
4689         (Vcharset_greek_iso8859_7): Likewise.
4690         (Vcharset_cyrillic_iso8859_5): Likewise.
4691         (Vcharset_hebrew_iso8859_8): Likewise.
4692         (Vcharset_thai_tis620): Likewise.
4693         (Vcharset_katakana_jisx0201): Likewise.
4694
4695 2003-01-03  Stephen J. Turnbull  <stephen@xemacs.org>
4696
4697         * XEmacs 21.4.11 "Native Windows TTY Support" is released.
4698
4699 2002-12-14  Ben Wing  <ben@xemacs.org>
4700
4701         * callint.c: Declaration error.
4702         * dumper.c (pdump):
4703         * dumper.c (pdump_load): Warning fix.
4704         * process.c: GCPRO error.
4705         * glyphs.c (unmap_subwindow):
4706         * glyphs.c (map_subwindow): Parenthesizing errors with ! and &&.
4707         * event-stream.c (maybe_kbd_translate): Wrong argument to
4708         character_to_event().
4709
4710         * alloc.c (garbage_collect_1):
4711         * emacs.c:
4712         * emacs.c (debug_can_access_memory):
4713         * emacs.c (fatal_error_signal):
4714         * emacs.c (mswindows_handle_hardware_exceptions):
4715         * emacs.c (main_1):
4716         * emacs.c (main):
4717         * emacs.c (assert_failed):
4718         * emacs.c (syms_of_emacs):
4719         * lisp.h:
4720         * print.c:
4721         * print.c (std_handle_out_va):
4722         * print.c (write_string_to_stdio_stream):
4723         * print.c (write_fmt_string):
4724         * print.c (printing_badness):
4725         * print.c (printing_major_badness):
4726         * print.c (print_internal):
4727         * print.c (debug_print_no_newline):
4728         * print.c (debug_backtrace):
4729         Be more defensive in handling bad values when printing.  Add code
4730         from trunk involving inhibit_non_essential_printing_operations.
4731         When going down or in debug_print(), don't do external conversion
4732         and such and try really, really hard when printing to avoid core
4733         dumping.  Add force-debugging-signal, debug_break().
4734
4735 2002-12-12  Stephen J. Turnbull  <stephen@xemacs.org>
4736
4737         * dumper.c (pdump_load): Include sysdep.h; retry with truename.
4738         Analysis and original patch by Vin Shelton <acs@xemacs.org>.
4739
4740 2002-12-02  Greg Allen  <greg_allen@westlb-systems.co.uk>
4741
4742         * database.c: Fix open_database. Berkeley DB API has changed in
4743         4.1. see: http://www.sleepycat.com/docs/ref/upgrade.4.1/fop.html
4744
4745 2002-11-26  Stephen J. Turnbull  <stephen@xemacs.org>
4746
4747         * specifier.c (Fvalid_specifier_type_p): Typo in comment.
4748
4749 2002-11-13  Stephen J. Turnbull  <stephen@xemacs.org>
4750
4751         * event-Xt.c (Xt_timeout):
4752         (Xt_timeout_callback):
4753         (emacs_Xt_add_timeout):
4754         (emacs_Xt_remove_timeout):
4755         (Xt_timeout_to_emacs_event):
4756         Turn completed_timeouts from a stack into a queue.  Fixes
4757         deadlocks <15829.21626.171573.994716@sinisa.nasamreza.org>.
4758
4759 2002-11-07  Wolfram Gloger  <wg@malloc.de>
4760
4761         * alloc.c (reinit_alloc_once_early): Disable mmap in Doug Lea malloc.
4762         * emacs.c (main): Assert that mmap'd allocation is disabled.
4763
4764 2002-10-14  Andy Piper  <andy@xemacs.org>
4765
4766         * glyphs-widget.c (layout_query_geometry): add in fiddle
4767         factor. Include border text in width layout calculation.
4768         (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10.
4769
4770 2002-11-02  Stephen J. Turnbull  <stephen@xemacs.org>
4771
4772         * XEmacs 21.4.10 "Military Intelligence" is released.
4773
4774 2002-10-17  Raymond Toy  <toy@rtp.ericsson.se>
4775
4776         * nas.c: Update for NAS 1.6 and later, from Jon Trulson.  Was
4777         using the NAS private array SoundFileInfo that no longer exists in
4778         NAS 1.6 and later.  Preserve backward compatibility with NAS 1.5a
4779         and earlier.  This is broken for some versions between 1.5a and
4780         1.5f.
4781
4782 2002-10-10  Stephen J. Turnbull  <stephen@xemacs.org>
4783
4784         * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
4785
4786         * emacs.c (shut_down_emacs): Improve crash message.
4787
4788 2002-10-09  Stephen J. Turnbull  <stephen@xemacs.org>
4789
4790         * file-coding.c (determine_real_coding_system): Check for coding
4791         cookie in first LINES_TO_CHECK lines (currently 2).  Cater to
4792         shebangs and Python PEP 263.
4793
4794 2002-10-08  Andy Piper  <andy@xemacs.org>
4795
4796         * glyphs-widget.c (layout_query_geometry): only resize dynamically
4797         if static sizes haven't been set.
4798
4799 2002-08-30  Mike Alexander  <mta@arbortext.com>
4800
4801         * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
4802         to close a socket.
4803
4804 2002-10-03  Stephen J. Turnbull  <stephen@xemacs.org>
4805
4806         * callproc.c (child_setup): 21.4 doesn't have retry_close.
4807
4808 2002-09-20  Mike Sperber <mike@xemacs.org>
4809
4810         (This partially gets back my patch from 2002-07-20 without the
4811         bug.)
4812         * callproc.c (child_setup): Remove Ben's comment noting confusion
4813         over the file descriptors >= 3: close_process_descs() doesn't
4814         close those.  Fix fd range to go up to MAXDESC-1 instead of 64.
4815         * process-unix.c (unix_create_process): Call
4816         begin_dont_check_for_quit to inhibit unwanted interaction (and
4817         thus breaking of X event synchronicity) in the child.
4818
4819 2002-09-26  Golubev I. N.  <gin@mo.msk.ru>
4820
4821         * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
4822         widget.
4823
4824 2002-08-20  Ben Sigelman  <bhsigelm@cs.brown.edu>
4825
4826         * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
4827         instead of while(XtAppPending()&XtIMXEvent).  Upon a gdm logout,
4828         the xemacs process did not exit, but looped infinitely here.  This
4829         fixes that problem.
4830
4831 2002-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
4832
4833         * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
4834         (find_context): Improve comments.
4835
4836         * regex.c (re_compile_fastmap):  Gratuitous #ifdef comment fixes.
4837         (re_match_2): An XCHAR_TABLE operation was missing.
4838
4839         Many of the following changes were inspired by Andy Piper's (now
4840         obsolete) patch to make syntax-table text property lookup optional.
4841
4842         [Documentation]
4843
4844         * syntax.h (top level): Document semantics of syntax flags.
4845         * syntax.c (comstr_start, Fforward_comment): Improve comments.
4846         * syntax.c, syntax.h (top level): Document syntax cache better in
4847         comments.
4848
4849         [Instrument syntax caching (temporary change)]
4850
4851         * syntax.h (enum syntax_cache_statistics_functions, struct
4852         syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
4853         SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
4854         * syntax.c (scan_words, Fforward_comment, scan_lists,
4855         Fbackward_prefix_characters):
4856         * font-lock.c (find_context):
4857         Use them to instrument syntax caching. 
4858         * syntax.c (struct syntax_cache_statistics, scs_statistics,
4859         syntax_cache_statistics_function_names): New type and variables.
4860         * syntax.c (update_syntax_cache): Update and report statistics.
4861
4862         [Major syntax cache optimizations]
4863
4864         syntax.c (lookup_syntax_properties): Default off.
4865
4866         * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
4867         * syntax.c (update_syntax_cache):
4868         Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
4869
4870         [Minor syntax cache optimizations and code clarifications]
4871
4872         * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
4873         SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
4874         SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
4875         SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
4876         SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
4877         (Code clarification.)
4878
4879         * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
4880         scan_lists): Compute code from syncode, use Boolean macros instead
4881         of redundant masking operations.  (Code clarification; any decent
4882         compiler can do this optimization.)
4883
4884         * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
4885         for clarity.
4886
4887         * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
4888         PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
4889         use F*_single_property_change instead of F*_extent_change.
4890         Currently F*_single_property_change is _much_ less efficient.
4891
4892         * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
4893         * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT):  Initialize
4894         syntax_cache.object properly, don't leave Qt or Qnil.
4895         (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
4896         * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
4897         tests for Qt or Qnil.
4898
4899 2002-09-21  Stephen J. Turnbull  <stephen@xemacs.org>
4900
4901         * redisplay.c (point_in_line_start_cache): 
4902         * extents.c (print_extent_1):
4903         Fix warnings.
4904
4905         * extents.c (Fset_extent_property): Document `syntax-table' property.
4906
4907         * extents.h (Fnext_single_property_change): EXFUN it.
4908
4909 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
4910
4911         * search.c (clear_unused_search_regs): New static function.
4912         (search_buffer): 
4913         (simple_search): 
4914         (boyer_moore):
4915         Use it.  Fixes "stale match data" bug reported by Martin Stjernholm.
4916         Minor clarifications in comments.
4917
4918         * regex.c (re_match_2_internal): Ensure no stale submatches.
4919
4920 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
4921
4922         * event-Xt.c (enqueue_focus_event): Add missing prototype.
4923
4924 2002-08-29  Jerry James  <james@xemacs.org>
4925
4926         * lisp.h: structrures -> structures.
4927
4928 2002-06-03  Andy Piper  <andy@xemacs.org>
4929
4930         * frame.c (frame_conversion_internal): add conversion appropriate
4931         for setting frame dimensions in pixels.
4932
4933         * console.h (struct console_methods): add device-specific widget
4934         layout functions.
4935
4936         * emacs.c (main_1): initialize glyph vars.
4937
4938         * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
4939         (handle_focus_event_2): new function. Allow focus to
4940         be set to a particular window and widget.
4941         (enqueue_focus_event): new function. Create a
4942         synthetic focus event.
4943         (emacs_Xt_handle_magic_event): call
4944         handle_focus_event_2.
4945
4946         * frame.c (Fset_frame_pixel_height): new function. Allow
4947         pixel-based sizing. Does the right thing on character-oriented
4948         displays.
4949         (Fset_frame_pixel_width): ditto.
4950         (Fset_frame_pixel_size): ditto.
4951         (syms_of_frame): declare.
4952
4953         * general-slots.h: add :vertically-justify and
4954         :horizontally-justify.
4955
4956         * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
4957         (mswindows_widget_border_width): new function.
4958         (mswindows_combo_box_instantiate): set border widths.
4959         (console_type_create_glyphs_mswindows): declare.
4960
4961         * glyphs-widget.c:
4962         (check_valid_justification): allow vertical and horizontal
4963         justification.
4964         (widget_border_width): new function. Call device methods.
4965         (widget_instance_border_width): ditto.
4966         (logical_unit_height): new function. Determine the height of a
4967         logical-unit. Logical units are intended to provide grid-like
4968         layout for subcontrols in a layout. If the layout is
4969         :vertically-justify top then subcontrols will be positioned on
4970         logical-unit boundaries, thus allowing adjacent subcontrols to
4971         line up.
4972         (widget_logical_unit_height): ditto for widgets.
4973         (redisplay_widget): misc cleanup.
4974         (widget_spacing): new function. Call device specific
4975         methods. Intended to be the default gap between adjacent widgets.
4976         (widget_query_geometry): use new spacing functions to determine
4977         appropriate geometry.
4978         (initialize_widget_image_instance): initialize horizontal and
4979         vertical justification.
4980         (widget_instantiate): use logica-units where appropriate for
4981         sizing large widgets.
4982         (button_query_geometry): use widget_instance_border_width.
4983         (tree_view_query_geometry): ditto.
4984         (tab_control_query_geometry): ditto.
4985         (edit_field_query_geometry): new function.
4986         (layout_update): pick up :justify, :horizontally-justify and
4987         :vertically-justify none of which worked previously. :justify is
4988         used as a fallback for both horizontal and vertical justification.
4989         (layout_query_geometry): use logical units to size appropriately.
4990         (layout_layout): ditto.
4991         (Fwidget_logical_to_character_width): new function. Allow users to
4992         convert from logical units to characters so that frame sizes can
4993         be set appropriately.
4994         (Fwidget_logical_to_character_height): ditto.
4995         (syms_of_glyphs_widget): declare.
4996         (image_instantiator_edit_fields): add edit_field_query_geometry.
4997         (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
4998         :horizontally-justify.
4999         (specifier_vars_of_glyphs_widget): new function. Declare
5000         Vwidget_border_width which is not yet used.
5001
5002         * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
5003         (x_widget_border_width): new function.
5004         (x_widget_instantiate): create a sensible name for widgets.
5005         (console_type_create_glyphs_x): declare x_widget_border_width.
5006
5007         * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
5008         (struct Lisp_Image_Instance): add :vertically-justify and
5009         :horizontally-justify.
5010         (LAYOUT_JUSTIFY_TOP): new.
5011         (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
5012         (ROUND_UP): new macro. Round argument up to next integral
5013         interval.
5014
5015         * redisplay-output.c (redisplay_output_layout): misc formatting.
5016
5017         * symsinit.h: declare specifier_vars_of_glyphs_widget.
5018
5019 2002-08-23  Stephen J. Turnbull  <stephen@xemacs.org>
5020
5021         * XEmacs 21.4.9 "Informed Management" is released.
5022
5023 2002-08-19  Andy Piper  <andy@xemacs.org>
5024
5025         * fileio.c (Ffile_truename): on cygwin using win32 normalize to
5026         win32 format.
5027
5028         * realpath.c (xrealpath): normalize drive spec also so that dir
5029         sep chars are not mixed on cygwin.
5030
5031 2002-08-06  Jerry James  <james@xemacs.org>
5032
5033         * window.c (Fsplit_window): Count only half of the divider width
5034         against the left window when splitting horizontally. 
5035
5036 2002-06-24  Andy Piper  <andy@xemacs.org>
5037
5038         * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
5039         toolbar was cleared.
5040
5041         * toolbar-msw.c (mswindows_clear_frame_toolbars): new
5042         function. Split out from mswindows_output_frame_toolbars.
5043         (mswindows_output_frame_toolbars): move clear pieces to
5044         mswindows_output_frame_toolbars.
5045
5046         * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
5047         out from gtk_output_frame_toolbars.
5048         (gtk_output_frame_toolbars): move clear pieces to
5049         gtk_clear_frame_toolbars.
5050
5051         * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
5052         the frame is cleared. How this ever worked before is a mystery.
5053         (x_output_frame_toolbars): Only output toolbars.
5054         (x_clear_frame_toolbars): new. Clear previous toolbar locations.
5055
5056         * gutter.c (update_gutter_geometry):
5057         Mark frame layout changed.
5058         (update_frame_gutter_geometry, update_frame_gutters):
5059         Respect frame_layout_changed.
5060
5061         * console.h (struct console_methods): add
5062         clear_frame_toolbars_method.
5063
5064         * redisplay.c (redisplay_frame): call
5065         update_frame_toolbars_geometry and re-order update_frame_toolbars.
5066
5067         * toolbar.h: declare update_frame_toolbars_geometry.
5068
5069         * toolbar.c (update_frame_toolbars_geometry): new function. Split
5070         out from update_frame_toolbars.  Call clear_frame_toolbars.
5071         (update_frame_toolbars): only output, do not change geometry.
5072
5073         * redisplay.c: add frame_layout_changed.
5074
5075         * redisplay.h: add frame_layout_changed.
5076         (CLASS_RESET_CHANGED_FLAGS): set it.
5077         (GLOBAL_RESET_CHANGED_FLAGS): ditto.
5078         (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
5079         (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
5080
5081         * device.h (struct device): add frame_layout_changed.
5082         (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
5083
5084         * frame.h (struct frame): add frame_layout_changed.
5085         (MARK_FRAME_LAYOUT_CHANGED): new.
5086
5087 2002-06-30  Mike Alexander  <mta@arbortext.com>
5088
5089         * event-msw.c (mswindows_need_event): Don't wait for a new message
5090         if the queue is not empty.  Suggested by Paul Moore.
5091
5092 2002-06-12  Andy Piper  <andy@xemacs.org>
5093
5094         * frame-msw.c (msprinter_init_frame_3): calculate the frame size
5095         for printing on accurately.
5096
5097 2002-06-09  Rick Rankin <rick_rankin@yahoo.com>
5098
5099         * event-msw.c (mswindows_wnd_proc): Add a handler for the
5100         WM_ACTIVATE message. Make sure that the frame is visible if the
5101         window is visible. This seemss to fix the problem where XEmacs
5102         appears to freeze after switching desktops with certain virtual
5103         window managers.
5104         (debug_output_mswin_message): Added code to output message
5105         parameters for WM_WINDOWPOSCHANGED, 
5106         WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
5107
5108 2002-05-25  Andy Piper  <andy@xemacs.org>
5109
5110         * select-x.c (vars_of_select_x): Fix docstring of
5111         x-selection-strict-motif-ownership
5112
5113 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5114
5115         * keymap.c (get_keymap):
5116         Add comment about do_autoload GCPROs own args.
5117
5118 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5119
5120         * bytecode.c (execute_optimized_program): check_opcode ifdef
5121         ERROR_CHECK_BYTE_CODE.
5122
5123 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5124
5125         Thanks to Ben Wing and Michael Sperber.
5126
5127         * eval.c (Fcommand_execute):
5128         (Feval):
5129         (Ffuncall):
5130         (Fmacroexpand_internal):
5131         (function_argcount):
5132         callint.c (Fcall_interactively):
5133         Add comment about do_autoload GCPROs own args.
5134
5135         * (do_autoload): GCPRO both args as well as local Lisp_Object.
5136
5137         * eval.c (Ffuncall): Extra braces to placate GCC.
5138
5139 2002-08-10  Stephen J. Turnbull  <stephen@xemacs.org>
5140
5141         * backtrace.h (grow_specpdl):
5142         (SPECPDL_RESERVE):
5143         * EmacsFrame.c (EmacsFrameSetValues):
5144         * eval.c (grow_specpdl):
5145         * ExternalShell.c (hack_event_masks_1):
5146         * glyphs-x.c (convert_EImage_to_XImage): 
5147         (x_finalize_image_instance):
5148         * ralloc.c (page_size):
5149         (r_alloc_sbrk):
5150         * xgccache.c (gc_cache_hash):
5151         Fix unsigned comparison warnings.
5152
5153 2002-07-29  Jerry James  <james@xemacs.org>
5154
5155         * lread.c (locate_file): Any nonnegative return value indicates
5156         success if MODE is nonnegative.
5157
5158 2002-08-03  Brian A Palmer  <bpalmer@rescomp.Stanford.EDU>
5159
5160         * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
5161         argument. 
5162
5163 2002-07-17  Stephen J. Turnbull  <stephen@xemacs.org>
5164
5165         * process-unix.c (unix_send_process): #ifdef the coding_stream member.
5166
5167         * dumper.c (pdump_get_indirect_count):
5168         (pdump_scan_by_alignment):
5169         (pdump_dump_root_struct_ptrs):
5170         (pdump_dump_rtables):
5171         (pdump_dump_root_objects):
5172         (pdump):
5173         * nas.c (WaveOpenDataForReading):
5174         * fns.c (print_bit_vector):
5175         * font-lock.c (SINGLE_SYNTAX_STYLE):
5176         * glyphs.c (check_for_ignored_expose):
5177         (find_matching_subwindow):
5178         * glyphs-eimage.c:
5179         * imgproc.c (get_histogram):
5180         * redisplay.c (point_in_line_start_cache):
5181         * redisplay-output.c (redisplay_unmap_subwindows):
5182         * symbols.c (defsymbol_massage_name_1):
5183         (defkeyword_massage_name):
5184         (deferror_massage_name_and_message):
5185         * redisplay-x.c (x_output_string): 
5186         * emacs.c (run_temacs_argv_size, run_temacs_args_size):
5187         * frame.h (struct frame):
5188         * filelock.c (current_lock_owner):
5189         * doprnt.c (emacs_doprnt_1):
5190         * lisp.h (struct Lisp_Bit_Vector):
5191         (DO_REALLOC):
5192         Fix warnings.
5193
5194 2002-02-13  Ben Wing  <ben@xemacs.org>
5195
5196         * event-stream.c (reset_key_echo):
5197         * event-stream.c (reset_this_command_keys):
5198         * event-stream.c (execute_command_event):
5199         If console is dead as a result of C-x 5 0, then post-command stuff
5200         needs to be careful and do only non-console-specific stuff.
5201
5202 2002-07-01  Mike Sperber <mike@xemacs.org>
5203
5204         * process-unix.c (unix_send_process): Mark coding_outstream as
5205         non-open upon SIGPIPE.
5206
5207         * event-stream.c (Fnext_event): Reorder switch cases to something
5208         that makes sense.
5209
5210 2001-08-13  Dmitry Astapov  <adept@umc.com.ua>
5211
5212         * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
5213         Don't bogusly reinitialize ascii_character property.
5214
5215 2002-07-08  Mike Sperber <mike@xemacs.org>
5216
5217         * process.c (Fstart_process_internal): Do error checking before we
5218         fork off the child, so the child can't muck with the state of the
5219         parent.
5220
5221 2002-07-08  Mike Sperber <mike@xemacs.org>
5222
5223         * ralloc.c (init_ralloc): Allocate properly for pdump.
5224
5225 2002-06-12  Andy Piper  <andy@xemacs.org>
5226
5227         * glyphs.c (query_string_geometry): check the string.
5228
5229         * glyphs-widget.c (widget_logical_unit_height): cope with nil
5230         widget names.
5231
5232 2002-06-17  Jerry James  <james@xemacs.org>
5233
5234         * sysdll.c: Remove RTLD_GLOBAL initialization.
5235         * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
5236
5237 2002-06-25  Stephen J. Turnbull  <stephen@xemacs.org>
5238
5239         * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
5240
5241 2002-05-16  Mathias Grimmberger  <mgri@zaphod.sax.de>
5242
5243         * sysdep.c (sys_rename): Make sys_rename work for the case where
5244         Windows rename sets errno to EACCES if target file exists.
5245
5246 2002-05-21  Jonathan Harris  <jonathan@xemacs.org>
5247
5248         * device-msw.c (mswindows_handle_page_setup_dialog_box):
5249         Fix detection of metric units to work on Win95
5250
5251 2002-05-21  Stephen J. Turnbull  <stephen@xemacs.org>
5252
5253         * syswindows.h: #define LOCALE_RETURN_NUMBER.  Why, I don't know.
5254
5255 2002-04-25  Andy Piper  <andy@xemacs.org>
5256
5257         * redisplay.c (create_text_block): Remove extra comment trailer.
5258
5259 2002-04-24  Andy Piper  <andy@xemacs.org>
5260
5261         * redisplay.c (create_text_block): Don't actually add propagation
5262         data if the line ends after we have added a glyph.
5263
5264 2002-04-22  Andy Piper  <andy@xemacs.org>
5265
5266         * extents.c (extent_fragment_update): check for glyphs we have
5267         previously displayed.
5268         * extents.c (print_extent_1): warning removal.
5269         * extents.h: change prototype.
5270         * redisplay-output.c (redisplay_normalize_glyph_area): calculate
5271         widths correctly for wide glyphs.
5272         * redisplay.c (position_redisplay_data_type): add end_glyph_width.
5273         * redisplay.c (prop_type): add PROP_GLYPH.
5274         * redisplay.c (struct prop_block): add glyph type
5275         * redisplay.c (add_glyph_rune): when adding part of a glyph add it
5276         to the propagation data.
5277         * redisplay.c (create_text_block): if there is a glyph in the
5278         propagation data use it to salt extent_fragment_update.
5279         * redisplay.c (create_string_text_block): ditto.
5280
5281 2002-04-13  Nix  <nix@esperi.demon.co.uk>
5282
5283         * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
5284         * redisplay-output.c (compare_runes): Compare them.
5285         * redisplay.c: Update copyright date.
5286         * redisplay.c (pos_data): Add need_baseline_computation field.
5287         * redisplay.c (add_glyph_rune): Update ascent, descent, and
5288         need_baseline_computation; zero yoffset. Set max_pixmap_height
5289         for all pixmaps, not just automatically positioned ones.
5290         * redisplay.c (calculate_yoffset): New, compute yoffset values.
5291         * redisplay.c (calculate_baseline): New, compute textual baseline.
5292         * redisplay.c (add_glyph_rune): Call them.
5293         * redisplay.c (create_text_block): Likewise.
5294         * redisplay.c (create_overlay_glyph_block): Likewise.
5295         * redisplay.c (add_margin_runes): Likewise.
5296         * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
5297
5298         * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
5299         * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
5300         * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
5301         * redisplay-msw.c (mswindows_output_string): Likewise.
5302         * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
5303         * redisplay-gtk.c (gtk_output_display_block): Likewise.
5304         * redisplay-x.c (x_output_display_block): Likewise.
5305
5306 2002-03-28  Ben Wing  <ben@xemacs.org>
5307
5308         * redisplay.c: Fixed bug in redisplay
5309         w.r.t. hscroll/truncation/continuation glyphs causing jumping up
5310         and down of the lines, since they're bigger than the line
5311         size. (It was seen most obviously when there's a horizontal scroll
5312         bar, e.g. do C-h a glyph or something like that.) The problem was
5313         that the glyph-contrib-p setting on glyphs was ignored even if it
5314         was set properly, which it wasn't until now.
5315
5316 2002-04-24  Andy Piper  <andy@xemacs.org>
5317
5318         * lisp.h (Dynarr_end): Fix definition.
5319
5320 2002-02-06  Adrian Aichner  <adrian@xemacs.org>
5321
5322         * redisplay.c (mark_redisplay): Remove call to
5323         update_frame_window_mirror.
5324
5325 2001-11-15  Andy Piper  <andy@xemacs.org>
5326
5327         * win32.c (Fmswindows_shell_execute): fix handling of URL's under
5328         cygwin (again).
5329
5330 2002-02-13  Andy Piper  <andy@xemacs.org>
5331
5332         * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
5333         we did in fact enqueue the XM_MAPFRAME event.
5334
5335 2002-01-15  Adrian Aichner  <adrian@xemacs.org>
5336
5337         * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
5338         to fix problem switching between virtual desktops under virtuawin
5339         virtual window manager.
5340
5341 2001-07-30  Adrian Aichner  <adrian@xemacs.org>
5342
5343         * event-msw.c: Typo fix.
5344         * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
5345         magic XM_MAPFRAME event has been sent.
5346
5347 2001-11-23  Andy Piper  <andy@xemacs.org>
5348
5349         * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
5350
5351 2001-11-21  Andy Piper  <andy@xemacs.org>
5352
5353         * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
5354         mouse events outside the frame.
5355
5356 2002-03-20  Andy Piper  <andy@xemacs.org>
5357
5358         * menubar-msw.c (mswindows_popup_menu): warning removal.
5359         * dialog-msw.c (dialog_popped_down): ditto.
5360
5361 2001-12-11  Andy Piper  <andy@xemacs.org>
5362
5363         * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
5364         * dialog-msw.c (mswindows_make_dialog_box_internal): set
5365         popup_up_p.
5366         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
5367         * menubar-msw.c (mswindows_handle_wm_command): ditto.
5368         * menubar-msw.c (mswindows_popup_menu): ditto.
5369
5370 2001-10-29  Andy Piper  <andy@xemacs.org>
5371
5372         * dialog-msw.c (handle_directory_dialog_box): quit if the user
5373         cancels.
5374
5375 2002-01-03  Andy Piper  <andy@xemacs.org>
5376
5377         * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
5378         letters.
5379         (xrealpath): ditto.
5380
5381 2002-03-29  Jonathan Harris  <jonathan@xemacs.org>
5382
5383         * device-msw.c (plist_get_margin): Add arg specifying mm or inches
5384         * device-msw.c (plist_set_margin): Fix multiplicand used for mm
5385         * device-msw.c (mswindows_handle_page_setup_dialog_box):
5386         Detect and handle case where machine is set up for metric units
5387
5388 2002-04-02  Andy Piper  <andy@xemacs.org>
5389
5390         * dired-msw.c (mswindows_get_files): 
5391         * nt.c (mswindows_stat): SetErrorMode() so that file errors are
5392         completely handled by XEmacs. Suggested by Thomas Vogler
5393         <mail@thomas-vogler.de>.
5394
5395 2001-11-14  Andy Piper  <andy@xemacs.org>
5396
5397         * nt.c (REG_ROOT): change registry key to XEmacs.
5398
5399 2002-04-27  Andy Piper  <andy@xemacs.org>
5400
5401         * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
5402
5403 2002-04-26  Andy Piper  <andy@xemacs.org>
5404
5405         * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
5406         behavior.
5407
5408 2002-03-14  Mike Alexander  <mta@arbortext.com>
5409
5410         * event-msw.c (mswindows_unwait_process): New, remove process from
5411         wait list
5412         * process-nt.c (nt_finalize_process_data): Call
5413         mswindows_unwait_process
5414         * console-msw.h: Declare mswindows_unwait_process
5415
5416 2002-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
5417
5418         * editfns.c (Fdecode_time):
5419         (Fformat_time_string):
5420         Check for invalid time.  Thanks to Nick Pakoulin <npak@ispras.ru>.
5421         (make_time): Warning elimination (change arg name).
5422
5423 2001-11-24  Andy Piper  <andy@xemacs.org>
5424
5425         * window.c (Fsplit_window): Doc return type.
5426
5427 2002-04-01  Andy Piper  <andy@xemacs.org>
5428
5429         * emacs.c (Fkill_emacs): Only output message box in interactive
5430         mode.
5431
5432 2002-04-26  Andy Piper  <andy@xemacs.org>
5433  
5434         * config.h.in: pull in 21.5.x change to stop alloca warnings under
5435         cygwin.
5436
5437 2002-03-18  Gregory Steuck  <greg-xemacs-patch@nest.cx>
5438
5439         * unexelf.c:  Use ELFSIZE or define from _LP64 to indicate a 64
5440         bit platform.
5441
5442 2002-05-09  Stephen J. Turnbull  <stephen@xemacs.org>
5443
5444         * XEmacs 21.4.8 "Honest Recruiter" is released.
5445
5446 2002-05-07  Nix  <nix@esperi.demon.co.uk>
5447
5448         Supersedes 2002-04-17 patch.
5449
5450         * process.h (PROCESS_LIVE_P): Use the process status as
5451         evidence of health, not the state of the input stream.
5452         (PROCESS_READABLE_P): Say if the process is readable
5453         from. (It may be dead nonetheless.)
5454         (CHECK_READABLE_PROCESS): Test for that condition.
5455
5456         * process.c (create_process): Use PROCESS_READABLE_P.
5457         (read_process_output, set_process_filter): Likewise.
5458
5459         * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
5460         (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
5461
5462         This code is #if 0'd, this is not the time to add new functions:
5463
5464         * process.c (Fprocess_readable_p): Report readability status.
5465         * process.c (Qprocess_readable_p): New, associated symbol...
5466         * process.c (syms_of_process): ... initialize it.
5467
5468 2002-05-04  Stephen J. Turnbull  <stephen@xemacs.org>
5469
5470         * XEmacs 21.4.7 "Economic Science" is released.
5471
5472 2002-04-17  Nix  <nix@esperi.demon.co.uk>
5473
5474         * process.h (PROCESS_LIVE_P): Use the process status as
5475         evidence of health, not the state of the input stream.
5476
5477 2002-04-30  Charles G. Waldman <cgw@xemacs.org>
5478
5479         * sysdep.c (sys_siglist): change "signum" to "signal"
5480
5481 2001-04-21  Martin Buchholz  <martin@xemacs.org>
5482
5483         * s/darwin.h: New file.
5484         Thanks to Greg Parker <gparker@cs.stanford.edu>.
5485         
5486 2002-04-23  Andreas Jaeger  <aj@suse.de>
5487
5488         * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
5489         which use lib64 for 64-bit libs.
5490         (START_FILES): Likewise.
5491
5492 2002-02-11  Mike Sperber  <mike@xemacs.org>
5493
5494         * device-x.c: 
5495         (x_IO_error_handler):
5496         (x_init_device): Temporarily keep device in static variable
5497         `device_being_initialized' so we can recover gracefully from
5498         internal XOpenDevice failure.  (XOpenDevice is documented to
5499         return NULL on failure, but sometimes calls the IO error handler
5500         instead.)
5501
5502 2002-01-31  John H. Palmieri  <palmieri@math.washington.edu>
5503
5504         * dired.c (Ffile_name_all_completions): Change documentation --
5505         remove reference to completion-ignored-extensions.
5506         * dired.c (vars_of_dired): Change documentation for
5507         completion-ignored-extensions -- remove reference to
5508         file-name-all-completions.
5509
5510 2002-03-06  Jerry James  <james@xemacs.org>
5511
5512         * emodules.c (emodules_load): Fix multiple loading of same module.
5513
5514 2002-01-25  Andrew Begel <abegel@cs.berkeley.edu>
5515         * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
5516         RTLD_LAZY to avoid incorrect symbol binding when using nested
5517         shared libraries on Solaris.
5518
5519 2002-02-12  Stephen J. Turnbull  <stephen@xemacs.org>
5520
5521         * fileio.c (Ffind_file_name_handler): Improve docstring.
5522
5523 2002-01-20  Stephen J. Turnbull  <stephen@xemacs.org>
5524
5525         * fns.c (Fmapconcat): Improve docstring.
5526
5527 2002-01-03  Eric Gillespie, Jr.  <epg@pretzelnet.org>
5528
5529         * device-gtk.c: Add prototype for
5530         emacs_gtk_selection_clear_event_handle.
5531         (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
5532         selection.  Setup signal handler for "selection_clear_event"
5533         (emacs_gtk_selection_clear_event_handle).
5534
5535         * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
5536         other applications owning the clipboard (based on
5537         x_handle_selection_clear).
5538
5539 2001-12-23  William M. Perry  <wmperry@gnu.org>
5540
5541         * menubar-gtk.c (gtk_popup_menu)  Add sanity checks, fix crash.
5542         
5543 2002-01-04  Martin Buchholz  <martin@xemacs.org>
5544
5545         * keymap.c (define_key_alternate_name): Parenthesize EQ.
5546
5547 2001-12-17  Stephen J. Turnbull  <stephen@xemacs.org>
5548
5549         * XEmacs 21.4.6 "Common Lisp" is released.
5550
5551 2001-12-16  Torsten Duwe  <duwe@caldera.de>
5552
5553         * search.c (Freplace_match): Add missing sub-expression functionality.
5554
5555         * buffer.c (decode_buffer): Add a check for pointer type to
5556         decode_buffer, before gcc's CSE optimization reorders a
5557         dereference in front of the allow_string test.
5558
5559 2001-11-16  Darryl Okahata  <darrylo@xemacs.org>
5560
5561         * window.c (window_loop): Fix bug that sometimes prevented
5562         window_loop() from iterating across multiple devices.  Also, at
5563         Ben's request, changed infloop-detecting code to abort() instead
5564         of silently terminating window_loop().
5565
5566 2001-11-21  Stephen J. Turnbull  <stephen@xemacs.org>
5567
5568         Based on analysis and patch by Simon Josefson <jas@extundo.com>.
5569         * editfns.c (make_time): New function.
5570         (Fencode_time): Use it instead of wasteful_word_to_lisp.
5571         * lisp.h (make_time): Prototype and comment it.
5572         * dired.c (wasteful_word_to_lisp): Deprecate.
5573         (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
5574
5575 2001-10-31  Kyle Jones  <kyle_jones@wonderworks.com>
5576
5577         * fileio.c (auto_save_1): Use current coding system, not
5578         escape-quoted.
5579
5580 2001-11-13  Ben Wing  <ben@xemacs.org>
5581
5582         * window.c:
5583         * window.c (window_truncation_on):
5584         * window.c (syms_of_window):
5585         truncate-partial-width-windows should respect the buffer being
5586         displayed, like other redisplay vars.
5587
5588 2001-11-13  Hirokazu FUKUI  <hfukui@sannet.ne.jp>
5589
5590         * event-stream.c (Fread_key_sequence): save current buffer.
5591
5592 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
5593
5594         * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
5595
5596 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
5597
5598         * alloc.c (lcrecord_stats): Add space for types defined in modules.
5599
5600 2001-10-26  Mike Alexander  <mta@arbortext.com>
5601
5602         * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
5603
5604 2001-10-25  Andy Piper  <andy@xemacs.org>
5605
5606         * ChangeLog:
5607         * dialog-msw.c (handle_directory_proc): new function.
5608          (handle_directory_dialog_box): new fucntion.
5609          (handle_file_dialog_box): use new directory dialog support.
5610          (mswindows_make_dialog_box_internal): ditto.
5611         * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
5612         handling.
5613         (mswindows_find_frame): make global.
5614         * fileio.c (Fexpand_file_name): build fix.
5615         * general-slots.h: add Qdirectory.
5616         * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
5617         handling.
5618         * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
5619         cygwin not leaving win32 paths unchanged.
5620         * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
5621         cygwin runtime to do path conversion.
5622         (Fmswindows_shell_execute): fix cygwin handling of URLs.
5623         (syms_of_win32): add new function.
5624         * window.c (window_loop): build fix.
5625
5626 2001-10-15  Andy Piper  <andy@xemacs.org>
5627
5628         (Fmswindows_shell_execute): fix handling of URL's under cygwin.
5629
5630 2001-10-23  Stephen J. Turnbull  <stephen@xemacs.org>
5631
5632         * XEmacs 21.4.5 "Civil Service" is released.
5633
5634 2001-04-08  Danny Colascione  <qtmstr@optonline.net>
5635
5636         * glyphs-x.c: Force buffer-tab highlight update when moving the
5637         buffer, avoiding an ugly black border, used for keyboard focus
5638         indication, on a widget that can never have keyboard focus, the
5639         buffer tab.
5640
5641 2001-08-30  Daiki Ueno  <ueno@unixuser.org>
5642
5643         * process-unix.c (unix_open_multicast_group): Remove too much
5644         conversion between host and network byte order.
5645
5646 2001-09-10  Nix  <nix@esperi.demon.co.uk>
5647
5648         * src/buffer.c (kill_buffer): Undedicate windows showing BUF
5649         before replacing them.
5650
5651         * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
5652         operation.
5653
5654         * src/window.c (undedicate_windows): Use it.
5655         * src/window.h: Add prototype.
5656
5657 2001-09-17  Ben Wing  <ben@xemacs.org>
5658
5659         * fileio.c (normalize_filename):
5660         * fileio.c (Fexpand_file_name):
5661         Fix various C++ compile errors in Andy's recent code.
5662         
5663         * callint.c (Fcall_interactively):
5664         * editfns.c (Ftemp_directory):
5665         * editfns.c (Fuser_full_name):
5666         * emacs.c (argmatch):
5667         * lread.c (locate_file_map_suffixes):
5668         * redisplay-x.c (x_ring_bell):
5669         Fix sign-compare warnings.
5670         
5671 2001-09-08  Andy Piper  <andy@xemacs.org>
5672
5673         * fileio.c (normalize_filename): copied from nt.c
5674         * (Ffile_name_directory): enable win32 paths under cygwin.
5675         * (Ffile_name_nondirectory): ditto.
5676         * (directory_file_name): ditto.
5677         * (Fexpand_file_name): ditto.
5678         * (Ffile_truename): ditto.
5679         * (Fsubstitute_in_file_name): ditto.
5680         * (Ffile_name_absolute_p): ditto.
5681         * (Ffile_readable_p): ditto.
5682
5683 2001-09-08  Andy Piper  <andy@xemacs.org>
5684
5685         * device-msw.c (mswindows_finish_init_device): remove dde
5686         initialization.
5687         * device-msw.c (mswindows_init_dde): factor out from
5688         mswindows_finish_init_device()
5689         * device-msw.c (init_mswindows_very_early): new function
5690         initialize but don't enable dde.
5691         * emacs.c (main_1): call init_mswindows_very_early.
5692         * event-msw.c:
5693         * event-msw.c (mswindows_dde_callback): only execute when we are
5694         ready.
5695         * symsinit.h: declare init_mswindows_very_early.
5696
5697 2001-05-02  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
5698
5699         [sjt: This has been in 21.5 for months with no complaints.]
5700
5701         * console.h (struct console_methods): Added flags member.
5702         (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
5703         (CONMETH_IMPL_FLAG):
5704         (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
5705         Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
5706
5707         * device.c (window_system_pixelated_geometry): Use the above macros.
5708
5709         * device.h (DEVICE_IMPL_FLAG): Macro to check a device
5710         implememntation flag.
5711         * device.h (DEVICE_DISPLAY_P): Use it.
5712
5713         * frame.c (delete_frame_internal): Use the above macro.
5714
5715         * redisplay.c (redisplay_device): Use it.
5716         (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
5717         (redisplay_frame): Ditto.
5718
5719         * device-msw.c (mswindows_device_implementation_flags): Removed.
5720         (msprinter_device_implementation_flags): Removed.
5721         (console_type_create_device_mswindows): Removed references to
5722         implementation_flags methods, set implementation flags here.
5723         (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
5724
5725         * device-gtk.c (gtk_device_implementation_flags): Removed method.
5726         (console_type_create_device_gtk): Removed method declaration.
5727         Added commented out statement which semantically matches the
5728         commented out statement in the above removed method.
5729
5730 2001-04-14  Gordon Sadler  <gbsadler1@lcisp.com>
5731
5732         The attached patch fixes a few warnings. 
5733
5734         * src/emacs.c: prototype console_type_create_select_gtk for GTK only
5735         * src/frame-gtk.c: guard against GNOME calls in GTK only
5736         * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
5737         * src/select-gtk.c: prototype lisp_to_time
5738
5739 2001-06-08  Ben Wing  <ben@xemacs.org>
5740
5741         ------ gc-in-window-procedure fixes ------
5742         
5743         * alloc.c:
5744         * alloc.c (struct post_gc_action):
5745         * alloc.c (register_post_gc_action):
5746         * alloc.c (run_post_gc_actions):
5747         * alloc.c (garbage_collect_1):
5748         Create "post-gc actions", to avoid those dreaded "GC during window
5749         procedure" problems.
5750
5751         * event-msw.c:
5752         Abort, clean and simple, when GC in window procedure.  We want
5753         to flush these puppies out.
5754
5755         * glyphs-msw.c:
5756         * glyphs-msw.c (finalize_destroy_window):
5757         * glyphs-msw.c (mswindows_finalize_image_instance):
5758         Use a post-gc action when destroying subwindows.
5759
5760         * lisp.h:
5761         Declare register_post_gc_action().
5762
5763         * scrollbar-msw.c:
5764         * scrollbar-msw.c (unshow_that_mofo):
5765         Use a post-gc action when unshowing scrollbar windows, if in gc.
5766
5767         * redisplay.c (mark_redisplay):
5768         Add comment about the utter evilness of what's going down here.
5769
5770         ------ cygwin setitimer fixes ------
5771         
5772         * Makefile.in.in (sheap_objs):
5773         * Makefile.in.in (profile_objs):
5774         * Makefile.in.in (objs):
5775         Compile profile.c only when HAVE_SETITIMER.
5776         
5777         * nt.c (mswindows_sigset):
5778         * nt.c (mswindows_sighold):
5779         * nt.c (mswindows_sigrelse):
5780         * nt.c (mswindows_sigpause):
5781         * nt.c (mswindows_raise):
5782         * nt.c (close_file_data):
5783         Style fixes.
5784         
5785         * nt.c:
5786         Move setitimer() emulation to win32.c, because Cygwin needs it too.
5787         
5788         * profile.c:
5789         * profile.c (Fstart_profiling):
5790         * profile.c (Fstop_profiling):
5791         Make sure we don't compile if no setitimer().  Use qxe_setitimer()
5792         instead of just plain setitimer().
5793         
5794         * signal.c:
5795         * signal.c (set_one_shot_timer):
5796         * signal.c (alarm):
5797         Define qxe_setitimer() as an encapsulation around setitimer() --
5798         call setitimer() directly unless Cygwin or MS Win, in which case
5799         we use our simulated version in win32.c.
5800         
5801         * systime.h:
5802         * systime.h (struct itimerval):
5803         * systime.h (ITIMER_REAL):
5804         Prototype mswindows_setitimer() and qxe_setitimer().  Long
5805         comment about "qxe" and the policy regarding encapsulation.
5806
5807         * win32.c:
5808         * win32.c (setitimer_helper_proc):
5809         * win32.c (setitimer_helper_period):
5810         * win32.c (setitimer_helper):
5811         * win32.c (mswindows_setitimer):
5812         Move setitimer() emulation here, so Cygwin can use it.
5813         Rename a couple of functions and variables to be longer and more
5814         descriptive.  In setitimer_helper_proc(), send the signal
5815         using either mswindows_raise() or (on Cygwin) kill().  If for
5816         some reason we are still getting lockups, we'll change the kill()
5817         to directly invoke the signal handlers.
5818
5819         ------ windows shell fixes ------
5820         
5821         * callproc.c:
5822         * ntproc.c:
5823         Comments about how these two files must die.
5824
5825         * callproc.c (init_callproc):
5826         On MS Windows, init shell-file-name from SHELL, then COMSPEC,
5827         not just COMSPEC. (more correct and closer to FSF.) Don't
5828         force a value for SHELL into the environment. (Comments added
5829         to explain why not.)
5830         
5831         * nt.c (init_user_info):
5832         Don't shove a fabricated SHELL into the environment.  See above.
5833
5834 2001-06-01  Ben Wing  <ben@xemacs.org>
5835
5836         * Makefile.in.in (ldflags):
5837         eliminate that pesky "defaulting to 00401000" warning.
5838         * nt.h:
5839         eliminate warnings.
5840
5841 2001-06-15  Golubev I. N.  <gin@mo.msk.ru>
5842
5843         * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
5844         * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
5845
5846 2001-04-24  Jerry James <james@xemacs.org>
5847
5848         * faces.h: pass parameters to Fadd_spec_to_specifier in the
5849         correct order.
5850
5851 2001-06-01  Ben Wing  <ben@xemacs.org>
5852
5853         * event-msw.c (debug_mswin_messages):
5854         conditionalize the messages that were causing compile errors.
5855         (if only macros could generate #ifdef statements ...)
5856
5857 2001-07-28  Stephen J. Turnbull  <stephen@xemacs.org>
5858
5859         * XEmacs 21.4.4 "Artificial Intelligence" is released.
5860
5861 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
5862
5863         * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
5864
5865 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
5866
5867         * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
5868         * process-unix.c (unix_canonicalize_host_name):
5869         sysdep.c (init_system_name):
5870         Use it to conditionally support IPv6 canonicalization.
5871
5872 2001-05-31  Paul Stodghill  <stodghil@cs.cornell.edu>
5873
5874         * event-msw.c:
5875         Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
5876
5877 2001-05-19  Paul Krause  <paulkrause1@mediaone.net>
5878
5879         * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
5880         attempt is made to scroll when no scroll bar is available.
5881
5882 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
5883
5884         * input-method-motif.c (XIM_delete_frame): New callback.
5885         (XIM_init_frame): Register it.  (Reapplied by SJT, it somehow
5886         got deleted from 21.4.3.)
5887
5888 2001-06-01  Ben Wing  <ben@xemacs.org>
5889
5890         * nt.c (mswindows_utime):
5891         * nt.c (close_file_data):
5892         fix off-by-one-indirection error.
5893
5894 2001-05-29  Adrian Aichner  <adrian@xemacs.org>
5895
5896         * fileio.c: Include nt.h.  Remove lisp_string_set_file_times()
5897         because set_file_times() now takes Lisp_Object path, instead of
5898         char*.
5899         * nt.c: Include buffer.h.
5900         * nt.c (convert_from_time_t): New.
5901         * nt.c (mswindows_utime): New.  Use utime, since SetFileTime does
5902         not set mtime correctly.
5903         * nt.h: Declare mswindows_utime().
5904         * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
5905         path, instead of char*.
5906         * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
5907
5908 2001-05-30  Ben Wing  <ben@xemacs.org>
5909
5910         For 21.4:
5911
5912         (Stephen, just take all event-msw.c patches.  This includes
5913         the "iconify" fix below.)
5914
5915         * event-msw.c:
5916         * event-msw.c (mswindows_dequeue_dispatch_event):
5917         * event-msw.c (assert):
5918         * event-msw.c (emacs_mswindows_quit_p):
5919         * event-msw.c (debug_mswin_messages):
5920         * event-msw.c (debug_output_mswin_message):
5921         * event-msw.c (vars_of_event_mswindows):
5922         Fix yet more problems with C-g handling.
5923         Implement debug-mswindows-events.
5924         
5925 2001-05-24  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
5926
5927         * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
5928         
5929 2001-05-23  Ben Wing  <ben@xemacs.org>
5930
5931         * event-msw.c (winsock_writer):
5932         * event-msw.c (winsock_closer):
5933         prior kludgy code was clobbering the buffer, thinking it was
5934         "unused" space to store an unneeded return value; instead, use
5935         the variable we've already got staring us in the face.
5936
5937 2001-05-17  Andy Piper  <andy@xemacs.org>
5938
5939         * sysfile.h: don't assume that file attributes are boolean
5940
5941 2001-05-23  Ben Wing  <ben@xemacs.org>
5942
5943         * device-msw.c (msprinter_init_device):
5944         signal an error rather than crash with an unavailable network
5945         printer (from Mike Alexander).
5946         
5947         * event-msw.c:
5948         * event-msw.c (struct winsock_stream):
5949         * event-msw.c (winsock_writer):
5950         * event-msw.c (winsock_closer):
5951         * event-msw.c (make_winsock_stream_1):
5952         cleanup headers.  fix (hopefully) an error with data corruption
5953         when sending to a network connection.
5954
5955         * fileio.c (Fexpand_file_name): Fix evil code that attempts
5956         to handle the ~user prefix by (a) always assuming we're referencing
5957         ourselves and not even verifying the user -- hence any file with
5958         a tilde as its first char is invalid! (b) if there wasn't a slash
5959         following the filename, the pointer was set *past* the end of
5960         file and we started reading from uninitialized memory.  Now we
5961         simply treat these as files, always.
5962
5963         * buffer.c (common_init_complex_vars_of_buffer): comment change.
5964         
5965 2001-05-19  Ben Wing  <ben@xemacs.org>
5966
5967         * eval.c: doc comment about gcpro'ing in record_unwind_protect.
5968
5969         * process-nt.c:
5970         * process-nt.c (vars_of_process_nt):
5971         remove unused mswindows-quote-process-args.  rec for 21.4.
5972         
5973 2001-05-12  Ben Wing  <ben@xemacs.org>
5974
5975         * event-msw.c (mswindows_dde_callback):
5976         * event-msw.c (mswindows_wnd_proc):
5977         eliminate cygwin warnings.
5978
5979 2001-05-06  Ben Wing  <ben@xemacs.org>
5980
5981         * console-msw.h:
5982         * device-msw.c:
5983         * device-msw.c (print_dialog_worker):
5984         * device-msw.c (mswindows_handle_print_dialog_box):
5985         * device-msw.c (syms_of_device_mswindows):
5986         * dialog-msw.c (mswindows_make_dialog_box_internal):
5987         * general-slots.h:
5988         implement printing the selection when it's selected.
5989
5990 2001-05-20  Drazen Kacar  <dave@arsdigita.com>
5991
5992         * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
5993
5994 2001-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
5995
5996         * lisp.h (EMACS_INT_MAX): This should be one bit less since
5997         EMACS_INT is signed.
5998
5999 2001-04-15  Michael Lausch  <mla@1012surf.net>
6000
6001         * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
6002         gtk_widget_request_size() to give scrollbar >0 width for
6003         GTK >1.2.8.
6004
6005 2001-05-30  William M. Perry  <wmperry@gnu.org>
6006
6007         * event-gtk.c: Check for buttons as modifier keys.
6008
6009 2001-05-25  Craig Lanning  <CraigL@Knology.net>
6010
6011         * s\mingw32.h:
6012         Properly find MinGW's <process.h> inside Cygwin's restructured
6013         include directories.  Don't try to include <cygwin/version.h>
6014         since we are dropping support for MinGW in versions of Cygwin
6015         earlier than b21.
6016         * nt.c:
6017         Drop support for MinGW in versions of Cygwin before b21.
6018         * sysdep.c:
6019         Properly find MinGW's <process.h> inside Cygwin's restructured
6020         include directories.
6021         * syswindows.h:
6022         Drop support for MinGW in versions of Cygwin before b21.
6023         * unexcw.c:
6024         Even though a.out.h is no longer detected by configure, allow
6025         MinGW to use it until we figure out how to do the job with Win32.
6026
6027 2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
6028
6029         * syntax.c (find_start_of_comment):
6030         Fix `unbalanced parentheses' bug when dealing with mixed comment
6031         styles in c++/java/etc. mode
6032
6033 2001-05-29  Mike Alexander  <mta@arbortext.com>
6034
6035         * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
6036         FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
6037
6038 2001-05-17  Andrew Begel  <abegel@eecs.berkeley.edu>
6039
6040         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
6041
6042 2001-03-31  Mike Sperber <mike@xemacs.org>
6043
6044         * search.c (Freplace_match): Support FSF-style specification of
6045         match subexpression when applied to a buffer.
6046
6047 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
6048
6049         * event-stream.c (is_scrollbar_event): add missing semicolon
6050
6051 2001-05-22  Isaac Hollander  <ysh@mindspring.com>
6052
6053         * Makefile.in.in: Use TAR macro instead of hardcoding
6054           tar.  Allows use of GNU tar instead of system tar
6055
6056 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
6057
6058         * event-stream.c (is_scrollbar_event): add missing semicolon
6059
6060 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
6061
6062         * XEmacs 21.4.3 "Academic Rigor" is released.
6063
6064 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
6065
6066         * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
6067
6068 2001-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
6069
6070         * buffer.c (Vcase_fold_search): Remove obsolete
6071           comment about non ASCII case-fold-search.  This
6072           bug has been fixed by case-table changes.
6073
6074 2001-05-11  Stephen J. Turnbull  <stephen@xemacs.org>
6075
6076         * event-msw.c: Restore include of events-mod.h.
6077
6078 2001-04-22   zhaoway  <zw@debian.org>
6079
6080         * event-stream.c (is_scrollbar_event): Noop returning 0 if
6081         !HAVE_SCROLLBARS.
6082
6083 2001-05-10  Stephen J. Turnbull  <stephen@xemacs.org>
6084
6085         * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
6086
6087 2001-05-08  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>
6088
6089         * mule-charset.c (Fmake_charset): Add missing else.
6090
6091 2001-04-23  Ben Wing  <ben@xemacs.org>
6092
6093         * event-msw.c (FAKE_MOD_QUIT):
6094         * event-msw.c (mswindows_dequeue_dispatch_event):
6095         * event-msw.c (mswindows_wnd_proc):
6096         * event-msw.c (emacs_mswindows_quit_p):
6097         Get critical quit working.
6098
6099 2001-05-05  Ben Wing  <ben@xemacs.org>
6100
6101         * console-msw.h:
6102         * device-msw.c:
6103         * device-msw.c (mswindows_get_default_margin):
6104         * frame-msw.c (mswindows_size_frame_internal):
6105         * frame-msw.c (msprinter_init_frame_1):
6106         * frame-msw.c (vars_of_frame_mswindows):
6107         Change top/bottom margin defaults to 0.5 inches.
6108
6109 2001-05-01  Martin Buchholz  <martin@xemacs.org>
6110
6111         Fix link error with gcc 3.0 on Linux.
6112         * terminfo.c (UP): Remove.
6113         * terminfo.c (BC): Remove.
6114         * terminfo.c (PC): Remove.
6115         They weren't used, and in any case, these symbols should be
6116         defined in the *library*.
6117
6118 2001-05-03  Martin Buchholz  <martin@xemacs.org>
6119
6120         * s/aix4.h: Fix crash with xlc -O3.
6121         Improve comment explaining how -O3 works.
6122
6123 2001-04-15  Ben Wing  <ben@xemacs.org>
6124
6125         * event-stream.c:
6126         * event-stream.c (Fnext_event):
6127         * event-stream.c (is_scrollbar_event):
6128         * event-stream.c (execute_command_event):
6129         Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
6130         crash' problem.  His fix introduces other problems.  We filter
6131         out scrollbar events specifically, making them somewhat invisible
6132         to command-building, and not appearing in `this-command-keys'.
6133         More work is still needed (see comments in event-stream.c), but
6134         this fixes all the major problems.
6135
6136 2001-04-20  Ben Wing  <ben@xemacs.org>
6137
6138         * .cvsignore: Added stuff for Windows.
6139
6140 2001-04-28  Ben Wing  <ben@xemacs.org>
6141
6142         * buffer.c (Ferase_buffer):
6143         * editfns.c (buffer_insert1):
6144         * editfns.c (Finsert_before_markers):
6145         * editfns.c (Finsert_string):
6146         * editfns.c (Finsert_char):
6147         * editfns.c (Fdelete_region):
6148         * editfns.c (Fwiden):
6149         * editfns.c (Fnarrow_to_region):
6150         remove bogus lines setting zmacs_region_stays to 0.
6151         
6152 2001-04-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
6153
6154         * process-unix.c (unix_open_network_stream): If connect() fails
6155         invalidate file descriptor after closing it.
6156
6157 2001-03-08  Mike Alexander  <mta@arbortext.com>
6158
6159         * event-msw.c (mswindows_need_event_in_modal_loop):
6160         Don't dispatch a message if we didn't get one.
6161         (mswindows_need_event):
6162         Terminate the correct process when one exits instead of the first
6163         one on Vprocess_list and look for process termination when in
6164         mswindows_protect_modal_loop.
6165
6166 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
6167
6168         * XEmacs 21.4.1 "Copyleft" is released.
6169
6170 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
6171
6172         * input-method-motif.c (XIM_delete_frame): New callback.
6173         (XIM_init_frame): Register it.
6174
6175 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
6176
6177         * XEmacs 21.4.0 "Solid Vapor" is released.
6178
6179 2001-04-15  Ben Wing  <ben@xemacs.org>
6180
6181         * cmdloop.c (call_command_loop):
6182         Fix braino in bit-rotting code.
6183         
6184 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
6185
6186         * extents.c (Fset_extent_endpoints): Force creation of extent info
6187         in buffer_or_string.
6188
6189         * extents.c (process_extents_for_insertion_mapper): Correctly
6190         check for open-open zero-length extents.
6191
6192 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
6193
6194         * lisp.h: New typedefs Memory_count, Element_count.
6195         * regex.c:
6196         * regex.h:
6197         Sign-compare warning elimination: several unsigned -> signed.
6198         Based on work by Ben Wing <ben@xemacs.org>.
6199
6200 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
6201
6202         * XEmacs 21.2.47 "Zephir" is released.
6203
6204 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
6205
6206         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
6207
6208 2001-04-03  Mike Sperber <mike@xemacs.org>
6209
6210         * search.c: Revert previous patch due because of release.
6211
6212 2001-03-30  Ben Wing  <ben@xemacs.org>
6213
6214         * s\cygwin32.h:
6215         Add missing killpg prototype.
6216
6217         * elhash.c:
6218         Add a comment about fixing problems when a new entry is added
6219         while mapping.
6220
6221         * frame-msw.c (mswindows_init_frame_1):
6222         Fix compile warnings.
6223
6224         * menubar.c (vars_of_menubar):
6225         Provide `menu-accelerator-support' to indicate that we properly
6226         support %_ in menu specifications, so that package code can
6227         conditionalize on this (and remove %_ from menu specifications
6228         on older versions).
6229
6230         * event-msw.c:
6231         * scrollbar-msw.c:
6232         * scrollbar-msw.c (can_scroll):
6233         * scrollbar-msw.h:
6234         Fix handling of mouse wheel under Windows to follow standards --
6235         now scrolls window under pointer, not selected window.
6236
6237 2001-03-31  Mike Sperber <mike@xemacs.org>
6238
6239         * search.c (Freplace_match): Support FSF-style specification of
6240         match subexpression when applied to a buffer.
6241
6242 2001-03-15  Martin Buchholz  <martin@xemacs.org>
6243
6244         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
6245         function to modify KEYMAP, so map over a copy of the hash table.
6246
6247 2001-03-21  Martin Buchholz <martin@xemacs.org>
6248
6249         * XEmacs 21.2.46 "Urania" is released.
6250
6251 2001-03-20  Dan Holmsand  <dan@eyebee.com>
6252
6253         * realpath.c (xrealpath): Make file-truename work with symlinks to
6254         /cygdrive paths on cygwin. Always lowercase drive-letters on
6255         native windows.
6256         (cygwin_readlink): Don't try to find canonical filename unless
6257         file exists.
6258
6259 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
6260
6261         * ChangeLog: Log GTK merge.
6262
6263         * dumper.c:
6264         * select-x.c:
6265         * specifier.c:
6266         * symeval.h:
6267         Revert gratuitous whitespace changes from GTK merge.
6268
6269         * emacs.c: Document end of complex #ifdef @ l. 1495.
6270
6271
6272 2001-03-12  Andy Piper  <andy@xemacs.org>
6273
6274         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
6275         have to do likewise.
6276
6277 2001-03-12  Andy Piper  <andy@xemacs.org>
6278
6279         * sysdep.c: we only support mingw now.
6280
6281 2001-03-09  Andy Piper  <andy@xemacs.org>
6282
6283         * unexcw.c (copy_executable_and_dump_data_section): making approx
6284         overrun a warning only.
6285
6286 2001-03-10  William M. Perry  <wmperry@aventail.com>
6287
6288         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
6289         satisfy Stephen's identical-after-cpp plea.
6290
6291 2001-03-02  Ben Wing  <ben@xemacs.org>
6292
6293         * cmds.c:
6294         * cmds.c (Fforward_char):
6295         * syntax.c:
6296         * window.c:
6297
6298         Augment documentation of the most common motion commands to make
6299         note of the shifted-motion support.
6300         
6301 2001-03-02  Ben Wing  <ben@xemacs.org>
6302
6303         * nt.c (mswindows_fstat):
6304         * nt.c (mswindows_stat):
6305         * search.c (boyer_moore):
6306         Fix compile warnings under Windows.
6307         
6308         * sysdep.c (sys_readdir):
6309         Fix buggy filename-conversion code under Mule.
6310
6311 2001-03-09  William M. Perry  <wmperry@aventail.com>
6312
6313         * Makefile.in.in:
6314         * config.h.in:
6315         * console.c:
6316         * console.h:
6317         * device.c:
6318         * device.h:
6319         * dragdrop.c:
6320         * emacs.c:
6321         * event-stream.c:
6322         * events.c:
6323         * events.h:
6324         * faces.c:
6325         * frame.h:
6326         * general-slots.h:
6327         * glyphs.c:
6328         * gutter.c:
6329         * inline.c:
6330         * lisp.h:
6331         * lrecord.h:
6332         * make-src-depend:
6333         * redisplay-output.c:
6334         * redisplay.c:
6335         * symsinit.h:
6336         * sysfile.h:
6337         * toolbar.c:
6338         * window.c:
6339         The Great GTK Merge.
6340
6341         * ChangeLog.GTK:
6342         * console-gtk.c:
6343         * console-gtk.h:
6344         * device-gtk.c:
6345         * emacs-marshals.c:
6346         * emacs-widget-accessors.c:
6347         * event-gtk.c:
6348         * frame-gtk.c:
6349         * gccache-gtk.c:
6350         * gccache-gtk.h:
6351         * glade.c:
6352         * glyphs-gtk.c:
6353         * glyphs-gtk.h:
6354         * gtk-glue.c:
6355         * gtk-xemacs.c:
6356         * gtk-xemacs.h:
6357         * gui-gtk.c:
6358         * gui-gtk.h:
6359         * menubar-gtk.c:
6360         * native-gtk-toolbar.c:
6361         * objects-gtk.c:
6362         * objects-gtk.h:
6363         * redisplay-gtk.c:
6364         * scrollbar-gtk.c:
6365         * scrollbar-gtk.h:
6366         * select-gtk.c:
6367         * toolbar-gtk.c:
6368         * ui-byhand.c:
6369         * ui-gtk.c:
6370         * ui-gtk.h:
6371         The Great GTK Merge: new files.
6372
6373 2001-02-26  Ben Wing  <ben@xemacs.org>
6374
6375         Reapplied Lstream change.
6376
6377 2001-02-26  Ben Wing  <ben@xemacs.org>
6378
6379         Undid the last change, since it is more controversial than I
6380         thought.  It should be back in at some point soon.
6381         
6382 2001-02-25  Ben Wing  <ben@xemacs.org>
6383
6384         * buffer.c:
6385         * callproc.c (Fold_call_process_internal):
6386         * event-msw.c (ntpipe_slurp_reader):
6387         * event-msw.c (ntpipe_shove_writer):
6388         * event-msw.c (winsock_reader):
6389         * event-msw.c (winsock_writer):
6390         * file-coding.c:
6391         * file-coding.c (detect_eol_type):
6392         * file-coding.c (detect_coding_type):
6393         * file-coding.c (determine_real_coding_system):
6394         * file-coding.c (Fdetect_coding_region):
6395         * file-coding.c (decoding_reader):
6396         * file-coding.c (decoding_writer):
6397         * file-coding.c (mule_decode):
6398         * file-coding.c (Fdecode_coding_region):
6399         * file-coding.c (encoding_reader):
6400         * file-coding.c (encoding_writer):
6401         * file-coding.c (mule_encode):
6402         * file-coding.c (Fencode_coding_region):
6403         * file-coding.c (detect_coding_sjis):
6404         * file-coding.c (decode_coding_sjis):
6405         * file-coding.c (encode_coding_sjis):
6406         * file-coding.c (detect_coding_big5):
6407         * file-coding.c (decode_coding_big5):
6408         * file-coding.c (encode_coding_big5):
6409         * file-coding.c (detect_coding_ucs4):
6410         * file-coding.c (decode_coding_ucs4):
6411         * file-coding.c (encode_coding_ucs4):
6412         * file-coding.c (detect_coding_utf8):
6413         * file-coding.c (decode_coding_utf8):
6414         * file-coding.c (encode_coding_utf8):
6415         * file-coding.c (detect_coding_iso2022):
6416         * file-coding.c (decode_coding_iso2022):
6417         * file-coding.c (encode_coding_iso2022):
6418         * file-coding.c (decode_coding_no_conversion):
6419         * file-coding.c (encode_coding_no_conversion):
6420         * glyphs-x.c (write_lisp_string_to_temp_file):
6421         * gpmevent.c (tty_get_foreign_selection):
6422         * lisp.h:
6423         * lstream.c:
6424         * lstream.c (Lstream_flush_out):
6425         * lstream.c (Lstream_adding):
6426         * lstream.c (Lstream_write_1):
6427         * lstream.c (Lstream_write):
6428         * lstream.c (Lstream_raw_read):
6429         * lstream.c (Lstream_read_more):
6430         * lstream.c (Lstream_read):
6431         * lstream.c (Lstream_unread):
6432         * lstream.c (Lstream_fputc):
6433         * lstream.c (stdio_reader):
6434         * lstream.c (stdio_writer):
6435         * lstream.c (filedesc_reader):
6436         * lstream.c (filedesc_writer):
6437         * lstream.c (lisp_string_reader):
6438         * lstream.c (struct fixed_buffer_stream):
6439         * lstream.c (make_fixed_buffer_input_stream):
6440         * lstream.c (make_fixed_buffer_output_stream):
6441         * lstream.c (fixed_buffer_reader):
6442         * lstream.c (fixed_buffer_writer):
6443         * lstream.c (struct resizing_buffer_stream):
6444         * lstream.c (resizing_buffer_writer):
6445         * lstream.c (dynarr_writer):
6446         * lstream.c (lisp_buffer_reader):
6447         * lstream.c (lisp_buffer_writer):
6448         * lstream.h:
6449         * lstream.h (lstream_implementation):
6450         * lstream.h (struct lstream):
6451         * md5.c (Fmd5):
6452         * process-nt.c (nt_send_process):
6453         * process-unix.c (unix_send_process):
6454         
6455         Correct Lstream lossage due to mixing of signed and unsigned
6456         quantities.  All Lstream uses of size_t and ssize_t are now a
6457         single signed data type Lstream_data_count.  This fixes problems
6458         under Windows with sending large quantities of data to a process,
6459         and may well fix other subtle bugs.
6460
6461 2001-02-23  Martin Buchholz <martin@xemacs.org>
6462
6463         * XEmacs 21.2.45 "Thelxepeia" is released.
6464
6465 2001-02-21  Martin Buchholz  <martin@xemacs.org>
6466
6467         * lisp-union.h (XSETINT): 
6468         (XSETCHAR):
6469         (XSETOBJ): 
6470         Reverse previous change of 2001-02-06.
6471
6472 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
6473
6474         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
6475         buffers.
6476         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
6477         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
6478         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
6479         * regex.c (POS_AS_IN_BUFFER): removed
6480         * regex.c (re_search_2):
6481         * regex.c (re_match_2):
6482         Don't use an offset of 1 when calculating buffer positions, since
6483         `BI_BUF_BEGV' does it already.
6484
6485 2001-02-18  Wim Dumon  <wim@easics.be>
6486
6487         * insdel.c (prepare_to_modify_buffer): Also check for
6488         supersession when clash-detection is enabled. 
6489
6490 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
6491
6492         * regex.c (re_match_2_internal):
6493         Convert temp characters from 'const unsigned char' to 're_char'.
6494         Fix crashing bug with extended characters under mule.
6495         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
6496         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
6497         font-lock, pdump, and new syntax-table code.
6498         * syntax.c (find_start_of_comment):
6499         (find_end_of_comment):
6500         (forward-comment):
6501         Fix crashing bugs involving moving beyond end of buffer.
6502         * syntax.c (find_start_of_comment):
6503         Fixed logic to allow proper detection of cases where the same
6504         character is used to end both a two-char comment start and a
6505         two-char comment end sequence. Fixes `(forward-comment -1)'.
6506         * syntax.c (find_start_of_comment):
6507         Return position just past last comment-end character for all cases
6508         (previously was only done for two-char comment-end sequences).
6509         * syntax.c (forward-comment):
6510         Take value returned from `find_end_of_comment', rather than
6511         incrementing it.
6512         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
6513         Properly deal with BUFFERP (syntax_cache.object)
6514
6515 2001-02-17  Martin Buchholz  <martin@xemacs.org>
6516
6517         * alloc.c (Fgarbage_collect): 
6518         * alloc.c (make_bit_vector_from_byte_vector):
6519         -Wsign-compare-correctness.
6520
6521 2001-02-16  Martin Buchholz  <martin@xemacs.org>
6522
6523         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
6524         (XSETCHAR): Likewise.
6525         (XSETOBJ): Likewise.
6526
6527 2001-02-15  Martin Buchholz  <martin@xemacs.org>
6528
6529         * mule-canna.c (canna-func-delete_previous): 
6530         Rename to canna-func-delete-previous.
6531
6532 2001-02-14  Martin Buchholz  <martin@xemacs.org>
6533
6534         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
6535
6536 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
6537
6538         * font-lock.c (find_context): Fix C++ compile errors introduced by
6539         recent patch
6540
6541 2001-02-13  Martin Buchholz  <martin@xemacs.org>
6542
6543         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
6544         pragma, but earlier ones barf on the same pragma.
6545
6546 2001-02-06  Mike Sperber <mike@xemacs.org>
6547
6548         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
6549         `configure-mule-lisp-directory'.
6550
6551 2001-02-12  Martin Buchholz  <martin@xemacs.org>
6552
6553         Make sure dump-id.c is compiled in the same way as other .c's.
6554         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
6555         * dump-id.h: Remove.
6556         * emacs.c: Move dump-id.h into dumper.h.
6557         * dumper.h: Move dump-id.h into dumper.h.
6558         * Makefile.in.in:
6559         Use standard .c.o rule for building dump-id.o.
6560         Remove preprocessor flags from link command.
6561         Add dump-id.o to ${otherobjs} if PDUMP.
6562
6563 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
6564
6565         Port FSF 20.7 syntax table improvements.
6566         * syntax.c.
6567         * syntax.h.
6568
6569         Fixups for new syntax table stuff.
6570         * dired.c: Include syntax.c.
6571         (Fdirectory_files): Initialize regex_match_object and
6572         regex_emacs_buffer.
6573         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
6574         and Fget_char_property.
6575
6576         Use ported FSF 20.7 syntax table improvements.
6577         * font-lock.c.
6578         * regex.c.
6579         * search.c.
6580         
6581 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6582
6583         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
6584         Unixware's enum boolean from sys/types.h.
6585
6586 2001-02-10  Martin Buchholz  <martin@xemacs.org>
6587
6588         Fix support for building with latest Purify.
6589         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
6590         (PURIFY_FLAGS): Likewise.
6591
6592 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6593
6594         * fileio.c (lisp_string_set_file_times): New.
6595         * fileio.c (Fcopy_file): Use it.
6596         Fixes bug:
6597         (copy-file filename non-ascii-filename t t)
6598         ==> No such file or directory, non-ascii-filename
6599
6600 2001-02-10  Martin Buchholz  <martin@xemacs.org>
6601
6602         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
6603         USHRT_MAX seems clearer than ~0 anyways.
6604
6605 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6606
6607         dumper improvements.  Inspired by Olivier.
6608         * dumper.c (pdump_max_align): New.
6609         * dumper.c (pdump_add_entry): Use pdump_max_align.
6610         * dumper.c (pdump_get_entry_list): Likewise.
6611         * dumper.c (pdump_scan_by_alignment): Likewise.
6612         Don't iterate through unnecessary alignments.
6613         * dumper.c (pdump_file_get): No need to align result of malloc().
6614         * dumper.c (pdump_mallocadr): Remove.  
6615         The result of malloc() is guaranteed to be maximally aligned.
6616         * dumper.c: s/elmt/elt/g;
6617         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
6618         * dumper.c (pdump_alert_undump_object): Likewise.
6619         * dumper.c (pdump_align_table): 
6620         Don't support alignments > 64.
6621         Store ALIGNOF's, not shift counts, in table.
6622
6623 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6624
6625         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
6626         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
6627         * systime.h: Use HAVE_UTIME.
6628         * sysdep.c (struct utimbuf): Remove.
6629         * sysdep.c (set_file_times): Prefer utime() to utimes().
6630         * config.h.in (HAVE_UTIME): New.
6631         * config.h.in (HAVE_UTIME_H): Remove.
6632         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
6633
6634 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6635
6636         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
6637
6638 2001-02-08  Martin Buchholz  <martin@xemacs.org>
6639
6640         * s/irix6-0.h: Use the standard system memmove, not bcopy.
6641
6642 2001-02-08  Martin Buchholz <martin@xemacs.org>
6643
6644         * XEmacs 21.2.44 "Thalia" is released.
6645
6646 2001-02-06  Martin Buchholz  <martin@xemacs.org>
6647
6648         Fixes crashes in kill-emacs on some systems.
6649         * process-unix.c (unix_kill_child_process):
6650         It's OK for kill() to fail with ESRCH.
6651
6652 2001-02-07  Martin Buchholz  <martin@xemacs.org>
6653
6654         Contortions to make .gdbinit tricks work on most systems.
6655         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
6656         * alloc.c (dbg_valmask): Make non-const.
6657         * alloc.c (dbg_typemask): Make non-const.
6658         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
6659         * alloc.c (dbg_valbits): Make non-const.
6660         * alloc.c (dbg_gctypebits): Make non-const.
6661         * .gdbinit (decode_object): Make it work with AIX cc.
6662
6663 2001-02-06  Martin Buchholz  <martin@xemacs.org>
6664
6665         * elhash.c (make_general_lisp_hash_table):
6666         Use simpler and more efficient calloc to clear entries.
6667
6668 2001-02-07  Martin Buchholz  <martin@xemacs.org>
6669
6670         * window.c (window_scroll): Work around an AIX C compiler bug.
6671         Fixes 'scroll-up' does nothing problem with xlC.
6672
6673 2001-02-05  Martin Buchholz  <martin@xemacs.org>
6674
6675         * .gdbinit: Remove obsolete comment.
6676
6677 2001-01-31  Mike Alexander  <mta@arbortext.com>
6678
6679         * select.c (Fown_selection_internal): Set owned_p for device
6680         method correctly.
6681
6682 2001-02-01  Martin Buchholz  <martin@xemacs.org>
6683
6684         Port to g++ 2.97.
6685         "not" cannot be used as a macro name as it is an operator in C++
6686         * config.h.in: Stop #defining `not'.
6687         * chartab.c (check_category_char): not ==> not_p
6688         * chartab.h: Likewise.
6689         * regex.c (re_match_2_internal): Likewise.
6690
6691 2001-02-02  Martin Buchholz  <martin@xemacs.org>
6692
6693         * lisp-disunion.h: Fix up comments.
6694
6695 2001-01-31  Martin Buchholz  <martin@xemacs.org>
6696
6697         * keymap.c (define_key_check_and_coerce_keysym):
6698         (syms_of_keymap):
6699         Support mouse-6 and mouse-7 bindings in the obvious way.
6700
6701 2001-02-01  Martin Buchholz  <martin@xemacs.org>
6702
6703         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
6704
6705 2001-01-30  Martin Buchholz  <martin@xemacs.org>
6706
6707         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
6708         Previous patch missed DEFVAR_INT_MAGIC.
6709         Make sure future DEFVAR_foo use correct types.
6710         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
6711         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
6712         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
6713         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
6714         * (DEFVAR_INT): Likewise.
6715         * redisplay.c (vertical_clip): Should be of type Fixnum.
6716         * redisplay.c (horizontal_clip): Likewise.
6717         * lisp.h (dump_add_opaque_int): New.
6718         (dump_add_opaque_fixnum): New.
6719
6720 2001-01-29  Andy Piper  <andy@xemacs.org>
6721
6722         * glyphs-widget.c (check_valid_int_or_function): allow symbols
6723         since they can be eval'ed
6724
6725 2001-01-29  Martin Buchholz  <martin@xemacs.org>
6726
6727         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
6728         Oops, XEmacs redefines `class'.  Use `typename' instead.
6729
6730 2001-01-28  Martin Buchholz  <martin@xemacs.org>
6731
6732         * dumper.c: Fix C++ compile errors.
6733
6734 2001-01-29  Martin Buchholz  <martin@xemacs.org>
6735
6736         * tparam.c: Use correct prototypes.
6737
6738 2001-01-28  Martin Buchholz  <martin@xemacs.org>
6739
6740         * sysproc.h: #include util.h for NetBSD's openpty.
6741
6742 2001-01-27  Martin Buchholz  <martin@xemacs.org>
6743
6744         More 64-bit correctness.
6745         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
6746         Use a typedef `fixnum' for the type used for DEFVAR_INT.
6747         Fix up comments.
6748         This finally finishes the 64-bit SGI port.
6749         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
6750         * symbols.c: Fix up comments and type casts.
6751         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
6752         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
6753         * symeval.h (Fixnum): New type.
6754         * symeval.h (symbol_value_type): Fix up comment.
6755
6756         * commands.h:
6757         * nt.c:
6758         * emacs.c:
6759         * data.c:
6760         * redisplay.c:
6761         * abbrev.c:
6762         * dired-msw.c:
6763         * event-Xt.c:
6764         * eldap.c:
6765         * window.c:
6766         * sound.c:
6767         * event-stream.c:
6768         * eval.c:
6769         * buffer.c:
6770         * mule-canna.c: A million DEFVAR_INTs here...
6771         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
6772         * extents.c:
6773         * cmdloop.c:
6774         * lisp.h:
6775         * select-x.c:
6776         * console-x.h:
6777         * event-msw.c:
6778         * mule-wnnfns.c:
6779         * hpplay.c:
6780         * ralloc.c:
6781         * alloc.c:
6782         * keymap.c:
6783         * profile.c:
6784         s/int/Fixnum/g in DEFVAR_INT declarations.
6785
6786 2001-01-26  Martin Buchholz  <martin@xemacs.org>
6787
6788         Port pdump to SGI alignment-sensitive environment.
6789         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
6790         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
6791         properly aligned.
6792         Define and use aligned reading and writing macros.
6793         Use buffered stdio instead of posix i/o for faster dumping.
6794         Eliminate kludgy 256 byte space for header.
6795         Read and write from dump file using structs for alignment safety.
6796         * dumper.c (pdump_align_stream): New.
6797         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
6798         * dumper.c (PDUMP_READ_ALIGNED): New.
6799         * dumper.c (PDUMP_WRITE_ALIGNED): New.
6800         * dumper.c (pdump_static_Lisp_Object): New struct.
6801         * dumper.c (pdump_static_pointer): New struct.
6802         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
6803         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
6804         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
6805         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
6806
6807         * dumper.c (pdump_backtrace):
6808         * dumper.c (pdump_get_indirect_count):
6809         * dumper.c (pdump_register_object):
6810         * dumper.c (pdump_register_struct):
6811         * dumper.c (pdump_reloc_one):
6812         * dumper.c (pdump_scan_by_alignment):
6813         * dumper.c (pdump_dump_from_root_struct_ptrs):
6814         * dumper.c (pdump_dump_opaques):
6815         * dumper.c (pdump_dump_rtables):
6816         * dumper.c (pdump_dump_from_root_objects):
6817         * dumper.c (pdump):
6818         * dumper.c (pdump_load_finish):
6819         Use aligned reading and writing.
6820
6821         * dumper.c (pdump_free): Make static.
6822         * dumper.c (pdump_hFile): Likewise.
6823         * dumper.c (pdump_hMap): Likewise.
6824
6825 2001-01-26  Martin Buchholz <martin@xemacs.org>
6826
6827         * XEmacs 21.2.43 "Terspichore" is released.
6828
6829 2001-01-25  Martin Buchholz  <martin@xemacs.org>
6830
6831         Type fiddling for window_config.saved_windows_count
6832         * window.c (struct window_config): 
6833         Make saved_windows_count member unsigned.
6834         * window.c (sizeof_window_config_for_n_windows): 
6835         Make parameter unsigned.
6836         * window.c (mark_window_config):
6837         * window.c (window_config_equal):
6838         * window.c (free_window_configuration):
6839         * window.c (Fset_window_configuration):
6840         * window.c (count_windows):
6841         * window.c (Fcurrent_window_configuration):
6842         * window.c (reinit_vars_of_window):
6843         Update all callers and users.
6844
6845 2001-01-25  Martin Buchholz  <martin@xemacs.org>
6846
6847         Alignment correctness for flexible arrays.
6848         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
6849         Make alignment-correct. Add interesting comments.
6850         * alloc.c (size_vector):
6851         * alloc.c (make_vector_internal):
6852         * alloc.c (make_bit_vector_internal):
6853         * alloc.c (sweep_bit_vectors_1):
6854         * fns.c (size_bit_vector):
6855         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
6856         * window.c (sizeof_window_config_for_n_windows): 
6857         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
6858
6859 2001-01-24  Martin Buchholz  <martin@xemacs.org>
6860
6861         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
6862
6863 2001-01-23  Andy Piper  <andy@xemacs.org>
6864
6865         * select.c (Fown_selection_internal): pass owned_p
6866
6867         * select-msw.c (mswindows_own_selection): New Signature.
6868
6869         * console.h (struct console_methods): add owned_p to
6870         _own_selection.
6871
6872         * select-x.c (x_own_selection): pass owned_p
6873         (hack_motif_clipboard_selection): use owned_p
6874         (vars_of_select_x): new variable -
6875         x_selection_strict_motif_ownership.
6876
6877 2001-01-23  Martin Buchholz  <martin@xemacs.org>
6878
6879         * specifier.h (specifier_data_offset): Remove pointless parens.
6880         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
6881
6882 2001-01-24  Martin Buchholz  <martin@xemacs.org>
6883
6884         Make Lisp_Object sizeof methods be alignment-correct.
6885         pdump must restore objects to the same alignment as the C compiler
6886         assumes.  It really matters on SGIs.
6887         * lstream.c (aligned_sizeof_lstream): New.
6888         (sizeof_lstream): Use aligned_sizeof_lstream.
6889         (Lstream_new): Likewise.
6890         * opaque.c (aligned_sizeof_opaque): New.
6891         (sizeof_opaque): Use aligned_sizeof_opaque.
6892         (make_opaque): Likewise.
6893         * specifier.c (aligned_sizeof_specifier): New.
6894         (sizeof_specifier): Use aligned_sizeof_specifier.
6895         (make_specifier_internal): Likewise.
6896
6897 2001-01-23  Martin Buchholz  <martin@xemacs.org>
6898
6899         * lstream.h (struct lstream): Use max_align_t for trailing data.
6900         * specifier.h (struct Lisp_Specifier): Likewise.
6901
6902 2001-01-22  Martin Buchholz  <martin@xemacs.org>
6903
6904         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
6905         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
6906         (CCL_SUSPEND): Likewise.
6907         (CCL_INVALID_CMD): Likewise.
6908         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
6909         (ccl_driver): Likewise.
6910         (CCL_WRITE_CHAR): Macro hygiene.
6911         (CCL_WRITE_STRING): Macro hygiene.
6912
6913 2001-01-22  Martin Buchholz  <martin@xemacs.org>
6914
6915         Port "portable" dumper to SunOS 4 and HP-UX.
6916         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
6917         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
6918         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
6919
6920 2001-01-22  Martin Buchholz  <martin@xemacs.org>
6921
6922         * lisp.h (ALIGNOF): A better definition for C++.
6923
6924 2001-01-20  Martin Buchholz  <martin@xemacs.org>
6925
6926         Macro hygiene.
6927         Fix printf warnings: int format, long int arg.
6928         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
6929         (PUSH_FAILURE_POINT): Use correct printf formats.
6930         (POP_FAILURE_POINT): Use correct printf formats.  
6931         Use do {...} while (0)
6932
6933 2001-01-20  Martin Buchholz <martin@xemacs.org>
6934
6935         * XEmacs 21.2.42 "Poseidon" is released.
6936
6937 2001-01-20  Martin Buchholz  <martin@xemacs.org>
6938
6939         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
6940
6941 2001-01-19  Martin Buchholz  <martin@xemacs.org>
6942
6943         De-kludgify FIXED_TYPE free list frobbing.
6944         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
6945         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
6946         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
6947         * alloc.c (Lisp_Free): New pseudo lisp object definition.
6948         * alloc.c (LRECORD_FREE_P): New.
6949         * alloc.c (MARK_LRECORD_AS_FREE): New.
6950         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
6951         * alloc.c (STRUCT_FREE_P): Deleted.
6952         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
6953         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
6954         * alloc.c (STRING_CHARS_FREE_P): New.
6955         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
6956         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
6957         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
6958         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
6959         * alloc.c (resize_string): Use new definitions.
6960         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
6961         * alloc.c (verify_string_chars_integrity): Use new definitions.
6962         * alloc.c (compact_string_chars): Use new definitions.
6963         * alloc.c: Update monster comments.
6964         * lrecord.h (lrecord_type): Add some new lrecord types for
6965         alloc.c's use.
6966
6967 2001-01-18  Martin Buchholz  <martin@xemacs.org>
6968
6969         Improve alignment hackery.
6970         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
6971         (max_align_t): Moved from opaque.h - general purpose.
6972         (ALIGN_PTR): Use size_t, not long.
6973         * opaque.h (max_align_t): Move to lisp.h.
6974
6975 2001-01-18  Norbert Koch  <nk@LF.net>
6976
6977         * gui.h: Fix and add prototypes to fix build problems.
6978
6979 2001-01-18  Martin Buchholz  <martin@xemacs.org>
6980
6981         temacs is going away, so `dump-temacs' is now a bad name.
6982         * .dbxrc (dump-temacs): Rename to `dmp'.
6983         * .gdbinit (dump-temacs): Rename to `dmp'.
6984
6985 2001-01-17  Andy Piper  <andy@xemacs.org>
6986
6987         * glyphs.c (print_image_instance): comment to make martin happy.
6988
6989         * glyphs-x.c (x_redisplay_widget): update faces after a frame
6990         change.
6991
6992         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
6993         activation.
6994         (mswindows_tab_control_redisplay): warning suppression.
6995
6996         * glyphs-widget.c (widget_update): re-write to cope with updated
6997         items.
6998         (widget_instantiate): use new gui_item functions.
6999         (tab_control_update): deleted.
7000         (progress_gauge_update): deleted.
7001         (image_instantiator_progress_guage): take out update reference.
7002         (image_instantiator_tree_view): ditto.
7003         (image_instantiator_tab_control): ditto.
7004
7005         * gui.c (widget_gui_parse_item_keywords): new function. Do things
7006         Right the new way.
7007         (gui_item_add_keyval_pair): re-write to cope with descriptors and
7008         return whether anything was changed.
7009         (update_gui_item_keywords): as it sounds.
7010
7011         * gui.h: declare widget_gui_parse_item_keywords.
7012
7013         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
7014         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
7015
7016 2001-01-17  Martin Buchholz <martin@xemacs.org>
7017
7018         * XEmacs 21.2.41 "Polyhymnia" is released.
7019
7020 2001-01-16  Didier Verna  <didier@xemacs.org>
7021
7022         * glyphs.c (image_instantiate): don't use fallbacks when
7023         instantiating a face's background pixmap by inheritance.
7024
7025 2001-01-14  Mike Sperber <mike@xemacs.org>
7026
7027         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
7028         Conditionalize accordingly.
7029
7030 2001-01-16  Martin Buchholz  <martin@xemacs.org>
7031
7032         * dumper.c (pdump_file_get): Fix a compiler warning.
7033
7034 2001-01-15  Martin Buchholz  <martin@xemacs.org>
7035
7036         Make Purify happy when pdumping.
7037         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
7038         iniitalizing all bits of new lisp object memory.
7039         * symbols.c (Fmake_local_variable): Likewise.
7040         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
7041         * symbols.c (Fdefvaralias): Likewise.
7042         * mule-charset.c (vars_of_mule_charset): Likewise.
7043
7044 2001-01-15  Martin Buchholz  <martin@xemacs.org>
7045         Add the `-nd' flag when running pre-dump operations under the debugger.
7046         * .dbxrc (run-temacs): Add `-nd'.
7047         * .dbxrc (update-elc): Likewise.
7048         * .dbxrc (dump-temacs): Likewise.
7049         * .gdbinit (run-temacs): Likewise.
7050         * .gdbinit (check-temacs): Likewise.
7051         * .gdbinit (update-elc): Likewise.
7052         * .gdbinit (dump-temacs): Likewise.
7053
7054 2001-01-14  Martin Buchholz  <martin@xemacs.org>
7055
7056         Allow building 64-bit executables on AIX with GNU malloc, e.g.
7057         export OBJECT_MODE=64
7058         configure --pdump --use-union-type=no
7059         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
7060         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
7061
7062         * miscplay.c (sndcnv8U_2mono):
7063         Avoid two uses of `++' in the same expression.
7064         Suppresses a GCC warning.
7065
7066 2001-01-13  Martin Buchholz  <martin@xemacs.org>
7067
7068         Make sure future compilers don't miscompile alloc.c.
7069         * alloc.c:
7070         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
7071         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
7072
7073 2001-01-12  Martin Buchholz  <martin@xemacs.org>
7074
7075         * dumper.c: A little post-pdump-rename comment fixup.
7076
7077 2001-01-09  Jerry James  <james@eecs.ku.edu>
7078
7079         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
7080
7081 2001-01-13  Martin Buchholz  <martin@xemacs.org>
7082
7083         * *.[ch]: Globally rename symbols using the following `pdump-rename'
7084         script:
7085         #!/bin/sh
7086         replace_symbol () {
7087           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
7088         }
7089
7090         replace_symbol pdump_wire_lists pdump_weak_object_chains
7091         replace_symbol pdump_wire_list dump_add_weak_object_chain
7092
7093         replace_symbol pdump_wires pdump_root_objects
7094         replace_symbol pdump_wire dump_add_root_object
7095
7096         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
7097         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
7098
7099         replace_symbol dumpstructinfos pdump_root_struct_ptrs
7100         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
7101         replace_symbol dumpstructinfo pdump_root_struct_ptr
7102         replace_symbol dumpstruct dump_add_root_struct_ptr
7103
7104         replace_symbol dumpopaque dump_add_opaque
7105         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
7106         replace_symbol dumpopaqueinfos pdump_opaques
7107         replace_symbol dumpopaqueinfo pdump_opaque
7108
7109         replace_symbol nb_structdump nb_root_struct_ptrs
7110         replace_symbol nb_opaquedump nb_opaques
7111
7112         replace_symbol align_table pdump_align_table
7113         replace_symbol dump_header pdump_header
7114
7115         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
7116         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
7117
7118
7119 2001-01-12  Martin Buchholz  <martin@xemacs.org>
7120
7121         * s/aix4.h: Keep the C for AIX compiler from overaggressively
7122         optimizing bytecount_to_charcount().
7123
7124 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
7125
7126         * config.h.in:
7127         (HAVE_DLFCN_H): Removed.
7128         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
7129
7130 2001-01-06  Martin Buchholz  <martin@xemacs.org>
7131
7132         Portable dumper maintainability improvements.
7133         * alloc.c (staticpro):
7134         * alloc.c (staticpro_nodump):
7135         * alloc.c (garbage_collect_1):
7136         * alloc.c (reinit_alloc_once_early):
7137         * alloc.c (init_alloc_once_early):
7138         * alloc.c: Move dumper functions to alloc.c.
7139         * dumper.c (pdump_backtrace):
7140         * dumper.c (pdump_dump_structs):
7141         * dumper.c (pdump_dump_opaques):
7142         * dumper.c (pdump_dump_rtables):
7143         * dumper.c (pdump_dump_wired):
7144         * dumper.c (pdump):
7145         * dumper.c (pdump_load_check):
7146         * dumper.c (pdump_load_finish):
7147         * dumper.c (pdump_file_unmap):
7148         * dumper.c (pdump_file_get):
7149         * dumper.c (pdump_resource_free):
7150         * dumper.c (pdump_resource_get):
7151         * dumper.c (pdump_file_free):
7152         * dumper.c (pdump_file_try):
7153         * dumper.c (pdump_load):
7154         Remove fixed size limits on staticpro(), staticpro_nodump(),
7155         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
7156         Remove custom code for dumping lrecord_implementations_table - use
7157         dumpopaque instead.
7158         Remove (most of the) custom code for dumping staticpros - dump it
7159         like any other dynarr.
7160
7161         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
7162         * dumper.c: Moved functions from alloc.c.
7163         * alloc.c (dumpstruct): Moved to dumper.c.
7164         * alloc.c (dumpopaque): Likewise.
7165         * alloc.c (pdump_wire): Likewise.
7166         * alloc.c (pdump_wire_list): Likewise.
7167
7168         * lisp.h (Dynarr_sizeof): New.
7169         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
7170         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
7171         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
7172
7173         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
7174         * lisp.h (dumpopaque): ditto.
7175         * lisp.h (pdump_wire): ditto.
7176         * lisp.h (pdump_wire_list): ditto.
7177
7178 2001-01-09  Martin Buchholz  <martin@xemacs.org>
7179
7180         * make-src-depend (PrintPatternDeps):
7181         Use `sort' to make output independent of perl version.
7182
7183 2001-01-08  Martin Buchholz  <martin@xemacs.org>
7184
7185         Port to Netbsd 1.5.
7186         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
7187         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
7188
7189 2001-01-03  Didier Verna  <didier@xemacs.org>
7190
7191         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
7192         that `focus_frame' is alive before thinking of calling
7193         `redisplay_redraw_cursor' on it.
7194
7195 2001-01-08  Martin Buchholz <martin@xemacs.org>
7196
7197         * XEmacs 21.2.40 is released.
7198
7199 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
7200
7201         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
7202
7203 2001-01-06  Martin Buchholz  <martin@xemacs.org>
7204
7205         * alloc.c (dbg_valmask): Make const.
7206         * alloc.c (dbg_typemask): Make const.
7207         * alloc.c (dbg_USE_UNION_TYPE): Make const.
7208         * alloc.c (dbg_valbits): Make const.
7209         * alloc.c (dbg_gctypebits): Make const.
7210
7211 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
7212
7213         * redisplay-x.c (x_bevel_area):
7214         redisplay.h (struct rune):
7215         Typo fixes in comments.
7216
7217 2001-01-05  Andy Piper  <andy@xemacs.org>
7218
7219         * glyphs-x.c (x_redisplay_widget): use size changed for offset
7220         adjustment.
7221
7222         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
7223
7224 2001-01-05  Martin Buchholz  <martin@xemacs.org>
7225
7226         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
7227
7228         * mule-ccl.c (stack_idx_of_map_multiple):
7229         Non const global data must not be initialized!
7230         Found by MIYASHITA Hisashi.
7231
7232 2001-01-02  Andy Piper  <andy@xemacs.org>
7233
7234         * frame.c (change_frame_size): make sure frame size is always
7235         marked as changed.
7236
7237         * glyphs.c (image_instance_layout): minor code reuse.
7238
7239         * window.c (Fcurrent_window_configuration): revert previous
7240         change.
7241
7242 2001-01-02  Martin Buchholz  <martin@xemacs.org>
7243
7244         * glyphs.h:
7245         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
7246
7247 2000-12-31  Andy Piper  <andy@xemacs.org>
7248
7249         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
7250         when widget gets unmapped.
7251
7252         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
7253         function. Make sure widgets losing focus don't just drop it.
7254         (handle_focus_event_1): record the widget with focus.
7255
7256 2000-12-31  Andy Piper  <andy@xemacs.org>
7257
7258         * window.c (allocate_window): use
7259         make_image_instance_cache_hash_table.
7260         (make_dummy_parent): ditto.
7261         (Fset_window_configuration): ditto.
7262
7263         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
7264
7265         * glyphs.c (process_image_string_instantiator): use
7266         INSTANTIATOR_TYPE.
7267         (get_image_instantiator_governing_domain): ditto.
7268         (normalize_image_instantiator): ditto.
7269         (instantiate_image_instantiator): ditto.
7270         (make_image_instance_1): ditto.
7271         (image_instantiate): ditto. Key on glyph *and* instantiator type.
7272         (instantiator_eq_equal): new function for use with instance hash
7273         tables.
7274         (instantiator_eq_hash): ditto.
7275         (make_image_instance_cache_hash_table): create a suitable hash
7276         table for storing image instances.
7277
7278         * elhash.h (hash_table_weakness): new internal weakness type
7279         HASH_TABLE_KEY_CAR_VALUE_WEAK.
7280         declare new functions.
7281
7282         * elhash.c (finish_marking_weak_hash_tables): introduce yet
7283         another weakness type for glyphs.
7284         (make_standard_lisp_hash_table): new function split out from
7285         make_general_lisp_hash_table.
7286         (make_lisp_hash_table): call make_standard_lisp_hash_table.
7287         (hash_table_instantiate): ditto.
7288         (Fmake_hash_table): ditto.
7289
7290 2000-12-31  Martin Buchholz <martin@xemacs.org>
7291
7292         * XEmacs 21.2.39 is released.
7293
7294 2000-12-29  Andy Piper  <andy@xemacs.org>
7295
7296         * menubar.c (menubar_visible_p_changed): signal the frame changed.
7297
7298         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
7299         the frame has changed so that we pick up geometry changes such as
7300         menubar visibility.
7301
7302 2000-12-28  Andy Piper  <andy@xemacs.org>
7303
7304         * lastfile.c (my_ebss): make a char array so we can pad the
7305         bss. Fixes cygwin unexec.
7306
7307         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
7308
7309 2000-12-26  Andy Piper  <andy@xemacs.org>
7310
7311         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
7312         comments and try and be more precise about a non-/SIGIO world.
7313         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
7314         SIGIO.
7315
7316         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
7317         we don't normalize to zero width or height.
7318
7319 2000-12-24  Andy Piper  <andy@xemacs.org>
7320
7321         * Makefile.in.in (ldflags): add -mwindows when appropriate.
7322
7323 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
7324
7325         * s/sco5.h: SCO 5 has pty support.
7326
7327 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
7328
7329         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
7330         input-method-xlib.c contains whole contents of input-method-xfs.c,
7331         so we can use input-method-xlib.c's code for USE_XFONTSET
7332         using #ifdefs.
7333         * input-method-xfs.c: removed.
7334
7335 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
7336
7337         * file-coding.h (enum coding_category_type): reorder enumerators to
7338         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
7339         (now one greater than largest real coding_category_type enumerator).
7340         * file-coding.c (coding_category_symbol, coding_category_by_priority,
7341         coding_category_system, fcd_descriptihon_1, decode_coding_category,
7342         Fcoding_category_list, Fset_coding_priority_list,
7343         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
7344         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
7345
7346 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
7347
7348         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
7349         * redisplay-output.c (redisplay_output_window): Clear top of window
7350         when face is changed.
7351         * redisplay-x.c (x_redraw_exposed_window): Call
7352         redisplay_clear_top_of_window.
7353         * redisplay.h: Publish redisplay_clear_top_of_window.
7354
7355 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
7356
7357         * buffer.c (Fkill_buffer): Map over all devices.
7358         * window.c (window_loop): Remove UNSHOW_BUFFER code.
7359         (list_windows): New function.
7360         (list_all_windows): Ditto.
7361         (Freplace_buffer_in_windows): Use them.
7362
7363 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
7364
7365         * database.c (berkdb_subtype): Recognize new subtype `queue'.
7366         (Fopen_database): Use `db_create' instead of `db_open'.
7367         (syms_of_database): Initialize Qqueue.
7368
7369 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
7370
7371         * buffer.c (common_init_complex_vars_of_buffer): Initialize
7372         buffer_local_face_property.
7373         * buffer.h (struct buffer): New member buffer_local_face_property.
7374         * window.c (Fset_window_buffer):  Mark window's face as changed
7375         when buffer has buffer local face.
7376         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
7377         * objects.c (color_after_change): Set buffer_local_face_property
7378         when locale of face specifier is buffer.
7379         * objects.c (font_after_change): Ditto.
7380         * objects.c (face_boolean_after_change): Ditto.
7381         * glyphs.c (image_after_change): Ditto.
7382
7383 2000-12-09  Dan Holmsand  <dan@eyebee.com>
7384
7385         * nt.c (mswindows_fstat): Report file permissions, volume serial
7386         number, etc. Code adapted from FSF Emacs 20.7.
7387
7388 2000-12-09  Dan Holmsand  <dan@eyebee.com>
7389
7390         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
7391         of stat when we don't have symbolic links, to make sure
7392         mswindows_stat is called on mswindows.
7393
7394 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
7395
7396         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
7397
7398 2000-12-12  Martin Buchholz  <martin@xemacs.org>
7399
7400         * doprnt.c (emacs_doprnt_1): More printing fixes.
7401         Make printing of numbers compatible with libc and FSF Emacs.
7402         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
7403         Use the system printf to do most of the hard work of formatting,
7404         instead of doprnt_1().
7405         Calculate memory to allocate for format string.
7406         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
7407         (doprnt_1): Cleaner code and documentation.
7408
7409 2000-12-01  Jerry James  <james@eecs.ukans.edu>
7410
7411         * Makefile.in.in: Use the loop variable to install headers.
7412
7413 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
7414
7415         * window.c (Fsplit_window): Don't invalidate face cache.
7416
7417 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
7418
7419         * minibuf.c (Fall_completions): Undo the previous change
7420         which removed checking elements start with space.
7421
7422 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
7423
7424         * mule-canna.c: Didier suppression.
7425
7426 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
7427
7428         * mule-canna.c: rename static unsigned char buf[] to key_buffer
7429         (warning suppression).  Add English comment translations.
7430
7431 2000-12-05  Martin Buchholz  <martin@xemacs.org>
7432
7433         * unexelfsgi.c (unexec): Better test for mmap failure.
7434
7435 2000-12-05  Martin Buchholz <martin@xemacs.org>
7436
7437         * XEmacs 21.2.38 is released.
7438
7439 2000-12-05  Martin Buchholz  <martin@xemacs.org>
7440
7441         * redisplay.c (bar-cursor): Make a user variable.
7442
7443         * symsinit.h: Add init_postgresql_from_environment.
7444
7445 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
7446
7447         * regex.c: Convert to clean C.
7448
7449 2000-12-05  Dan Holmsand  <dan@eyebee.com>
7450
7451         * realpath.c:
7452         Don't #include sysfile.h. Revert to duplicating PATH_MAX
7453         initialization.
7454         (sys_readlink): renamed to system_readlink to avoid conflict with
7455         the other sys_readlink.
7456
7457 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
7458
7459         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
7460
7461 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
7462
7463         * postgresql.c (init_postgresql_from_environment): new function.
7464         (vars_of_postgresql): Move code initializing Lisp variables out and
7465         into init_postgresql_from_environment.
7466         emacs.c (main_1): Call init_postgresql_from_environment if and only
7467         if running a dumped XEmacs.
7468
7469 2000-08-31  Dan Holmsand  <dan@eyebee.com>
7470
7471         * buffer.c: Make find-file-compare-truenames default to true on
7472         windows.
7473
7474         * realpath.c (win32_abs_start):
7475         (cygwin_readlink):
7476         (win32_readlink): New functions.
7477         (xrealpath): Return really real filenames on windows.
7478
7479         * fileio.c (Ffile_truename): Make file-truename work on windows.
7480
7481 2000-11-29  Didier Verna  <didier@xemacs.org>
7482
7483         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
7484         * faces.c (update_face_cachel_data): use it.
7485         * faces.c (add_face_cachel): use it. Complete background pixmap
7486         frobbing in face cache if `update_face_cachel_data' has not done so.
7487
7488 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
7489
7490         * search.c (string_match_1): Don't set last_thing_searched
7491         when search failed.
7492
7493 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
7494
7495         * buffer.c: Include casetab.h
7496         (common_init_complex_vars_of_buffer): Use new case-table object.
7497         * buffer.h: Include casetab.h
7498         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
7499         (DOWNCASE_TABLE_OF): Ditto.
7500         * bufslots.h: Remove char-tables and add case-table.
7501         * casetab.c: Include casetab.h
7502         (CASE_TABLE_P): Removed.
7503         (mark_case_table): New function.
7504         (allocate_case_table): New function.
7505         (Fcase_table_p): Use new case-table.
7506         (case_table_char): New function.
7507         (Fget_case_table): Ditto.
7508         (Fput_case_table): Ditto.
7509         (Fput_case_table_pair): Ditto.
7510         (Fcopy_case_table): Ditto.
7511         (Fcurrent_case_table): Return case-table.
7512         (Fstandard_case_table): Return case-table.
7513         (Fset_case_table): Fix doc-string.
7514         (set_case_table): Use case-table
7515         (syms_of_casetab): DEFSUBR new functions.
7516         (complex_vars_of_casetab): Set up standard case-table.
7517         * casetab.h: New file.
7518         * editfns.c: Include casetab.h
7519         (Fcompare_buffer_substrings): Use case-table.
7520         * inline.c: Include casetab.h
7521         * lisp.h: Remove bogus extern.
7522         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
7523         * search.c: Include casetab.h
7524         (TRANSLATE_ASCII): Removed.
7525         (TRANSLATE): Unconditionally translate character.
7526         (looking_at_1): Use case-table.
7527         (string_match_1): Ditto.
7528         (fast_string_match): Ditto.
7529         (search_command): Ditto.
7530         (search_buffer): Separate boyer_moore.  Check whether
7531         boyer_moore is possible.
7532         (simple_search): New function.
7533         (boyer_moore): Separated from search_buffer. Translate char.
7534
7535 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
7536
7537         * regex.c (RE_TR_ASCII): Removed.
7538         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
7539         (PATFETCH): Call PATFETCH_RAW.
7540         (PATFETCH_RAW): Fetch Emchar.
7541         (PATUNFETCH): Decrement charptr.
7542         (GET_BUFFER_SPACE): Rename b to buf_end.
7543         (BUF_PUSH): Ditto.
7544         (BUF_PUSH_2): Ditto.
7545         (BUF_PUSH_3): Ditto.
7546         (EXTEND_BUFFER): Ditto.
7547         (SET_LIST_BIT): Ditto.
7548         (regex_compile): Ditto.  Translate non ASCII char.
7549         (compile_range): Ditto.
7550         (re_search_2): Ditto.
7551         (re_match_2_internal): Compare Emchar.
7552         (bcmp_translate): Ditto.
7553
7554 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
7555
7556         * lisp.h (basic char/int typedefs):  comment improvement.
7557
7558 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
7559
7560         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
7561         unstomp inhibit_site_lisp.  Improve comments.
7562
7563 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
7564
7565         * mule-charset.c (Fcharset_property):  improve type checking, comments.
7566
7567 2000-11-28  Andy Piper  <andy@xemacs.org>
7568
7569         * redisplay-output.c (redisplay_output_subwindow): make sure we do
7570         clipped display for windows in the gutter also.
7571         (redisplay_display_boxes_in_window_p): change semantics of return
7572         codes to be more intuitive.
7573
7574         * gutter.h: declare display_boxes_in_gutter_p.
7575
7576         * gutter.c (display_boxes_in_gutter_p): new function for
7577         redisplay.
7578
7579 2000-11-22  Andy Piper  <andy@xemacs.org>
7580
7581         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
7582         autodetect domain.
7583
7584 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
7585
7586         * callproc.c (Fold_call_process_internal):
7587         * gpm.c (Freceive_gpm_event):
7588         (tty_get_foreign_selection): Might be just warning supression.
7589         * fileio.c (Fwrite_region_internal):
7590         (Fset_visited_file_modtime):
7591         * keymap.c (event_matches_key_specifier_p):
7592         Initialize GCPROed variable.
7593
7594         * menubar-x.c (command_builder_find_menu_accelerator):
7595         Initialize before use.
7596
7597 2000-11-23  Andy Piper  <andy@xemacs.org>
7598
7599         * unexcw.c (unexec): make the resulting executable executable.
7600
7601 2000-11-21  Martin Buchholz  <martin@xemacs.org>
7602
7603         * doc.c (get_doc_string):
7604         Use size_t, not int, for result of XSTRING_LENGTH.
7605
7606         * cmds.c (Fdelete_char):
7607         * cmds.c (Fpoint_at_eol):
7608         * cmds.c (Fself_insert_command):
7609         Use EMACS_INT, not int, for result of XINT.
7610         Someday, someone will want to insert more than 2**31 identical characters.
7611
7612         * cmds.c (Fdelete_char):
7613         * cmds.c (Fdelete_backward_char):
7614         * syntax.c (Fforward_word):
7615         * syntax.c (Fforward_comment):
7616         Make COUNT argument optional, for consistency with forward-char et al.
7617
7618 2000-11-22  Martin Buchholz  <martin@xemacs.org>
7619
7620         * lisp.h:
7621         * print.c (long_to_string):
7622         Return a useful value: the pointer at end of data written.
7623
7624         * doprnt.c:
7625         Use `static const char * const' for constant strings.
7626         (union printf_arg): Delete `i', `ui' members.
7627         (get_doprnt_args):
7628         (emacs_doprnt_1):
7629         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
7630         Do all printf-ing via the `l' specifier.
7631         Use EMACS_INT instead of int.
7632         Optimize.
7633
7634 2000-11-20  Didier Verna  <didier@xemacs.org>
7635
7636         * faces.c (update_face_cachel_data): don't frob the background
7637         pixmap when the window is being created. The face is needed but
7638         does not exist yet.
7639
7640 2000-11-20  Andy Piper  <andy@xemacs.org>
7641
7642         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
7643         messing with a debug environment.
7644
7645 2000-11-20  Martin Buchholz  <martin@xemacs.org>
7646
7647         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
7648
7649 2000-11-20  Martin Buchholz  <martin@xemacs.org>
7650
7651         * casetab.c (Fcase_table_p): Fix compile error and crash.
7652
7653 2000-11-18  Philip Aston  <philipa@mail.com>
7654
7655         * s/cygwin32.h: Cygwin has SVR4-like pty support.
7656
7657 2000-11-18  Martin Buchholz  <martin@xemacs.org>
7658
7659         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
7660         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
7661
7662 2000-11-17  Martin Buchholz  <martin@xemacs.org>
7663
7664         * config.h.in: Define HAVE_ELF_H if elf.h exists.
7665         * unexelf.c: Use HAVE_ELF_H.
7666         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
7667         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
7668         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
7669         Greg Harrington <greg_harrington@hotmail.com> provided a machine
7670         for testing.
7671         So this is an unexelfsgi.c from a different line of development.
7672
7673 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
7674
7675         * regex.c (RE_TR_ASCII): New function.
7676         (RE_TRANSLATE): Call it.
7677
7678 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
7679
7680         * buffer.h (TRT_TABLE_OF): Remove assert.
7681         (IN_TRT_TABLE_DOMAIN): Removed.
7682
7683 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
7684
7685         * free-hook.c (log_gcpro):
7686         (show_gcprohist): Add support for GCPRO5.
7687
7688 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
7689
7690         * emacs.c (main_1): Improve -sd error message when --pdump=no.
7691
7692 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
7693
7694         * symeval.h: Declare flush_all_buffer_local_cache.
7695
7696         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
7697         (flush_buffer_local_cache): Added.
7698         (flush_all_buffer_local_cache): Added.
7699
7700         * lrecord.h: Remove unused XD_LO_RESET_NIL.
7701
7702         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
7703         (pdump_dump_data): Ditto.
7704         (pdump_reloc_one): Ditto.
7705         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
7706         before dumping.
7707
7708
7709 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
7710
7711         * buffer.c: Remove if 0'ed entry.
7712         * buffer.h: Rewrite TRT to use char-table.
7713         * bufslots.h: Remove mirror tables.
7714         * casetab.c: Remove mirror tables.
7715         (CASE_TABLE_P): New macro.
7716         (Fcase_table_p): Element of a case table is string or char-table.
7717         (make_mirror_trt_table): Removed.
7718         (set_case_table): Setup char-table from strings for backward
7719         compatibility.
7720         * dired.c (Fdirectory_files):
7721         * dired-msw.c: (mswindows_get_files):
7722         * lisp.h: Change prototype of re_pattern_buffer.
7723         * regex.c: (RE_TRANSLATE): New macro.
7724         (TRANSLATE_P): Ditto.
7725         Change translate to type RE_TRANSLATE_TYPE.
7726         * regex.h: Define RE_TRANSLATE_TYPE
7727         * search.c (TRANSLATE): New macro.
7728         (TRANSLATE_ASCII): New macro.
7729         Translate table is changed to Lisp_Object.
7730         (signal_failure): Inhibit return.
7731
7732 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
7733
7734         * device-msw.c:
7735         * eldap.c:
7736         * event-Xt.c:
7737         * event-stream.c:
7738         * print.c:
7739         Do UNGCPRO before return.
7740
7741 2000-11-14  Martin Buchholz <martin@xemacs.org>
7742
7743         * XEmacs 21.2.37 is released.
7744
7745 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
7746
7747         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
7748         Add comments about discarded return value.
7749
7750 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
7751
7752         * callint.c:
7753         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
7754
7755 2000-10-27  Andy Piper  <andy@xemacs.org>
7756
7757         * gutter.c (Fset_default_gutter_position): default left and right
7758         gutters to visible.
7759         (calculate_gutter_size): calculate resonable heuristic for left
7760         and right gutter sizes.
7761         (specifier_vars_of_gutter): change left and right gutter sizes to
7762         autodetect.
7763         (calculate_gutter_size_from_display_lines): new function.
7764         (output_gutter): check for resizing on left and right gutters.
7765         (clear_gutter): don't special case top and left gutters.
7766         (specifier_vars_of_gutter): use new signature for
7767         set_specifier_caching.
7768
7769         * glyphs-x.c (x_redisplay_widget): spelling fix.
7770         * glyphs.c (specifier_vars_of_glyphs):
7771         * menubar.c (specifier_vars_of_menubar):
7772         * redisplay.c (specifier_vars_of_redisplay):
7773         * toolbar.c (specifier_vars_of_toolbar):
7774         * window.c (specifier_vars_of_window):
7775         * scrollbar.c (specifier_vars_of_scrollbar):
7776         (complex_vars_of_scrollbar): use new signature for
7777         set_specifier_caching.
7778
7779         * specifier.c (set_specifier_caching): include recompute flag.
7780         (recompute_one_cached_specifier_in_window): always recompute if
7781         flag set.
7782         (recompute_one_cached_specifier_in_frame): ditto.
7783
7784         * specifier.h (struct specifier_caching): add recompute flag.
7785
7786 2000-10-24  Andy Piper  <andy@xemacs.org>
7787
7788         * unexcw.c (copy_executable_and_dump_data_section): add new
7789         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
7790         5.0 happy.
7791
7792 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
7793
7794         * console-x.h (x_device): New member modifier_release_time.
7795         * event-Xt.c (x_handle_sticky_modifiers):
7796         Bound interval modifier keys are sticky.
7797         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
7798         * events.h: extern it.
7799
7800 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
7801
7802         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
7803
7804 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
7805
7806         * event-stream.c (execute_command_event): Preserve current_events
7807         and the like when event is misc-user-event.
7808         Inhibit quit during the call to maybe_echo_keys.
7809
7810 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
7811
7812         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
7813         symlink when buffer is killed.
7814         (inhibit_clash_detection): New variable.
7815
7816 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
7817
7818         * console.c (Fset_input_method): Trigger redisplay on tty.
7819
7820 2000-11-07  Martin Buchholz  <martin@xemacs.org>
7821
7822         * process.c (Fprocess_status): Revert to previous behavior:
7823         (process-status "nosuchprocess") ==> nil
7824
7825 2000-11-06  Martin Buchholz  <martin@xemacs.org>
7826
7827         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
7828         Work around another GCC 2.95.2 optimizer bug.
7829
7830 2000-11-02  Martin Buchholz  <martin@xemacs.org>
7831
7832         * process.c (Fget_process): Use LIST_LOOP_2.
7833         (kill_buffer_processes): Use LIST_LOOP_2.
7834
7835         * minibuf.c (Fall_completions):
7836         Delete old non-functional code for FSF fourth argument.
7837
7838         * frame.c (frame_matches_frame_spec):
7839         Renamed from `frame_matches_frametype'.  Update all callers.
7840         (device_matches_device_spec):
7841         Renamed from 'device_matches_console_spec'.  Update all callers.
7842
7843         * doc.c (Fsubstitute_command_keys):
7844         Remove buffer overflow crash.  Small code cleanups.
7845
7846         * casetab.c (check_case_table): Simpler code.
7847
7848         * window.c (Freplace_buffer_in_windows):
7849         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
7850         (and similar implementation) as Fdelete_windows_on.
7851         Update all callers.
7852
7853         * alloc.c (Fmake_list):
7854         * alloc.c (make_vector):
7855         * alloc.c (Fmake_vector):
7856         * alloc.c (make_bit_vector):
7857         * alloc.c (Fmake_bit_vector):
7858         * alloc.c (Fbit_vector):
7859         * alloc.c (Fmake_string):
7860         * alloc.c (Fpurecopy):
7861         * alloc.c (Fmemory_limit):
7862         * buffer.c:
7863         * buffer.c (Fget_buffer):
7864         * buffer.c (Fkill_buffer):
7865         * buffer.c (complex_vars_of_buffer):
7866         * bytecode.c (Fcompiled_function_stack_depth):
7867         * callint.c (Fprefix_numeric_value):
7868         * event-stream.c:
7869         * event-stream.c (Fread_key_sequence):
7870         * casetab.c:
7871         * casetab.c (Fcase_table_p):
7872         * casetab.c (check_case_table):
7873         * casetab.c (Fset_case_table):
7874         * casetab.c (Fset_standard_case_table):
7875         * chartab.c:
7876         * chartab.c (Fchar_table_type):
7877         * chartab.c (Freset_char_table):
7878         * chartab.c (Fget_char_table):
7879         * chartab.c (Fget_range_char_table):
7880         * chartab.c (Fput_char_table):
7881         * chartab.c (Fmap_char_table):
7882         * chartab.c (Fcategory_table_p):
7883         * chartab.c (Fcheck_category_at):
7884         * chartab.c (Fchar_in_category_p):
7885         * chartab.c (Fcategory_table):
7886         * chartab.c (Fcopy_category_table):
7887         * chartab.c (Fset_category_table):
7888         * chartab.c (Fcategory_designator_p):
7889         * chartab.c (Fcategory_table_value_p):
7890         * cmds.c (Fdelete_char):
7891         * cmds.c (Fdelete_backward_char):
7892         * cmds.c (Fself_insert_command):
7893         * cmds.c (Fself_insert_internal):
7894         * console.c (Fvalid_console_type_p):
7895         * console.c (Fcdfw_console):
7896         * console.c (Fconsole_type):
7897         * console.c (Fconsole_name):
7898         * console.c (Fconsole_device_list):
7899         * console.c (Fconsole_on_window_system_p):
7900         * data.c:
7901         * data.c (Feq):
7902         * data.c (Fold_eq):
7903         * data.c (Fsubr_interactive):
7904         * data.c (Fchar_to_int):
7905         * data.c (Fint_to_char):
7906         * data.c (Fsetcar):
7907         * data.c (Fsetcdr):
7908         * data.c (Fnumber_to_string):
7909         * data.c (Fstring_to_number):
7910         * data.c (Frem):
7911         * database.c (mark_database):
7912         * database.c (finalize_database):
7913         * database.c (Fdatabase_live_p):
7914         * database.c (Fdatabasep):
7915         * device-x.c (Fx_get_resource):
7916         * device.c (Fdfw_device):
7917         * dired.c:
7918         * dired.c (Ffile_name_completion):
7919         * dired.c (Ffile_name_all_completions):
7920         * dired.c (Fuser_name_completion):
7921         * dired.c (Fuser_name_completion_1):
7922         * dired.c (Fuser_name_all_completions):
7923         * doc.c (Fdocumentation):
7924         * doc.c (Fdocumentation_property):
7925         * doc.c (Fsubstitute_command_keys):
7926         * editfns.c:
7927         * editfns.c (Fchar_to_string):
7928         * editfns.c (Fstring_to_char):
7929         * editfns.c (Ftemp_directory):
7930         * editfns.c (Finsert_char):
7931         * editfns.c (Fbuffer_substring_no_properties):
7932         * editfns.c (Fnarrow_to_region):
7933         * editfns.c (Fchar_equal):
7934         * editfns.c (Fchar_Equal):
7935         * editfns.c (Ftranspose_regions):
7936         * emacs.c (Fdump_emacs):
7937         * eval.c (Fthrow):
7938         * eval.c (Fcommand_execute):
7939         * eval.c (Fautoload):
7940         * eval.c (Fbacktrace):
7941         * eval.c (Fbacktrace_frame):
7942         * events.c:
7943         * events.c (Fcopy_event):
7944         * events.c (Fcharacter_to_event):
7945         * events.c (Fevent_button):
7946         * events.c (Fevent_process):
7947         * extents.c:
7948         * extents.c (Fnext_extent_change):
7949         * extents.c (Fextent_property):
7950         * faces.c (Ffacep):
7951         * faces.c (Fmake_face):
7952         * file-coding.c:
7953         * file-coding.c (Fencode_shift_jis_char):
7954         * file-coding.c (Fencode_big5_char):
7955         * fileio.c (Ffile_name_directory):
7956         * fileio.c (Ffile_name_nondirectory):
7957         * fileio.c (Ffile_name_as_directory):
7958         * fileio.c (Fdirectory_file_name):
7959         * fileio.c (Ffile_truename):
7960         * fileio.c (Fsubstitute_in_file_name):
7961         * fileio.c (Ffile_modes):
7962         * fileio.c (Fset_file_modes):
7963         * fileio.c (Fset_default_file_modes):
7964         * fileio.c (Fverify_visited_file_modtime):
7965         * floatfns.c (Facos):
7966         * floatfns.c (Fasin):
7967         * floatfns.c (Fatan):
7968         * floatfns.c (Fcos):
7969         * floatfns.c (Fsin):
7970         * floatfns.c (Ftan):
7971         * floatfns.c (Fbessel_j0):
7972         * floatfns.c (Fbessel_j1):
7973         * floatfns.c (Fbessel_jn):
7974         * floatfns.c (Fbessel_y0):
7975         * floatfns.c (Fbessel_y1):
7976         * floatfns.c (Fbessel_yn):
7977         * floatfns.c (Ferf):
7978         * floatfns.c (Ferfc):
7979         * floatfns.c (Flog_gamma):
7980         * floatfns.c (Fexp):
7981         * floatfns.c (Fexpt):
7982         * floatfns.c (Flog):
7983         * floatfns.c (Flog10):
7984         * floatfns.c (Fsqrt):
7985         * floatfns.c (Fcube_root):
7986         * floatfns.c (Facosh):
7987         * floatfns.c (Fasinh):
7988         * floatfns.c (Fatanh):
7989         * floatfns.c (Fcosh):
7990         * floatfns.c (Fsinh):
7991         * floatfns.c (Ftanh):
7992         * floatfns.c (Fabs):
7993         * floatfns.c (Ffloat):
7994         * floatfns.c (Flogb):
7995         * floatfns.c (Fceiling):
7996         * floatfns.c (Ffloor):
7997         * floatfns.c (Fround):
7998         * floatfns.c (Ftruncate):
7999         * floatfns.c (Ffceiling):
8000         * floatfns.c (Fffloor):
8001         * floatfns.c (Ffround):
8002         * floatfns.c (Fftruncate):
8003         * fns.c (Fstring_equal):
8004         * fns.c (Fstring_lessp):
8005         * fns.c (concat2):
8006         * fns.c (concat3):
8007         * fns.c (vconcat2):
8008         * fns.c (vconcat3):
8009         * fns.c (Fsubstring):
8010         * fns.c (Fassoc):
8011         * fns.c (Fold_assoc):
8012         * fns.c (assoc_no_quit):
8013         * fns.c (Fassq):
8014         * fns.c (Fold_assq):
8015         * fns.c (assq_no_quit):
8016         * fns.c (Frassoc):
8017         * fns.c (Fold_rassoc):
8018         * fns.c (Frassq):
8019         * fns.c (Fold_rassq):
8020         * fns.c (rassq_no_quit):
8021         * fns.c (Fremassoc):
8022         * fns.c (remassoc_no_quit):
8023         * fns.c (Fremassq):
8024         * fns.c (remassq_no_quit):
8025         * fns.c (Fremrassoc):
8026         * fns.c (Fremrassq):
8027         * fns.c (remrassq_no_quit):
8028         * fns.c (Fsort):
8029         * fns.c (Fplist_get):
8030         * fns.c (Fplist_put):
8031         * fns.c (Fplist_remprop):
8032         * fns.c (Fplist_member):
8033         * fns.c (Flax_plist_get):
8034         * fns.c (Flax_plist_put):
8035         * fns.c (Flax_plist_remprop):
8036         * fns.c (Flax_plist_member):
8037         * fns.c (Fequal):
8038         * fns.c (Fold_equal):
8039         * fns.c (Frequire):
8040         * fns.c (Fbase64_encode_region):
8041         * fns.c (Fbase64_encode_string):
8042         * fns.c (Fbase64_decode_region):
8043         * frame.c:
8044         * frame.c (frame_matches_frame_spec):
8045         * frame.c (device_matches_device_spec):
8046         * frame.c (next_frame):
8047         * frame.c (previous_frame):
8048         * frame.c (Fnext_frame):
8049         * frame.c (Fprevious_frame):
8050         * frame.c (Fframe_property):
8051         * frame.c (Fset_frame_height):
8052         * frame.c (Fset_frame_size):
8053         * frame.h:
8054         * glyphs.c:
8055         * glyphs.c (if):
8056         * glyphs.c (decode_error_behavior_flag):
8057         * glyphs.c (Fmake_image_instance):
8058         * indent.c (Findent_to):
8059         * intl.c (Fignore_defer_gettext):
8060         * keymap.c (Fkeymapp):
8061         * keymap.c (Flookup_key):
8062         * lread.c:
8063         * lread.c (Fload_internal):
8064         * lread.c (Feval_buffer):
8065         * lread.c (Feval_region):
8066         * macros.c (Fexecute_kbd_macro):
8067         * marker.c (set_marker_internal):
8068         * marker.c (Fset_marker):
8069         * marker.c (set_marker_restricted):
8070         * marker.c (Fcopy_marker):
8071         * marker.c (noseeum_copy_marker):
8072         * menubar.c:
8073         * menubar.c (Fpopup_menu):
8074         * minibuf.c:
8075         * mule-charset.c (Fcharset_name):
8076         * mule-charset.c (Fchar_charset):
8077         * mule-charset.c (Fchar_octet):
8078         * mule-charset.c (Fsplit_char):
8079         * mule-wnnfns.c (Fwnn_open):
8080         * mule-wnnfns.c (Fwnn_dict_comment):
8081         * mule-wnnfns.c (Fwnn_quit_henkan):
8082         * mule-wnnfns.c (Fwnn_word_toroku):
8083         * mule-wnnfns.c (Fwnn_word_sakujo):
8084         * mule-wnnfns.c (Fwnn_word_use):
8085         * mule-wnnfns.c (Fwnn_hindo_set):
8086         * objects.c:
8087         * objects.c (Fmake_color_instance):
8088         * objects.c (Fmake_font_instance):
8089         * print.c (Fwrite_char):
8090         * process.c:
8091         * process.c (mark_process):
8092         * process.c (print_process):
8093         * process.c (get_process_from_usid):
8094         * process.c (Fprocessp):
8095         * process.c (Fprocess_live_p):
8096         * process.c (Fget_process):
8097         * process.c (Fget_buffer_process):
8098         * process.c (get_process):
8099         * process.c (Fprocess_id):
8100         * process.c (Fprocess_name):
8101         * process.c (Fprocess_command):
8102         * process.c (init_process_io_handles):
8103         * process.c (start_process_unwind):
8104         * process.c (Fstart_process_internal):
8105         * process.c (Fopen_multicast_group_internal):
8106         * process.c (Fset_process_window_size):
8107         * process.c (read_process_output):
8108         * process.c (send_process):
8109         * process.c (Fprocess_tty_name):
8110         * process.c (Fset_process_buffer):
8111         * process.c (Fprocess_buffer):
8112         * process.c (Fprocess_mark):
8113         * process.c (set_process_filter):
8114         * process.c (Fset_process_filter):
8115         * process.c (Fprocess_filter):
8116         * process.c (Fprocess_send_region):
8117         * process.c (Fprocess_send_string):
8118         * process.c (exec_sentinel):
8119         * process.c (Fset_process_sentinel):
8120         * process.c (Fprocess_sentinel):
8121         * process.c (status_notify):
8122         * process.c (Fprocess_status):
8123         * process.c (Fprocess_exit_status):
8124         * process.c (process_send_signal):
8125         * process.c (Fprocess_send_eof):
8126         * process.c (deactivate_process):
8127         * process.c (remove_process):
8128         * process.c (Fdelete_process):
8129         * process.c (kill_buffer_processes):
8130         * process.c (Fprocess_kill_without_query):
8131         * process.c (Fprocess_kill_without_query_p):
8132         * rangetab.c:
8133         * rangetab.c (Fget_range_table):
8134         * rangetab.c (Fput_range_table):
8135         * rangetab.c (Fremove_range_table):
8136         * rangetab.c (Fclear_range_table):
8137         * search.c:
8138         * search.c (Fskip_chars_forward):
8139         * search.c (Fskip_chars_backward):
8140         * search.c (Fskip_syntax_forward):
8141         * search.c (Fskip_syntax_backward):
8142         * search.c (search_command):
8143         * search.c (Freplace_match):
8144         * search.c (Fregexp_quote):
8145         * select.c (Fown_selection_internal):
8146         * select.c (Fselection_owner_p):
8147         * select.c (Fselection_exists_p):
8148         * select.c (Fget_selection_internal):
8149         * specifier.c:
8150         * symbols.c:
8151         * symbols.c (Fintern):
8152         * symbols.c (Fintern_soft):
8153         * symbols.c (Funintern):
8154         * symbols.c (Fapropos_internal):
8155         * symbols.c (Fset_default):
8156         * syntax.c:
8157         * syntax.c (Fsyntax_table_p):
8158         * syntax.c (Fcopy_syntax_table):
8159         * syntax.c (Fset_syntax_table):
8160         * syntax.c (Fchar_syntax):
8161         * syntax.c (syntax_match):
8162         * syntax.c (Fmatching_paren):
8163         * syntax.c (Fforward_word):
8164         * syntax.c (scan_lists):
8165         * syntax.c (Fscan_lists):
8166         * syntax.c (Fscan_sexps):
8167         * syntax.c (Fparse_partial_sexp):
8168         * toolbar.c (Fcheck_toolbar_button_syntax):
8169         * tooltalk.doc:
8170         * window.c:
8171         * window.c (Fwindowp):
8172         * window.c (Fwindow_live_p):
8173         * window.c (Fwindow_point):
8174         * window.c (Fdelete_window):
8175         * window.c (Fnext_window):
8176         * window.c (Fprevious_window):
8177         * window.c (Fother_window):
8178         * window.c (window_loop):
8179         * window.c (Fget_lru_window):
8180         * window.c (Fsplit_window):
8181         * window.c (Fenlarge_window):
8182         * window.c (Fenlarge_window_pixels):
8183         * window.c (Fshrink_window):
8184         * window.c (Fshrink_window_pixels):
8185         * window.c (change_window_height):
8186         * window.c (Fwindow_configuration_p):
8187         * window.c (Fcurrent_window_configuration):
8188         * window.h:
8189         * casefiddle.c (casify_object):
8190         * casefiddle.c (Fupcase):
8191         * casefiddle.c (Fdowncase):
8192         * casefiddle.c (Fcapitalize):
8193         * casefiddle.c (Fupcase_initials):
8194         * casefiddle.c (casify_region_internal):
8195         * casefiddle.c (casify_region):
8196         * casefiddle.c (Fupcase_region):
8197         * casefiddle.c (Fdowncase_region):
8198         * casefiddle.c (Fcapitalize_region):
8199         * casefiddle.c (Fupcase_initials_region):
8200         * casefiddle.c (Fupcase_word):
8201         * casefiddle.c (Fdowncase_word):
8202         * casefiddle.c (Fcapitalize_word):
8203         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
8204         Replace 0 with '\0' when working with bytes.
8205         Replace initial "(" with "\(" in docstrings.
8206
8207 2000-11-01  Martin Buchholz  <martin@xemacs.org>
8208
8209         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
8210
8211         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
8212
8213 2000-10-31  Martin Buchholz  <martin@xemacs.org>
8214
8215         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
8216
8217 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
8218
8219         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
8220         correctly.
8221
8222 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
8223
8224         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
8225         (inhibit_auto_save_session): New variable.
8226         (vars_of_fileio): Declare and initialize them.
8227         * fileio.c (Fdo_auto_save): Don't create session file if
8228         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
8229
8230 2000-10-31  Martin Buchholz  <martin@xemacs.org>
8231
8232         * sgiplay.c (play_internal): C++ compilability.
8233         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
8234         * callproc.c (Fold_call_process_internal):
8235         Remove unused vars `env', `first'.
8236         * scrollbar.c (update_scrollbar_instance):
8237         #### unused var `current_window'.
8238         * redisplay-tty.c: Put currently unused vars insert_mode_on,
8239         etc. within #ifdef NOT_YET.
8240         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
8241         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
8242         * specifier.c (specifier_instance):
8243         #### unused var `tag'.
8244         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
8245
8246 2000-10-27  Martin Buchholz  <martin@xemacs.org>
8247
8248         * fns.c (Fbutlast):
8249         * fns.c (list_sort):
8250         * fns.c (Ffillarray):
8251         * fns.c (bytecode_nconc2):
8252         * fns.c (Fnconc):
8253         * fns.c (mapcar1):
8254         * fns.c (Fmapconcat):
8255         Be pedantically 64-bit correct.  For the time when someone will
8256         want to have a list with length > 2**32.
8257
8258         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
8259         Work around MIPSpro compiler bug.
8260
8261         * process-unix.c (unix_kill_child_process): Add snarky comment.
8262         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
8263
8264         * config.h.in: Oops, _getpt ==> _getpty
8265
8266 2000-10-26  Martin Buchholz  <martin@xemacs.org>
8267
8268         * config.h.in:
8269         * regex.c:
8270         Use void*, not char*, as return type of alloca().
8271
8272         * alloc.c (free_marker): Side effect inside assert expression!
8273
8274 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
8275
8276         * mule-charset.c (Fset_charset_ccl_program): To check
8277         if the given ccl program is valid, use setup_ccl_program()
8278         instead of CHECK_VECTOR().
8279         (Fmake_charset): Likewise.
8280
8281 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
8282
8283         * faces.c (get_extent_fragment_face_cache_index):
8284         Fix cachel.merged_faces memory leak.
8285
8286 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
8287
8288         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
8289         Reset MSB of octets obtained by DECODE_SJIS
8290         because of the incompatibility with Emacs.
8291         (ccl_driver)<CCL_ENCODE_SJIS>:
8292         Set MSB of octets before passing them to
8293         ENCODE_SJIS because of the incompatibility
8294         with Emacs.
8295
8296 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
8297
8298         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
8299         (DECLARE_LRECORD): Undo the last change.
8300         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
8301
8302 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
8303
8304         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
8305         the implementation to lrecord_implementations_table.
8306
8307 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
8308
8309         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
8310         initial value of `lrecord_type_##c_name' and
8311         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
8312         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
8313         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
8314         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
8315         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
8316
8317 2000-10-17  Martin Buchholz  <martin@xemacs.org>
8318
8319         * miscplay.c (sndcnv8S_2mono):
8320         (sndcnv2monounsigned):
8321         (sndcnvULaw_2linear):
8322         (sndcnv16swap):
8323         Remove implementation-defined behavior.
8324
8325 2000-10-12  Martin Buchholz  <martin@xemacs.org>
8326
8327         * input-method-xlib.c: Warning suppression.
8328
8329 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
8330
8331         * mule-ccl.c: Sync up with Emacs 21.0.90.
8332         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
8333         Do nothing.
8334         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
8335         Likewise.
8336         (ccl_driver[WriteMultibyteChar2]): Bug fix.
8337         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
8338         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
8339         leading char belongs to official 2-dimensional charset.
8340         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
8341         write the given character as is.  Otherwise,
8342         if it is a multibyte char, convert it by
8343         non_ascii_set_charptr_emchar, then write it.
8344         (CCL_WRITE_STRING): Likewise.
8345         (ccl_get_compiled_code): New function.
8346         (setup_ccl_program): When ccl_prog is invalid,
8347         return -1.
8348         (Fregister_code_conversion_map): New function.
8349         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
8350
8351         * mule-ccl.h: Sync up with Emacs 21.0.90.
8352         (Fregister_ccl_program): export it.
8353
8354         * redisplay-msw.c (separate_textual_runs):
8355         If ccl program is not valid, don't do ccl conversion.
8356
8357         * redisplay-x.c (separate_textual_runs): Ditto.
8358
8359         * file-coding.c (Fmake_coding_system):
8360         When type is ccl and value is vector, register it
8361         with a proper symbol.  And checks whether the
8362         given ccl program is valid.
8363         (mule_decode): When calling ccl_driver, if src indicates
8364         NULL pointer, set an empty string instead.
8365         (mule_encode): Likewise.
8366
8367 2000-10-11  Martin Buchholz  <martin@xemacs.org>
8368
8369         The following large batch of changes gets us back to a state of
8370         C++ compilability.  Extbyte is now a char, which means that
8371         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
8372
8373         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
8374
8375         * sound.c (Fplay_sound): Type correctness.
8376
8377         * select-x.c (hack_motif_clipboard_selection): Type correctness.
8378         (x_get_window_property): Type correctness.
8379         (receive_incremental_selection): unsigned char ==> Extbyte
8380         (selection_data_to_lisp_data): unsigned char ==> Extbyte
8381         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
8382         (Fx_store_cutbuffer_internal): Type correctness.
8383
8384         * process-unix.c (try_to_initialize_subtty): Type correctness.
8385
8386         * objects-x.c (x_print_color_instance): Type correctness.
8387         (x_print_font_instance): Type correctness.
8388         (x_list_fonts): SExtbyte ==> Extbyte.
8389         (valid_x_font_name_p): SExtbyte ==> Extbyte.
8390         (x_find_charset_font): SExtbyte ==> Extbyte.
8391         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
8392         (truename_via_XListFonts): SExtbyte ==> Extbyte.
8393         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
8394         Use bufbyte_strcmp.
8395
8396         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
8397         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
8398         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
8399         (BYTE_C0_P): Use bit ops for char-signedness safety.
8400         (BYTE_C1_P): Use bit ops for char-signedness safety.
8401         (CHARSET_BY_LEADING_BYTE):
8402         (CHARSET_BY_ATTRIBUTES):
8403         Always use inline function.
8404         Use type_checking_assert.
8405         Hide chlook.
8406
8407         * mule-charset.c (non_ascii_charptr_copy_char):
8408         Modify to work with both ASCII and non-ASCII characters.
8409         Improve docs and variable names.
8410         Replace over-clever fall-through switch with a simple loop.
8411         (Lstream_get_emchar_1):
8412         Replace over-clever fall-through switch with a simple loop.
8413
8414         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
8415         Warning suppression.
8416
8417         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
8418         the return value of Lstream_getc, which could be EOF as well.
8419
8420         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
8421
8422         * lisp.h: Make Extbyte a char, not unsigned char, so that external
8423         APIs can be used on Extbytes without casts.  Risky!
8424         (SExtbyte): Remove.
8425         (UExtbyte): Remove.
8426
8427         * input-method-xlib.c (XIM_init_device):
8428         Use Xlib.h instead of IntrinsicP.h.
8429         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
8430         which will break in X11R7.
8431         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
8432         to call XRegisterIMInstantiateCallback with correct types.
8433
8434         * gui-x.c (button_item_to_widget_value): Type correctness.
8435
8436         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
8437
8438         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
8439         (xbm_instantiate_1): Type correctness.
8440         (BUILD_GLYPH_INST):  Type correctness.
8441
8442         * fileio.c (Fsubstitute_in_file_name): Type correctness.
8443
8444         * file-coding.c:
8445         (decode_coding_sjis):
8446         (decode_coding_big5):
8447         (decode_coding_ucs4):
8448         (decode_coding_utf8):
8449         (decode_coding_iso2022):
8450         (decode_coding_no_conversion):
8451         Make all decoding functions take an Extbyte * arg.
8452         (encode_coding_sjis):
8453         (encode_coding_big5):
8454         (encode_coding_ucs4):
8455         (encode_coding_utf8):
8456         (encode_coding_iso2022):
8457         (encode_coding_no_conversion):
8458         Make all encoding functions take a Bufbyte * arg.
8459         Use size_t instead of unsigned int for memory sizes.
8460         Only cast to unsigned char whenever dereferencing Extbyte *.
8461
8462         * doc.c (unparesseuxify_doc_string): Type correctness.
8463
8464         * console-x.c (split_up_display_spec):
8465         Rewrite without using details of internal string representation.
8466         (x_semi_canonicalize_device_connection): Type correctness.
8467
8468         * config.h.in:
8469         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
8470         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
8471         (HAVE_XFREE386): Removed.
8472
8473         * buffer.h (DEC_CHARPTR): `const' correctness.
8474         (bufbyte_strcmp): New.
8475         (bufbyte_memcmp): New.
8476
8477         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
8478
8479         * buffer.h (XCHAR_OR_CHAR_INT):
8480         Always use inline function.
8481         Remove redundant type checking assert() - XINT will abort quite nicely.
8482
8483 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
8484
8485         * search.c (Freplace_match): Set newtext to an empty string.
8486
8487 2000-10-10  Martin Buchholz  <martin@xemacs.org>
8488
8489         * s/decosf1-3.h: Remove #include of stropts.h
8490         * s/ptx.h: Remove #include of stropts.h
8491         * s/usg5-4.h: Remove #include of stropts.h
8492         * sysproc.h:
8493         * config.h.in:
8494         Use stropts.h, not sys/stropts.h.
8495         Use strtio.h, not sys/strtio.h.
8496
8497 2000-10-04  Martin Buchholz <martin@xemacs.org>
8498
8499         * XEmacs 21.2.36 is released.
8500
8501 2000-09-21  Andy Piper  <andy@xemacs.org>
8502
8503         * glyphs-x.c (x_redisplay_widget): make sure non-structural
8504         changes still involve copying the widget tree.
8505         (update_widget_face): make sure a change is register in the widget
8506         tree. Call update_tab_widget_face appropriately.
8507         (update_tab_widget_face): ditto.
8508         (x_tab_control_redisplay): make sure non-structural changes still
8509         involve copying the widget tree.
8510
8511 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
8512
8513         * lread.c (locate_file): Check the path element is non-nil.
8514
8515 2000-10-02  Martin Buchholz  <martin@xemacs.org>
8516
8517         * lisp.h: Warning suppression for SCO compilers.
8518
8519         * redisplay-tty.c (reset_tty_modes): Fix crash.
8520         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
8521
8522 2000-09-27  Martin Buchholz  <martin@xemacs.org>
8523
8524         Big signal/process handling overhaul.  Bugs fixed:
8525         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
8526         M-x comint-kill-subjob should work for both values nil and t of
8527         process-connection-type. It was broken on most platforms.
8528         Testing on Irix and Cygwin still needed.  Other plaforms tested.
8529         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
8530         * process-unix.c: Signal/Process handling overhaul.
8531         (pty_name): make 64 bytes, as `expect' does, for paranoia.
8532         (allocate_pty): Use all available modern methods of allocating
8533         ptys, falling back to old style BSD allocation as a last resort.
8534         Use allegedly more secure Unix98 pty allocation by default.
8535         (allocate_pty_the_old_fashioned_way): New. the last resort.
8536         (unix_create_process): Push ptem, ldterm, ttcompat where
8537         available.  Autoconfiscate.
8538         (try_to_initialize_subtty): New.
8539         (unix_kill_child_process): Proper signal handling for ptys on most
8540         platforms, using special knowledge of AIX, BSD, etc...
8541         (unix_create_process): Always disconnect_controlling_terminal() for
8542         subprocesses, whether using ptys or not.
8543         * process.h: Remove old getpt-dependent PTY code.
8544         * process.c (Fprocess_send_signal): New, obvious generic function.
8545         (decode_signal): New.
8546         (Finterrupt_process):
8547         (Fkill_process):
8548         (Fquit_process):
8549         (Fstop_process):
8550         (Fcontinue_process):
8551         (Fsignal_process): Use decode_signal.
8552         (process_send_signal):
8553         Many docstring corrections.
8554         Allow any signal to be sent to a process object.
8555         * config.h.in: Add symbols for big signal/process overhaul.
8556         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
8557         * sysproc.h: Include process-related headers, where available:
8558         sys/stropts.h sys/strtio.h pty.h libutil.h
8559         * s/irix4-0.h:
8560         * s/irix5-0.h:
8561         * s/cygwin32.h:
8562         * s/gnu.h:
8563         * s/linux.h:
8564         * s/hpux.h:
8565         * s/aix3-1.h:
8566         Remove old S&M pty stuff.
8567         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
8568         * systty.h: Simplify cpp hackery, improve comments.
8569         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
8570
8571         * editfns.c (Fformat_time_string):
8572         Be a little more paranoid with the return value of ctime.
8573
8574         * fileio.c (check_executable):
8575         (check_writable):
8576         Use symbolic constants X_OK, W_OK.
8577
8578         * console-x.c (split_up_display_spec): Fix a warning.
8579
8580 2000-10-02  Martin Buchholz  <martin@xemacs.org>
8581
8582         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
8583         * ntproc.c (sys_spawnve): make_string ==> build_string
8584         Small clarity improvements.
8585
8586 2000-09-30  Martin Buchholz  <martin@xemacs.org>
8587
8588         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
8589
8590         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
8591
8592         * config.h.in (HAVE_STRCASECMP): Remove.
8593
8594 2000-09-29  Martin Buchholz  <martin@xemacs.org>
8595
8596         * redisplay-output.c (redisplay_output_pixmap):
8597         Cleaner and possibly more 64-bit correct code.
8598
8599 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
8600
8601         * dumper.c (pdump_load_finish): move restoration of
8602         `noninteractive1' to emacs.c (main_1).
8603         * emacs.c (main_1): protect LISP-visible command-line flags
8604         from pdump_load().
8605
8606 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
8607
8608         * Makefile.in.in (versionclean):  Use EXE_TARGET and
8609         DUMP_TARGET instead of literal program names.
8610
8611 2000-09-20  Martin Buchholz  <martin@xemacs.org>
8612
8613         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
8614
8615 2000-09-19  Martin Buchholz  <martin@xemacs.org>
8616
8617         * *: Spelling mega-patch
8618
8619 2000-09-19  Martin Buchholz  <martin@xemacs.org>
8620
8621         * fns.c (bad_bad_turtle):
8622         Delete "Eek!" comment, since we fixed the bug to which it refers.
8623
8624 2000-09-16  Martin Buchholz  <martin@xemacs.org>
8625
8626         * alloca.c: Replace REGISTER with register.
8627
8628 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
8629
8630         * file-coding.c (ucs_to_char): Use countof.
8631
8632 2000-09-16  Martin Buchholz  <martin@xemacs.org>
8633
8634         * file-coding.c: (ucs_to_char):
8635         (complex_vars_of_file_coding):
8636         Use countof instead of sizeof.
8637         Use CHECK_NATNUM instead of CHECK_INT.
8638
8639         * sysdep.c (strcasecmp): Remove.
8640         * device-x.c (ascii_strcasecmp): New.
8641         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
8642         Avoid using non-standard non-portable strcasecmp.
8643
8644 2000-09-16  Martin Buchholz  <martin@xemacs.org>
8645
8646         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
8647         * font-lock.c: remove reference to emacsfns.h.
8648         * search.c: small doc improvement.
8649         * event-Xt.c: correct file names in comments.
8650         * console-x.h Correct file names in comments.
8651         * frame.c: Correct file names in comments.
8652         * event-stream.c: remove Energize from comments.
8653
8654 2000-09-15  Martin Buchholz  <martin@xemacs.org>
8655
8656         * symeval.h (DEFERROR_STANDARD):
8657         (DEFERROR):
8658         (DEFSYMBOL):
8659         (DEFSYMBOL_NO_DUMP):
8660         (DEFSYMBOL_MULTIWORD_PREDICATE):
8661         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
8662         (DEFKEYWORD):
8663         The construct &##name is not sensible C.
8664         Fixes compilation errors with Unixware native compiler.
8665
8666 2000-09-14  Martin Buchholz  <martin@xemacs.org>
8667
8668         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
8669         (next_frame_internal): Removed.  We now just have next_frame.
8670         (next_frame):
8671         Write a simpler and cleaner one-pass algorithm.
8672         Remove called_from_delete_device arg and #ifdefed-out code.
8673         (previous_frame):
8674         Renamed from prev_frame.  Update callers.
8675         Cleaned up to have an analogous implementation to next_frame.
8676         (other_visible_frames_internal): Remove the
8677         called_from_delete_device bogus arg, and hence, remove this
8678         function.  Just use other_visible_frames().
8679
8680         * window.c (Fnext_window):
8681         Prettify docstring.
8682         Since next_frame() is guaranteed to return a frame, remove check
8683         for nil inserted in previous patch.
8684         (Fprevious_window):
8685         Prettify docstring.
8686         Make code look more like Fnext_window.
8687         (window_loop):
8688         Respect the `console' arg when iterating through windows.
8689         Fixes bug: (get-buffer-window buffer t device) not respecting
8690         the `device' arg.
8691         This function needs more work, as others have pointed out.
8692
8693         * frame.h: Rename prev_frame to previous_frame.
8694         device_matches_console_spec no longer takes a `frame' arg.
8695
8696         * s/gnu.h:
8697         * s/linux.h:
8698         * s/hpux.h:
8699         Use EMACS_BLOCK_SIGNAL instead of sigblock.
8700         From "Golubev I. N." <gin@mo.msk.ru>.
8701
8702         * make-src-depend: Fix typo.
8703
8704 2000-09-13  Martin Buchholz  <martin@xemacs.org>
8705
8706         * window.c (Fnext_window):
8707         next_frame() might return nil, not a frame.
8708         Fixes this crash:
8709         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
8710
8711         * frame.c (next_frame_internal):
8712         We've passed a frame if we've passed its device.
8713         Fixes this crash:
8714         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
8715 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
8716
8717 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
8718
8719         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
8720         Allow option to suppress accelerators in menu/dialog items.
8721         (populate_or_checksum_helper): Pass dialog title through above.
8722
8723 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
8724
8725         * event-msw.c (mswindows_key_to_emacs_keysym):
8726         Add "pause" key, fix "menu" key.
8727
8728 2000-09-09  Martin Buchholz  <martin@xemacs.org>
8729
8730         * eval.c (reinit_vars_of_eval):
8731         Increase max_lisp_eval_depth to 1000,
8732         required for thai-xtis.el to byte-compile under some circumstances.
8733
8734 2000-09-04  Martin Buchholz  <martin@xemacs.org>
8735
8736         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
8737         From Kenichi Handa.
8738
8739 2000-09-01  Martin Buchholz  <martin@xemacs.org>
8740
8741         * make-src-depend: Make the generated Makefiles smaller.
8742
8743         * s/hpux.h (SETUP_SLAVE_PTY):
8744         Provide a %d in the format string for the errno argument.
8745
8746         * editfns.c (Ftemp_directory):
8747         Warning fix.
8748         Avoid buffer overrun on very long file name.
8749
8750         * input-method-xlib.c (XIM_init_device):
8751         6th parameter of XRegisterIMInstantiateCallback has different
8752         pointer types on different OSes, so simply cast to (void *).
8753
8754         * unexhp9k800.c: Warning fixes.  Fiddly changes.
8755
8756         * sysdll.c (dll_open):
8757         shl_load will hang hard if passed a NULL filename.
8758         Simply return NULL for compatibility with dlopen.
8759         * sysdll.c: Conform to XEmacs coding standards.
8760
8761         * sysdep.c (get_pty_max_bytes):
8762         Support pty input lines longer than 512 bytes on HP-UX 10.20.
8763
8764 2000-08-31  Martin Buchholz  <martin@xemacs.org>
8765
8766         * tooltalk.c: Add #include <syssignal.h>
8767
8768 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
8769
8770         * s/hpux.h: Don't use undefined function sigunblock().
8771
8772 2000-08-31  Martin Buchholz  <martin@xemacs.org>
8773
8774         * config.h.in: Add HAVE_BALLOON_HELP.
8775         * emacs.c: Use HAVE_BALLOON_HELP.
8776         * Makefile.in.in (x_objs):
8777         Make Balloon Help conditional on finding shape.h.
8778
8779 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
8780
8781         * syntax.c (regex_emacs_buffer_p): New variable.
8782         * syntax.h (regex_emacs_buffer_p): extern.
8783         * search.c (looking_at_1):
8784         (string_match_1):
8785         (fast_string_match):
8786         (search_buffer): Set regex_emacs_buffer_p.
8787         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
8788         when before_dot, at_dot, after_dot.
8789
8790 2000-08-23  Andy Piper  <andy@xemacs.org>
8791
8792         * gui-x.c (popup_selection_callback): Only set action_occurred
8793         when we really have an image instance.
8794         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
8795
8796 2000-08-23  Andy Piper  <andy@xemacs.org>
8797
8798         * gui-msw.c (mswindows_handle_gui_wm_command): set
8799         action_occurred.
8800         * gui-x.c (popup_selection_callback): ditto.
8801
8802         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
8803         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
8804         (struct Lisp_Image_Instance): add action_occurred flag.
8805
8806         * glyphs.c (redisplay_subwindow): use action_occurred flag.
8807         (image_instance_changed): ditto.
8808         (reset_frame_subwindow_instance_cache): only unmap windows - do
8809         not remove them from the cache also.
8810
8811         * glyphs-widget.c (tab_control_update): better debug.
8812         (progress_gauge_update): ditto.
8813         (layout_update): ditto.
8814         (layout_instantiate): ditto.
8815         (tab_control_order_only_changed): cope with null pending items.
8816
8817         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
8818         debug. Force selection of an item when an action occurred. Cope
8819         with null pending_items.
8820         (mswindows_progress_gauge_redisplay): better debug.
8821         * glyphs-x.c (x_tab_control_redisplay): ditto.
8822
8823         * redisplay.c (redisplay_frame): reset the frame cache if the
8824         frame is garbaged.
8825
8826         * window.c (Fset_window_configuration): potentially re-enable
8827         frame cache reset.
8828         (window_unmap_subwindows): need to finalize instances here since
8829         it is only used in mark_window_as_deleted.
8830
8831 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
8832
8833         * nas.c (SndOpenDataForReading):
8834         nas.c (WaveOpenDataForReading):
8835         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
8836         Somehow escaped from the 2000-08-14 patch.
8837
8838 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
8839
8840         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
8841         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
8842
8843 2000-08-21  Andy Piper  <andy@xemacs.org>
8844
8845         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
8846         window if it is not already displayed.
8847
8848         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
8849         it is not already displayed.
8850
8851         * window.c (Fset_window_configuration): don't reset the frame
8852         cache.
8853
8854         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
8855         instances from the frame cache if we are actually finalizing them.
8856         (reset_frame_subwindow_instance_cache): reset frame cache only
8857         after unmapping everything.
8858         (map_subwindow): set displayed flag after mapping.
8859
8860 2000-08-21  Martin Buchholz  <martin@xemacs.org>
8861
8862         * data.c (indirect_function):
8863         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
8864
8865         * eval.c (function_argcount):
8866         Use original function when signaling errors.
8867
8868 2000-08-18  Andy Piper  <andy@xemacs.org>
8869
8870         * frame.c (delete_frame_internal): use new
8871         free_frame_subwindow_instances name.
8872
8873         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
8874         (add_tab_item): make return type correct.
8875         (mswindows_tab_control_instantiate): assert index of tab.
8876         (mswindows_tab_control_redisplay): Re-code to use
8877         gui_item_equal_sans_selected and gui_item_list_find_selected.
8878
8879         * glyphs-widget.c (tab_control_update): Correct comment.
8880
8881         * window.c (window_unmap_subwindows): use new
8882         unmap_subwindow_instance_cache_mapper.
8883         (window_unmap_subwindows_cache_mapper): deleted.
8884         (Fset_window_configuration): comparisons should now be with
8885         EQ. Preserve the subwindow instance cache across configuration
8886         changes.
8887         (allocate_window): ditto.
8888         (make_dummy_parent): ditto.
8889
8890         * glyphs.c (free_frame_subwindow_instances): rename from
8891         free_frame_subwindow_instance_cache. finalize all instances rather
8892         than just those in the display cache.
8893         (finalize_all_subwindow_instances): walk windows unmapping and
8894         finalizing subwindows.
8895         (unmap_subwindow_instance_cache_mapper): moved from
8896         window.c. Allow finalization as well as unmapping.
8897
8898         * gui.c (gui_item_list_find_selected): new function.
8899
8900         * gui.h (gui_item_list_find_selected): declare.
8901
8902         * glyphs-x.c (x_tab_control_redisplay): pick tab
8903         explicitly. Re-code to use gui_item_equal_sans_selected and
8904         gui_item_list_find_selected.
8905
8906         * glyphs-x.h: add lwlib-utils.h
8907
8908         * buffer.c (Frecord_buffer): undo previous change.
8909
8910 2000-08-09  Vin Shelton  <acs@xemacs.org>
8911
8912         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
8913         possible.  Create temporary files more securely.  The patch was
8914         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
8915         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
8916         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
8917         for details.
8918
8919 2000-08-07  Ben Wing  <ben@xemacs.org>
8920
8921         * getloadavg.c: remove duplicate (and windows-breaking)
8922         includes of fcntl.h and sys/file.h.
8923
8924         * nt.c: remove duplicate getloadavg() definition.
8925
8926         * sysdll.h (Qdll_filename_encoding): add missing stand-in
8927         encodings.
8928
8929 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
8930
8931         * eval.c (function_argcount): If function needs to be autoloaded
8932         actually use the loaded definition.
8933         GCPRO function.
8934
8935 2000-08-05  Ben Wing  <ben@xemacs.org>
8936
8937         * getloadavg.c: add prototype for getloadavg().  remove
8938         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
8939         of the code).  remove duplicate header includes.
8940
8941         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
8942
8943         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
8944         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
8945         useful load average.
8946
8947         * alloc.c (reinit_alloc_once_early): removed references to
8948         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
8949         the lisp vars are the only things referencing the malloc_sbrk_*
8950         vars, and they were already if 0'd out.  these vars only exist
8951         in the older malloc.c, which is basically unused, and they're
8952         only for informational purposes.
8953
8954         * m\*.h: removed useless VIRT_ADDR_VARIES.
8955
8956         * m\powerpc.h: removed stray NO_ARG_ARRAY.
8957
8958 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
8959
8960         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
8961         color if the image is a mono pixmap.
8962
8963 2000-07-30  Ben Wing  <ben@xemacs.org>
8964
8965         * Makefile.in.in (release):
8966         Remove stray @.
8967
8968         * buffer.c (directory_is_current_directory):
8969         * dired-msw.c (mswindows_get_files):
8970         * dired.c:
8971         * dired.c (Fdirectory_files):
8972         * dired.c (file_name_completion_stat):
8973         * dired.c (Ffile_attributes):
8974         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
8975         preprocessor tricks, to avoid problems on some machines
8976         (e.g. SCO).
8977
8978         * callproc.c (egetenv): GC docs.
8979
8980         * console-msw.h:
8981         * console-msw.h (struct mswindows_dialog_id):
8982         * lrecord.h (lrecord_type):
8983         New object for use with MSW dialogs.
8984
8985         * console.h (struct console_methods):
8986         New enable/disable frame methods, for proper modal dialogs.
8987
8988         * device-msw.c (msprinter_default_printer): Fix to follow
8989         proper Mule conventions.
8990
8991         * device-msw.c:
8992         * device-msw.c (signal_open_printer_error):
8993         * device-msw.c (msprinter_init_device):
8994         * device-msw.c (ensure_not_printing):
8995         * device-msw.c (plist_get_margin):
8996         * device-msw.c (Fmsprinter_select_settings):
8997         * device-msw.c (finalize_devmode):
8998         * device-msw.c (Fmsprinter_settings_despecialize):
8999         * device-msw.c (signal_enum_priner_error):
9000         * extents.c (decode_extent):
9001         * extents.c (decode_map_extents_flags):
9002         * extents.c (decode_extent_at_flag):
9003         * extents.c (Fextent_at):
9004         * extents.c (Fextents_at):
9005         * extents.c (symbol_to_glyph_layout):
9006         [[[[2]]]] Use structured errors.
9007
9008         * dialog-msw.c:
9009         * dialog-msw.c (mswindows_is_dialog_msg):
9010         * dialog-msw.c (mark_mswindows_dialog_id):
9011         * dialog-msw.c (dialog_proc):
9012         * dialog-msw.c (handle_question_dialog_box):
9013         * dialog-msw.c (syms_of_dialog_mswindows):
9014         Define new object to clean up marking; use it as a dialog identifier.
9015         Call new delete-dialog-box-hook.
9016
9017         * dialog-x.c (dbox_selection_callback):
9018         * dialog-x.c (dbox_descriptor_to_widget_value):
9019         * dialog-x.c (x_make_dialog_box_internal):
9020         Call new delete-dialog-box-hook.
9021         Return an id.
9022
9023         * dialog.c:
9024         * dialog.c (syms_of_dialog):
9025         * dialog.c (vars_of_dialog):
9026         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
9027
9028         * eval.c:
9029         * eval.c (signal_call_debugger):
9030         when noninteractive, output stack traces on the console instead
9031         of in a (never-seen) buffer.
9032
9033         * eval.c (signal_type_error):
9034         * eval.c (invalid_argument_2):
9035         * lisp.h:
9036         new funs for use w/structured errors.
9037
9038         * event-Xt.c:
9039         * event-Xt.c (x_to_emacs_keysym):
9040         * event-Xt.c (describe_event):
9041         * event-Xt.c (emacs_Xt_event_handler):
9042         * event-Xt.c (vars_of_event_Xt):
9043         * event-msw.c:
9044         * event-msw.c (mswindows_wnd_proc):
9045         * event-msw.c (vars_of_event_mswindows):
9046         rename {x,mswindows}-debug-events to debug-{}-events for
9047         consistency with other debug-foo variables.
9048
9049         * event-stream.c:
9050         document next-event more clearly.
9051
9052         * fileio.c (Ffile_name_directory):
9053         * fileio.c (Ffile_name_nondirectory):
9054         * fileio.c (Funhandled_file_name_directory):
9055         * fileio.c (file_name_as_directory):
9056         * fileio.c (Ffile_name_as_directory):
9057         * fileio.c (directory_file_name):
9058         * fileio.c (Fdirectory_file_name):
9059         * fileio.c (Fmake_temp_name):
9060         * fileio.c (Ffile_truename):
9061         * fileio.c (Fsubstitute_in_file_name):
9062         * fileio.c (expand_and_dir_to_file):
9063         * fileio.c (barf_or_query_if_file_exists):
9064         * fileio.c (check_executable):
9065         * fileio.c (Ffile_exists_p):
9066         * fileio.c (Ffile_writable_p):
9067         * fileio.c (Ffile_directory_p):
9068         * fileio.c (Ffile_regular_p):
9069         * fileio.c (Ffile_modes):
9070         * fileio.c (Ffile_newer_than_file_p):
9071         * fileio.c (Fverify_visited_file_modtime):
9072         * fileio.c (Fset_visited_file_modtime):
9073         * fileio.c (auto_save_1):
9074         (1). (2).
9075         fix up gcpro's.
9076
9077         * frame-msw.c:
9078         * frame-msw.c (mswindows_init_frame_1):
9079         * frame-msw.c (mswindows_enable_frame):
9080         * frame-msw.c (error_frame_unsizable):
9081         * frame-msw.c (msprinter_init_frame_1):
9082         * frame-msw.c (msprinter_init_frame_3):
9083         * frame-msw.c (console_type_create_frame_mswindows):
9084         (2).
9085         implement new enable/disable frame methods.
9086
9087         * frame-x.c:
9088         * frame-x.c (x_enable_frame):
9089         * frame-x.c (console_type_create_frame_x):
9090         implement new enable/disable frame methods.
9091
9092         * frame.c:
9093         * frame.c (Fdisable_frame):
9094         * frame.c (syms_of_frame):
9095         * frame.h (struct frame):
9096         implement new enable/disable frame methods/functions.
9097
9098         * general-slots.h:
9099         add initial-focus.
9100
9101         * glyphs-msw.c (mswindows_widget_instantiate):
9102         comment that initial-focus should be implemented.
9103
9104         * glyphs-widget.c:
9105         * glyphs-widget.c (check_valid_instantiator):
9106         * glyphs-widget.c (check_valid_orientation):
9107         * glyphs-widget.c (check_valid_tab_orientation):
9108         * glyphs-widget.c (check_valid_justification):
9109         * glyphs-widget.c (check_valid_border):
9110         * glyphs-widget.c (check_valid_callback):
9111         * glyphs-widget.c (check_valid_int_or_function):
9112         * glyphs-widget.c (check_valid_string_or_vector):
9113         * glyphs-widget.c (check_valid_item_list_1):
9114         * glyphs-widget.c (widget_validate):
9115         * glyphs-widget.c (combo_box_validate):
9116         * glyphs-widget.c (widget_instantiate):
9117         * glyphs-widget.c (syms_of_glyphs_widget):
9118         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
9119         * glyphs-widget.c (image_instantiator_combo_box):
9120         * glyphs-widget.c (image_instantiator_scrollbar):
9121         * glyphs-widget.c (image_instantiator_tab_control):
9122         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
9123         (2).
9124         support (unimplemented) keyword initial-focus.
9125         reindent long macros.
9126
9127         * glyphs-x.c (x_redisplay_widget):
9128         * glyphs-x.c (x_button_instantiate):
9129         * glyphs-x.c (x_button_redisplay):
9130         * glyphs-x.c (x_progress_gauge_instantiate):
9131         * glyphs-x.c (x_edit_field_instantiate):
9132         * glyphs-x.c (x_combo_box_instantiate):
9133         * glyphs-x.c (x_tab_control_instantiate):
9134         * glyphs-x.c (x_label_instantiate):
9135         * gui-x.c:
9136         * gui-x.c (button_item_to_widget_value):
9137         * gui-x.c (gui_items_to_widget_values_1):
9138         * gui-x.c (gui_item_children_to_widget_values):
9139         * gui-x.c (gui_items_to_widget_values):
9140         * gui-x.h:
9141         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9142         add new flag to gui-parsing routines to indicate whether
9143         accelerator specs should be supported.
9144
9145         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
9146
9147         * glyphs.h (struct Lisp_Image_Instance):
9148         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
9149         add initial-focus flag.
9150
9151         * gui.c:
9152         * gui.c (syms_of_gui):
9153         * gui.c (vars_of_gui):
9154         clean up menu-no-selection-hook.
9155
9156         * gui.h:
9157         support delete-dialog-box-hook.
9158
9159         * lread.c (Fload_internal):
9160         * lread.c (locate_file_in_directory_mapper):
9161         (1).
9162
9163         * lrecord.h:
9164         * lrecord.h (struct toolbar_button):
9165         * lrecord.h (syms_of_toolbar):
9166         document how to create a new object.
9167
9168         * menubar-msw.c (mswindows_char_is_accelerator):
9169         may be called on frames w/o menus.
9170
9171         * menubar.c (vars_of_menubar):
9172         clean up :filter docs.
9173
9174         * nt.c (readdir):
9175         * ntproc.c:
9176         (1).
9177
9178         * process-nt.c:
9179         * process-nt.c (validate_signal_number):
9180         * process-nt.c (signal_cannot_launch):
9181         * process-nt.c (nt_create_process):
9182         * process-nt.c (nt_send_process):
9183         * process-nt.c (nt_kill_child_process):
9184         * process-nt.c (nt_open_network_stream):
9185         * process-nt.c (syms_of_process_nt):
9186         (2).
9187         delete quote-handling.  call new lisp code that does it better.
9188
9189         * process-unix.c (connect_to_file_descriptor):
9190         * process-unix.c (allocate_pty):
9191         * process-unix.c (unix_send_process):
9192         * process-unix.c (unix_kill_child_process):
9193         * process-unix.c (unix_open_network_stream):
9194         * process-unix.c (unix_open_multicast_group):
9195         (1). (2).
9196
9197         * process.c:
9198         * process.c (Fstart_process_internal):
9199         (2).  need to canonicalize process path even if absolute.
9200
9201         * select-msw.c (symbol_to_ms_cf):
9202         * select-msw.c (ms_cf_to_symbol):
9203         * select-msw.c (cf_is_autofreed):
9204         * select-msw.c (mswindows_destroy_selection):
9205         * select.c:
9206         * select.c (syms_of_select):
9207         * select.h:
9208         support dibv5, fix bugs. (from Mike Alexander)
9209
9210         * select.c (Fget_selection_internal):
9211         * select.c (select_convert_out):
9212
9213         * sysdep.c:
9214         * sysdep.c (xemacs_stat):
9215         renamed.
9216
9217         * sysdep.c (mkdir):
9218         * sysdep.c (rmdir):
9219         but keep original stat() here because we provide encapsulation
9220         around these funs.
9221
9222         * sysfile.h:
9223         * sysfile.h (fstat):
9224         remove stat garbage.
9225
9226         * syswindows.h:
9227         fix X/MSW conflict.
9228         don't include tchar.h.  it's inappropriate because it makes
9229         compile-time distinctions when we want runtime distinctions.
9230         (we provide our own tchar replacements)
9231
9232         * toolbar.c:
9233         use default object printer for toolbar-button.
9234
9235         * unexcw.c:
9236         make sure we don't encapsulate.
9237
9238         * window.c (vars_of_window):
9239         emphasize that temp-buffer-show-hook is obsolete.
9240
9241 2000-08-05  Martin Buchholz  <martin@xemacs.org>
9242
9243         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
9244         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
9245
9246         * events.c (Fevent_timestamp_lessp):
9247         Not 64-bit clean.  Use EMACS_INT, not int.
9248
9249 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
9250
9251         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
9252         unsigned int and changed the last enum to
9253         lrecord_type_last_built_in_type.
9254         (lrecord_implementations_table): changed prototype to know how
9255         long the array is supposed to be.
9256         (lrecord_type_count): new unsigned int to keep track of the
9257         current number of lisp lrecord types.
9258         (DEFINE_EXTERNAL_LRECORD):
9259         (DECLARE_EXTERNAL_LRECORD): Added these two for external
9260         dynamic-modules to declare new lisp types. They are the same
9261         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
9262         int for each new type, and increment lrecord_type_count by 1.
9263
9264         * alloc.c (lrecord_implementations_table): Changed to reference
9265         lrecord_type_last_built_in_type for the size of the array.
9266         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
9267
9268 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
9269
9270         * glyphs.h (check_valid_item_list): Renamed from
9271         check_valid_item_list_1.
9272
9273 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
9274
9275         * select.c (Qselect_coerce): New.
9276         * select.c (Vselection_coercion_alist): New.
9277         * select.c (syms_of_select): Declare.
9278         * select.c (get-selection-internal): Use it.
9279         Use the new select-coerce functionality.
9280
9281         * select.c (select_coerce): New.
9282         * select.h (select_coerce): Declare.
9283         New function to coerce one type of data into another.
9284
9285 2000-08-03  Martin Buchholz  <martin@xemacs.org>
9286
9287         * callproc.c (Fcall_process_internal):
9288         (Fcall_process_internal):
9289         * process-unix.c (unix_create_process):
9290         Save and restore the value of errno, so that error messages are accurate.
9291
9292 2000-08-01  Martin Buchholz  <martin@xemacs.org>
9293
9294         * elhash.c (print_hash_table):
9295         Fix printing of hash tables to also use `key-and-value' instead of `t'.
9296         Prettify docstrings and indentation.
9297
9298 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
9299
9300         * window.c (Fwindow_pixel_edges): Subtract frame border and
9301         gutter size.
9302
9303 2000-07-31  Andy Piper  <andy@xemacs.org>
9304
9305         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
9306         will acknowledge the change.
9307
9308         * glyphs.h: declare tab_control_order_only_changed.
9309
9310         * glyphs-x.c (x_tab_control_redisplay): use
9311         tab_control_order_only_changed.
9312
9313         * glyphs-widget.c (tab_control_order_only_changed): new function.
9314
9315         * glyphs-msw.c (mswindows_tab_control_redisplay): use
9316         tab_control_order_only_changed.
9317
9318         * gui.c (gui_item_equal_sans_selected): new function.
9319         (gui_item_equal): use it.
9320
9321         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
9322         :properties in favor of :items..
9323
9324         * glyphs-widget.c (check_valid_item_list): rename from
9325         check_valid_item_list_1.
9326         (check_valid_item_list_1): renamed.
9327         (combo_box_validate): deprecate :properties in favor of :items.
9328         (widget_instantiate): ditto.
9329         (tab_control_update): ditto.
9330         (image_instantiator_combo_box): ditto.
9331         (image_instantiator_tree_view): ditto.
9332         (image_instantiator_tab_control): ditto.
9333         (layout_post_instantiate): remove dead code.
9334
9335         * print.c (debug_print_no_newline): only write to debugger if in
9336         WIN32_NATIVE.
9337
9338         * elhash.c (Fmake_hash_table): update doc string.
9339
9340         * event-msw.c (mswindows_wnd_proc): don't allow processing of
9341         messages whilst in GC. This at least stops XEmacs crashing but has
9342         the potential for wierd behaviour.
9343
9344 2000-07-31  Martin Buchholz  <martin@xemacs.org>
9345
9346         * config.h.in:
9347         Make existence of s&m files optional.
9348
9349         * s/bsd386.h: Remove HAVE_GETLOADAVG.
9350         * s/freebsd.h: Remove HAVE_GETLOADAVG.
9351         * s/gnu.h: Remove HAVE_GETLOADAVG.
9352         * s/netbsd.h: Remove HAVE_GETLOADAVG.
9353         * s/sol2.h: Remove HAVE_GETLOADAVG.
9354         * lisp.h: Remove getloadavg() declaration.
9355         * fns.c:
9356         Include <sys/loadavg.h> if available.
9357         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
9358         * config.h.in:  Group together getloadavg()-related macros.
9359         Use only configure-time tests to detect getloadavg().
9360
9361 2000-07-30  Martin Buchholz  <martin@xemacs.org>
9362
9363         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
9364
9365 2000-07-25  Andy Piper  <andy@xemacs.org>
9366
9367         * syswindows.h: add tchar.h for native builds.
9368
9369         * frame.c (syms_of_frame): remove set-glyph-image.
9370
9371         * general-slots.h: add Qset_glyph_image.
9372
9373         * glyphs-widget.c (layout_update): add domain arg to
9374         set-glyph-image.
9375         (syms_of_glyphs_widget): remove set-glyph-image.
9376
9377 2000-07-23  Ben Wing  <ben@xemacs.org>
9378
9379         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
9380         Vpopup_frame_list.
9381
9382 2000-07-22  Andy Piper  <andy@xemacs.org>
9383
9384         * symsinit.h: add syms_of_win32().
9385
9386         * gui-msw.c (syms_of_gui_mswindows): remove
9387         Fmswindows_shell_execute.
9388         (Fmswindows_shell_execute): moved to win32.c.
9389
9390         * emacs.c (main_1): add syms_of_win32 ().
9391
9392         * win32.c (init_potentially_nonexistent_functions): rewrite in
9393         compiler-friendly terms.
9394         (Fmswindows_shell_execute): move here from gui-msw.c.
9395         (syms_of_win32): new.
9396
9397         * device-msw.c (Fmswindows_printer_list): clean up args to
9398         EnumPrinters.
9399         Don't include tchar under cygwin or mingw.
9400         (msprinter_default_printer): make cygwin-friendly.
9401
9402 2000-07-21  Andy Piper  <andy@xemacs.org>
9403
9404         * glyphs-widget.c (image_instantiator_tree_view): use tab
9405         control's update function.
9406         (layout_property): new function. Retrieve items.
9407
9408         * glyphs-msw.c (mswindows_tree_view_redisplay): new
9409         function. Re-populate the tree view from the pending items.
9410
9411         * glyphs.c (instantiate_image_instantiator): Make sure the domain
9412         is designated the parent if the domain is an image instance. This
9413         is needed so that dirtiness can be cascade up the hierarchy and
9414         thus for layout children to be redisplayed correctly.
9415         (allocate_image_instance): rename glyph -> parent.
9416
9417         * redisplay.h: change redisplay_output_layout signature.
9418
9419         * redisplay-msw.c (mswindows_output_display_block): use domain
9420         arg.
9421
9422         * redisplay-x.c (x_output_display_block): use domain arg.
9423
9424 2000-07-10  Andy Piper  <andy@xemacs.org>
9425
9426         * window.c (Fset_window_configuration): add comment.
9427
9428         * redisplay-output.c (compare_runes):
9429         (redisplay_output_subwindow): redisplay rather than update subwindow.
9430         (redisplay_output_layout): ditto.
9431
9432         * redisplay-msw.c (mswindows_frame_output_end):
9433         (mswindows_frame_output_end): make defer window pos optional.
9434
9435         * lisp.h: add Flast.
9436
9437         * glyphs.h (struct image_instantiator_methods): add dest_mask top
9438         normalize method. Change update method to be for changed
9439         instantiators. Add redisplay method. Change signature of layout
9440         method.
9441         (struct Lisp_Image_Instance): add instantiator.
9442         (IMAGE_INSTANCE_INSTANTIATOR): new.
9443         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
9444         (XIMAGE_INSTANCE_INSTANTIATOR): new.
9445         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
9446
9447         * glyphs.c:
9448         (find_instantiator_differences): new function.
9449         (Fset_instantiator_property): new convenience function.
9450         (check_image_instance_structure): strictly check for vector
9451         instantiators.
9452         (normalize_image_instantiator): make non-static.
9453         (instantiate_image_instantiator): pass on dest_mask and use new
9454         signatures for image_instance_layout and friends.
9455         (mark_image_instance): mark the instantiator. Mark the subwindow
9456         face not the widget face.
9457         (image_instance_equal): add instantiator.
9458         (image_instance_hash): ditto.
9459         (allocate_image_instance): ditto.
9460         (Fset_image_instance_property): removed.
9461         (Fimage_instance_file_name): ditto.
9462         (Fcolorize_image_instance): ditto.
9463         (image_instance_layout): add offsets to be set.
9464         (update_image_instance): new function. update an image instance
9465         from its changed instantiator.
9466         (inherit_normalize): add dest_mask.
9467         (xbm_normalize): ditto.
9468         (xface_normalize): ditto.
9469         (xpm_normalize): ditto.
9470         (text_update): set_property -> update.
9471         (image_instantiate): use the glyph identity as a hash key, not the
9472         instantiator.
9473         (glyph_width): use new image_instance_layout signature.
9474         (glyph_ascent): ditto.
9475         (glyph_descent): ditto.
9476         (glyph_height): ditto.
9477         (glyph_query_geometry): ressurrect.
9478         (glyph_layout): ditto.
9479         (redisplay_subwindow): update -> redisplay.
9480         (syms_of_glyphs): add Fset_instantiator_property.
9481         (image_instantiator_format_create): set_property -> update.
9482
9483         * glyphs-x.c:
9484         (autodetect_normalize): add dest_maks to signature.
9485         (x_redisplay_subwindow): update -> redisplay.
9486         (x_redisplay_widget): ditto.
9487         (x_button_redisplay): ditto.
9488         (x_progress_gauge_redisplay): ditto.
9489         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
9490         stacking order.
9491         (console_type_create_glyphs_x): update -> redisplay.
9492         (image_instantiator_format_create_glyphs_x): ditto.
9493
9494         * glyphs-widget.c:
9495         (check_valid_instantiator): disallow glyphs in the instantiator,
9496         they must now be vectors.
9497         (check_valid_instantiator_list): ditto.
9498         (glyph_instantiator_to_glyph): use internal symbol rather than
9499         intern.
9500         (widget_update): renamed from widget_set_property. Call cascaded
9501         update methods.
9502         (redisplay_widget): renamed from update_widget.
9503         (widget_layout): image_instance_layout now takes position as well
9504         as size.
9505         (widget_normalize): ditto.
9506         (widget_instantiate): ditto.
9507         (tab_control_query_geometry) ditto.:
9508         (tab_control_update): renamed from tab_control_set_property.
9509         (progress_gauge_update): set_property -> update.
9510         (layout_normalize): rewrite so that child instantiators are
9511         normalized also.
9512         (layout_update): new function. Create glyphs from the normalized
9513         children and cope with any other layout keywords. We do not
9514         instantiate children here that will be take care of by
9515         redisplay_output_layout.
9516         (layout_instantiate): call layout_update and not much else.
9517         (layout_post_instantiate): not sure whether this is needed
9518         anymore.
9519         (layout_query_geometry): query glyph geometry rather than
9520         image_instance geometry.
9521         (layout_layout): set offsets from pass in parameters. Use glyph
9522         geometry and layout functions rather than image instance ones.
9523         (native_layout_layout): ditto.
9524         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
9525         (image_instantiator_widget): set_property -> update.
9526         (image_instantiator_buttons): ditto.
9527         (image_instantiator_progress_guage): ditto.
9528         (image_instantiator_tab_control): ditto.
9529         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
9530         (image_instantiator_layout): add update method.
9531
9532         * glyphs-msw.c (bmp_normalize):
9533         (mswindows_resource_normalize): add dest_mask so that it can be
9534         proprogated by layout_normalize.
9535         (begin_defer_window_pos): make optional because it may not be the
9536         right thing to do and it introduces differences with X.
9537         (mswindows_unmap_subwindow): ditto.
9538         (mswindows_map_subwindow): ditto.
9539         (mswindows_redisplay_subwindow): renamed from
9540         mswindows_update_subwindow.
9541         (mswindows_redisplay_widget): ditto.
9542         (mswindows_button_redisplay): renamed from
9543         mswindows_button_update. Update is now what the instantiation
9544         function does for a changed instantiator.
9545         (mswindows_progress_gauge_instantiate): set the progress value
9546         here if appropriate.
9547         (mswindows_tab_control_redisplay): cope with re-ordering of the
9548         members of the tab widget by simply selecting the new top
9549         widget. This makes things appear ok if you click on a tab.
9550         (mswindows_combo_box_instantiate): image_instance_layout now takes
9551         position as well as size.
9552         (mswindows_progress_gauge_redisplay): renamed from
9553         mswindows_progress_gauge_update.
9554         (console_type_create_glyphs_mswindows): fix update -> redisplay.
9555         (image_instantiator_format_create_glyphs_mswindows): ditto.
9556
9557         * glyphs-eimage.c (jpeg_normalize):
9558         (gif_normalize):
9559         (png_normalize):
9560         (tiff_normalize): add dest_mask so that it can be proprogated by
9561         layout_normalize.
9562
9563         * elhash.c:
9564         (print_hash_table):
9565         (hash_table_weakness_validate):
9566         (decode_hash_table_weakness):
9567         (Fhash_table_weakness):
9568         (Fhash_table_type):
9569         (syms_of_elhash): use Ben's naming scheme for hashtable types..
9570
9571         * console.h (struct console_methods): move update_* to
9572         redisplay_*.
9573
9574 2000-07-20  Ben Wing  <ben@xemacs.org>
9575
9576         * *.[ch] (XSETOBJ): remove unused middle argument.
9577         lisp-disunion.h: correct wrap_object() to one argument.
9578
9579 2000-07-15  Ben Wing  <ben@xemacs.org>
9580
9581         * s/cygwin32.h:
9582         * s/cygwin32.h (CYGWIN_CONV_PATH):
9583         Add missing logb prototype for v1.1.
9584         Use post-b20 names and alias to pre-b20 names when pre-b20.
9585
9586         * s/windowsnt.h: [5].
9587
9588 2000-07-15  Ben Wing  <ben@xemacs.org>
9589
9590         * Makefile.in.in (x_objs):
9591         * Makefile.in.in (sheap_objs):
9592         * Makefile.in.in (objs):
9593         added win32.o, cosmetic cleanups.
9594
9595         * alloc.c (Fmake_byte_code):
9596         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
9597         etc. macros which declare their own args now.
9598
9599         * alloc.c (syms_of_alloc):
9600         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
9601
9602         * buffer.c:
9603         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
9604
9605         * buffer.c (Fget_file_buffer):
9606         Fixed GCPRO problem.
9607
9608         * buffer.c (get_truename_buffer):
9609         Fixed comment about GC checking.
9610
9611         * buffer.c (syms_of_buffer):
9612         Undeclared those dedicated frame funs.
9613         [2].
9614
9615         * buffer.h:
9616         Define convenience macros for internal/external conversions.
9617         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
9618         and Qenvironment_variable_encoding for cleaner code.
9619
9620         * bufslots.h:
9621         Remove dedicated-frame; in lisp.
9622
9623         * bytecode.c (funcall_compiled_function):
9624         [1].
9625
9626         * bytecode.c (syms_of_bytecode):
9627         [2].
9628
9629         * console-msw.c:
9630         * console-msw.c (mswindows_show_console): Rewrote.
9631
9632         * console-msw.c (Fmswindows_debugging_output): New.
9633         Sends to OutputDebugString (special MSWin debugger interface).
9634
9635         * console-msw.c (Fmswindows_message_box):
9636         Fixed stupid bugs so it works when called from kill-emacs.
9637
9638         * console-msw.c (syms_of_console_mswindows):
9639         Declare Fmswindows_debugging_output.
9640
9641         * console-msw.h:
9642         New MSWin prototypes.
9643
9644         * console-msw.h (struct mswindows_frame):
9645         New entry last-click-mods for improved button-modifier support.
9646
9647         * console-msw.h (FRAME_MSWINDOWS_POPUP):
9648         New struct entry `popup' with corresponding accessor.
9649
9650         * console-x.c:
9651         * console-x.c (split_up_display_spec):
9652         * console-x.c (get_display_arg_connection):
9653         * console-x.c (x_semi_canonicalize_console_connection):
9654         * console-x.c (x_canonicalize_device_connection):
9655         [[[6]]]: Change char to more specific type.
9656         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
9657
9658         * console-x.c (x_semi_canonicalize_console_connection):
9659         * console-x.c (x_canonicalize_device_connection):
9660         [[[9]]]: Fix up error signalling to use new structured error system.
9661
9662         * console-x.h:
9663         [[[4]]]: Define codesys aliases:
9664         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
9665         Qx_color_name_encoding, Qx_display_name_encoding.
9666
9667         * console.h (struct console_methods):
9668         New method make_dialog_box_internal supersedes older
9669         popup_dialog_box method.
9670
9671         * data.c:
9672         Define many new errors, part of new structured errors.
9673
9674         * data.c (init_errors_once_early):
9675         * data.c (syms_of_data):
9676         [2].
9677
9678         * device-msw.c (mswindows_init_device):
9679         [[[5]]]: Cleanup to support NT 3.51.
9680
9681         * device-msw.c (decode_devmode): Cleanup.
9682
9683         * device-msw.c (mswindows_handle_print_setup_dialog_box):
9684         * device-msw.c (mswindows_handle_print_dialog_box):
9685         * device-msw.c (mswindows_handle_page_setup_dialog_box):
9686         * device-msw.c (syms_of_device_mswindows):
9687         Delete the dialog box primitives recently introduced by Kirill and
9688         instead interface to general dialog box interface.
9689
9690         * device-x.c:
9691         * device-x.c (compute_x_app_name):
9692         * device-x.c (x_init_device):
9693         * device-x.c (Fx_valid_keysym_name_p):
9694         * device-x.c (Fx_set_font_path):
9695         [6].
9696         [7].
9697
9698         * device.h (wrap_device): New.
9699         First of its kind; meant to replace XSETDEVICE.
9700
9701         * dialog-msw.c: Many file-dialog symbols.
9702
9703         * dialog-msw.c (mswindows_register_popup_frame): New.
9704         * dialog-msw.c (mswindows_is_dialog_msg): New.
9705         For supporting kbd traversal in dialog boxes.
9706
9707         * dialog-msw.c (dialog_proc):
9708         Support hitting ESC in dialogs.
9709
9710         * dialog-msw.c (struct):
9711         Common dialog box errors.
9712
9713         * dialog-msw.c (handle_file_dialog_box): New.
9714         Add file dialog code.
9715
9716         * dialog-msw.c (handle_question_dialog_box):
9717         Redo existing code to support new question dialog syntax.
9718
9719         * dialog-msw.c (console_type_create_dialog_mswindows):
9720         We support new dialog console method.
9721
9722         * dialog-msw.c (syms_of_dialog_mswindows):
9723         * dialog-msw.c (vars_of_dialog_mswindows):
9724         New file dialog symbols, vars.
9725
9726         * dialog-x.c:
9727         * dialog-x.c (maybe_run_dbox_text_callback):
9728         * dialog-x.c (dbox_descriptor_to_widget_value):
9729         * dialog-x.c (x_make_dialog_box_internal):
9730         * dialog-x.c (console_type_create_dialog_x):
9731         Mule-ize entire file.
9732         Redo to support question dialog syntax.
9733         [6].
9734
9735         * dialog.c:
9736         * dialog.c (Fmake_dialog_box_internal):
9737         * dialog.c (syms_of_dialog):
9738         Kill old popup-dialog-box, replace with new primitive.
9739         Just call device method or signal error.
9740
9741         * eldap.c (Fldap_open):
9742         * eldap.c (Fldap_search_basic):
9743         * eldap.c (Fldap_add):
9744         * eldap.c (Fldap_modify):
9745         [1].
9746         [7].
9747
9748         * emacs.c:
9749         * emacs.c (make_arg_list_1):
9750         * emacs.c (make_arg_list):
9751         Mule-ize call to dll_init().
9752         [6].
9753         [8].
9754
9755         * emacs.c (make_argc_argv):
9756         * emacs.c (free_argc_argv):
9757         * emacs.c (init_cmdargs):
9758         * emacs.c (main_1):
9759         * emacs.c (Fkill_emacs):
9760         * emacs.c (Fdump_emacs):
9761         Update comments about what can be used in syms_* etc.
9762         Call init_win32() when necessary.
9763         Fix up MS Win dialog box in kill-buffer to actually work right.
9764         [7].
9765
9766         * eval.c:
9767         * eval.c (For):
9768         * eval.c (Fand):
9769         * eval.c (Fprogn):
9770         * eval.c (Fprog1):
9771         * eval.c (Fprog2):
9772         * eval.c (FletX):
9773         * eval.c (Flet):
9774         * eval.c (condition_case_3):
9775         * eval.c (Feval):
9776         * eval.c (function_argcount):
9777         * eval.c (funcall_lambda):
9778         [1].
9779
9780         * eval.c (type_error): New.
9781         * eval.c (maybe_type_error): New.
9782         * eval.c (continuable_type_error): New.
9783         * eval.c (maybe_continuable_type_error): New.
9784         * eval.c (type_error_with_frob): New.
9785         * eval.c (maybe_type_error_with_frob): New.
9786         * eval.c (continuable_type_error_with_frob): New.
9787         * eval.c (maybe_continuable_type_error_with_frob): New.
9788         New functions for use with structured errors.
9789
9790         * event-Xt.c:
9791         * event-Xt.c (x_event_to_emacs_event):
9792         Buttons are now modifiers too.
9793
9794         * event-Xt.c (emacs_Xt_current_event_timestamp):
9795         Implement new event method.
9796         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
9797
9798         * event-msw.c:
9799         * event-msw.c (ntpipe_shove_writer): [5].
9800         * event-msw.c (mswindows_enqueue_mouse_button_event):
9801         * event-msw.c (mswindows_drain_windows_queue):
9802         * event-msw.c (mswindows_wnd_proc): [7].
9803         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
9804         * event-msw.c (mswindows_modifier_state):
9805         Throughout: support new button modifiers.
9806
9807         * event-msw.c (emacs_mswindows_current_event_timestamp):
9808         Implement new event method.
9809         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
9810
9811         * event-stream.c:
9812         * event-stream.c (event_stream_current_event_timestamp): New.
9813         * event-stream.c (maybe_kbd_translate): New functionality.
9814         * event-stream.c (vars_of_event_stream):
9815         Document new kbd-translate-table functionality.
9816
9817         * event-stream.c (Fcurrent_event_timestamp): New.
9818         New primitive for use in fabricated events.
9819         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
9820
9821         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
9822
9823         * events.c:
9824         * events.c (Fmake_event):
9825         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
9826         [1].
9827         [9].
9828
9829         * events.c (format_event_object): fix gcc warnings.
9830
9831         * events.c (Fevent_timestamp): Document new primitives.
9832
9833         * events.c (TIMESTAMP_HALFSPACE): New.
9834
9835         * events.c (Fevent_timestamp_lessp): New.  New primitive for
9836         comparing timestamps correctly (half-space algorithm).
9837
9838         * events.c (Fevent_modifier_bits): Doc fix.
9839
9840         * events.c (Fevent_modifiers): Major doc addition.
9841         * events.c (event_x_y_pixel_internal): Typo fix.
9842         * events.c (syms_of_events): Declare new primitives.
9843
9844         * events.h:
9845         Update long comment for button modifiers, timestamps.
9846
9847         * events.h (struct event_stream):
9848         New current_event_timestamp method.
9849
9850         * extents.c:
9851         * extents.c (extent_in_region_p):
9852         * extents.c (decode_extent):
9853         * extents.c (Fset_extent_parent):
9854         * extents.c (decode_map_extents_flags):
9855         Fix gcc warnings.
9856         [9].
9857
9858         * extents.c (struct extent_at_arg):
9859         * extents.c (decode_extent_at_flag):
9860         * extents.c (extent_at_mapper):
9861         * extents.c (extent_at_bytind):
9862         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
9863         * extents.c (Fextents_at): New primitive. [9].
9864         * extents.c (symbol_to_glyph_layout): [9].
9865         Support new primitive `extents-at'.
9866
9867
9868         * extents.c (get_text_property_bytind):
9869         extent_at_bytind has another arg.
9870         [9].
9871
9872         * extents.c (syms_of_extents): New primitive.
9873
9874         * file-coding.c (Fmake_coding_system): [1].
9875         * file-coding.c (subsidiary_coding_system): fix gcc warning
9876         * file-coding.c (syms_of_file_coding): [2].
9877
9878         * fileio.c (Fexpand_file_name):
9879         * fileio.c (Fsysnetunam):
9880         * fileio.c (Ffile_exists_p):
9881         * fileio.c (Ffile_executable_p):
9882         * fileio.c (Fverify_visited_file_modtime):
9883         Clean up GCPROing.
9884
9885         * fileio.c (syms_of_fileio): [2].
9886
9887         * filelock.c (lock_file_1):
9888         * filelock.c (current_lock_owner):
9889         * filelock.c (lock_if_free):
9890         * filelock.c (lock_file):
9891         * filelock.c (unlock_file):
9892         Clean up GCPROing.
9893
9894         * fns.c (concat): Fix gcc warning.
9895
9896         * fns.c (Fmember):
9897         * fns.c (Fold_member):
9898         * fns.c (Fmemq):
9899         * fns.c (Fold_memq):
9900         * fns.c (memq_no_quit):
9901         * fns.c (Fassoc):
9902         * fns.c (Fold_assoc):
9903         * fns.c (Fassq):
9904         * fns.c (Fold_assq):
9905         * fns.c (assq_no_quit):
9906         * fns.c (Frassoc):
9907         * fns.c (Fold_rassoc):
9908         * fns.c (Frassq):
9909         * fns.c (Fold_rassq):
9910         * fns.c (rassq_no_quit):
9911         * fns.c (Fdelete):
9912         * fns.c (Fold_delete):
9913         * fns.c (Fdelq):
9914         * fns.c (Fold_delq):
9915         * fns.c (delq_no_quit):
9916         * fns.c (Fremassoc):
9917         * fns.c (Fremassq):
9918         * fns.c (remassq_no_quit):
9919         * fns.c (Fremrassoc):
9920         * fns.c (Fremrassq):
9921         * fns.c (remrassq_no_quit):
9922         * fns.c (Freverse):
9923         * fns.c (mapcar1):
9924         [1].
9925
9926         * frame-msw.c (mswindows_init_frame_1):
9927         * frame-msw.c (mswindows_delete_frame):
9928         Register popups with dialog code so keyboard traversing works.
9929
9930         * frame-tty.c (tty_raise_frame_no_select): [1].
9931
9932         * frame-x.c:
9933         * frame-x.c (x_set_frame_text_value):
9934         * frame-x.c (x_set_frame_properties):
9935         * frame-x.c (x_create_widgets):
9936         [7].
9937
9938         * frame.c:
9939         * frame.c (Fmouse_pixel_position): Minor doc fixes.
9940
9941         * frame.h (wrap_frame): New.
9942         Macro like wrap_device.
9943
9944         * general.c:
9945         * general.c (SYMBOL):
9946         * general.c (syms_of_general):
9947         Major reorg.  This is now just a wrapper and symbols themselves
9948         are listed in general-slots.h.
9949
9950         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
9951         * glyphs-msw.c (mswindows_resource_instantiate): [5].
9952
9953         * glyphs-msw.c (mswindows_native_layout_instantiate):
9954         Add DS_CONTROL so keyboard traversal will work.
9955
9956         * glyphs-widget.c:
9957         * glyphs-widget.c (syms_of_glyphs_widget):
9958         Move some symbols to general-slots.h.
9959
9960         * glyphs-x.c:
9961         * glyphs-x.c (xbm_instantiate_1):
9962         * glyphs-x.c (x_xbm_instantiate):
9963         * glyphs-x.c (x_xface_instantiate):
9964         * glyphs-x.c (autodetect_instantiate):
9965         * glyphs-x.c (cursor_font_instantiate):
9966         * glyphs-x.c (x_update_widget):
9967         * glyphs-x.c (x_widget_instantiate):
9968         * glyphs.c (bitmap_to_lisp_data):
9969         * glyphs.c (pixmap_to_lisp_data):
9970         [7].
9971
9972         * glyphs.c (syms_of_glyphs):
9973         [2].
9974
9975         * gui-x.c:
9976         * gui-x.c (print_widget_value):
9977         * gui-x.c (menu_separator_style_and_to_external):
9978         * gui-x.c (add_accel_and_to_external):
9979         * gui-x.c (button_item_to_widget_value):
9980         * gui-x.c (gui_items_to_widget_values_1):
9981         * gui-x.c (gui_items_to_widget_values):
9982         * gui-x.c (syms_of_gui_x):
9983         * gui-x.c (vars_of_gui_x):
9984         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
9985         [9].
9986
9987         * gui-x.h:
9988         Muleize, prototype changes matching gui-x.c.
9989
9990         * gui.c:
9991         * gui.c (separator_string_p):
9992         * gui.c (gui_item_add_keyval_pair):
9993         * gui.c (make_gui_item_from_keywords_internal):
9994         * gui.c (signal_too_long_error):
9995         * gui.c (parse_gui_item_tree_item):
9996         * gui.c (syms_of_gui):
9997         * gui.c (vars_of_gui):
9998         * gui.h:
9999         menu-no-selection-hook moved here (used by MSWin).
10000         Move some symbols to general-slots.h.
10001         [6].
10002         [9].
10003
10004         * insdel.c (get_buffer_pos_char):
10005         * insdel.c (get_buffer_range_char):
10006         Add GC comments.
10007
10008         * keymap.c (keymap_lookup_directly):
10009         * keymap.c (keymap_store):
10010         * keymap.c (ensure_meta_prefix_char_keymapp):
10011         * keymap.c (describe_map):
10012         * keymap.h:
10013         Support new button modifiers.
10014
10015         * lisp-disunion.h (wrap_object):
10016         * lisp-disunion.h (XSETOBJ):
10017         Rename make_obj to wrap_object.
10018
10019         * lisp-union.h:
10020         * lisp-union.h (make_int):
10021         * lisp-union.h (make_char):
10022         Support wrap_object.
10023
10024         * lisp.h:
10025         * lisp.h (LIST_LOOP):
10026         * lisp.h (EXTERNAL_LIST_LOOP):
10027         * lisp.h (LIST_LOOP_2):
10028         * lisp.h (EXTERNAL_LIST_LOOP_1):
10029         * lisp.h (EXTERNAL_LIST_LOOP_2):
10030         * lisp.h (EXTERNAL_LIST_LOOP_3):
10031         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
10032         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
10033         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
10034         * lisp.h (EXTERNAL_ALIST_LOOP_5):
10035         * lisp.h (EXTERNAL_ALIST_LOOP_6):
10036         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
10037         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
10038         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
10039         * lisp.h (struct Lisp_Symbol):
10040         * lisp.h (maybe_continuable_error_with_frob):
10041         Fix up section comments.
10042         Add new types for char to indicate usage.
10043         Delete symbols auto-generated from general-slots.h.
10044         Add prototypes for structured error functions.
10045         Add long comments describing looping macros and change interface
10046         so that lvalues are automatically declared.
10047         Add NO_DECLARE macro in case callers want to declare lvalues
10048         themselves.
10049
10050         * lread.c (read_syntax_error):
10051         * lread.c (continuable_read_syntax_error):
10052         * lread.c (read_structure):
10053         * lread.c (sequence_reader):
10054         * lread.c (read_list_conser):
10055         * lread.c (read_compiled_function):
10056         Rename syntax_error and continuable_syntax_error to avoid clash
10057         with same-named structured error functions.
10058
10059         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
10060         * menubar-msw.c (populate_menu_add_item):
10061         * menubar-msw.c (populate_or_checksum_helper):
10062         [5].
10063         [9].
10064
10065         * menubar-x.c:
10066         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10067         Mule-ize whole file.
10068
10069         * menubar.c (Fnormalize_menu_item_name): Add optimization.
10070
10071         * mule-charset.c (Fmake_charset):
10072         * mule-wnnfns.c (Fwnn_set_param):
10073         [1].
10074
10075         * ntproc.c (create_child):
10076         * ntproc.c (Fwin32_set_current_locale):
10077         Add comments portending doom.
10078
10079         * objects-msw.c:
10080         * objects-msw.c (old_font_enum_callback_2):
10081         * objects-msw.c (font_enum_callback_1):
10082         * objects-msw.c (mswindows_enumerate_fonts):
10083         [5].
10084
10085         * objects-x.c:
10086         * objects-x.c (allocate_nearest_color):
10087         * objects-x.c (x_parse_nearest_color):
10088         * objects-x.c (x_initialize_color_instance):
10089         * objects-x.c (x_print_color_instance):
10090         * objects-x.c (x_finalize_color_instance):
10091         * objects-x.c (x_valid_color_name_p):
10092         * objects-x.c (x_initialize_font_instance):
10093         * objects-x.c (x_print_font_instance):
10094         * objects-x.c (valid_x_font_name_p):
10095         * objects-x.c (truename_via_FONT_prop):
10096         * objects-x.c (truename_via_random_props):
10097         * objects-x.c (truename_via_XListFonts):
10098         * objects-x.c (x_font_truename):
10099         * objects-x.c (x_font_instance_truename):
10100         * objects-x.c (x_font_instance_properties):
10101         * objects-x.c (x_list_fonts):
10102         * objects-x.c (x_find_charset_font):
10103         Mule-ize entire file.
10104         [7].
10105
10106         * objects-x.h:
10107         Mule-verify.
10108
10109         * print.c:
10110         * print.c (std_handle_out_external):
10111         * print.c (debug_print_no_newline):
10112         * print.c (syms_of_print):
10113         Output to all debugger kinds in debug-print.
10114         Fix console-output code under MSWin to actually work.
10115
10116         * process-nt.c (send_signal):
10117         * process-nt.c (nt_create_process):
10118         Use newer Unicode macros.
10119
10120         * process-unix.c (unix_create_process):
10121         * process-unix.c (unix_canonicalize_host_name):
10122         * process-unix.c (unix_open_network_stream):
10123         [7].
10124
10125         * scrollbar-x.c:
10126         Mule-verify.
10127
10128         * search.c (syms_of_search):
10129         [2].
10130
10131         * select-msw.c (mswindows_destroy_selection):
10132         Use LIST_LOOP_2.
10133
10134         * select-x.c (symbol_to_x_atom):
10135         [7].
10136
10137         * select.c (syms_of_select):
10138         [2].
10139
10140         * sound.c (Fplay_sound_file):
10141         [7].
10142
10143         * specifier.c:
10144         * specifier.c (decode_specifier_type):
10145         * specifier.c (Fvalid_specifier_locale_type_p):
10146         * specifier.c (check_valid_locale_or_locale_type):
10147         * specifier.c (decode_locale):
10148         * specifier.c (decode_locale_type):
10149         * specifier.c (decode_locale_list):
10150         * specifier.c (check_valid_domain):
10151         * specifier.c (decode_specifier_tag_set):
10152         * specifier.c (Fcanonicalize_tag_set):
10153         * specifier.c (Fdefine_specifier_tag):
10154         * specifier.c (Fspecifier_tag_predicate):
10155         * specifier.c (check_valid_inst_list):
10156         * specifier.c (check_valid_spec_list):
10157         * specifier.c (decode_how_to_add_specification):
10158         * specifier.c (check_modifiable_specifier):
10159         * specifier.c (specifier_add_spec):
10160         * specifier.c (boolean_validate):
10161         * specifier.c (display_table_validate):
10162         [9].
10163
10164         * specifier.c (syms_of_specifier):
10165         Move some symbols to general-slots.h.
10166         [2].
10167
10168         * symbols.c:
10169         * symbols.c (Fmapatoms):
10170         * symbols.c (Fapropos_internal):
10171         Add GCPROs.
10172
10173         * symbols.c (set_default_buffer_slot_variable):
10174         * symbols.c (set_default_console_slot_variable):
10175         [1].
10176
10177         * symbols.c (defsymbol_massage_name_1):
10178         * symbols.c (defkeyword_massage_name):
10179         * symbols.c (deferror_1):
10180         * symbols.c (deferror):
10181         * symbols.c (deferror_massage_name_and_message):
10182         * symeval.h:
10183         * symeval.h (DEFSYMBOL):
10184         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
10185
10186         * symbols.c (syms_of_symbols):
10187         [2].
10188
10189         * symsinit.h:
10190         * symsinit.h (init_win32): New.
10191         Also new is syms_of_dialog_mswindows.
10192
10193         * syswindows.h:
10194         Add new Unicode macros, missing Cygwin wide-char functions,
10195         convenience conversion macros for Qmswindows_tstr, macros for
10196         encapsulating required MSWin <-> Cygwin filename conversions,
10197         prototype for dynamically-extracted (not in NT 3.51) functions.
10198
10199         * toolbar-x.c:
10200         Mule-verify.
10201
10202         * tooltalk.c (Fadd_tooltalk_message_arg):
10203         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
10204         * tooltalk.c (Fadd_tooltalk_pattern_arg):
10205         [7].
10206
10207         * tooltalk.c (syms_of_tooltalk):
10208         [2].
10209
10210         * unexnt.c:
10211         * unexnt.c (unexec):
10212         Fix up headers, declaration of unexec() to be more standard.
10213
10214 2000-07-20  Martin Buchholz  <martin@xemacs.org>
10215
10216         * offix.h: Revert change to guard macros - they're used in offix.c!
10217
10218 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10219
10220         * lisp.h: Defsubred Fdelete.
10221
10222         * console-msw.h:  (msprinter_default_printer): Added.
10223
10224         * console-msw.c (msprinter_canonicalize_console_connection):
10225         (msprinter_canonicalize_device_connection): Added.
10226
10227         * device-msw.c (msprinter_default_printer):
10228         (Fmswingows_get_default_printer):
10229         (signal_enum_priner_error):
10230         (Fmswingows_printer_list): Added.
10231
10232 2000-07-19  Martin Buchholz <martin@xemacs.org>
10233
10234         * XEmacs 21.2.35 is released.
10235
10236 2000-07-19  Martin Buchholz  <martin@xemacs.org>
10237
10238         * select-x.c (x_handle_selection_request):
10239         Text selected in xemacs and pasted into xterm failed to appear.
10240         Spelling fixes and cosmetic changes.
10241
10242 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10243
10244         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
10245         XEmacs frame (fix for doubling chars in dialog boxes).
10246
10247 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
10248
10249         * select.c (select_convert_in, select_convert_out):
10250         Don't call intern() every time.
10251
10252         * select.c (Qselect_convert_in, Qselect_convert_out): New.
10253         * select.c (vars_of_select): Initialise them.
10254
10255 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
10256
10257         * select.c (selection-coercible-types): New.
10258
10259         * select.c (own-selection-internal):
10260         * select.c (get-selection-internal):
10261         MULE bug fix - these should default to COMPOUND_TEXT and not
10262         STRING for MULE. I think.
10263
10264         * select.c (select_convert_out): Use selection-coercible-types
10265         to find types that we can attempt to perform coercions on.
10266
10267 2000-07-18  Martin Buchholz  <martin@xemacs.org>
10268
10269         * mule-wnnfns.c:
10270         * mule-canna.c:
10271         Add coding: cookie to identify encoding.
10272
10273         * mule-canna.c (CANNA_mode_keys): make static.
10274         Use proper prototypes, even for functions of no arguments.
10275         Remove external prototype for Fding().
10276
10277         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
10278
10279         * select.c (syms_of_select): Add missing DEFSUBR.
10280
10281 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
10282
10283         * select.c (get_selection_internal, own_selection_internal):
10284         Make the type default to STRING, rather than placing a nil type
10285         into Vselection_alist.
10286
10287 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
10288
10289         * gpmevent.c (tty_selection_exists_p):
10290         * gpmevent.c (tty_own_selection):
10291         Updated parameter lists.
10292
10293 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
10294
10295         * select.h (selection-alist): Removed declaration.
10296
10297         * select.h (get_local_selection):
10298         * select.c (get_local_selection):
10299         Made static.
10300
10301         * select.h (convert_selection): Removed declaration.
10302         * select.c (convert_selection): Removed.
10303         This function belongs in Lisp.
10304
10305         * select.h (select_convert_in): Declare.
10306         * select.h (select_convert_out): Declare.
10307         * select.c (select_convert_in): New.
10308         * select.c (select_convert_out): New.
10309         New conversion functions for other files to call.
10310
10311         * select.h (select_notify_buffer_kill): Declare.
10312         * select.c (select_notify_buffer_kill): New.
10313         New functions that get called from kill-buffer.
10314
10315         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
10316         X-specific lisp code.
10317
10318         * select.h: Declare some of the lisp-visible functions for
10319         external use.
10320
10321         * select.c (clean_local_selection_data): Removed. This was
10322         a disgusting function, and previously should have been in
10323         select-x.c in any case. The functionality is now provided
10324         in select-convert-from-integer (select.el).
10325
10326         * select.c (available-selection-types): Fixed stupidity where
10327         INTEGER and ATOM got added twice. Also add STRING when we see an
10328         extent.
10329
10330         * select.c (get-selection-internal): Removed symbol stripping. No
10331         longer causes conversion when data comes from the internal cache.
10332
10333         * select.c (syms_of_select): Added new functions.
10334
10335         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
10336         error checking - previously this called abort!
10337
10338         * select-x.c (x_own_selection): Changed comment.
10339
10340         * select-x.c (x_handle_selection_request): Use select_convert_out.
10341         Don't mess with selection-alist; it's an internal variable of select.c.
10342
10343         * select-x.c (x_get_foreign_selection): Use select_convert_in.
10344
10345         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
10346         rather than messing with selection-alist.
10347
10348         * select-msw.c (mswindows_get_foreign_selection):
10349         Use TO_INTERNAL_FORMAT rather than hacking.
10350
10351 2000-07-14  Martin Buchholz  <martin@xemacs.org>
10352
10353         * process-unix.c (unix_open_multicast_group):
10354         (unix_open_multicast_group): Remove useless casts.
10355
10356 2000-07-13  Martin Buchholz  <martin@xemacs.org>
10357
10358         * sound.c (Fplay_sound): Fix `unused variable' warning.
10359
10360         * emacs.c (main): Use correct type for _environ on SCO5.
10361
10362 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
10363
10364         * console.h (own_selection_method):
10365         * console.h (selection_exists_p_method):
10366         * console.h (available_selection_types_method): New.
10367         * console.h (register_selection_data_type_method): New.
10368         * console.h (selection_data_type_name): New.
10369
10370         * console-msw.h (mswindows_destroy_selection): Declare it.  New
10371         function & alist to track GlobalAlloc()'d handles that need
10372         releasing when the clipboard data gets replaced or emptied.
10373
10374         * event-msw.c (mswindows_wnd_proc): Call it.
10375
10376         * lisp.h, general.c (Qappend): New symbol representing a
10377         `how-to-add' mode.
10378
10379         * select.c (own-selection-internal):
10380         * select.c (selection-exists-p):
10381         * select.c (available-selection-types): New.
10382         * select.c (register-selection-data-type): New.
10383         * select.c (selection-data-type-name): New.  New functions to deal
10384         with device-specific selection data formats.
10385         * select.c (selection-converter-out-alist): Renamed.
10386         * select.c (selection-converter-in-alist): New.
10387         * select.c (selection-appender-alist): New.  Added new alists.
10388         * select.c (syms_of_select, vars_of_select): Added new symbols &
10389         variables.
10390         * select.c (get_local_selection): Split.
10391         * select.c: Removed spurious type checking - selections may now be
10392         of any type, not just strings.
10393         * select.c (own-selection-internal):
10394
10395         * select.h, select.c (convert_selection): New. Created
10396         convert_selection() function based on get_local_selection().
10397         * select.h, select.c (QCF_*): New symbols representing mswindows
10398         clipboard formats.
10399         * select.h, select.c (Qreplace_all, Qreplace_existing): New
10400         symbols representing `how-to-add' modes.
10401
10402         * select-msw.c (x_sym_p): New.
10403         * select-msw.c (symbol_to_ms_cf): New.
10404         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
10405         symbols & clipboard formats. Can also handle string names.
10406         * select-msw.c (mswindows_own_selection):
10407         * select-msw.c (mswindows_selection_exists_p):
10408         Added `data-type' parameter. Use it.
10409         * select-msw.c (mswindows_available_selection_types): New.
10410         * select-msw.c (mswindows_register_selection_data_type): New.
10411         * select-msw.c (mswindows_selection_data_type_name): New.
10412         * select-msw.c (mswindows_own_selection):
10413         * select-msw.c (mswindows_get_foreign_selection):
10414         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
10415         * select-msw.c (console_create_select_mswindows): Added new methods.
10416         * select-msw.c (mswindows_destroy_selection): New.
10417         * select-msw.c (Vhandle_alist): New list.
10418         * select-msw.c (mswindows_own_selection):
10419
10420         * select-x.c (x_own_selection):
10421         * select-x.c (x_selection_exists_p):
10422         * select-x.c: Added some comments about maybe using new
10423         functionality.
10424         * select-x.c (x_own_selection):
10425
10426         * specifier.c: Remove definition of Qappend (now in general.c)
10427         * specifier.c (syms_of_specifier): Remove Qappend.
10428
10429 2000-07-12  Martin Buchholz  <martin@xemacs.org>
10430
10431         * config.h.in: Add socklen_t.
10432
10433         * s/decosf4-0.h: No special compiler flags needed or desired.
10434         In particular, undefine _BSD for DEC OSF 4.0.
10435
10436 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10437
10438         * redisplay-msw.c (msprinter_frame_output_end): Added.
10439         (console_type_create_redisplay_mswindows): Referred the above.
10440
10441         * frame.c (setup_frame_without_minibuffer): Do not create a
10442         default minibuffer frame on a printer device.
10443
10444         * frame-msw.c (apply_dc_geometry): Added.
10445         (msprinter_start_page):
10446         (msprinter_init_frame_3):
10447         (msprinter_eject_page): Use it.
10448
10449         * console-msw.h (struct msprinter_frame): Added pix_left and top,
10450         and removed residual duplex and orientation properties.
10451
10452 2000-07-11  Martin Buchholz  <martin@xemacs.org>
10453
10454         * eval.c (function_argcount): Work around a DEC CC compiler bug.
10455
10456         * unexalpha.c: Remove system prototypes from C sources!
10457
10458 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
10459
10460         * eval.c: Remove references to M-x edit-options in DEFUNs for
10461         `defvar' and `defconst'.
10462
10463 2000-07-09  Martin Buchholz  <martin@xemacs.org>
10464
10465         * config.h.in: Remove SMART_INCLUDE hackery.
10466
10467         PostgreSQL hacking:
10468         * config.h.in: Don't use SMART_INCLUDE.
10469
10470         * postgresql.h: Include libpq-fe.h here.  Fix typo.
10471         * inline.c: Simply #include "postgresql.h"
10472         * postgresql.c:
10473         - Don't use SMART_INCLUDE
10474         - Use simply "const".
10475         - Use standard doc string conventions.
10476         - Use correct type for result of PQstatus.
10477
10478 2000-07-09  Martin Buchholz  <martin@xemacs.org>
10479
10480         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
10481
10482         C++ compilation changes.
10483         * config.h.in (EXTERN_C): Define.
10484         * config.h.in (not): This is also a C++ keyword.
10485         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
10486         * cm.c: Use EXTERN_C.
10487         * redisplay-tty.c: Use EXTERN_C.
10488         * sysdep.c: Use EXTERN_C.  Remove Gould support.
10489
10490 2000-07-09  Martin Buchholz  <martin@xemacs.org>
10491
10492         * general.c: Remove duplicate definition for Qfunction.
10493
10494 2000-07-08  Ben Wing  <ben@xemacs.org>
10495
10496         * device-msw.c (msprinter_init_device):
10497         * device-msw.c (sync_printer_with_devmode):
10498         * device-msw.c (handle_devmode_changes):
10499         * device-msw.c (print_dialog_worker):
10500         * device-msw.c (Fmsprinter_apply_settings):
10501         * device-msw.c (hash_devmode):
10502         * device-msw.c (Fmsprinter_settings_despecialize):
10503         use Qmswindows_tstr, not Qctext.
10504
10505         * vm-limit.c (check_memory_limits):
10506         avoid infinite loop printing warning messages.
10507
10508 2000-07-05  Craig Lanning  <lanning@scra.org>
10509
10510         * Makefile.in.in: Add support for including the Windows resources
10511         when building with the cygwin and mingw targets.
10512
10513         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
10514         not set or not correct.
10515         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
10516         (init_initial_directory): Don't try to use $PWD on the
10517         WIN32_NATIVE target.
10518
10519         * s\cygwin32.h:
10520         [[Add -mwindows to eliminate console window.]] not required --ben
10521         (HAVE_NATIVE_SOUND): removed; now handled by configure.
10522         (MAIL_USE_POP): removed; now handled by configure.
10523
10524         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
10525         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
10526         (HAVE_NATIVE_SOUND): removed; now handled by configure.
10527         (MAIL_USE_POP): removed; now handled by configure.
10528         (ENCAPSULATE_STAT): from Dan Holmsand, added.
10529         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
10530         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
10531         constant string.
10532         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
10533         up from <winsock.h> via systime.h.
10534         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
10535         (getpagesize): from Dan Holmsand, added.
10536         Added #endif which was left dangling by Ben's mega patch; added
10537         comment to help prevent this in the future.
10538
10539         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
10540
10541 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10542
10543         * console-msw.h (struct mswindows_device): Removed unnecessary
10544         cached device geometry values.
10545         Added update_tick and an accessor macro.
10546         (Lisp_Devmode): Added lrecord declaration.
10547         (struct msprinter_device): Contain devmode as a Lisp object.
10548         Added mswindows_get_selected_frame_hwnd();
10549
10550         * console.h (struct console_methods): Indentation nitpicking.
10551
10552         * device-msw.c (mswindows_init_device): Do not initialize geometry
10553         cache. Initialize update tick.
10554         (mswindows_device_system_metrics): Ask the device for its geometry.
10555         (global_free_2_maybe):
10556         (devmode_to_hglobal):
10557         (handle_printer_changes):
10558         (ensure_not_printing):
10559         (print_dialog_worker):
10560         (Fmsprinter_print_setup_dialog):
10561         (Fmsprinter_print_dialog):
10562         (plist_get_margin):
10563         (plist_set_margin):
10564         (Fmsprinter_page_setup_dialog): Added functions.
10565         (sync_printer_with_devmode):
10566         (handle_devmode_changes):
10567         (Fmsprinter_get_settings):
10568         (Fmsprinter_select_settings):
10569         (Fmsprinter_apply_settings):
10570         (allocate_devmode):
10571         (Fmsprinter_settings_copy):
10572         (Fmsprinter_settings_despecialize):
10573         (print_devmode):
10574         (finalize_devmode):
10575         (equal_devmode):
10576         (hash_devmode): Added functions
10577         (syms_of_device_mswindows): Init devmode lrecord class.
10578
10579         * device.h: Added an exfun for find-device.
10580
10581         * event-msw.c (mswindows_wnd_proc): Do not update the cached
10582         geometry; although, recreate the device compatible DC.
10583
10584         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
10585         (msprinter_init_frame_3):
10586         (msprinter_frame_property):
10587         (msprinter_internal_frame_property_p):
10588         (msprinter_frame_properties):
10589         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
10590         print job properties (will move to device settings).
10591
10592         * lisp.h: Added symbols.
10593
10594         * general.c (syms_of_general): Declared them.
10595
10596         * hash.c (string_hash): Added.
10597
10598         * lrecord.h (lrecord_type): Added devmode lrecord type.
10599
10600 2000-07-02  Mike Sperber <mike@xemacs.org>
10601
10602         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
10603         FreeBSD 4.0.
10604
10605 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
10606
10607         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
10608         integer.
10609
10610 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
10611
10612         * data.c (Fstring_to_number): Don't recognize floating point if
10613         base is not 10.
10614
10615 2000-06-22  Martin Buchholz  <martin@xemacs.org>
10616
10617         * glyphs-widget.c (tab_control_query_geometry):
10618         (widget_query_geometry):
10619         (button_query_geometry):
10620         * glyphs.c (text_query_geometry):
10621         Enforce type correctness.
10622
10623 2000-06-18  Martin Buchholz  <martin@xemacs.org>
10624
10625         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
10626         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
10627
10628 2000-06-17  Martin Buchholz  <martin@xemacs.org>
10629
10630         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
10631         conflicts with gcc's fixincluded version of FOO.h.
10632
10633         * glyphs.h (image_instance_geometry): Remove trailing `,'
10634
10635 2000-06-08  Mike Alexander  <mta@arbortext.com>
10636
10637         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
10638         (shove_thread): Don't write the same output twice
10639         (make_ntpipe_output_stream): Increase priority of shove thread
10640         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
10641         chance to run
10642         (ntpipe_shove_closer): Don't delete the pipe until we're done with
10643         it.
10644
10645 2000-06-12  Ben Wing  <ben@xemacs.org>
10646
10647         * s\mingw32.h (sigset):
10648         * s\windowsnt.h (sigset):
10649         rename msw_ to mswindows_ for consistency with general convention.
10650
10651 2000-06-12  Ben Wing  <ben@xemacs.org>
10652
10653         * console-msw.c:
10654         * console-msw.c (mswindows_get_console_hwnd):
10655         * console-msw.c (mswindows_ensure_console_allocated):
10656         * console-msw.c (mswindows_hide_console):
10657         * console-msw.c (mswindows_show_console):
10658         * console-msw.c (mswindows_ensure_console_buffered):
10659         * console-msw.c (mswindows_output_console_string):
10660         * console-msw.c (mswindows_windows9x_p):
10661         * console-msw.h:
10662         * device-msw.c (mswindows_get_workspace_coords):
10663         * device-msw.c (mswindows_device_system_metrics):
10664         * dialog-msw.c (mswindows_popup_dialog_box):
10665         * event-msw.c (mswindows_wnd_proc):
10666         * frame-msw.c (mswindows_size_frame_internal):
10667         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
10668         * menubar-msw.c (displayable_menu_item):
10669         * menubar-msw.c (mswindows_char_is_accelerator):
10670         * nt.c:
10671         * nt.c (mswindows_sigset):
10672         * nt.c (mswindows_sigrelse):
10673         * nt.c (mswindows_sigpause):
10674         * nt.c (mswindows_raise):
10675         * nt.c (timer_proc):
10676         * ntproc.c:
10677         * ntproc.c (find_child_console):
10678         * ntproc.c (sys_kill):
10679         * print.c:
10680         * print.c (std_handle_out_external):
10681         * process-nt.c (find_child_console):
10682         * process-nt.c (send_signal_the_95_way):
10683         * process-nt.c (ensure_console_window_exists):
10684         * process-nt.c (nt_create_process):
10685         * syssignal.h:
10686         rename msw_ to mswindows_ for consistency with general convention.
10687
10688         * emacs.c:
10689         * dumper.c:
10690         include nt.h, not syswindows.h.
10691
10692         * nt.c (mswindows_fstat):
10693         * nt.c (mswindows_stat):
10694         prefix mswindows_ instead of attempting to directly override the
10695         library functions.  fix declarations.
10696
10697         * nt.h:
10698         include syswindows.h.  move some sysdep.h stuff here.
10699
10700         * ntheap.h:
10701         include syswindows.h, not <windows.h>.
10702
10703         * ntplay.c:
10704         clean up headers.
10705
10706         * sysdep.c:
10707         clean up headers.
10708
10709         * sysdep.c (sys_fstat):
10710         * sysdep.c (sys_stat):
10711         call mswindows versions when appropriate.
10712
10713         * sysdep.h:
10714         move mswin decls to nt.h.
10715
10716         * syswindows.h:
10717         add long comment describing appropriate use of the various windows
10718         headers.
10719
10720 2000-06-11  Ben Wing  <ben@xemacs.org>
10721
10722         * device-x.c: Correct doc string for sixth arg of x-get-resource.
10723
10724 2000-06-10  Ben Wing  <ben@xemacs.org>
10725
10726         * Makefile.in.in (release):
10727         Correction to make sure xemacs.exe always dumped when correct.
10728
10729         * alloca.c:
10730         * balloon_help.c:
10731         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
10732
10733         * buffer.c (set_buffer_internal):
10734         [[[[2]]]]: Remove HAVE_FEP code.
10735
10736         * buffer.c (init_initial_directory):
10737         [3].
10738
10739         * bytecode.c:
10740         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
10741         individual files.
10742
10743         * callproc.c:
10744         * callproc.c (call_process_cleanup):
10745         * callproc.c (Fold_call_process_internal):
10746         * callproc.c (child_setup):
10747         * callproc.c (getenv_internal):
10748         * callproc.c (init_callproc):
10749         * callproc.c (vars_of_callproc):
10750         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
10751         __CYGWIN32__ -> CYGWIN.
10752         DOS_NT -> WIN32_NATIVE.
10753         Remove MSDOS support/references, converting to WIN32_NATIVE
10754           where correct.
10755         __MINGW32__ -> MINGW.
10756         Fix windows.h includes.
10757         Remove bogus HAVE_NTGUI.
10758
10759         * config.h.in:
10760         [2].
10761
10762         * console-msw.c:
10763         mswindows_message_outputted added for use in allowing startup
10764         errors on the console to be seen.
10765
10766         * console-msw.c (msw_ensure_console_allocated):
10767         * console-msw.c (msw_output_console_string):
10768         * console-msw.c (DHEADER):
10769         * console-msw.c (DOPAQUE_DATA):
10770         * console-msw.c (DEVENT):
10771         * console-msw.c (DCONS):
10772         * console-msw.c (DCONSCDR):
10773         * console-msw.c (DSTRING):
10774         * console-msw.c (DVECTOR):
10775         * console-msw.c (DSYMBOL):
10776         * console-msw.c (DSYMNAME):
10777         Fix warnings.
10778
10779         * console-stream.c (stream_init_console):
10780         Fix text/binary problems.
10781
10782         * device-msw.c:
10783         * device-msw.c (mswindows_finish_init_device):
10784         * device-msw.c (mswindows_delete_device):
10785         [1].
10786
10787         * device.c (handle_asynch_device_change):
10788         [3].
10789
10790         * dgif_lib.c:
10791         * dgif_lib.c (DGifOpenFileName):
10792         * dgif_lib.c (DGifOpenFileHandle):
10793         * dgif_lib.c (DGifGetLine):
10794         * dgif_lib.c (DGifGetPixel):
10795         Added config.h/lisp.h, fix up includes.
10796         [1].
10797
10798         * dired-msw.c:
10799         [4].
10800
10801         * dired.c:
10802         * dired.c (file_name_completion):
10803         * dired.c (Ffile_attributes):
10804         * dired.c (syms_of_dired):
10805         [1].
10806
10807         * dumper.c:
10808         * dumper.c (pdump_file_unmap):
10809         * dumper.c (pdump_load):
10810         [1].
10811
10812         * editfns.c:
10813         * editfns.c (Ftemp_directory):
10814         * editfns.c (user_login_name):
10815         * editfns.c (Fuser_real_login_name):
10816         * editfns.c (get_home_directory):
10817         [1].
10818
10819         * elhash.c (finish_marking_weak_hash_tables):
10820         [[[[5]]]]: Fix GCC warnings.
10821
10822         * emacs.c:
10823         * emacs.c (mswindows_handle_hardware_exceptions):
10824         * emacs.c (make_arg_list_1):
10825         * emacs.c (main_1):
10826         * emacs.c (Fkill_emacs):
10827         * emacs.c (Fdump_emacs):
10828         [1].
10829         Fix problems with nested crashes, add long comment.
10830
10831         * event-Xt.c (init_event_Xt_late):
10832         [1].
10833
10834         * event-msw.c:
10835         * event-msw.c (mswindows_dde_callback):
10836         * event-msw.c (mswindows_handle_sticky_modifiers):
10837         * event-msw.c (mswindows_wnd_proc):
10838         [1].
10839         [5].
10840
10841         * events.c (character_to_event):
10842         [1].
10843
10844         * fileio.c:
10845         * fileio.c (Ffile_name_directory):
10846         * fileio.c (Ffile_name_nondirectory):
10847         * fileio.c (directory_file_name):
10848         * fileio.c (Fexpand_file_name):
10849         * fileio.c (Fsubstitute_in_file_name):
10850         * fileio.c (Ffile_name_absolute_p):
10851         * fileio.c (check_executable):
10852         * fileio.c (Ffile_readable_p):
10853         * fileio.c (Ffile_accessible_directory_p):
10854         * fileio.c (Ffile_modes):
10855         * fileio.c (Funix_sync):
10856         * fileio.c (vars_of_fileio):
10857         [1]. [4].
10858
10859         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
10860
10861         Expand getdefdir defn.
10862         Fix bogus rename() comment.
10863
10864         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
10865         to use standard XEmacs include files, e.g. sysfile.h, rather
10866         than system-specific includes.
10867
10868         * fns.c:
10869         * fns.c (Fsubseq):
10870         [5]. [6].
10871
10872         * frame.c (vars_of_frame):
10873         [1].
10874
10875         * getloadavg.c:
10876         * getloadavg.c (getloadavg):
10877         [1]. [6].
10878         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
10879         (We don't use it elsewhere in the code; just add a comment.)
10880
10881         * gif_io.c:
10882         [6].
10883         Add config.h.
10884
10885         * glyphs-msw.c:
10886         * glyphs-msw.c (mswindows_resource_instantiate):
10887         [1].
10888
10889         * glyphs-x.c (x_native_layout_instantiate):
10890         [5].
10891
10892         * gui-msw.c (Fmswindows_shell_execute):
10893         [1].
10894
10895         * insdel.c:
10896         [4].
10897
10898         * lisp.h:
10899         [4]. [5].
10900
10901         * lread.c (locate_file_in_directory_mapper):
10902         [1].
10903
10904         * lstream.c:
10905         [4].
10906
10907         * mem-limits.h:
10908         * mem-limits.h (get_lim_data):
10909         [1].
10910
10911         * menubar-msw.c:
10912         [4].
10913
10914         * ndir.h:
10915         [1].
10916
10917         * nt.c:
10918         * nt.c (getwd):
10919         * nt.c (closedir):
10920         * nt.c (rva_to_section):
10921         * nt.c (mswindows_executable_type):
10922         [1]. [6].
10923         Fix closedir() defn.
10924
10925         * nt.h:
10926         [[[[8]]]]: *_OK defs moved to sysfile.h.
10927
10928         * ntproc.c:
10929         [6]. [7].
10930
10931         * objects-x.c:
10932         [4].
10933
10934         * print.c:
10935         * print.c (std_handle_out_external):
10936         [1]. [4].
10937
10938         * process-nt.c:
10939         * process-nt.c (nt_create_process):
10940         [6].
10941         try to fix process quoting somewhat.
10942
10943         * process-unix.c (unix_create_process):
10944         [1].
10945
10946         * process.c:
10947         * process.c (vars_of_process):
10948         Add Vnull_device.
10949
10950         * process.h:
10951         [1].
10952
10953         * realpath.c:
10954         * realpath.c (xrealpath):
10955         [1].
10956
10957         * redisplay-tty.c (init_tty_for_redisplay):
10958         [3].
10959
10960         * redisplay.c:
10961         [4]. [6].
10962
10963         * scrollbar-msw.c:
10964         [4].
10965
10966         * sheap.c:
10967         * sheap.c (more_static_core):
10968         * sheap.c (report_sheap_usage):
10969         [5]. [6].
10970
10971         * signal.c:
10972         * signal.c (alarm_signal):
10973         [1]. [6].
10974
10975         * sound.c:
10976         [6].
10977
10978         * strftime.c:
10979         * strftime.c (zone_name):
10980         [1]. [5].
10981
10982         * symsinit.h (init_sunpro):
10983         [1].
10984
10985         * syscommctrl.h:
10986         commctrl.h not in Cygwin b20.1.
10987
10988         * sysdep.c:
10989         * sysdep.c (endif):
10990         * sysdep.c (sys_subshell):
10991         * sysdep.c (init_baud_rate):
10992         * sysdep.c (emacs_get_tty):
10993         * sysdep.c (emacs_set_tty):
10994         * sysdep.c (tty_init_sys_modes_on_device):
10995         * sysdep.c (init_system_name):
10996         * sysdep.c (sys_open):
10997         * sysdep.c (interruptible_open):
10998         * sysdep.c (sys_fopen):
10999         * sysdep.c (sys_mkdir):
11000         * sysdep.c (sys_rename):
11001         * sysdep.c (get_process_times_1):
11002         [1]. [6].
11003
11004         * sysdep.h:
11005         [1].
11006
11007         * sysdir.h:
11008         * sysdir.h (DIRENTRY_NONEMPTY):
11009         [1]. [6].
11010
11011         * sysdll.c (dll_init):
11012         * sysdll.h:
11013         [1].
11014
11015         * sysfile.h:
11016         [1]. [6]. [8].
11017         added text/binary defs.
11018
11019         * sysfloat.h:
11020         [1].
11021
11022         * sysproc.h:
11023         * sysproc.h (EDESTADDRREQ):
11024         * sysproc.h (poll_fds_for_input):
11025         [1]. [6].
11026
11027         * syspwd.h:
11028         [6].
11029
11030         * syssignal.h:
11031         [1].
11032
11033         * systime.h:
11034         [1]. [6].
11035
11036         * systty.h:
11037         [1].
11038
11039         * syswindows.h:
11040         [1].
11041         Always define WIN32_LEAN_AND_MEAN.
11042
11043         * unexcw.c (unexec):
11044         [5].
11045
11046         * unexec.c:
11047         * unexec.c (copy_text_and_data):
11048         * unexec.c (adjust_lnnoptrs):
11049         [1].
11050
11051         * unexnt.c:
11052         * unexnt.c (_start):
11053         [1].
11054
11055 2000-06-07  Ben Wing  <ben@xemacs.org>
11056
11057         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
11058         was used only as a model.  We've long since extracted any useful
11059         logic or code out of this. (I just did an exhaustive search.)
11060
11061         * s\msdos.h: Removed.
11062
11063         * s\windows95.h: Removed.
11064
11065 2000-06-10  Ben Wing  <ben@xemacs.org>
11066
11067         * s\cygwin32.h:
11068         [1]. [5].
11069         Don't use extern with fun defs.
11070
11071         * s\mingw32.h:
11072         [1]. [7].
11073         Remove nt\inc include.
11074         Remove getdisk, getdefdir. (The former is unused, the latter
11075         expanded in fileio.h.)
11076
11077         * s\windowsnt.h:
11078         * s\windowsnt.h (WIN32_NATIVE):
11079         * s\windowsnt.h (HAVE_STRCASECMP):
11080         [1]. [7].
11081         Add long comment about preprocessor changes.
11082         Remove getdisk, getdefdir. (The former is unused, the latter
11083         expanded in fileio.h.)
11084
11085 2000-06-10  Ben Wing  <ben@xemacs.org>
11086
11087         * m\arm.h:
11088         * m\delta.h:
11089         * m\intel386.h:
11090         * m\sequent.h:
11091         * m\template.h:
11092         * m\windowsnt.h:
11093         [1].
11094         Remove bogus/unused NO_SOCK_SIGIO.
11095
11096 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
11097
11098         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
11099         not an Emchar.
11100
11101 2000-06-04  Mike Sperber <mike@xemacs.org>
11102
11103         * casetab.c (set_case_table): For `set-standard-case-table',
11104         actually deposit the new case tables where the rest of XEmacs can
11105         see them.
11106
11107 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
11108
11109         * data.c (Faset): Don't cast XCHAR() to unsigned char.
11110
11111 2000-06-05  Ben Wing  <ben@xemacs.org>
11112
11113         * callproc.c (child_setup): Don't do close_load_descs() under
11114         MS Windows.  Put in a comment explaining why.
11115
11116 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
11117
11118         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
11119         Toolkit shell" which breaks `kill-compilation' on Windows NT
11120         native, retaining STDERR handling improvements.
11121
11122 2000-06-01  Andreas Jaeger  <aj@suse.de>
11123
11124         * s/s390.h: Support for S390, based on a patch by Martin
11125         Schwidefsky <schwidefsky@de.ibm.com>.
11126
11127 2000-05-30  Andy Piper  <andy@xemacs.org>
11128
11129         * window.c (allocate_window):
11130         (make_dummy_parent):
11131         (Fset_window_configuration): use new hashtable type.
11132
11133         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
11134         (struct image_instantiator_methods):
11135         (struct Lisp_Image_Instance): make instance geometry signed.
11136
11137         * glyphs.c (instantiate_image_instantiator):
11138         (image_instance_query_geometry):
11139         (image_instance_layout):
11140         (image_instance_layout):
11141         (query_string_geometry):
11142         (text_query_geometry):
11143         (image_instantiate):
11144         (image_instantiate):
11145         (cache_subwindow_instance_in_frame_maybe):
11146         (subwindow_query_geometry): make instance geometry signed.
11147
11148         * glyphs-widget.c (widget_query_geometry):
11149         (widget_layout):
11150         (button_query_geometry):
11151         (tree_view_query_geometry):
11152         (tab_control_query_geometry):
11153         (layout_query_geometry):
11154         (layout_layout):
11155         (native_layout_layout): make instance geometry signed.
11156
11157 2000-05-29  Olivier Galibert  <galibert@pobox.com>
11158
11159         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
11160         constant.
11161
11162         * general.c (syms_of_general): Add Qfull_assoc symbol.
11163
11164         * data.c (finish_marking_weak_lists): Mark full-assoc lists
11165         correctly.
11166         (decode_weak_list_type): Decode full-assoc type.
11167         (encode_weak_list_type): Encode full-assoc type.
11168         (Fmake_weak_list): Update doc string.
11169
11170 2000-05-30  Andy Piper  <andy@xemacs.org>
11171
11172         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
11173
11174         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
11175         (decode_hash_table_weakness): ditto.
11176         (Fhash_table_weakness): ditto.
11177         (Fhash_table_type): ditto.
11178         (finish_marking_weak_hash_tables): ditto.
11179         (hash_table_weakness_validate): ditto.
11180         (syms_of_elhash): ditto.
11181
11182 2000-05-28  Martin Buchholz <martin@xemacs.org>
11183
11184         * XEmacs 21.2.34 is released.
11185
11186 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
11187
11188         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
11189         start cache.
11190         (updating_line_start_cache): Gone.
11191         (regenerate_window): Replace resetting of VERTICAL_CLIP by
11192         generic code to force a minimum of 1 line laid out in the
11193         CMOTION_DISP case.
11194
11195 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
11196
11197         * glyphs.c (instantiate_image_instantiator): Check for initialized
11198         height & width no longer special cases IMAGE_NOTHING.
11199         (nothing_instantiate): Set height and width of instance.
11200
11201 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
11202
11203         * unexelf.c (unexec): Search for ".data" section.
11204         Initialize new_data2_offset from old_data_index.
11205         Remove redundant check for ElfW.
11206
11207 2000-05-23  Andy Piper  <andy@xemacs.org>
11208
11209         * glyphs.c (get_image_instantiator_governing_domain): allow more
11210         specific domains as the governing domain rather than expecting an
11211         exact match. This fixes problems with layouts.
11212
11213 2000-05-22  Andy Piper  <andy@xemacs.org>
11214
11215         * redisplay-output.c (compare_runes): check for non-images
11216
11217         * glyphs.c (set_glyph_dirty_p): ditto.
11218         (update_glyph_cachel_data): ditto.
11219
11220         * glyphs-widget.c (layout_post_instantiate): ditto.
11221         (layout_post_instantiate): ditto.
11222
11223         * event-msw.c (mswindows_wnd_proc): warning removal.
11224
11225 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
11226
11227         * s\mingw32.h: Added #undef for CLASH_DETECTION.
11228
11229         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
11230
11231         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
11232
11233         * nt.c (rva_to_section): mingw32 needs rva_to_section.
11234         (mswindows_executable_type): mingw32 now has enough headers for
11235         this to work.
11236
11237 2000-05-20  Andy Piper  <andy@xemacs.org>
11238
11239         * console-msw.c (mswindows_output_last_error): ; -> ,
11240
11241 2000-05-12  Andy Piper  <andy@xemacs.org>
11242
11243         * console-msw.c (FROB): compare ints with ints.
11244
11245 2000-05-11  Andy Piper  <andy@xemacs.org>
11246
11247         * glyphs-x.c (x_finalize_image_instance): make minimal build
11248         happy.
11249
11250 2000-05-20  Ben Wing  <ben@xemacs.org>
11251
11252         * event-Xt.c:
11253         * event-Xt.c (vars_of_event_Xt):
11254         move modifier-keys-are-sticky to event-stream.c.
11255
11256         * event-msw.c:
11257         * event-msw.c (mswindows_enqueue_mouse_button_event):
11258         * event-msw.c (key_needs_default_processing_p):
11259         * event-msw.c (XEMSW_LCONTROL):
11260         * event-msw.c (mswindows_handle_sticky_modifiers):
11261         * event-msw.c (FROB):
11262         * event-msw.c (clear_sticky_modifiers):
11263         * event-msw.c (output_modifier_keyboard_state):
11264         * event-msw.c (output_alt_keyboard_state):
11265         * event-msw.c (mswindows_wnd_proc):
11266         * event-msw.c (mswindows_modifier_state):
11267         * event-msw.c (emacs_mswindows_handle_magic_event):
11268         implement sticky modifiers.
11269
11270         * event-stream.c:
11271         * event-stream.c (vars_of_event_stream):
11272         move modifier-keys-are-sticky here.
11273
11274         * lisp.h:
11275         add CHECK_FUNCTION.
11276
11277         * rangetab.c:
11278         implement map-range-table.
11279
11280
11281 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
11282
11283         * redisplay-tty.c (reset_tty_modes):
11284         (tty_redisplay_shutdown): Adjust argument type to
11285         tty_frame_output_end.
11286
11287 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
11288
11289         * eval.c (Fbacktrace): Don't output a line with only right
11290         parenthesis.
11291
11292 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
11293
11294         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
11295         (Fpq_reset_poll): Ditto.
11296
11297 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
11298
11299         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
11300
11301 2000-05-16  Ben Wing  <ben@xemacs.org>
11302
11303         * buffer.c:
11304         * buffer.c (dfc_convert_to/from_internal_format):
11305         * buffer.c (reinit_vars_of_buffer):
11306         Fix conversion functions to allow reentrancy.
11307
11308         * console-msw.c:
11309         * console-msw.c (mswindows_output_last_error):
11310         New fun, generally useful -- output a human-readable
11311         version of GetLastError() on the console.
11312
11313         * console-msw.h:
11314         * console-msw.h (struct mswindows_frame):
11315         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
11316
11317         * console-stream.c (stream_output_begin):
11318         * console-stream.c (stream_output_end):
11319         * console-stream.c (stream_output_vertical_divider):
11320         * console-stream.c (stream_clear_region):
11321         * console-stream.c (stream_flash):
11322         * console-stream.c (console_type_create_stream):
11323         Delete blank stream methods, not needed.
11324
11325         * console.h (struct console_methods):
11326         Split begin/end methods into window and frame.
11327
11328         * event-msw.c:
11329         * event-msw.c (mswindows_handle_paint):
11330         * event-msw.c (output_alt_keyboard_state):
11331         * event-msw.c (mswindows_wnd_proc):
11332         * event-msw.c (vars_of_event_mswindows):
11333         Comment about problems with ignored-expose.
11334         Define mswindows-debug-events; not really implemented.
11335
11336         * frame-msw.c (mswindows_init_frame_1):
11337         random cleanups.
11338
11339         * glyphs-msw.c:
11340         * glyphs-msw.c (begin_defer_window_pos):
11341         * glyphs-msw.c (mswindows_unmap_subwindow):
11342         * glyphs-msw.c (mswindows_map_subwindow):
11343         * glyphs-msw.c (mswindows_resize_subwindow):
11344         Use DeferWindowPos to reduce flashing when mapping/unmapping.
11345
11346         * glyphs.c (make_image_instance_1):
11347         Fix crash.
11348
11349         * gutter.c (Fredisplay_gutter_area):
11350         Use new begin/end methods.
11351
11352         * lisp.h (Dynarr_new2):
11353         New creation fun.
11354
11355         * redisplay-msw.c:
11356         * redisplay-msw.c (mswindows_frame_output_begin):
11357         * redisplay-msw.c (mswindows_frame_output_end):
11358         * redisplay-msw.c (console_type_create_redisplay_mswindows):
11359         New begin/end methods -- handle DeferWindowPos.
11360
11361         * redisplay-output.c (redisplay_move_cursor):
11362         * redisplay-output.c (redraw_cursor_in_window):
11363         * redisplay-output.c (redisplay_update_line):
11364         * redisplay-output.c (redisplay_output_window):
11365         New begin/end methods.
11366
11367         * redisplay-tty.c:
11368         * redisplay-tty.c (tty_frame_output_begin):
11369         * redisplay-tty.c (tty_frame_output_end):
11370         * redisplay-tty.c (console_type_create_redisplay_tty):
11371         New begin/end methods.
11372
11373         * redisplay-x.c:
11374         * redisplay-x.c (x_window_output_begin):
11375         * redisplay-x.c (x_window_output_end):
11376         * redisplay-x.c (console_type_create_redisplay_x):
11377         New begin/end methods.
11378
11379         * redisplay.c (redisplay_frame):
11380         * redisplay.c (Fredisplay_echo_area):
11381         New begin/end methods.
11382         use MAYBE_DEVMETH for clear_frame; it may not exist.
11383
11384         * window.h (WINDOW_XFRAME):
11385         WINDOW_XFOO macros -- get locale and decode struct pointer.
11386
11387
11388 2000-05-12  Ben Wing  <ben@xemacs.org>
11389
11390         * emacs.c:
11391         * emacs.c (ensure_no_quitting_from_now_on):
11392         * emacs.c (fatal_error_signal):
11393         * emacs.c (mswindows_handle_hardware_exceptions):
11394         * emacs.c (main):
11395         * emacs.c (Fkill_emacs):
11396         * emacs.c (shut_down_emacs):
11397         * emacs.c (assert_failed):
11398         various improvements in fatal error handling.
11399
11400         * eval.c:
11401         move preparing_for_armageddon to emacs.c.
11402
11403         * lisp.h:
11404         declare fatal_error_in_progress.
11405
11406         * print.c:
11407         * print.c (std_handle_out_external):
11408         * print.c (std_handle_out_va):
11409         * print.c (stderr_out):
11410         * print.c (stdout_out):
11411         use console under mswin when no standard output.
11412         don't do code conversion during fatal error.
11413
11414         * scrollbar.c (Fscrollbar_page_up):
11415         * scrollbar.c (Fscrollbar_page_down):
11416         fix missing else.  reindent.
11417
11418 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
11419
11420         Emergency fix.
11421
11422         * glyphs.h (GLYPH_CACHEL_DESCENT):
11423         (GLYPH_CACHEL_DESCENT):
11424         (GLYPH_CACHEL_DESCENT):
11425         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
11426         used in case these are inline functions.
11427         Use more absurd values to error check.
11428
11429         include window.h for error check functions.
11430
11431 2000-05-11  Ben Wing  <ben@xemacs.org>
11432
11433         * cmdloop.c (Freally_early_error_handler):
11434         Display message box under windows; otherwise, message will disappear
11435         before it can be viewed.
11436
11437         * console-msw.c:
11438         * console-msw.c (Fmswindows_message_box):
11439         * console-msw.c (FROB):
11440         * console-msw.c (syms_of_console_mswindows):
11441         Define new fun `mswindows-message-box'.
11442         #### I will merge this into `popup-dialog-box'; just give me
11443         a bit of time.
11444
11445         * general.c:
11446         * general.c (syms_of_general):
11447         Some new symbols used in `mswindows-message-box'.
11448
11449         * glyphs.c:
11450         * glyphs.c (Fset_image_instance_property):
11451         put warning in this fun.
11452
11453         * glyphs.h:
11454         * glyphs.h (GLYPH_CACHEL_WIDTH):
11455         * glyphs.h (GLYPH_CACHEL_ASCENT):
11456         * glyphs.h (GLYPH_CACHEL):
11457         * glyphs.h (GLYPH_CACHEL_GLYPH):
11458         define error-checking versions to try to catch a bug i've seen --
11459         redisplay gets in an infinite loop because the glyph width of the
11460         continuation glyph is 65535.
11461
11462         * lisp.h:
11463         Extern message-box stuff.
11464
11465         * window.c (allocate_window):
11466         * window.c (make_dummy_parent):
11467         * window.c (Fset_window_configuration):
11468         Use EQUAL not EQ for subwindow caches to make them work a bit
11469         better. (Something is still very broken.)
11470
11471
11472 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
11473
11474         * glyphs.c (image_instantiate): Suppress gcc warnings.
11475         (Fmake_image_instance): Fix doc string.
11476         * specifier.c (Fmake_specifier): Ditto.
11477
11478 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
11479
11480         * paths.h.in (PATH_LOCK): Removed.
11481         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
11482         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
11483
11484 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
11485
11486         * fns.c (Ffeaturep): Update e-mail address in doc-string.
11487         Document (featurep '(and xemacs 21.02)).
11488
11489 2000-05-09  Ben Wing  <ben@xemacs.org>
11490
11491         * buffer.c (complex_vars_of_buffer):
11492         update modeline-format doc.
11493
11494         * device.h:
11495         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
11496
11497         * emacs.c:
11498         timeline of all released versions of Emacs, for use in creating
11499         authorship comments and in synching up.
11500
11501         * glyphs-widget.c (image_instantiator_buttons):
11502         * glyphs-widget.c (image_instantiator_edit_fields):
11503         * glyphs-widget.c (image_instantiator_combo_box):
11504         * glyphs-widget.c (image_instantiator_scrollbar):
11505         * glyphs-widget.c (image_instantiator_progress_guage):
11506         * glyphs-widget.c (image_instantiator_tree_view):
11507         * glyphs-widget.c (image_instantiator_tab_control):
11508         * glyphs-widget.c (image_instantiator_labels):
11509         * glyphs-widget.c (image_instantiator_layout):
11510         * glyphs-widget.c (image_instantiator_native_layout):
11511         rename decode_domain method to governing_domain.
11512
11513         * glyphs.c:
11514         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
11515         * glyphs.c (add_entry_to_device_ii_format_list):
11516         make sure we don't put an entry more than once into the list.
11517         * glyphs.c (check_instance_cache_mapper):
11518         *************************************************************
11519         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
11520         HAVE BEEN GETTING.
11521         *************************************************************
11522         * glyphs.c (get_image_instantiator_governing_domain):
11523         clean up, expand on new concept of governing domain.
11524         * glyphs.c (instantiate_image_instantiator):
11525         * glyphs.c (allocate_image_instance):
11526         use governing_domain instead of cache_domain in naming.
11527         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
11528         * glyphs.c (make_image_instance_1):
11529         * glyphs.c (Fmake_image_instance):
11530         allow for any domain (not just device), and process the
11531         governing domain correctly.  very big doc fix.
11532         * glyphs.c (Fimage_instance_domain):
11533         new primitive, to retrieve the governing domain of an image instance.
11534         * glyphs.c (image_instantiate):
11535         use new governing_domain stuff.  this fixes a crash you could get
11536         by instantiating certain widget glyphs in frame locales. (should
11537         signal an error instead of crashing.)
11538         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
11539         * glyphs.c (Fglyphp): clean up doc.
11540         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
11541         * glyphs.c (syms_of_glyphs):
11542         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
11543         * glyphs.c (image_instantiator_format_create): add some comments about
11544         bogus code.
11545         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
11546         for current-display-table. (Apparently Hrjove implemented in 1998 a
11547         design I wrote up in 1996, but didn't update the doc string.)
11548
11549         * glyphs.h: clean up a doc string.
11550         * glyphs.h (governing_domain):
11551         * glyphs.h (struct image_instantiator_methods):
11552         changes for governing_domain stuff.
11553
11554         * gutter.c:
11555         * gutter.c (Fgutter_specifier_p):
11556         * gutter.c (Fgutter_size_specifier_p):
11557         * gutter.c (Fgutter_visible_specifier_p):
11558         * objects.c:
11559         * objects.c (Fcolor_specifier_p):
11560         * objects.c (Ffont_specifier_p):
11561         * objects.c (Fface_boolean_specifier_p):
11562         doc strings moved to make-*-specifier.
11563
11564         * redisplay.c (add_disp_table_entry_runes_1):
11565         * redisplay.c (generate_fstring_runes):
11566         * redisplay.c (screen):
11567         add random comments and doc strings.
11568
11569         * specifier.c:
11570         * specifier.c (Fmake_specifier):
11571         major overhaul of this doc string.
11572
11573         * specifier.c (Fvalid_specifier_domain_p):
11574         comment about the bogosity of image instances being domains.
11575         * specifier.c (decode_domain):
11576         now non-static, used in glyphs.c.
11577         * specifier.c (specifier_instance):
11578         comment about the bogosity of image instances being domains.
11579         * specifier.c (Fgeneric_specifier_p):
11580         move doc string to make-generic-specifier.
11581         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
11582         rebackslashify.
11583
11584         * specifier.h:
11585         * specifier.h (DOMAIN_FRAME):
11586         * specifier.h (DOMAIN_LIVE_P):
11587         * specifier.h (DOMAIN_XDEVICE):
11588         rebackslashify.
11589         add comments about problems with these macros.
11590         prototype for decode_domain.
11591
11592         * toolbar.c:
11593         * toolbar.c (Ftoolbar_specifier_p):
11594         move doc string to `make-toolbar-specifier'.
11595
11596         * window.c (window_unmap_subwindows_cache_mapper):
11597         *************************************************************
11598         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
11599         HAVE BEEN GETTING.
11600         *************************************************************
11601
11602 2000-05-09  Andy Piper  <andy@xemacs.org>
11603
11604         * glyphs.h: declare reset_frame_subwindow_instance_cache.
11605
11606         * window.c (Fset_window_configuration): reset the frame subwindow
11607         cache and re-initialize the window subwindow caches.
11608
11609         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
11610
11611 2000-05-09  Ben Wing  <ben@xemacs.org>
11612
11613         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
11614         DWORD.
11615
11616 2000-04-26  Mike Woolley  <mike@bulsara.com>
11617
11618         * ntheap.c: Changed recreate_heap to limit the amount reserved
11619         for the heap to that which is actually available. Also now
11620         displays a message box (with some dignostics) in the event that
11621         it still can't start.
11622
11623 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
11624
11625         * callproc.c (Fold_call_process_internal): GCPRO path
11626
11627 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
11628
11629         Patch by Bill Perry.
11630
11631         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
11632         back data instead of #ifdef.
11633         (Fscrollbar_page_down): ditto.
11634
11635 2000-05-07  Ben Wing  <ben@xemacs.org>
11636
11637         * buffer.h:
11638         Kludge for defining Qmswindows_tstr.
11639
11640         * nt.c:
11641         * nt.c (open_input_file):
11642         * nt.c (open_output_file):
11643         * nt.c (rva_to_section):
11644         * nt.c (mswindows_executable_type):
11645         Move all memory-mapped-file routines here (some were in unexnt.c,
11646         which is bad because they are used by process-nt.c, and unexnt
11647         won't be around when portable dumping).  Synched the above routines
11648         with FSF 20.6.
11649
11650         * nt.h:
11651         Removed ifdef'd out bogus code.
11652         Fixed some prototypes.
11653
11654         * nt.h (file_data):
11655         * nt.h (OFFSET_TO_RVA):
11656         * nt.h (RVA_TO_OFFSET):
11657         * nt.h (RVA_TO_PTR):
11658         Moved the memory-mapped-file structures, macros and prototypes
11659         here, to parallel nt.c.  ntheap.h should really be removed
11660         entirely, and it's a non-portable-dumper specific file.
11661
11662         * ntheap.h (round_to_next):
11663         Moved the memory-mapped-file structures, macros and prototypes
11664         to nt.h.
11665
11666         * ntproc.c (compare_env):
11667         Moved rva_to_section and mswindows_executable_type to nt.c.
11668         Moved compare_env to process-nt.c.
11669         ntproc.c will die, one day.
11670
11671         * ntproc.c (sys_spawnve):
11672         Account for win32_ -> mswindows_.
11673
11674         * process-nt.c:
11675         * process-nt.c (struct nt_process_data):
11676         * process-nt.c (ensure_console_window_exists):
11677         * process-nt.c (compare_env):
11678         * process-nt.c (nt_create_process):
11679         * process-nt.c (nt_kill_process_by_pid):
11680         * process-nt.c (syms_of_process_nt):
11681         * process-nt.c (vars_of_process_nt):
11682         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
11683         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
11684         changes).  Eliminate our old `nt-quote-process-args' mechanism.
11685         Synch up nt_create_process with FSF 20.6 sys_spawnve.
11686         Move compare_env here from ntproc.c.
11687
11688         * process.c (Fprocess_send_region):
11689         Takes an optional fourth argument, BUFFER, which should fix some
11690         problems with call-process.
11691
11692         * syscommctrl.h:
11693         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
11694
11695         * syswindows.h:
11696         Move ICC_BAR_CLASSES to syscommctrl.h.
11697         Add preliminary macros for MSWindows/Mule.  More to come.
11698
11699         * unexnt.c:
11700         * unexnt.c (unexec):
11701         open_output_file moved to nt.c.
11702
11703
11704 2000-05-05  Andy Piper  <andy@xemacs.org>
11705
11706         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
11707         instance from the frame cache also since GC may catch up too late
11708         to make frame deletion sane.
11709
11710 2000-05-04  Andy Piper  <andy@xemacs.org>
11711
11712         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
11713         (x_finalize_image_instance): ungcpro on deletion.
11714
11715         * glyphs.c (image_instantiator_format_create): give pointers a
11716         query geometry method so that the geometry is at least set.
11717
11718         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
11719         initialize layouts if using widgets.
11720
11721 2000-05-03  Andy Piper  <andy@xemacs.org>
11722
11723         * nt.c: remove bogus reference to sysmmsystem.h
11724
11725         * gui-x.c (popup_selection_callback): fix no selection abort.
11726
11727 2000-05-02  Andy Piper  <andy@xemacs.org>
11728
11729         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
11730         (mswindows_widget_instantiate): ditto.
11731
11732         * glyphs-widget.c (initialize_widget_image_instance): initialize
11733         children correctly.
11734         (widget_instantiate): cope with children and items in the same
11735         instance.
11736
11737         * glyphs.c (mark_image_instance): cope with children as a first
11738         class member.
11739         (image_instance_equal): ditto.
11740         (image_instance_hash): ditto.
11741         (image_instance_changed): ditto.
11742
11743 2000-04-30  Andy Piper  <andy@xemacs.org>
11744
11745         * glyphs.c (subwindow_query_geometry): new function. Return some
11746         defaults.
11747         (subwindow_instantiate): don't assign dimensions if none have been
11748         given.
11749         (image_instantiator_format_create): add subwindow_query_geometry.
11750         (print_image_instance): cope with layouts as widgets.
11751
11752 2000-04-29  Andy Piper  <andy@xemacs.org>
11753
11754         * frame.c (delete_frame_internal): call
11755         free_frame_subwindow_instance_cache so that all subwindows are
11756         finalized before their parent.
11757         (mark_frame): remove subwindow_cachels.
11758         (Fmake_frame): remove subwindow_cachel manipulation.
11759         (allocate_frame_core): subwindow_instance_cache is a weak list.
11760         (delete_frame_internal): set subwindow_instance_cache to nil.
11761
11762         * glyphs-msw.c (mswindows_finalize_image_instance): make double
11763         finalization safe.
11764         (mswindows_finalize_image_instance): use the device
11765         not the domain as the domain may have died already.
11766
11767         * glyphs-x.c (x_finalize_image_instance): ditto.
11768         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
11769         HEIGHT.
11770
11771         * redisplay-output.c (redisplay_unmap_subwindows): update for
11772         subwindow instance cache as a weak list.
11773         (redisplay_unmap_subwindows_maybe): ditto.
11774         (redisplay_unmap_subwindows_except_us): ditto.
11775
11776         * glyphs.c (unmap_subwindow): error checking will check the domain
11777         so don't deal with it here. Don't use cachels anymore.
11778         (map_subwindow): ditto.
11779         (update_subwindow_cachel_data): remove old accessor names.
11780         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
11781         (Fresize_subwindow): don't update cachel.
11782         (mark_subwindow_cachels):
11783         (update_subwindow_cachel_data):
11784         (add_subwindow_cachel):
11785         (get_subwindow_cachel_index):
11786         (update_subwindow_cachel):
11787         (reset_subwindow_cachels):
11788         (mark_subwindow_cachels_as_not_updated): deleted.
11789         (cache_subwindow_instance_in_frame_maybe): new function. Add a
11790         subwindow instance to the frame cache.
11791         (find_matching_subwindow): update for subwindow instance cache as
11792         a weak list.
11793         (update_widget_instances): ditto.
11794         (image_instance_type_to_mask):inlined.
11795         (free_frame_subwindow_instance_cache): new function. finalize all
11796         subwindows that are instantiated.
11797
11798         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
11799         of cachel information.
11800         (IMAGE_INSTANCE_DISPLAY_X):
11801         (IMAGE_INSTANCE_DISPLAY_Y):
11802         (IMAGE_INSTANCE_DISPLAY_WIDTH):
11803         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
11804         (XIMAGE_INSTANCE_DISPLAY_X):
11805         (XIMAGE_INSTANCE_DISPLAY_Y):
11806         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
11807         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
11808         remove subwindow_cachel structure and function references.
11809         (image_instance_type_to_mask): inline from glyphs.c
11810
11811         * redisplay.c (redisplay_frame): remove subwindow_cachel
11812         references.
11813
11814         * frame.h (struct frame): remove subwindow_cachels.
11815         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
11816
11817         * frameslots.h: add subwindow_instance_cache.
11818
11819         * window.c (replace_window): check subwindow cache of replacement.
11820         (window_unmap_subwindows_cache_mapper):
11821         (window_unmap_subwindows): new functions. Unmap all subwindows
11822         cached on this window.
11823         (mark_window_as_deleted): unmap all subwindows.
11824
11825 2000-04-27  Andy Piper  <andy@xemacs.org>
11826
11827         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
11828
11829         * glyphs-widget.c (widget_layout): return something.
11830         (layout_layout): return something. Fail if not initialized.
11831         (layout_query_geometry): ditto.
11832         (image_instantiator_native_layout): new function. Initialized the
11833         native layout type.
11834         (widget_instantiate): don't do layout stuff here.
11835
11836         * glyphs.c (instantiate_image_instantiator): reorded calling or
11837         instantiate and post_instantiate with layout in between.
11838         (image_instance_layout): be more selective about deciding whether
11839         the layout has been done or not.
11840
11841         * glyphs.h (struct image_instantiator_methods): return a value
11842         from layout_method.
11843
11844 2000-04-26  Andy Piper  <andy@xemacs.org>
11845
11846         * glyphs.c (allocate_image_instance): make initial width and
11847         height unspecified. Set initialized to 0.
11848
11849         * syscommctrl.h new file. Encapsulates commctrl.h.
11850
11851         * syswindows.h new file. Encapsulates windows.h.
11852
11853         * ntplay.c: use new syswindows.h and syscommctrl.h header.
11854         * nt.c: ditto.
11855         * console-msw.h: ditto.
11856
11857         * redisplay-tty.c (tty_output_display_block): remove layout references.
11858
11859         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
11860         window handle rather than just the frame.
11861
11862         * glyphs.c (mark_image_instance): remove layout references.
11863         (print_image_instance): ditto.
11864         (image_instance_equal): ditto.
11865         (image_instance_hash): ditto.
11866         (decode_image_instance_type): ditto.
11867         (encode_image_instance_type): ditto.
11868         (image_instantiate): ditto.
11869         (allocate_glyph): ditto.
11870         (Fimage_instance_height): ditto.
11871         (Fimage_instance_width): ditto.
11872         (update_subwindow): ditto.
11873
11874         * redisplay-x.c (x_output_display_block): recode for layouts as
11875         widgets.
11876
11877         * redisplay-output.c (redisplay_output_layout): recode for layouts
11878         as widgets.
11879         (compare_runes): remove layout references.
11880
11881         * redisplay-msw.c (mswindows_output_display_block): recode for
11882         layouts as widgets.
11883
11884         * glyphs-widget.c (image_instantiator_layout): remove
11885         layout_possible_dest_types.
11886         (layout_possible_dest_types): deleted.
11887
11888         * glyphs.h (image_instance_type): remove layout references.
11889         (struct Lisp_Image_Instance): ditto. Add initialized flag.
11890         (IMAGE_INSTANCE_INITIALIZED): new accessor.
11891         (XIMAGE_INSTANCE_INITIALIZED): ditto.
11892
11893 2000-04-25  Andy Piper  <andy@xemacs.org>
11894
11895         * glyphs-widget.c (image_instantiator_buttons):
11896         (image_instantiator_edit_fields):
11897         (image_instantiator_combo_box):
11898         (image_instantiator_scrollbar):
11899         (image_instantiator_progress_guage):
11900         (image_instantiator_tree_view):
11901         (image_instantiator_tab_control):
11902         (image_instantiator_labels):
11903         (image_instantiator_layout): call default post_instantiate method.
11904         (widget_post_instantiate): new function. Simply lays out the
11905         widgets.
11906
11907         * glyphs.h (struct image_instantiator_methods): add
11908         post_instantiate method.
11909
11910         * glyphs.c (instantiate_image_instantiator): add post_instantiate
11911         method calls.
11912
11913 2000-04-23  Andy Piper  <andy@xemacs.org>
11914
11915         * glyphs.h (struct image_instantiator_methods): add
11916         decode_domain_method.
11917         (struct Lisp_Image_Instance): remove subwindow frame - it can be
11918         derived from the domain.
11919         (IMAGE_INSTANCE_FRAME): new accessor.
11920         (XIMAGE_INSTANCE_FRAME): ditto.
11921
11922         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
11923         instead of _SUBWINDOW_FRAME.
11924         (finalize_image_instance): ditto.
11925         (Fimage_instance_foreground): ditto.
11926         (Fimage_instance_background): ditto.
11927         (image_instantiate): ditto.
11928         (update_subwindow_cachel): ditto.
11929         (update_subwindow): ditto.
11930         (unmap_subwindow): ditto.
11931         (map_subwindow): ditto
11932         (subwindow_instantiate): ditto.
11933         * glyphs-msw.c (mswindows_update_widget): ditto.
11934         (mswindows_progress_gauge_instantiate): ditto.
11935         (mswindows_tab_control_update): ditto.
11936         * glyphs-x.c (x_update_widget): ditto.
11937         (x_widget_instantiate): ditto.
11938         (x_tab_control_instantiate): ditto.
11939         (x_tab_control_update): ditto.
11940         * event-msw.c (mswindows_wnd_proc): ditto
11941
11942         * glyphs-widget.c (image_instantiator_layout): use
11943         subwindow_decode_domain.
11944         (image_instantiator_buttons): ditto.
11945         (image_instantiator_edit_fields): ditto.
11946         (image_instantiator_combo_box): ditto.
11947         (image_instantiator_scrollbar): ditto.
11948         (image_instantiator_progress_guage): ditto.
11949         (image_instantiator_tree_view): ditto.
11950         (image_instantiator_tab_control): ditto.
11951         (image_instantiator_labels): ditto.
11952         (image_instantiator_layout): ditto.
11953
11954         * glyphs.c: add instance error checking to many functions.
11955         (instantiate_image_instantiator): decode device from cache_domain.
11956         (image_instantiate): partially rewrite by using
11957         decode_image_instantiator_domain to determine what domain the
11958         instance needs to be cached in.
11959         (decode_image_instantiator_domain): new function. Determine what
11960         domain the image needs to be cached in.
11961         (check_window_subwindow_cache): new error checking function.
11962         (check_instance_cache_mapper): ditto.
11963         (check_image_instance_structure): ditto.
11964         (subwindow_decode_domain): new function. Encodes a window as a
11965         subwindow's cache domain.
11966         (image_instantiator_format_create): use it for text and
11967         subwindows.
11968
11969 2000-04-21  Andy Piper  <andy@xemacs.org>
11970
11971         * glyphs.c (image_instance_device): new function.
11972         (image_instance_frame): new function.
11973         (image_instance_window): new function.
11974         (image_instance_live_p): new function.
11975
11976         * window.c (mark_window_as_deleted): reset the subwindow_instance_
11977         cache to nil.
11978
11979         * glyphs.h (struct Lisp_Image_Instance): device->domain.
11980         (IMAGE_INSTANCE_DOMAIN): new accessor.
11981         (XIMAGE_INSTANCE_DOMAIN): ditto.
11982
11983         * glyphs-x.c (x_finalize_image_instance): device->domain.
11984
11985         * glyphs-msw.c (init_image_instance_geometry): device->domain.
11986         (mswindows_finalize_image_instance): ditto.
11987
11988         * glyphs-eimage.c (jpeg_instantiate): device->domain.
11989         (gif_instantiate): ditto.
11990         (png_instantiate): ditto.
11991         (tiff_instantiate): ditto.
11992
11993         * glyphs.c (instantiate_image_instantiator): use domain rather
11994         than device.
11995         (mark_image_instance): device -> domain.
11996         (print_image_instance): ditto.
11997         (finalize_image_instance): ditto.
11998         (image_instance_equal): ditto.
11999         (allocate_image_instance): ditto.
12000         (Fcolorize_image_instance): ditto.
12001         (query_string_geometry): ditto.
12002         (image_instantiate): ditto
12003         (query_string_font): ditto.
12004         (image_instantiate): ditto.
12005         (update_subwindow): ditto.
12006         (unmap_subwindow): ditto.
12007         (map_subwindow): ditto.
12008         (subwindow_instantiate): ditto.
12009
12010         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
12011         (DOMAIN_FRAME): ditto.
12012         (DOMAIN_WINDOW): ditto.
12013         (DOMAIN_LIVE_P): ditto.
12014         (XDOMAIN_DEVICE): ditto.
12015         (XDOMAIN_FRAME): ditto.
12016         (XDOMAIN_WINDOW): ditto.
12017
12018         * specifier.c (Fvalid_specifier_domain_p): add image instances as
12019         a valid specifier domain.
12020
12021 2000-04-19  Andy Piper  <andy@xemacs.org>
12022
12023         * glyphs-widget.c (syms_of_glyphs_widget): remove
12024         widget-callback-current-channel.
12025         (vars_of_glyphs_widget): ditto.
12026         * glyphs.h: ditto
12027
12028         * gui.c (get_gui_callback): revert to previous behaviour.
12029
12030 2000-04-18  Andy Piper  <andy@xemacs.org>
12031
12032         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
12033         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
12034         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
12035
12036         * glyphs.c (image_instance_equal): add margin_width.
12037         (image_instance_hash): ditto.
12038
12039         * glyphs-widget.c (widget_instantiate): deal with margin-width.
12040         (layout_query_geometry): ditto.
12041         (layout_layout): ditto.
12042         (syms_of_glyphs_widget): add margin-width.
12043         (image_instantiator_layout): allow margin-width.
12044
12045         * glyphs.c (update_widget_instances): make a normal function.
12046         (syms_of_glyphs): remove Qupdate_widget_instances.
12047         * glyphs.h: ditto.
12048
12049         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
12050         so that we don't corrupt ideas about the last event or
12051         command. Remove widget-callback-current-channel fiddling.
12052         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
12053
12054 2000-05-01  Martin Buchholz <martin@xemacs.org>
12055
12056         * XEmacs 21.2.33 is released.
12057
12058 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
12059
12060         * make-src-depend: Allow dots in header file name.
12061
12062 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
12063
12064         * mule-charset.h (struct charset_lookup): Add
12065         next_allocated_1_byte_leading_byte and
12066         next_allocated_2_byte_leading_byte.
12067         * mule-charset.c: Move above two variables so that those values
12068         will be dumped.
12069
12070 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
12071
12072         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
12073         when string length is zero.
12074         (find_charsets_in_emchar_string): Ditto.
12075
12076 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
12077
12078         * lisp.h: extern Qdialog and Qmenubar.
12079
12080         * gui-x.c: added events.h.
12081                 also fixed typo which made the file uncompilable.
12082
12083         * general.c: Added Qmenubar and Qdialog
12084
12085 2000-04-28  Ben Wing  <ben@xemacs.org>
12086
12087         * frame-msw.c (mswindows_init_frame_1):
12088         * frame-msw.c (mswindows_mark_frame):
12089         * event-msw.c (mswindows_enqueue_dispatch_event):
12090         * console-msw.h:
12091         * console-msw.h (struct mswindows_frame):
12092         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
12093         there are now three hash tables for callbacks.
12094         mswindows_enqueue_dispatch_event is no longer static.
12095
12096         * dialog-x.c (maybe_run_dbox_text_callback):
12097         * dialog-x.c (dbox_descriptor_to_widget_value):
12098         switch to new cons3 form for callbacks.
12099
12100         * glyphs-msw.c (mswindows_register_gui_item):
12101         * glyphs-msw.c (mswindows_widget_instantiate):
12102         * glyphs-msw.c (add_tree_item):
12103         * glyphs-msw.c (add_tab_item):
12104         new image instance parameter, so it can be passed to callback-ex.
12105         respect :callback-ex as well as :callback.
12106
12107         * glyphs-widget.c (VALID_GUI_KEYWORDS):
12108         add :callback-ex.
12109
12110         * glyphs.c (print_image_instance):
12111         prettify, e.g. now prints widget type.
12112
12113         * gui-x.h:
12114         certain funs have new image instance parameter.
12115
12116         * gui.c:
12117         * gui.c (get_gui_callback):
12118         * gui.c (gui_item_add_keyval_pair):
12119         * gui.c (gui_item_init):
12120         * gui.c (gui_add_item_keywords_to_plist):
12121         * gui.c (mark_gui_item):
12122         * gui.c (gui_item_hash):
12123         * gui.c (gui_item_equal):
12124         * gui.c (copy_gui_item):
12125         * gui.c (syms_of_gui):
12126         recognize callback-ex in a number of places.
12127         also, fix the annoying "can't get out of yes-no dialog" bug.
12128
12129         * gui.h:
12130         * gui.h (struct Lisp_Gui_Item):
12131         recognize callback-ex in a number of places.
12132
12133         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
12134         new parameter in button_item_to_widget_value.
12135
12136         * glyphs-x.c (x_update_widget):
12137         * glyphs-x.c (x_button_instantiate):
12138         * glyphs-x.c (x_button_update):
12139         * glyphs-x.c (x_progress_gauge_instantiate):
12140         * glyphs-x.c (x_edit_field_instantiate):
12141         * glyphs-x.c (x_combo_box_instantiate):
12142         * glyphs-x.c (x_tab_control_instantiate):
12143         * glyphs-x.c (x_label_instantiate):
12144         new image instance parameter in various places.
12145
12146         * event-Xt.c:
12147         * event-Xt.c (enqueue_Xt_dispatch_event):
12148         this fun gets exported.
12149
12150         * gui-msw.c:
12151         * gui-msw.c (mswindows_handle_gui_wm_command):
12152         handle both :callback and :callback-ex, and generate our own
12153         event because it's one of the callback-ex arguments.
12154
12155         * gui-x.c:
12156         * gui-x.c (popup_selection_callback):
12157         handle both :callback and :callback-ex, and generate our own
12158         event because it's one of the callback-ex arguments.
12159         * gui-x.c (button_item_to_widget_value):
12160         * gui-x.c (gui_items_to_widget_values_1):
12161         * gui-x.c (gui_item_children_to_widget_values):
12162         * gui-x.c (gui_items_to_widget_values):
12163         new image instance parameter in various places.
12164
12165         * fns.c (Freplace_list):
12166         fix small typo in doc string.
12167
12168         * lisp.h:
12169         declare enqueue_Xt_dispatch_event.
12170
12171 2000-04-28  Ben Wing  <ben@xemacs.org>
12172
12173         * buffer.c:
12174         * buffer.c (Frecord_buffer):
12175         * buffer.c (syms_of_buffer):
12176         delete record-buffer-hook.
12177
12178         * fns.c:
12179         * fns.c (Freplace_list):
12180         * fns.c (syms_of_fns):
12181         new primitive replace-list.
12182
12183         * frameslots.h:
12184         slot for old buffer-alist.
12185
12186         * lisp.h:
12187         exfun replace-list.
12188
12189         * redisplay.c:
12190         * redisplay.c (redisplay_frame):
12191         * redisplay.c (syms_of_redisplay):
12192         * redisplay.c (vars_of_redisplay):
12193         new hook buffer-list-changed-hook.
12194         call it.
12195
12196 2000-04-27  Ben Wing  <ben@xemacs.org>
12197
12198         * extents.h: extern in_modeline_generation.
12199
12200         * redisplay.c (generate_formatted_string_db): set
12201         in_modeline_generation.
12202
12203         * extents.c (extent_changed_for_redisplay): don't mark redisplay
12204         flags if in modeline generation.  otherwise frame-modified-tick
12205         is ticked far too often.
12206         Declare in_modeline_generation.
12207
12208 2000-04-26  Ben Wing  <ben@xemacs.org>
12209
12210         * emacs.c (vars_of_emacs): document quick-build "error-checking"
12211         option.
12212         (vars_of_emacs): add quick-build as an error-checking option.
12213         A bit kludgy, but there doesn't seem much point in creating
12214         a real var for this.
12215
12216         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
12217
12218 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12219
12220         * redisplay.h (struct display_line): Add a new variable,
12221         line_continuation.
12222
12223         * redisplay.c (create_text_block): Set dl->line_continuation if
12224         the line continues.
12225         (create_string_text_block): Ditto.
12226         (regenerate_window_incrementally): Use line_continuation instead
12227         of searching continuation glyph.
12228         (add_margin_runes): Call add_glyph_rune.
12229         (add_glyph_rune): Handle margin glyph.
12230
12231 2000-04-20  Martin Buchholz  <martin@xemacs.org>
12232
12233         * filelock.c (fill_in_lock_file_name):
12234         ANSIfy.
12235         Check for IS_ANY_SEP instead of '/'.
12236         (lock_file_1):
12237         Avoid generating gratuitous garbage.  Call user_login_name() directly.
12238         Never check errno without first seeing that system call failed.
12239         (unlock_file): Add GCPRO.
12240         (Flock_buffer): Fix docstring.
12241         (Ffile_locked_p): Fix docstring.  Add GCPRO.
12242
12243 2000-04-19  Martin Buchholz  <martin@xemacs.org>
12244
12245         * sysdep.c (get_pty_max_bytes):
12246         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
12247         strings longer than 252 bytes.
12248
12249         * md5.c: Unconditionally include ANSI header <limits.h>
12250
12251         * glyphs-x.c (convert_EImage_to_XImage):
12252         * lisp-union.h (union Lisp_Object):
12253         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
12254
12255 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
12256
12257         * filelock.c (current_lock_owner): Remove unused variable o, p.
12258
12259 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
12260
12261         * callint.c: Remove multiply defined symbol Qlet
12262         (syms_of_callint): ditto.
12263
12264 2000-04-14  Andy Piper  <andy@xemacs.org>
12265
12266         * general.c (syms_of_general): add last-command, this-command, let
12267         and funcall.
12268
12269         * lisp.h: declare various symbols.
12270
12271         * glyphs.h: declare Qwidget_callback_current_channel;
12272
12273         * glyphs-widget.c (syms_of_glyphs_widget): add
12274         Qgui_callback_current_channel.
12275         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
12276
12277         * gui-msw.c (mswindows_handle_gui_wm_command): bind
12278         widget-callback-current-channel when invoking the interactive
12279         arg. Also bind last-command and next-command when invoking the
12280         widget updates.
12281         * gui-x.c (popup_selection_callback): ditto.
12282
12283         * gui.c (get_gui_callback): massage args so that we are always
12284         calling eval. This allows us to add our own variable bindings
12285         outside.
12286
12287         * glyphs-x.c (x_button_instantiate): use
12288         gui_items_to_widget_values since this is GC safe.
12289         (x_progress_gauge_instantiate): ditto.
12290         (x_edit_field_instantiate): ditto.
12291         (x_label_instantiate): ditto.
12292
12293         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
12294         (emacs_Xt_event_widget_focus_out): new function
12295         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
12296         focus.
12297         (emacs_Xt_event_add_widget_actions): new function. add focus
12298         functions as actions.
12299         (init_event_Xt_late): use it.
12300
12301 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
12302
12303         * event-stream.c (Fdispatch_event): Doc fix.
12304
12305 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
12306
12307         * postgresql.c: Remove all references to PQsetenv*.
12308
12309         * postgresql.h: Remove references to PGsetenvHandler object.
12310         * lrecord.h (lrecord_type): Ditto.
12311
12312 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12313
12314         * glyphs-msw.h (struct mswindows_image_instance_data): Added
12315         real_heigh and real_width members, and accessor macros for these.
12316
12317         * glyphs-msw.c (init_image_instance_geometry): New function.
12318         (init_image_instance_from_dibitmap): Use it.
12319         (mswindows_resource_instantiate): Use it.
12320         (init_image_instance_from_xbm_inline): Use it.
12321         (mswindows_initialize_image_instance_mask): Use real bitmap
12322         geometry.
12323         (mswindows_create_resized_bitmap): Ditto.
12324         (mswindows_create_resized_mask): Ditto.
12325
12326         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
12327         and bitmap to their surface size.
12328
12329 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
12330
12331         * process-unix.c (unix_send_process): Guard against process MIA
12332         after Faccept_process_output.
12333
12334 2000-04-11  Ben Wing  <ben@xemacs.org>
12335
12336         * eval.c (unbind_to_hairy): fix brokenness introduced by
12337         nanosecond speed improvements.
12338
12339 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
12340
12341         * sunplay.c (init_device): To play sounds correctly, the device
12342         apparently needs to be initialized at least once by XEmacs.  Make
12343         it so.
12344
12345 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12346
12347         * redisplay.c (add_margin_runes): Add text image glyph
12348           handling.
12349
12350 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
12351
12352         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
12353         gcc is newer than 2.5.
12354
12355 2000-04-06  Colin Rafferty  <colin@xemacs.org>
12356
12357         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
12358
12359         * fns.c (size_bit_vector):
12360         * alloc.c (size_vector):
12361         (make_vector_internal):
12362         (make_bit_vector_internal):
12363         (sweep_bit_vectors_1):
12364         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
12365
12366 2000-04-06  Andy Piper  <andy@xemacs.org>
12367
12368         * gmalloc.c (malloc): undo previous change.
12369         (malloc): ditto.
12370         (free): ditto.
12371         (realloc): ditto.
12372
12373 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
12374
12375         * line-number.c (buffer_line_number): Revert to former version.
12376
12377 2000-04-06  Andy Piper  <andy@xemacs.org>
12378
12379         * gmalloc.c (malloc): add error checking.
12380         (malloc): ditto.
12381         (free): ditto.
12382         (realloc): ditto.
12383
12384         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
12385         button_item_to_widget_value arg.
12386
12387         * glyphs-x.c (x_button_instantiate): add extra
12388         button_item_to_widget_value arg.
12389         (x_progress_gauge_instantiate): ditto.
12390         (x_edit_field_instantiate): ditto.
12391         (x_label_instantiate): ditto.
12392
12393         * gui-x.c (gui_items_to_widget_values_1): add extra
12394         button_item_to_widget_value arg.
12395         (button_item_to_widget_value): add extra menu_item_p arg.
12396
12397         * gui-x.h: change signature of button_item_to_widget_value.
12398
12399         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
12400         button_item_to_widget_value arg.
12401
12402 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
12403
12404         * buffer.h (struct buffer): auto_save_modified should be long.
12405
12406 2000-04-05  Andy Piper  <andy@xemacs.org>
12407
12408         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
12409         type.
12410         (button_query_geometry): give a little more room so that athena
12411         buttons fit.
12412
12413 2000-04-05  Andy Piper  <andy@xemacs.org>
12414
12415         * faces.c (complex_vars_of_faces): The widget face should inherit
12416         the font of the gui-element face.
12417
12418 2000-04-04  Andy Piper  <andy@xemacs.org>
12419
12420         * glyphs-x.c (x_button_update): new function. unconditionally
12421         update a button's state when the instance is dirty.
12422         (image_instantiator_format_create_glyphs_x): add x_button_update.
12423         (x_widget_instantiate): remove old resize cruft.
12424
12425 2000-04-02  Andy Piper  <andy@xemacs.org>
12426
12427         * frame.c (change_frame_size_1): The introduction of gutters means
12428         that we need to allow 0 as a potential frame dimension.
12429
12430 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12431
12432         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
12433         image glyph if allow_cursor.
12434         (add_hscroll_rune): Don't allow cursor to border glyph.
12435         (create_text_block): Ditto.
12436
12437         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
12438         text not in buffer.
12439         (redisplay_output_layout): Call ensure_face_cachel_complete for
12440         text image glyph.
12441
12442
12443 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12444
12445         * redisplay.c (add_glyph_rune): Adding text image as text runes.
12446
12447         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
12448         not in buffer
12449
12450         * redisplay-tty.c (tty_output_display_block): Delete the routine
12451         for text image glyph
12452         * redisplay-x.c (x_output_display_block): ditto
12453         * redisplay-msw.c (mswindows_output_display_block): ditto
12454
12455 2000-02-02  Mike Alexander  <mta@arbortext.com>
12456
12457         Note: Some of these were committed by accident as part of other
12458         patches.
12459
12460         * regex.c (regex_compile): Avoid compiler warnings.
12461
12462         * ntproc.c (sys_spawnve): Avoid compiler warnings.
12463
12464         * nt.h: Declare term_ntproc correctly.
12465
12466         * nt.c: Remove incorrect declaration of get_home_directory which
12467         is declared correctly in lisp.h.
12468
12469         * keymap.c (get_keyelt): Avoid compiler warnings.
12470         (raw_lookup_key_mapper): Avoid compiler warnings.
12471
12472         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
12473
12474         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
12475
12476         * filemode.c (mode_string): Avoid compiler warnings.
12477
12478         * file-coding.c (Fcoding_system_aliasee): Add return statement to
12479         avoid warning.
12480
12481         * events-mod.h: Undef some things that winuser.h defines differently.
12482
12483         * data.c (Faset): Avoid compiler warnings.
12484
12485         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
12486
12487 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
12488
12489         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
12490         Fall through to simple beep on error.
12491         Replace "extern" by real header file.
12492
12493         * linuxplay.c: Use nativesound.h
12494         (play_sound_data): Return error code. Be less verbose on error.
12495
12496         * sunplay.c: Use nativesound.h
12497         (play_sound_data): Return error code. Be less verbose on error.
12498
12499         * ntplay.c: Use nativesound.h
12500         (play_sound_data): Return fake error code
12501
12502         * sgiplay.c: Use nativesound.h
12503         (play_sound_data): Return error code
12504
12505         * hpplay.c: Use nativesound.h, partially implement
12506         new error code. Break compilation until finished.
12507         (play_sound_data): error code.
12508
12509         * nativesound.h (play_sound_file):
12510           (play_sound_data): Prototype in new header.
12511
12512 2000-03-31  Andy Piper  <andy@xemacs.org>
12513
12514         * glyphs-widget.c: (button_query_geometry): new function. Adjust
12515         for toggle and radio buttons.
12516         (image_instantiator_buttons): use it.
12517
12518 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
12519
12520         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
12521         (x_update_horizontal_scrollbar_callback): Return if no mirror was
12522         found. Scrollbar event probably belonged to some old config.
12523
12524 2000-03-31  Andy Piper  <andy@xemacs.org>
12525
12526         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
12527         than 1.
12528         (initialize_widget_image_instance): default layout to
12529         LAYOUT_HORIZONTAL rather than 0.
12530         (widget_instantiate): reverse the item list at the end rather than
12531         every iteration.
12532         (layout_layout): re-code for the border text at the front of the
12533         item list rather than at the end.
12534         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
12535         provided by the user.
12536         (widget_query_geometry): comment.
12537
12538 2000-03-30  Andy Piper  <andy@xemacs.org>
12539
12540         * glyphs-widget.c (image_instantiator_layout): allow standard
12541         widget keywords in layouts.
12542
12543         * gutter.c (output_gutter): cope with nil gutter contents.
12544
12545         * frame.c (Fset_frame_properties): add gutter docs.
12546
12547 2000-03-29  Andy Piper  <andy@xemacs.org>
12548
12549         * toolbar-msw.c (TBSTYLE_FLAT): add.
12550         (mswindows_output_toolbar): minor fiddling.
12551
12552 2000-03-29  Andy Piper  <andy@xemacs.org>
12553
12554         * gutter.c (output_gutter): force gutter size recalculation if
12555         what we are trying to display won't fit.
12556         (update_gutter_geometry): new function. A per-gutter version of
12557         update_frame_gutter_geometry.
12558         (update_frame_gutter_geometry): use it.
12559         (redraw_exposed_gutter): add extra debugging output.
12560
12561 2000-03-28  Mike Alexander  <mta@arbortext.com>
12562
12563         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
12564         (pdump_file_unmap): Implement it on Windows
12565         (pdump_file_get): Save alocated handles for pdump_file_unmap
12566
12567 2000-03-28  Andy Piper  <andy@xemacs.org>
12568
12569         * gui.c (get_gui_callback): treat Quit specially.
12570
12571 2000-03-27  Andy Piper  <andy@xemacs.org>
12572
12573         * glyphs.c (image_instantiate): be careful to check in the same
12574         way we assigned.
12575
12576 2000-03-27  Didier Verna  <didier@xemacs.org>
12577
12578         * config.h.in: define the proper SMART_INCLUDE macro.
12579         handle renaming of `foo_h_path' to `foo_h_file'.
12580
12581         * database.c: ditto.
12582
12583         * emacs.c: ditto.
12584
12585         * linuxplay.c: ditto.
12586
12587         * terminfo.c: ditto.
12588
12589         * tooltalk.h: ditto.
12590
12591 2000-03-27  Andy Piper  <andy@xemacs.org>
12592
12593         * glyphs-msw.c (mswindows_update_widget): make sure the widget
12594         gets updated whenever the face might have changed.
12595
12596 2000-03-26  Mike Alexander  <mta@arbortext.com>
12597
12598         * dumper.c (pdump_resource_free): Fix the comment.
12599
12600 2000-03-21  Olivier Galibert  <galibert@pobox.com>
12601
12602         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
12603
12604 2000-03-22  Mike Alexander  <mta@arbortext.com>
12605
12606         * dumper.c: Include Windows headers on Windows
12607         (pdump_resource_free): Add a body to the function
12608         (pdump_load): exe_name -> exe_path and add some comments.
12609
12610 2000-03-25  Mike Alexander  <mta@arbortext.com>
12611
12612         * gui.c (copy_gui_item_tree): Return a value in all cases
12613
12614 2000-03-21  Didier Verna  <didier@xemacs.org>
12615
12616         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
12617         lwlib/config.h.in.
12618         (SMART_INCLUDE): new macro.
12619         (POSTGRES_INCLUDE): new macro to include postgresql headers from
12620         the proper location.
12621
12622         * postgresql.c: use it.
12623
12624         * inline.c: ditto.
12625
12626 2000-03-24  Andy Piper  <andy@xemacs.org>
12627
12628         * gutter.c (redraw_exposed_gutters): must be "in display" when we
12629         do this.
12630
12631 2000-03-24  Andy Piper  <andy@xemacs.org>
12632
12633         * redisplay-output.c (compare_runes): use image_instance_changed
12634         to detect changes. Do not depend on glyphs_changed, only depend on
12635         dirtiness.
12636          (redisplay_output_layout): add debug messages.
12637         (compare_runes): ditto.
12638
12639         * glyphs.h: declare new functions.
12640         (struct Lisp_Image_Instance): remove percent and associated
12641         accessors.
12642
12643         * gui.h: declare new copying functions.
12644
12645         * gui.c (copy_gui_item_tree): new function.
12646         (copy_gui_item): new function.
12647         (gui_item_id_hash): revert to standard hash.
12648         (gui_item_hash): ditto.
12649         (gui_item_hash_internal): deleted.
12650         (mark_gui_item): mark value.
12651         (gui_item_add_keyval_pair): add value.
12652         (gui_item_init): ditto.
12653         (gui_add_item_keywords_to_plist): ditto.
12654         (gui_item_equal): ditto.
12655         (syms_of_gui): add Q_value.
12656
12657         * glyphs-x.c (x_progress_gauge_update): use pending items and
12658         value for setting the state.
12659         (x_update_widget): don't set items from pending here.
12660
12661         * glyphs-widget.c (update_widget): update items here.
12662         (progress_gauge_set_property): use items for storing value. Put
12663         new value in pending items.
12664
12665         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
12666         items for new value. Convert percent -> value.
12667         (mswindows_tab_control_update): don't update items here.
12668
12669         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
12670         (update_subwindow): ditto.
12671         (image_instance_changed): new function. Compare hash values and
12672         past and present widget items.
12673         (image_instantiate): We more careful about where we instantiate
12674         things.
12675         (image_instantiate): add error checking.
12676
12677         * gutter.c (syms_of_gutter): use -hook.
12678
12679 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
12680
12681         * console-tty.c (Fset_console_tty_input_coding_system): Use
12682         Qkeyboard.
12683         (Fset_console_tty_output_coding_system): Use Qterminal.
12684         (tty_init_console): Use Qkeyboard and Qterminal.
12685
12686 2000-03-21  Ben Wing  <ben@xemacs.org>
12687
12688         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
12689         From Mike Alexander <mta@arbortext.com>.
12690
12691 2000-03-21  Ben Wing  <ben@xemacs.org>
12692
12693         * event-msw.c (mswindows_need_event): Horrible kludge to fix
12694         process brokenness.  Proper implementation to come.
12695         * callproc.c:
12696         Rename call-process-internal to old-call-process-internal.
12697         New impl. in process.el.
12698
12699 2000-03-21  Martin Buchholz  <martin@xemacs.org>
12700
12701         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
12702
12703 2000-03-20  Andy Piper  <andy@xemacs.org>
12704
12705         * glyphs.c (full_list_hash): make hashes of the same elements in
12706         different orders return different values.
12707
12708 2000-03-20  Martin Buchholz <martin@xemacs.org>
12709
12710         * XEmacs 21.2.32 is released.
12711
12712 2000-03-20  Martin Buchholz  <martin@xemacs.org>
12713
12714         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
12715         (DFC_MALLOC_USE_CONVERTED_DATA):
12716         Add aliasing-safe casts to allow use with char* or unsigned char*
12717         lvalues.
12718
12719         * eldap.c (Fldap_open):
12720         (Fldap_search_basic):
12721         (Fldap_add):
12722         (Fldap_modify):
12723         Make C++-compilable.
12724         Make sure GCPRO'ed variables are initialized.
12725         Use temp variables to avoid repeated calls to Flength.
12726
12727 2000-03-16  Martin Buchholz  <martin@xemacs.org>
12728
12729         * sysfile.h:
12730         Make sure PATH_MAX is always defined.
12731         Include limits.h for PATH_MAX.
12732         Deprecate use of MAXPATHLEN.
12733
12734 2000-03-10  Martin Buchholz  <martin@xemacs.org>
12735
12736         * emacs.c: Add reinit_vars_of_fileio.
12737         * symsinit.h: Add reinit_vars_of_fileio.
12738         * fileio.c (reinit_vars_of_fileio): New.
12739         * fileio.c (Fmake_temp_name):
12740         Initialize temp_name random number from microseconds to make
12741         collisions even less likely.  Initialize always at process startup
12742         time.  (make-temp-name) used to return the same file name twice in
12743         a row when PDUMP.
12744         Random stylistic fiddling.
12745         Comment fixes.
12746
12747 2000-03-20  Andy Piper  <andy@xemacs.org>
12748
12749         * glyphs.c (image_instantiate): allow text glyphs to be
12750         instantiated in the minibuffer window.
12751
12752 2000-03-19  Andy Piper  <andy@xemacs.org>
12753
12754         * glyphs.c (image_instance_hash): be careful about which items we
12755         hash on.
12756
12757         * glyphs-widget.c (tab_control_set_property): record into pending
12758         items rather than the actual items.
12759
12760         * glyphs-x.c (x_update_widget): use pending items to update with.
12761
12762         * glyphs-msw.c (mswindows_tab_control_update): use pending items
12763         to update with.
12764
12765         * glyphs.c (mark_image_instance): mark pending items.
12766
12767         * window.c (Fset_window_configuration): record the buffer.
12768         (Fselect_window): totally revert previous change which breaks many
12769         things.
12770
12771 2000-03-18  Andy Piper  <andy@xemacs.org>
12772
12773         * glyphs-msw.c (mswindows_tab_control_update): force selected
12774         item.
12775
12776         * glyphs.c (image_instantiate): don't allow the minibuffer as a
12777         window domain cache, otherwise we get inconsistencies at
12778         startup. There is something fishy at startup which can lead to the
12779         minibuffer being the selected window when the gutter content is
12780         instantiated.
12781
12782         * gui.c (parse_gui_item_tree_list): add probably unnecessary
12783         gcpros.
12784         (parse_gui_item_tree_children): ditto.
12785         (parse_gui_item_tree_item): ditto.
12786
12787         * glyphs.c (Fupdate_widget_instances): return something.
12788
12789 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
12790
12791         * window.c (Fselect_window): Undo 2000-03-17 change.
12792
12793 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
12794
12795         * postgresql.c (Fpq_setenv): Remove this turkey when linking
12796         against v7.0 libraries.  Insta-coredump city until the postgres
12797         folks fix it.
12798
12799 2000-03-17  Andy Piper  <andy@xemacs.org>
12800
12801         * faces.c (complex_vars_of_faces): don't give the widget face an
12802         inherited background pixmap.
12803
12804         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
12805         selected item.
12806
12807         * event-stream.c (Fdispatch_non_command_events): return something.
12808
12809         * gutter.c (output_gutter): use widget face.
12810         (clear_gutter): ditto.
12811
12812         * NEWS: adjust again.
12813
12814         * window.c (Fselect_window): make sure this runs to completion to
12815         avoid oddities with Fset_window_configuration.
12816         (Fcurrent_window_configuration): in general do not save the
12817         minibuffer as the selected window.
12818
12819         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
12820
12821 2000-03-16  Olivier Galibert  <galibert@pobox.com>
12822
12823         * emacs.c (Frunning_temacs_p): Revert previous patch.
12824         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
12825
12826 2000-03-16  Andy Piper  <andy@xemacs.org>
12827
12828         * glyphs-x.c (x_tab_control_update): if no widget values then
12829         return.
12830
12831         * NEWS: update for new features.
12832
12833         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
12834         synthetic event to the native system.
12835         (reinit_vars_of_event_Xt): set force_event_pending to
12836         emacs_Xt_force_event_pending.
12837
12838         * events.h (struct event_stream): add force_event_pending.
12839
12840         * specifier.c (recompute_one_cached_specifier_in_window): add
12841         comment.
12842
12843         * redisplay.c (redisplay_frame): don't call
12844         update_frame_subwindows. Reset subwindow cachels when
12845         subwindows_changed, removing this was an optimization too far.
12846
12847         * redisplay-output.c (compare_runes): reorganize so that we catch
12848         glyph changes when we want them. Set optimize_output when this
12849         would help layouts.
12850         (redisplay_output_layout): remove frame_really_changed, use
12851         optimize_output instead.
12852
12853         * redisplay-msw.c (mswindows_output_display_block): reset
12854         optimize_output after outputting a glyph.
12855         * redisplay-x.c (x_output_display_block): ditto.
12856         * redisplay-tty.c (tty_output_display_block): ditto.
12857
12858         * gutter.c: (specifier_vars_of_gutter): use new spec changed
12859         functions.
12860         (gutter_specs_changed): do specific gutter positions.
12861         (top_gutter_specs_changed): new function. Only update the
12862         specified gutter specs.
12863         (bottom_gutter_specs_changed): ditto.
12864         (left_gutter_specs_changed): ditto.
12865         (right_gutter_specs_changed): ditto.
12866
12867         * gui.c (gui_item_hash_internal): new function, does a real hash.
12868         (gui_item_id_hash): use it.
12869         (gui_item_hash): hash the eval'ed gui_item.
12870
12871         * gui-x.c (popup_selection_callback): send an eval event to call
12872         Fupdate_widget_instances.
12873
12874         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
12875         to call Fupdate_widget_instances.
12876
12877         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
12878         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
12879
12880         * glyphs.c: (update_frame_subwindows): deleted.
12881         (Fupdate_widget_instances): new function for updating the dirty
12882         state of widgets that might have changed.
12883         (syms_of_glyphs): add Qupdate_widget_instances.
12884         (full_list_hash): hash a list completely.
12885         (image_instance_hash): use it for items and properties.
12886
12887         * frame-msw.c (mswindows_size_frame_internal): remove unused
12888         variable.
12889
12890         * faces.h (struct face_cachel): fix comment.
12891
12892         * event-stream.c (Fdispatch_non_command_events): new
12893         function. Process non-command events, forcing an event cycle
12894         beforehand.
12895         (syms_of_event_stream): declare.
12896         (event_stream_force_event_pending): new function. Force an event
12897         on the native event queue so that an event cycle will occur next
12898         time we check.
12899
12900         * event-msw.c:
12901         (struct ntpipe_shove_stream):
12902         (mswindows_enqueue_dispatch_event):
12903         (mswindows_dequeue_dispatch_event):
12904         (mswindows_cancel_dispatch_event):
12905         (mswindows_pump_outstanding_events):
12906         (mswindows_drain_windows_queue):
12907         (mswindows_handle_paint):
12908         (mswindows_wnd_proc):
12909         (mswindows_key_to_emacs_keysym):
12910         (get_process_input_waitable):
12911         (emacs_mswindows_delete_stream_pair): re-indent file.
12912         (mswindows_need_event): do not process further fds if the windows
12913         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
12914         fixes the 100% cpu problem.
12915         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
12916
12917 2000-03-15  Olivier Galibert  <galibert@pobox.com>
12918
12919         * alloc.h: New.
12920         * dumper.h: New.
12921         * dumper.c: New.
12922
12923         * emacs.c: Moved dump file searching to dumper.c.
12924         (Frunning_temacs_p): Fixed.
12925
12926         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
12927         last_lrecord_type_index_assigned.
12928
12929 2000-02-20  Olivier Galibert  <galibert@pobox.com>
12930
12931         * symsinit.h: Added reinit parameter to init_console_stream
12932         declaration.
12933
12934         * lisp.h: Added file parameter to pdump_load declaration.
12935
12936         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
12937         support.  Added dump file searching.
12938
12939         * config.h.in: Added EMACS_PROGNAME.
12940
12941         * console-stream.c (init_console_stream): Fix reinitialisation
12942         when running from temacs.
12943
12944         * alloc.c (pdump): Add id support.
12945         (pdump_load): Add file parameter and signature/id support.
12946
12947         * Makefile.in.in: Add full pdump support.
12948
12949 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
12950
12951         * postgresql.c: Update documentation to reflect latest code
12952         status.
12953         (print_result): Show tuple counts in printed representation when
12954         appropriate.
12955         (Fpq_put_nbytes): MULE-ize.
12956         (Fpq_get_line_async): Ditto.
12957
12958 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
12959
12960         * postgresql.c (Fpq_lo_import): Fix return value.
12961         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
12962
12963 2000-03-13  Ben Wing  <ben@xemacs.org>
12964
12965         * alloc.c (pdump_load):
12966         Fix compile warning under mswin.
12967
12968 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
12969
12970         * postgresql.c: Mule-ization, bug fixes.
12971         Use PG_CODING to encapsulate coding system name changes.
12972         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
12973         (pg-coding-system): Create.
12974
12975         (Fpq_conn_defaults): Mule-ize.
12976         (Fpq_connectdb): Mule-ize & bug fix.
12977         (Fpq_connect_start): Mule-ize.
12978         (Fpq_set_client_encoding): Mule-ize.
12979         (Fpq_finish): Document `DEAD' connection status.
12980         (Fpq_clear): Ditto.
12981         (Fpq_pgconn): Mule-ize.
12982         (Fpq_exec): Mule-ize & bug fix.
12983         (Fpq_send_query): Ditto.
12984         (Fpq_get_result): Ditto.
12985         (Fpq_res_status): Mule-ize.
12986         (Fpq_result_error_message): Mule-ize.
12987         (Fpq_ntuples): fix comments.
12988         (Fpq_fname): Mule-ize.
12989         (Fpq_fnumber): Mule-ize.
12990         (Fpq_ftype): fix comments.
12991         (Fpq_get_value): Mule-ize.
12992         (Fpq_cmd_status): Ditto.
12993         (Fpq_cmd_tuples): Ditto.
12994         (Fpq_oid_value): Ditto.
12995         (Fpq_notifies): Ditto.
12996         (Fpq_lo_import): Ditto.
12997         (Fpq_lo_export): Ditto.
12998         (Fpq_get_line): Ditto.
12999         (Fpq_put_line): Mule-ize and bug fix.
13000         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
13001
13002 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
13003
13004         * postgresql.c (vars_of_postgresql): Mule-ize.
13005         (Fpq_conn_defaults): Ditto.
13006
13007 2000-03-12  Ben Wing  <ben@xemacs.org>
13008
13009         * alloc.c (Fmake_byte_code):
13010         * alloc.c (debug_string_purity_print):
13011         * alloc.c (pdump_backtrace):
13012         * alloc.c (pdump_get_indirect_count):
13013         * alloc.c (pdump_register_sub):
13014         * alloc.c (pdump_register_object):
13015         * alloc.c (pdump_register_struct):
13016         * alloc.c (pdump_dump_data):
13017         * alloc.c (pdump_reloc_one):
13018         Minor cleanups.
13019
13020         * console-msw.c:
13021         * console-msw.c (GetConsoleHwnd):
13022         * console-msw.c (msw_hide_console):
13023         * console-msw.c (msw_show_console):
13024         * console-msw.c (msw_ensure_console_buffered):
13025         * console-msw.c (msw_output_console_string):
13026         * console-msw.c (console_type_create_mswindows):
13027
13028         a) Added functions to manipulate the console window for use with
13029         shell support.
13030
13031         b) Added support for writing text to the console, which is now
13032         used under Windows when xemacs is not being run non-interactively,
13033         to write text that would otherwise be destined for stdout because
13034         under these circumstances, text written to stdout tends to
13035         disappear and not be seen.
13036
13037         * console-msw.h:
13038         * event-Xt.c:
13039         * event-Xt.c (x_event_to_emacs_event):
13040         * event-Xt.c (describe_event_window):
13041         * events-mod.h (XEMACS_MOD_CONTROL):
13042         * events.c:
13043         * events.c (Fmake_event):
13044         * events.c (character_to_event):
13045         * events.c (event_to_character):
13046         * events.c (format_event_object):
13047         * events.c (Fevent_modifiers):
13048         * events.h:
13049         * events.h (struct key_data):
13050         * events.h (struct button_data):
13051         * events.h (struct misc_user_data):
13052         * frame-x.c (Fcde_start_drag_internal):
13053         * frame-x.c (Foffix_start_drag_internal):
13054         * gpmevent.c (Freceive_gpm_event):
13055         * keymap.c:
13056         * keymap.c (bucky_sym_to_bucky_bit):
13057         * keymap.c (control_meta_superify):
13058         * keymap.c (make_key_description):
13059         * keymap.c (keymap_lookup_directly):
13060         * keymap.c (create_bucky_submap):
13061         * keymap.c (keymap_store):
13062         * keymap.c (define_key_check_and_coerce_keysym):
13063         * keymap.c (define_key_parser):
13064         * keymap.c (define_key_alternate_name):
13065         * keymap.c (Fdefine_key):
13066         * keymap.c (raw_lookup_key_mapper):
13067         * keymap.c (struct map_keymap_unsorted_closure):
13068         * keymap.c (map_keymap_unsorted_mapper):
13069         * keymap.c (map_keymap_sort_predicate):
13070         * keymap.c (map_keymap_sorted):
13071         * keymap.c (accessible_keymaps_mapper_1):
13072         * keymap.c (where_is_recursive_mapper):
13073         * keymap.c (describe_map_mapper):
13074         * keymap.c (describe_map_sort_predicate):
13075         * keymap.c (describe_map):
13076         * keymap.c (complex_vars_of_keymap):
13077         And a number of other files, the key modifier preprocessor
13078         constants that xemacs uses have names that conflict with constants
13079         defined under MS Windows for other purposes, so they were renamed
13080         to begin with the prefix XEMACS_. The variables that hold such
13081         modifiers were changed to consistently be of type int to fix
13082         various compile warnings.
13083
13084         * console.c (complex_vars_of_console):
13085         * device.c:
13086         * device-msw.c:
13087         * device-msw.c (mswindows_finish_init_device):
13088         * device-msw.c (msw_get_workspace_coords):
13089         * device-msw.c (mswindows_device_system_metrics):
13090         and various other files, added support for a new
13091         device property called offset-workspace which returns the position
13092         of the upper left corner of the workspace area and goes along with
13093         the existing size-workspace property.
13094
13095         * dialog-msw.c:
13096         * dialog-msw.c (push_bufbyte_string_as_unicode):
13097         * dialog-msw.c (mswindows_popup_dialog_box):
13098         Added support for XEmacs-style accelerator specifications in
13099         button text.  Note: I didn't add support for this under X Windows,
13100         and somebody needs to do this.
13101
13102         * dialog.c:
13103         * dialog.c (Fpopup_dialog_box):
13104         Documented the support for accelerators that was just mentioned.
13105
13106         editfns.c (get_home_directory): Changed behavior under Windows
13107         when HOME not defined; former behavior was irretrievably broken.
13108
13109         * emacs.c:
13110         * emacs.c (main_1):
13111         * emacs.c (main):
13112         * minibuf.c (clear_echo_area_internal):
13113         * minibuf.c (echo_area_append):
13114         * print.c:
13115         * print.c (std_handle_out_external):
13116         * print.c (std_handle_out_va):
13117         * print.c (fatal):
13118         * print.c (write_string_to_stdio_stream):
13119         * print.c (output_string):
13120         * print.c (debug_print):
13121         * print.c (debug_backtrace):
13122         * print.c (debug_short_backtrace):
13123         Cleaned up the code that prints text to stdout so that this can be
13124         changed to output into a console window instead under MS Windows,
13125         as described above.
13126
13127         * eval.c:
13128         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
13129         * eval.c (internal_catch):
13130         * eval.c (unwind_to_catch):
13131         * eval.c (throw_or_bomb_out):
13132         * eval.c (condition_case_1):
13133         * eval.c (signal_1):
13134         * eval.c (check_error_state_sanity):
13135         * eval.c (call_with_suspended_errors_1):
13136         * eval.c (call_with_suspended_errors):
13137         * eval.c (reinit_vars_of_eval):
13138         Added code to catch throw loops and check for a pesky bug that may
13139         be gone now.
13140
13141         * event-msw.c:
13142         * event-msw.c (key_needs_default_processing_p):
13143         * event-msw.c (mswindows_wnd_proc):
13144         * event-msw.c (mswindows_modifier_state):
13145         * event-msw.c (emacs_mswindows_quit_p):
13146         * event-msw.c (vars_of_event_mswindows):
13147         a) Added support for using the alt key to select menu items as is
13148         standard under MS Windows.  This is controlled using the variable
13149         menu-accelerator-enabled, just like under X Windows.  There is an
13150         option on the options menu to turn this support on.  I really
13151         think that it should be on by default under Windows, but I'm not
13152         going to make this change yet.
13153
13154         b)  Added support for dynamic display size changes under Windows.
13155
13156         * event-stream.c:
13157         * event-stream.c (maybe_echo_keys):
13158         * event-stream.c (Fnext_event):
13159         * event-stream.c (command_builder_find_leaf):
13160         * event-stream.c (lookup_command_event):
13161         * event-stream.c (execute_command_event):
13162         * event-stream.c (pre_command_hook):
13163         * event-stream.c (post_command_hook):
13164         * event-stream.c (syms_of_event_stream):
13165         * event-stream.c (vars_of_event_stream):
13166         * event-stream.c (complex_vars_of_event_stream):
13167         * events.h (struct command_builder):
13168
13169         a) Tried to clean up a little bit the horribly written x-specific
13170         accelerator code that crept into this file.  I moved this code
13171         into menubar-x.c where it belongs. I also needed to move the
13172         command builder structure into the file events.h because it is
13173         accessed directly by this accelerator code.  What I didn't do, but
13174         which should be done at some point, is to properly abstract this
13175         code using device methods instead of the kludgy way that it
13176         currently hooks into the event code.
13177
13178         b) Added the lisp variables this-command-properties and
13179         last-command- properties, which should be used to synchronize two
13180         adjacent commands in preference to playing games with the variable
13181         this-command, which is typically what happens.
13182
13183         c) Added some slightly nasty code to hook into the lisp support
13184         for shifted- motion-key selection.  This is actually necessary for
13185         somewhat complicated reasons, which are described in
13186         simple.el. (NB: I think the proper thing would be to have the code
13187         that calls the pre and post command hooks also call out to generic
13188         lisp functions in simple.el, where all built-in stuff could be
13189         added.  I will think about this more.)
13190
13191         * event-unixoid.c (poll_fds_for_input):
13192         * lread.c (readchar):
13193         * redisplay-tty.c (tty_clear_frame):
13194         * redisplay-x.c (x_get_gc):
13195         * signal.c (interrupt_signal):
13196         And a whole bunch of other files: fixed up places that printed
13197         directly to stderr to instead call the function stderr_out so that
13198         the changes I made under Windows work correctly.
13199
13200         * filemode.c (mode_string):
13201         Warning fixes.
13202
13203         * frame-msw.c:
13204         * frame-msw.c (mswindows_size_frame_internal):
13205         Fixed the computation of frame size and position to keep the frame
13206         within the workspace area, rather than within the physical
13207         dimensions of the screen, so that the frame doesn't overlap window
13208         manager decorations, such as the start menu and toolbar, typically
13209         at the bottom of the screen.
13210
13211         * frame.c (vars_of_frame):
13212         Changed the default frame title format under MS Windows to consist
13213         of buffername-XEmacs, which is standard under MS Windows.  I think
13214         it might be a good idea to change this everywhere because I think
13215         it is superior to the current frame title format, but this is the
13216         kind of change that is likely to cause some people to get annoyed,
13217         so I'm not making it.
13218
13219         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
13220
13221         * gui-msw.c (mswindows_handle_gui_wm_command):
13222         Fixed compile warnings.
13223
13224         * gui-x.c:
13225         * gui-x.c (strdup_and_add_accel):
13226         * gui-x.c (button_item_to_widget_value):
13227         * gui-x.h:
13228         Added code to automatically put an accelerator onto the beginning
13229         of menu items that don't have one as is now the standard, and is
13230         described more later.  Also fixed things so that the menu item
13231         name can be an evaluated expression, again a new standard.
13232
13233         * gui.c:
13234         * gui.c (gui_item_add_keyval_pair):
13235         * gui.c (make_gui_item_from_keywords_internal):
13236         * gui.c (gui_add_item_keywords_to_plist):
13237         * gui.c (gui_item_accelerator):
13238         * gui.c (gui_name_accelerator):
13239         * gui.c (gui_item_included_p):
13240         * gui.c (gui_item_display_flush_left):
13241         * gui.c (gui_item_display_flush_right):
13242         * gui.c (parse_gui_item_tree_item):
13243         * gui.c (parse_gui_item_tree_children):
13244         * gui.c (parse_gui_item_tree_list):
13245         Mule-ized.  Cleanup.  GCPRO addition.
13246
13247         * line-number.c (buffer_line_number):
13248         * lisp.h:
13249         * lisp.h (EMACS_INT_MAX):
13250         Added the manifest constant EMACS_INT_MIN corresponding to the
13251         existing constant EMACS_INT_MAX.  This is partially to fix compile
13252         warnings under Windows, and partly for cleanliness.
13253
13254         * menubar-msw.c:
13255         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
13256         * menubar-msw.c (msw_translate_menu_or_dialog_item):
13257         * menubar-msw.c (displayable_menu_item):
13258         * menubar-msw.c (populate_menu_add_item):
13259         * menubar-msw.c (populate_or_checksum_helper):
13260         * menubar-msw.c (populate_menu):
13261         * menubar-msw.c (update_frame_menubar_maybe):
13262         * menubar-msw.c (prune_menubar):
13263         * menubar-msw.c (msw_char_is_accelerator):
13264         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
13265         * menubar-msw.c (mswindows_handle_wm_command):
13266         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
13267         * menubar-msw.c (mswindows_handle_wm_initmenu):
13268         * menubar-msw.c (mswindows_update_frame_menubars):
13269         * menubar-msw.c (mswindows_free_frame_menubars):
13270         * menubar-msw.c (mswindows_popup_menu):
13271         Fixed a bug in handling accelerators where an extra character
13272         would be displayed in the menu item.  Also generalized the
13273         function displayable_menu_item because it is now used by the
13274         dialog box code as well.  And finally, added code in the functions
13275         that create the menubar to extract a list of accelerators for the
13276         top level menubar, which is used in the event code to determine
13277         whether a particular alt-key combination should be used to invoke
13278         a menu item, or should be passed through to access the standard
13279         XEmacs keymap binding for this key combination.
13280
13281         Much needed GCPROing.
13282
13283         * menubar-x.c:
13284         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
13285         * menubar-x.c (menu_item_descriptor_to_widget_value):
13286         * menubar-x.c (restore_in_menu_callback):
13287         * menubar-x.c (x_popup_menu):
13288         * menubar-x.c (menu_move_up):
13289         * menubar-x.c (menu_move_down):
13290         * menubar-x.c (menu_move_left):
13291         * menubar-x.c (menu_move_right):
13292         * menubar-x.c (menu_select_item):
13293         * menubar-x.c (command_builder_operate_menu_accelerator):
13294         * menubar-x.c (menu_accelerator_junk_on_error):
13295         * menubar-x.c (command_builder_find_menu_accelerator):
13296         * menubar-x.c (Faccelerate_menu):
13297         * menubar.h:
13298         Moved a whole bunch of code here that was previously in
13299         event-stream.c as described above.  There is also code connected
13300         to the new standard of adding an accelerator to the beginning of
13301         menu items that don't have one as described above and below.
13302
13303         * menubar.c:
13304         * menubar.c (menu_parse_submenu_keywords):
13305         * menubar.c (Fmenu_find_real_submenu):
13306         * menubar.c (Fnormalize_menu_item_name):
13307         * menubar.c (syms_of_menubar):
13308         * menubar.c (vars_of_menubar):
13309         * menubar.c (complex_vars_of_menubar):
13310
13311         a) Cleaned up a bunch of documentation and improved it.
13312
13313         b) XEmacs now automatically adds an accelerator onto the beginning
13314         of any menu items that don't have one.  I did this because there
13315         will inevitably be some menu items on the main menubar that don't
13316         have accelerators on them because the package that adds that
13317         particular menu item hasn't yet been fixed up to have accelerators
13318         in them and it looked rather strange to have some items with and
13319         some items without accelerators, especially since even in items
13320         without accelerators, you can, at least under windows, still
13321         access the item through an accelerator corresponding to the first
13322         character in the item's name.  If people don't like this behavior,
13323         I can add a variable to turn it off optionally, but I'm not sure
13324         this is a good idea because we really do need to have accelerators
13325         on all of the menu items, and if a package doesn't like the
13326         accelerators being put on the first character, then it should put
13327         the accelerators where they belong.
13328
13329         c) I made a behavior change, which is that the descriptor that
13330         specifies the text of the menu item, which formerly was just a
13331         string, can now also be an evaluated expression.  This makes this
13332         descriptor parallel with all of the others, which could also be
13333         evaluated expressions.  This also obviates the need for the
13334         keyword :label, which was previously listed in the documentation
13335         as unimplemented, and which was for the same purpose.
13336
13337         d) GCPROing.
13338
13339         * ntproc.c:
13340         * ntproc.c (new_child):
13341         * ntproc.c (sys_spawnve):
13342         * ntproc.c (find_child_console):
13343         * ntproc.c (sys_kill):
13344         Fixed compile warnings.  By the way, this file should really go
13345         away entirely, and this will happen as soon as Kirill makes his
13346         final round of process cleanups, which affect the function
13347         call-process.
13348
13349         * process-nt.c:
13350         * process-nt.c (struct nt_process_data):
13351         * process-nt.c (find_process_from_pid):
13352         * process-nt.c (send_signal_the_nt_way):
13353         * process-nt.c (enable_child_signals):
13354         * process-nt.c (find_child_console):
13355         * process-nt.c (send_signal_the_95_way):
13356         * process-nt.c (nt_finalize_process_data):
13357         * process-nt.c (ensure_console_window_exists):
13358         * process-nt.c (nt_create_process):
13359         * process-nt.c (nt_kill_child_process):
13360         * process-nt.c (nt_kill_process_by_pid):
13361         * process-nt.c (nt_open_network_stream):
13362         * process-nt.c (vars_of_process_nt):
13363         Copied over code from Emacs 20.5 to correctly send signals to sub-
13364         processes under Windows 95.  Also added code to automatically
13365         create and hide console window when a sub-process is created under
13366         Windows 95, which obviates the need for the separate runemacs.exe
13367         executable, and finally implemented some variables that were
13368         implemented in Emacs 20.5, but previously not in XEmacs.  These
13369         include mswindows- start-process-share-console and
13370         mswindows-start-process-inherit-error-mode. (Both of these only
13371         apply to Windows 95.)
13372
13373         * regex.c (regex_compile): Fixed a compile warning.
13374
13375         * select-msw.c:
13376         * select-msw.c (mswindows_own_selection):
13377         * select-msw.c (mswindows_get_foreign_selection):
13378         * select-msw.c (mswindows_disown_selection):
13379         * select-msw.c (console_type_create_select_mswindows):
13380         * select-msw.c (syms_of_select_mswindows):
13381         Cleaned up the file and implemented the device method
13382         selection_exists_p, which had accidentally been left out.  Also
13383         removed four lisp functions that were remnants from before the
13384         time when the selection code was properly device abstracted.
13385         These functions are no longer needed because there are generic
13386         equivalents, and because they were added recently and don't exist
13387         in FSF Emacs, I don't think there's any problem with just deleting
13388         them.
13389
13390         * sysdep.c:
13391         * sysdep.c (sys_subshell):
13392         Fixed a compile warning, although in this case there's probably
13393         something wrong with this code, and it ought to be looked into
13394         more thoroughly by somebody who understands it.
13395
13396         * window.c:
13397         * window.c (Fwindow_text_area_height):
13398         * window.c (Fwindow_width):
13399         * window.c (Fwindow_full_width):
13400         * window.c (Fwindow_pixel_width):
13401         * window.c (debug_print_window):
13402         * window.c (syms_of_window):
13403         Added functions window-text-area-height and window-full-width,
13404         which are functions for returning various width and height
13405         characteristics of a window. (One of these functions is necessary
13406         for making the file dialog box work correctly, and the other one
13407         was added for completeness.)  Also added a table to the
13408         documentation for window-height which describes the entire scheme
13409         for accessing width and height characteristics of a window.
13410
13411 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13412
13413         * nt.c (fstat): Added a comment for another problem with
13414         non-encapsulated [f]stat(), reported by Adrian Aichner
13415         <aichner@ecf.teradyne.com>.
13416
13417 2000-03-11  Andy Piper  <andy@xemacs.org>
13418
13419         * window.c (make_dummy_parent): initialize subwindow instance
13420         cache.
13421         (Fset_window_configuration): zero extent_modiff.
13422
13423 2000-03-10  Andy Piper  <andy@xemacs.org>
13424
13425         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
13426         more changes can be triggered.
13427         (Fredisplay_frame): ditto.
13428         (Fredraw_device): ditto.
13429         (Fredisplay_device): ditto.
13430         (redisplay_frame): make non-static.
13431         (redisplay_frame): call update_frame_gutter_geometry outside of
13432         display proper.
13433
13434         * gutter.h: declare update_frame_gutter_geometry.
13435
13436         * redisplay.h: declare redisplay_frame.
13437
13438         * gutter.c (update_frame_gutter_geometry): move geometry changes
13439         in update_frame_gutters here. Geometry changes can only occur
13440         outside of redisplay.
13441         (update_frame_gutters): remove geometry change code.
13442         (Fredisplay_gutter_area): make sure that we are in display when we
13443         update and that we have flushed any size changes.
13444
13445 2000-03-11  Andy Piper  <andy@xemacs.org>
13446
13447         * alloc.c (pdump_dump_data): remove i & count shadows.
13448
13449 2000-02-27  Mike Alexander  <mta@arbortext.com>
13450
13451         * sysdep.h: Declare pdump_read_file
13452
13453         * sysdep.c (pdump_read_file): New function
13454
13455         * alloc.c (pdump_load): Call pdump_read_file to get the portable
13456         dump data
13457
13458 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
13459
13460         * lrecord.h: add `lrecord_type_pgsetenv'.
13461
13462 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
13463
13464         * symsinit.h: declare (vars|syms)_of* functions.
13465         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
13466
13467 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
13468
13469         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
13470
13471         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
13472         GCCs.
13473
13474         * emacs.c (main_1): Call postgres initialization code.
13475
13476         * postgresql.h: New file.  PostgreSQL RDBMS support.
13477         * postgresql.c: New file.
13478
13479 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
13480
13481         * redisplay-output.c (redisplay_output_display_block): Disable
13482         redundant code.
13483
13484 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
13485
13486         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
13487         (Fcanna_henkan_next): Ditto.
13488         (Fcanna_bunsetu_henkou): Ditto.
13489         (Fcanna_henkan_kakutei): Ditto.
13490         (Fcanna_henkan_end): Ditto.
13491         (Fcanna_henkan_quit): Ditto.
13492         (Fcanna_henkan_next): Set retun value correctly.
13493         (c2mu): Use unsigned char instead of signed char.
13494
13495 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
13496
13497         * emacs.c (main_1): Always call syms_of_gui.
13498         * inline.c: include gui.h
13499
13500 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
13501
13502         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
13503         converted to Lisp_Object.
13504         (Qtop_bottom): New variable.
13505         (syms_of_redisplay): Initialize it.
13506         * redisplay.h (Vvisible_bell): Ditto.
13507         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
13508         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
13509         only flash top and bottom.
13510
13511 2000-03-08  Andy Piper  <andy@xemacs.org>
13512
13513         * buffer.c (Frename_buffer): record new buffer name the right way.
13514
13515 2000-03-08  Andy Piper  <andy@xemacs.org>
13516
13517         * glyphs.c (update_subwindow): increase hash depth so that widget
13518         items get picked up properly.
13519
13520         * redisplay-output.c (compare_runes): increase hash depth so that
13521         widget items get picked up properly.
13522
13523 2000-03-08  Andy Piper  <andy@xemacs.org>
13524
13525         * gutter.c (output_gutter): add some debug.
13526
13527         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
13528         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
13529         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
13530
13531         * redisplay-output.c (compare_runes): use display_hash to
13532         determine if glyphs really are not the same.
13533
13534         * glyphs.c (update_subwindow): check display_hash to see if
13535         anything really needs to be updated. If not then do
13536         nothing. Record the display_hash after updating.
13537         (image_instance_equal): compare the image_instance face also.
13538
13539 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
13540
13541         * redisplay.h: Fix comment style.
13542
13543 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13544
13545         * consle-msw.h (struct mswindows_frame):
13546         Added new member paint_pending to indicate whether a WM_PAINT
13547         magic event has been queued for this frame.
13548
13549         * event-msw.c (mswindows_drain_windows_queue):
13550         Don't queue a WM_PAINT magic event if one is already queued.
13551         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
13552
13553         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
13554
13555 2000-03-07  Didier Verna  <didier@xemacs.org>
13556
13557         * dired.c: #include `regex.h' after `sysfile.h'.
13558
13559 2000-03-06  Martin Buchholz  <martin@xemacs.org>
13560
13561         * sound.c (init_nas_sound): Fix compiler warning.
13562
13563         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
13564         (FREE_STRUCT_P):
13565         (MARK_STRUCT_AS_FREE):
13566         (MARK_STRUCT_AS_NOT_FREE):
13567         Make `gcc -fstrict-aliasing' work properly.
13568
13569 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13570
13571         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
13572         (mswindows_delete_device): Call CoUnnitialize().
13573
13574         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
13575
13576 2000-02-25    <CraigL@DyCon.com>
13577
13578         * process-nt.c: MinGW now has <shellapi.h>, but still needs
13579         <errno.h>.
13580
13581         * sysdep.c: This extern declaration for environ prevents MinGW
13582         from finding the variable in CRTDLL.DLL.
13583
13584         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
13585         windows headers.
13586         (SHGFI_EXETYPE): ..
13587         (WM_MOUSEWHEEL): ..
13588         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
13589         definitions.
13590         (MMRESULT): Removed, now defined in cygwin's windows headers.
13591         (TIMECAPS): ..
13592         (uid_t,gid_t,pid_t,ssize_t): ..
13593         (_timeb): Removed, MinGW defines both _timeb and timeb.
13594         (HAVE_H_ERRNO): Added.
13595         (HAVE_TZNAME): Added, configure is not detecting this.
13596
13597 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
13598
13599         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
13600         * syntax.c (syntax_match): Use it.
13601
13602         * cmds.c: Import auto-fill-chars from FSF Emacs.
13603         (Vauto_fill_chars): New variables.
13604         (internal_self_insert): Check Vauto_fill_chars.
13605         (vars_of_cmds):
13606         Declare auto-fill-chars as a Lisp variable and initialize it.
13607
13608 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13609
13610         * fileio.c (Fmake_symbolic_link):
13611         (Ffile_symlink_p):
13612         Run handlers even if local machine doesn't have symlinks.
13613
13614 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13615
13616         * event-msw.c (mswindows_drain_windows_queue):
13617         Don't generate paint magic events for non-XEmacs frames.
13618
13619 2000-03-05  Andy Piper  <andy@xemacs.org>
13620
13621         * redisplay.c (redisplay_frame): generate_displayable_area and
13622         friends assumes that we are not in GC, we therefore have to make
13623         sure that this doesn't happen.
13624
13625         * gutter.c (calculate_gutter_size): generate_displayable_area
13626         assumes that we are not in GC, we therefore have to make sure that
13627         this doesn't happen.
13628
13629 2000-03-05  Martin Buchholz  <martin@xemacs.org>
13630
13631         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
13632
13633 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
13634
13635         * redisplay.c (regenerate_window): Make sure we set a sane value
13636         for end_pos even if we jump out of the loop.
13637         (regenerate_window): Answer Ben's question :-).
13638         (start_end_of_last_line): Add may_error argument.
13639         (start_of_last_line):
13640         (end_of_last_line): Pass may_error = 0.
13641         (end_of_last_line_may_error): New function.
13642         (pixel_to_glyph_translation): Use it, so we don't crash in
13643         event_to_glyph.
13644
13645 2000-03-04  Andy Piper  <andy@xemacs.org>
13646
13647         * window.h (struct window): add gutter_extent_modiff.
13648
13649         * window.c (allocate_window): zero out gutter_extent_modiff.
13650
13651         * redisplay.h: declare sync_display_line_structs.
13652
13653         * redisplay.c (add_glyph_rune): add a better comment.
13654
13655         * redisplay-output.c (sync_display_line_structs): made non-static.
13656         (compare_runes): remove unneccesary glyph cachel access.
13657
13658         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
13659
13660         * gutter.c (output_gutter): don't output the gutter if extent
13661         changes only involve extents in buffers. use 4 sets of display
13662         lines.
13663         (gutter_extent_signal_changed_region_maybe): new function. Mark
13664         extents in gutters as changed.
13665         (update_frame_gutters): use 4 sets of display lines.
13666         (reset_gutter_display_lines): ditto.
13667         (free_frame_gutters): ditto.
13668         (redraw_exposed_gutter): force output of gutters.
13669
13670         * frame.h (struct frame): add 4 sets of gutter display lines.
13671
13672         * extents.c: (extent_changed_for_redisplay): signal changes to
13673         extents in strings in the gutter as well as extents in buffers.
13674
13675 2000-03-02  Andy Piper  <andy@xemacs.org>
13676
13677         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
13678
13679         * frame.c (Fmake_frame): make sure the gutters get initialized
13680         after the frame is visible.
13681         (set_frame_selected_window): re-arrange compilation macros a
13682         little.
13683         (change_frame_size_1): mark gutters changed.
13684
13685         * device.c (Fset_device_class): mark gutters changed.
13686
13687 2000-03-01  Andy Piper  <andy@xemacs.org>
13688
13689         * window.c (window_top_frame_gutter_height): deleted.
13690         (window_bottom_frame_gutter_height): ditto.
13691         (window_left_frame_gutter_height): ditto.
13692         (window_right_frame_gutter_height): ditto.
13693         (window_top_gutter_height): don't use them.
13694         (window_bottom_gutter_height): ditto.
13695         (window_left_gutter_width): ditto.
13696         (window_right_gutter_width): ditto.
13697         (Fsplit_window): ditto.
13698         (Fwindow_pixel_edges): don't use border dimensions here.
13699
13700         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
13701         (update_scrollbar_instance): ditto.
13702
13703         * redisplay.c (generate_modeline): don't take gutters into account.
13704         (generate_modeline): ditto.
13705         (redisplay_frame): small gutter display optimization.
13706
13707         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
13708
13709         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
13710         gutters into account.
13711
13712         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
13713         for window position and type.
13714
13715         * gutter.c (get_gutter_coords): fix for frame gutters.
13716         (update_frame_gutters): update frame geometry if the gutters have
13717         changed.
13718         (init_frame_gutters): record current gutter geometries.
13719
13720         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
13721         var.
13722         (mswindows_widget_instantiate): ditto.
13723
13724         * frame.h (struct frame): add current_gutter_bounds.
13725
13726         * frame.c (change_frame_size_1): position window and minibuffer
13727         appropriately taking into account the frame gutters.
13728
13729         * frame-x.c: (x_initialize_frame_size): take into account the
13730         frame gutters.
13731
13732 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
13733
13734         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
13735
13736 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
13737
13738         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
13739
13740 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
13741
13742         * file-coding.c (reset_decoding_stream): Clear previous
13743         detection state when autodetect.
13744
13745 2000-02-29  Didier Verna  <didier@xemacs.org>
13746
13747         * extents.c (set_extent_glyph_1): don't require extents to be
13748         attached.
13749
13750 2000-02-27  Andy Piper  <andy@xemacs.org>
13751
13752         * gutter.c (Fset_default_gutter_position): don't default left and
13753         right gutter visibility to t.
13754         (Fset_default_gutter_position): run
13755         default-gutter-position-changed-hook.
13756         (syms_of_gutter): add default-gutter-position-changed-hook.
13757
13758 2000-02-26  Andy Piper  <andy@xemacs.org>
13759
13760         * specifier.c (Fmake_specifier): add gutter references.
13761
13762         * gutter.h (RAW_WINDOW_GUTTER): new macro.
13763
13764         * lisp.h: declare Fvalid_plist_p.
13765
13766         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
13767         as changed.
13768         (default_gutter_visible_p_changed_in_window): invalidate gutter as
13769         well as its visibility so that it gets reconstructed.
13770         (construct_window_gutter_spec): new function. Construct a string
13771         to be displayed in the gutter from a plist of strings. Take care
13772         to only use elements that are declared as visible.
13773         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
13774         WINDOW_GUTTER.
13775         (gutter_validate): allow plists of strings in the specifier.
13776         (gutter_specs_changed): construct the real_gutter from the gutter
13777         specs using construct_window_gutter_spec.
13778         (gutter_visible_validate): gutter-visible is a new specifier type.
13779         (Fgutter_visible_specifier_p): new function for the new specifier.
13780         (syms_of_gutter): declare gutter-visible and
13781         Fgutter_visible_specifier_p.
13782         (specifier_type_create_gutter): intitalize new gutter-visible
13783         specifier.
13784         (reinit_specifier_type_create_gutter): ditto.
13785         (specifier_vars_of_gutter): use new specifier type for gutter
13786         visibility.
13787         (init_frame_gutters): construct real_gutter correctly.
13788         (Fgutter_specifier_p): beef up documentation.
13789         (Fgutter_size_specifier_p): ditto.
13790
13791         * winslots.h: add real_gutter slots.
13792
13793 2000-02-25  Andy Piper  <andy@xemacs.org>
13794
13795         * device-msw.c: Be kind to older cygwin versions. From Raymond
13796         Toy <toy@rtp.ericsson.se>.
13797
13798         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
13799         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
13800
13801 2000-02-25  Martin Buchholz  <martin@xemacs.org>
13802
13803         * elhash.c (MARK_OBJ): Practice macro hygiene.
13804
13805 2000-02-24  Martin Buchholz  <martin@xemacs.org>
13806
13807         * miscplay.c: s/__inline__/inline/g;
13808         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
13809         (get_device_compdc): INLINE ==> static inline
13810         * *.[ch]: Change INLINE to INLINE_HEADER globally.
13811         find -name '*.h' | \
13812         xargs global-replace \
13813         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
13814
13815 2000-02-25  Andy Piper  <andy@xemacs.org>
13816
13817         * window.c (window_top_frame_gutter_height): new function.
13818         (window_top_window_gutter_height): ditto.
13819         (window_top_gutter_height): use them.
13820         (window_bottom_frame_gutter_height): new function.
13821         (window_bottom_window_gutter_height): ditto.
13822         (window_bottom_gutter_height): use them.
13823         (window_left_window_gutter_width): new function.
13824         (window_left_frame_gutter_width): ditto.
13825         (window_left_gutter_width): use them.
13826         (window_right_window_gutter_width): new function.
13827         (window_right_frame_gutter_width): ditto.
13828         (window_right_gutter_width): use them.
13829         (window_pixel_height): new function. calulate window pixel height
13830         with frame gutter involvement.
13831         (Fsplit_window): calculate new sizes taking frame gutters into
13832         account.
13833         (window_char_height_to_pixel_height): don't include frame gutters.
13834         (window_char_height): use window_pixel_height.
13835         (window_pixheight): rename from window_pixel_height.
13836         (change_window_height): use it.
13837         (window_pixel_height_to_char_height): don't include frame gutters.
13838         (window_char_width_to_pixel_width): ditto.
13839
13840 2000-02-25  Andy Piper  <andy@xemacs.org>
13841
13842         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
13843         if it is.
13844
13845 2000-02-24  Martin Buchholz  <martin@xemacs.org>
13846
13847         * alloc.c (staticpro):
13848         (staticpro_nodump):
13849         (dumpstruct):
13850         (dumpopaque):
13851         (pdump_wire):
13852         (pdump_wire_list):
13853         (compact_string_chars):
13854         (pdump_dump_wired):
13855         Convert:  if (foo) abort();  ==>  assert (! foo);
13856
13857         * eldap.c (Fldap_search_basic):
13858         (Fldap_add):
13859         (Fldap_modify):
13860         (Fldap_delete):
13861         Fix compiler warnings, and possible crashes if (random) return
13862         value were to be used.
13863
13864 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13865
13866         * device-msw.c: Workaround ResetDC failure.
13867
13868         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
13869         applying a devmode.
13870
13871         * redisplay-msw.c (get_frame_dc): Added start_page_p.
13872         (mswindows_text_width): Do not start printer page.
13873
13874         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
13875
13876         * glyphs-msw.c: Added image methods to msprinter console and
13877         msprinter-specific image instantiation.
13878
13879 2000-02-20  Mike Alexander  <mta@arbortext.com>
13880
13881         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
13882         to avoid crashes when selection-sets-clipboard is on
13883         (mswindows_own_selection): ditto
13884
13885 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13886
13887         * glyphs-msw.c:
13888         * redisplay-msw.c (get_frame_dc):
13889         (get_frame_compdc):
13890         * console-msw.h:
13891         * device-msw.c (mswindows_init_device):
13892         (mswindows_delete_device):
13893         (msprinter_init_device):
13894         (msprinter_delete_device):
13895         * frame-msw.c (mswindows_init_frame_1):
13896         (mswindows_delete_frame):
13897         (msprinter_init_frame_3):
13898         (msprinter_delete_frame): Move compatible DC to device object from
13899         frame object, for both mswindows and msprinter. Only one at a time
13900         is needed, it is a real waste to have one per frame!
13901
13902 2000-02-23  Andy Piper  <andy@xemacs.org>
13903
13904         * glyphs.c: add dynamic width and height elements.
13905         (image_instance_equal): ditto.
13906
13907         * glyphs-widget.c (widget_query_geometry): calculate width and
13908         height dynamically if required.
13909         (initialize_widget_image_instance): initialize dynamic dimensions.
13910         (widget_instantiate): pick-up dynamic dimensions.
13911
13912         * glyphs.h (struct Lisp_Image_Instance): add width and height for
13913         dynamic determination. Add appropriate macros.
13914
13915         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
13916         dimensions safe.
13917         (WINDOW_GUTTER_SIZE): ditto.
13918         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
13919
13920         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
13921         inline.
13922         (get_frame_dc): ditto.
13923
13924         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
13925         here.
13926
13927 2000-02-23  Martin Buchholz <martin@xemacs.org>
13928
13929         * XEmacs 21.2.31 is released.
13930
13931 2000-02-22  Ben Wing <ben@xemacs.org>
13932
13933         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
13934
13935 2000-02-22  Andy Piper  <andy@xemacs.org>
13936
13937         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
13938
13939 2000-02-21  Mike Sperber <mike@xemacs.org>
13940
13941         * .dbxrc:
13942         * .gdbinit:
13943         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
13944         variables.
13945
13946 2000-02-21  Mike Sperber <mike@xemacs.org>
13947
13948         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
13949
13950 2000-02-21  Martin Buchholz <martin@xemacs.org>
13951
13952         * XEmacs 21.2.30 is released.
13953
13954 2000-02-20  Martin Buchholz  <martin@xemacs.org>
13955
13956         Performance hacking.
13957         * *.c (syms_of_*):
13958         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
13959         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
13960         * emacs.c (main_1):
13961         * lisp.h (DEFUN):
13962         * console.c (DEFVAR_CONSOLE_LOCAL_1):
13963         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
13964         * symeval.h (DEFVAR_SYMVAL_FWD):
13965         * symbols.c (guts_of_unbound_marker):
13966         Make all c_readonly objects also lisp_readonly and marked for life.
13967         * lrecord.h (struct lrecord_implementation):
13968         Document flags better.
13969         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
13970         * lrecord.h (DECLARE_LRECORD):
13971         * lrecord.h (XSETRECORD):
13972         * lrecord.h (RECORDP):
13973         * lrecord.h (RECORD_TYPEP):
13974         * lrecord.h (RECORD_MARKER): New.
13975         * lrecord.h (error_check_*):
13976         * lrecord.h (CONCHECK_NONRECORD):
13977         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
13978         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
13979         * lrecord.h (set_lheader_implementation):
13980         * lrecord.h (enum lrecord_type): New.
13981         * symeval.h (SYMBOL_VALUE_MAGIC_P):
13982         * alloc.c (disksave_object_finalization_1):
13983         * alloc.c (mark_object):
13984         * alloc.c (lrecord_type_index):
13985         * alloc.c (tick_lcrecord_stats):
13986         * alloc.c (Fgarbage_collect):
13987         * alloc.c (init_alloc_once_early):
13988         * alloc.c (pdump_load):
13989         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
13990         * alloc.c (lrecord_type_index): Delete.
13991         Make lisp object type indexes be constant.
13992           Makes (byte-compile) 5% faster.
13993         Put all marker functions into their own array.
13994           Makes (garbage-collect) 5% faster.
13995         Optimize SYMBOL_VALUE_MAGIC_P.
13996           Makes (byte-compile) 2-3% faster.
13997         * config.h.in (gc_checking_assert): New.
13998         * alloc.c: Use gc_checking_assert().
13999         * .dbxrc: Make compatible with new object type implementation.
14000         * .gdbinit: Make compatible with new object type implementation.
14001         * alloc.c: Delete all symbols defined only for debugging, such as
14002         Lisp_Type_Vector and lrecord_charset.
14003
14004 2000-02-21  Andy Piper  <andy@xemacs.org>
14005
14006         * gui-msw.c (Fmswindows_shell_execute): fix file location
14007         problems.
14008
14009         * buffer.c (Fkill_buffer): remove buffer from alist buffer
14010         unshowing so that set_window_buffer doesn't undo
14011         kill_buffer_hook's hard work.
14012
14013         * glyphs-widget.c (tab_control_query_geometry): don't count the
14014         first item when calculating geometry.
14015
14016         * glyphs.c (map_subwindow): remove redundant code.
14017         (update_frame_subwindows): be more circumspect about when to
14018         update subwindows.
14019
14020         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
14021         when items haven't changed. Update faces if faces have changed as
14022         well as just the widget face.
14023         (x_tab_control_update): Update faces if faces have changed as well
14024         as just the widget face.
14025
14026 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14027
14028         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
14029         registration.
14030         (build_syscolor_string): Use mswindows_color_to_string to try to
14031         get a named color.
14032         (mswindows_device_system_metrics): Reverse the foreground and
14033         background colors so that they match the documentation.
14034
14035         * objects-msw.c: (mswindows_X_color_map): tweak some values so
14036         they match the default Windows palette.
14037         (mswindows_color_to_string): New function.
14038
14039 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14040
14041         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
14042
14043 2000-02-18  Olivier Galibert  <galibert@pobox.com>
14044
14045         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
14046         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
14047
14048         * symbols.c (init_symbols_once_early): Removed obsolete
14049         DATA_SEG_BITS related kludge.
14050         (defvar_magic): Ditto.
14051
14052         * malloc.c: Removed obsolete DATA_SEG_BITS
14053         * ralloc.c: Ditto.
14054         * mem-limits.h: Ditto.
14055
14056         * Makefile.in.in: Removed obsolete HAVE_SHM
14057         * emacs.c: Ditto.
14058
14059 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14060
14061         *  device-msw.c (mswindows_delete_device): Free DDE string
14062         handles.
14063
14064 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14065
14066         * keymap.c (get_keyelt):
14067         * unexnt.c (unexec):
14068         * vm-limit.c (memory_warnings):
14069         * ntheap.c (recreate_heap):
14070         * ntheap.h (UNINIT_PTR):
14071         * select-msw.c (Fmswindows_get_clipboard):
14072         (Fmswindows_set_clipboard):
14073         * objects-msw.h (MSWINDOWS_BAD_HFONT):
14074         * objects-msw.c:
14075         * menubar-msw.c (displayable_menu_item):
14076         * glyphs-msw.c:
14077         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
14078         * sysdep.c (sys_subshell):
14079         * process-nt.c (nt_create_process):
14080         * nt.c (normalize_filename):
14081         (dostounix_filename):
14082         (unixtodos_filename):
14083         * ntproc.c (win32_executable_type):
14084         * ntplay.c (play_sound_data_1):
14085         (play_sound_file):
14086         * editfns.c (get_home_directory):
14087         * event-msw.c (struct winsock_stream):
14088         (mswindows_dde_callback):
14089         * device-msw.c (msprinter_init_device):
14090         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
14091
14092         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
14093         mswindows_clear_toolbar were swapped!
14094
14095         * objects-msw.c:(colormap_t):
14096         (fontmap_t):
14097         * emacs.c (struct standard_args): Fixed const jumble.
14098
14099         * glyphs-widget.c (update_widget): Fixed comparison notation.
14100
14101         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
14102
14103         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
14104         __declspec(noreturn) syntax.
14105
14106 2000-02-19  Martin Buchholz  <martin@xemacs.org>
14107
14108         * eldap.c (Fldap_open):
14109         (Fldap_search_basic):
14110         (Fldap_add):
14111         (Fldap_modify):
14112         Use new coding system conversion macros.
14113
14114 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14115
14116         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
14117
14118 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
14119
14120         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
14121         (Fldap_add, Fldap_modify, Fldap_delete): New functions
14122
14123         * eldap.c (Qadd, Qreplace): New constant symbols
14124         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
14125         interruptions by XEmacs signals
14126         Remove unnecessary calls to slow_down_interrupts and
14127         speed_up_interrupts
14128         (Fldap_search_basic): Renamed from Fldap_search_internal
14129         Added new optional parameter VERBOSE that triggers the
14130         display of progress messages
14131         Remove unnecessary calls to slow_down_interrupts and
14132         speed_up_interrupts
14133         LDAP result code analysis rewritten
14134         (Fldap_add, Fldap_modify, Fldap_delete): New functions
14135         (syms_of_eldap): Define the new symbols and functions
14136
14137
14138 2000-02-17  Martin Buchholz  <martin@xemacs.org>
14139
14140         * realpath.c: Determine PATH_MAX maximally portably.
14141
14142         * insdel.c (bytecount_to_charcount): Optimize.
14143         The function used to be optimized for entirely ASCII sequences.
14144         Now it is optimized for successive characters from the same
14145         charset.  This also wins big for _mostly_ ASCII sequences.
14146
14147         * fileio.c (Ffile_truename): convert return from realpath() using
14148         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
14149         - Rewrite GCPROing slightly.
14150
14151         * sysdep.c (sys_open): Do filename conversion, like all other
14152         sys_* functions.  Fixes bug:
14153         (let ((file-name-coding-system 'iso-8859-2))
14154            (write-region x y latin2-name))
14155         ==> writes filename using internal encoding.
14156
14157 2000-02-18  Martin Buchholz  <martin@xemacs.org>
14158
14159         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
14160         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
14161         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
14162         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
14163         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
14164         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
14165         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
14166         (CONST_IF_NOT_DEBUG): Delete.
14167         * alloc.c (this_one_is_unmarkable): Delete.
14168         (mark_object): Don't check for this_one_is_unmarkable. Use the
14169         c_readonly flag instead.
14170         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
14171
14172 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14173
14174         * event-msw.c (mswindows_drain_windows_queue):
14175         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
14176         away redundant repaint events.
14177
14178 2000-02-17  Andy Piper  <andy@xemacs.org>
14179
14180         * redisplay.h: declare mark_redisplay_structs.
14181
14182         * redisplay.c (redisplay_window):
14183         (redisplay_frame): don't check subwindows_state_changed.
14184         (mark_redisplay): mark gutters here.
14185
14186         * glyphs.c: (instantiate_image_instantiator): always layout if we
14187         haven't done so already.
14188         (allocate_image_instance): don't mark as dirty.
14189         (update_subwindow): bind inhibit_quit.
14190
14191         * gutter.c (mark_gutters): new function.
14192
14193         * glyphs-x.c (x_update_widget): Always resize to get round a
14194         widget bug.
14195
14196         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
14197         breaking absolutely everything.
14198
14199         * gutter.h: declare mark_gutters.
14200
14201 2000-02-16  Martin Buchholz <martin@xemacs.org>
14202
14203         * XEmacs 21.2.29 is released.
14204
14205 2000-02-15  Olivier Galibert  <galibert@pobox.com>
14206
14207         * fns.c (size_bit_vector): Fix computation of the size.
14208
14209 2000-02-15  Martin Buchholz  <martin@xemacs.org>
14210
14211         * *.[ch]: Change CONST to const globally.
14212         find -name '*.[ch]' | \
14213         xargs global-replace \
14214         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
14215         - Remove vestigial references to CONST_IS_LOSING
14216
14217 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14218
14219         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
14220         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
14221         events instead of dispatching them directly.
14222         (mswindows_handle_paint): New function to do repainting.
14223         (mswindows_wnd_proc):
14224         (emacs_mswindows_handle_magic_event): Call above function.
14225
14226 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14227
14228         * objects-msw.c (mswindows_create_font_variant): Return the new
14229         font handle.
14230         (initialize_font_instance): Get font metrics from the underlined
14231         variant of the font to cope with the case where the underlined
14232         font has a bigger descent.
14233
14234 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
14235
14236         * gui.c (gui_item_accelerator): Return the first underlined
14237         character in item name.
14238
14239 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14240
14241         * lisp.h: Added Qprinter.
14242
14243         * general.c (syms_of_general): Initialized it.
14244
14245         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
14246         (get_frame_dc):
14247         (get_frame_compdc): Made inline.
14248
14249         * console.h (struct console_methods): Added eject_page method.
14250
14251         * frame.h: Added FRAME_DISPLAY_P and friends.
14252         Aligned backslahes in many macros in more readable fashion.
14253         Added page_number to struct frame, and an accessor macro
14254         for it.
14255
14256         * defice.h: Added DEVICE_DISPLAY_P and friends.
14257
14258         * device.c (Fdevice_printer_p): Used these.
14259
14260         * frame.c (allocate_frame_core): Initialize page number.
14261         (Fprint_job_page_number):
14262         (Fprint_job_eject_page): Implemented.
14263
14264         * frame-msw.c (msprinter_eject_page): Added method.
14265         (msprinter_start_page): Added.
14266
14267         * window.c (Fwindow_truncated_p): Fixed docstring.
14268         (Fwindow_last_line_visible_height): Implemented.
14269
14270 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14271
14272         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
14273
14274 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14275
14276         * syntax.c (scan_words): Always advance at least one character.
14277
14278 2000-02-13  Andy Piper  <andy@xemacs.org>
14279
14280         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
14281         to make sure the glyph is in the cachels.
14282
14283         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
14284         global image instance flag.
14285         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
14286         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
14287
14288         * glyphs.c (allocate_image_instance): set dirty bits correctly.
14289         (Fset_image_instance_property): mark layout as changed.
14290         (invalidate_glyph_geometry_maybe): mark layout as changed.
14291         (glyph_width): use new NEEDS_LAYOUT macro.
14292         (glyph_ascent): ditto.
14293         (glyph_descent): ditto.
14294         (glyph_height): ditto.
14295         (image_instance_layout): mark layout as clean after laying out.
14296         (update_subwindow): don't mark layout as clean here.
14297
14298         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
14299         should no longer be needed.
14300
14301         * glyphs-x.c (x_update_widget): sanitize asserts.
14302         (x_finalize_image_instance): sanitize assignment to widgets.
14303
14304         * glyphs-widget.c (widget_instantiate): don't need to clear the
14305         layout flag here.
14306
14307 2000-02-13  Martin Buchholz  <martin@xemacs.org>
14308
14309         * sysdep.c (getcwd): Use standard prototype.
14310         * sysdep.h (getcwd): Use standard prototype.
14311
14312         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
14313         (sequence, start, end).
14314         Remove redundant type checking.
14315         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
14316         view of `caller-protects') to avoid a crash where the real fix was
14317         found elsewhere.
14318
14319 2000-02-12  Martin Buchholz  <martin@xemacs.org>
14320
14321         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
14322
14323         * s/sol2.h: Remove feature macro initialization.
14324
14325         * alloc.c (alloc_lcrecord): Add more type checking assertions.
14326         (vector_hash): New.  Code from internal_hash.
14327         * lrecord.h:
14328         Fix up allocation subsystem comments.
14329
14330         * config.h.in: Add __EXTENSIONS__ for Solaris.
14331
14332         * systime.h (EMACS_GETTIMEOFDAY): New.
14333         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
14334         Remove Solaris-specific code.
14335         Use void* for the (ignored) second arg for gettimeofday().
14336
14337         * elhash.c (hash_table_hash): Implement it, finally.
14338         * elhash.c:  Use hashcode_t.
14339
14340         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
14341         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
14342
14343         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
14344         * fns.c (size_bit_vector):
14345         * alloc.c (size_vector):
14346         (make_vector_internal):
14347         (make_bit_vector_internal):
14348         (sweep_bit_vectors_1):
14349         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
14350
14351 2000-02-10  Martin Buchholz  <martin@xemacs.org>
14352
14353         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
14354         Include strings.h to avoid warnings for bzero and strcasecmp.
14355
14356 2000-02-10  Olivier Galibert  <galibert@pobox.com>
14357
14358         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
14359         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
14360
14361         * fns.c (size_bit_vector): New.  Declare bit vectors as a
14362         sequence.
14363
14364 2000-02-10  Olivier Galibert  <galibert@pobox.com>
14365
14366         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
14367         use a value field instead.
14368         (symbol_value_forward_forward): Use value field.
14369         (DEFVAR_SYMVAL_FWD): Use value field.
14370         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
14371         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
14372         (DEFVAR_CONST_INT): Ditto.
14373         (DEFVAR_BOOL): Ditto.
14374         (DEFVAR_CONST_BOOL): Ditto.
14375         (DEFVAR_INT_MAGIC): Ditto.
14376         (DEFVAR_BOOL_MAGIC): Ditto.
14377
14378         * symbols.c (guts_of_unbound_marker): Use value field.
14379         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
14380         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
14381
14382         * lisp.h: Declare dumpopaque and noninteractive1.
14383
14384         * alloc.c (dumpopaque): Added.
14385         (pdump_dump_opaquevec): Added.
14386         (pdump): Call pdump_dump_opaquevec to dump opaque data.
14387         (pdump_load): Reload opaque data.  Sync noninteractive1 with
14388         noninteractive.
14389
14390 2000-02-10  Andy Piper  <andy@xemacs.org>
14391
14392         * glyphs.c (image_instance_layout): if the size changes, mark it
14393         as such.
14394
14395         * redisplay-output.c (redisplay_output_layout): Update the
14396         subwindow here.
14397         (redisplay_output_subwindow): ditto.
14398
14399         * glyphs.c (update_subwindow): make sure we reset flags for
14400         layouts as well as everything else.
14401
14402         * glyphs-widget.c (layout_layout): don't need to set the instances
14403         dimensions here.
14404
14405 2000-02-09  Martin Buchholz  <martin@xemacs.org>
14406
14407         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
14408         not HAVE_DLOPEN, which is a lower-level thing.
14409
14410         * .cvsignore: Ignore gmon.out
14411
14412 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
14413
14414         * .cvsignore: Ignore portable dumper xemacs.dmp file
14415
14416 2000-02-09  Andy Piper  <andy@xemacs.org>
14417
14418         * redisplay-output.c (redisplay_output_layout): be more clever
14419         about when we output based on the changed flags.
14420
14421         * glyphs.h (struct image_instantiator_methods): add update_method.
14422         (struct Lisp_Image_Instance): add changed flags. Declare new
14423         macros for manipulating them.
14424
14425         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
14426         (image_instance_parent_glyph): find an image_instance's parent
14427         glyph or image_instance.
14428         (image_instance_layout): mark the size as changed.
14429         (set_image_instance_dirty_p): new function. mark an image
14430         instance, plus all of its parents, as dirty.
14431         (Fset_image_instance_property): use it.
14432         (Fglyph_animated_timeout_handler): use it.
14433         (update_subwindow): call update_widget and device methods for
14434         update_subwindow. Mark all changed flags as clean.
14435         (Fresize_subwindow): mark size as changed.
14436
14437         * glyphs-x.c (x_finalize_image_instance): try and detect gc
14438         failures.
14439         (x_update_subwindow): only resize subwindows here.
14440         (x_update_widget): new function. Update all changed properties of
14441         a widget.
14442         (x_resize_subwindow): deleted.
14443         (x_widget_set_property): deleted.
14444         (x_progress_gauge_set_property): deleted.
14445         (x_progress_gauge_update): new function. Implement recorded
14446         changes.
14447         (x_tab_control_update): ditto.
14448         (x_tab_control_set_property): deleted.
14449         (console_type_create_glyphs_x): declare new functions.
14450         (image_instantiator_format_create_glyphs_x): ditto.
14451
14452         * glyphs-widget.c (widget_set_property): mark text changed.
14453         (update_widget): new function. Update properties of a widget.
14454         (widget_instantiate): for layouts make sure we set their
14455         children's parent correctly.
14456         (tab_control_set_property): new function. Record changes that will
14457         take place under redisplay's control.
14458         (progress_gauge_set_property): ditto.
14459         (image_instantiator_progress_guage): declare new functions.
14460         (image_instantiator_tab_control): ditto.
14461
14462         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
14463         now.
14464         (mswindows_update_widget): new function. Update all properties on
14465         a widget that have changed.
14466         (mswindows_button_update): new function. Update a button's set
14467         state.
14468         (mswindows_tab_control_update): new function. Update the items in
14469         a tab.
14470         (mswindows_tab_control_set_property): deleted.
14471         (mswindows_progress_gauge_update): new function. Update the
14472         progress gauge's progress.
14473         (mswindows_widget_set_property): deleted. This is all done
14474         asynchronously now.
14475         (mswindows_progress_gauge_set_property): ditto.
14476         (console_type_create_glyphs_mswindows): declare new methods.
14477         (image_instantiator_format_create_glyphs_mswindows): ditto.
14478
14479         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
14480         (msprinter_set_frame_properties): ditto.
14481
14482         * console.h (struct console_methods): Add update_widget_method.
14483
14484 2000-02-09  Andy Piper  <andy@xemacs.org>
14485
14486         * gui-msw.c (Fmswindows_shell_execute): Make
14487         mswindows-shell-execute industrial strength.
14488
14489 2000-02-08  Martin Buchholz  <martin@xemacs.org>
14490
14491         * lrecord.h: Make macro argument `props' match member function `plist'.
14492         * fns.c (Fget):
14493         * fns.c (Fput):
14494         * fns.c (Fremprop):
14495         * fns.c (Fobject_plist):
14496         * alloc.c:
14497         * symbols.c:
14498         Object property list frobbing cleanup.
14499         - Allow any lisp object (compared with `eq'), not just symbols, as
14500           keys in object plists.
14501         - Move symbol plist frobbing into symbols.c, where it belongs.
14502         - Move string plist frobbing into alloc.c, where it belongs.
14503         - Everything's an lrecord now, so no need to test for symbolp, etc.
14504         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
14505
14506         * extents.c: Reorder code to remove declarations.
14507
14508         * frame.h (store_in_alist): Remove useless declaration.
14509
14510 2000-02-07  Martin Buchholz  <martin@xemacs.org>
14511
14512         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
14513         * config.h.in: Add HAVE_XCONVERTCASE.
14514
14515 2000-02-07  Andy Piper  <andy@xemacs.org>
14516
14517         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
14518         it breaks many things.
14519
14520 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
14521
14522         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
14523         actually can start a common comment type.
14524         * src/syntax.h (SYNTAX_END_P): ditto for end.
14525
14526 2000-02-07  Martin Buchholz <martin@xemacs.org>
14527
14528         * XEmacs 21.2.28 is released.
14529
14530 2000-02-06  Martin Buchholz  <martin@xemacs.org>
14531
14532         * event-Xt.c (x_keysym_to_character): New.
14533         (maybe_define_x_key_as_self_inserting_character): New.
14534         (x_has_keysym): New.
14535         Auto-define all keys on the keyboard as self-insert-key.
14536
14537 2000-02-02  Martin Buchholz  <martin@xemacs.org>
14538
14539         * menubar.c (vars_of_menubar): A small code simplification.
14540
14541         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
14542
14543         * ExternalShell.c:
14544         * ExternalClient.c:
14545         * EmacsShell-sub.c:
14546         * EmacsManager.c:
14547         * EmacsFrame.c:
14548         Use consistent style for specifying X resources.
14549
14550         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
14551         This makes (dontusethis-set-symbol-value-handler) actually usable.
14552
14553         * lrecord.h (lrecord_decription_type):
14554         * alloc.c (pdump_register_sub):
14555         (pdump_dump_data):
14556         (pdump_reloc_one):
14557         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
14558         Comply with XEmacs coding style.
14559         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
14560         args, and XD_LISP_OBJECT_ARRAY with 3 args.
14561
14562         * keymap.c (Faccessible_keymaps):
14563         Make (accessible-keymaps map "\C-h") do the Right Thing.
14564         Make (accessible-keymaps map []) do the Right Thing.
14565         Make (accessible-keymaps map "") do the Right Thing.
14566         (check_keymap_definition_loop): New function.
14567         (keymap_store_internal): Keep luser from shooting self in foot,
14568           via (define-key ctl-x-4-map "p" global-map).
14569         Remove fullness slot from struct Lisp_Keymap, since hash tables
14570         are now reliable.
14571         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
14572
14573 2000-01-30  Martin Buchholz  <martin@xemacs.org>
14574
14575         * redisplay.c (init_redisplay): Fix small memory leak.
14576         * elhash.h:
14577         * elhash.c (pdump_reorganize_hash_table):
14578         Rename from reorganize_hash_table. Change prototype.
14579         Reuse the original memory for hentries.  Save 100k.
14580         * alloc.c (PDUMP_READ): new macro.
14581         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
14582         * alloc.c: No need to #ifndef before #undef.
14583
14584         * print.c: Allow debug_print() to print readably by modifying
14585         debug_print_readably.  Use consistent variable names.
14586
14587         * .dbxrc: Try to get things to work even if stopped in a function
14588         without source available by explicitly specifying source files.
14589 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14590
14591         * unexnt.c (_start): Removed bogus code which caused loading heap
14592         from differrent executable file.
14593         Removed bogus assignment to _fmode, which caused inconsistencies.
14594
14595 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14596
14597         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
14598         Have spawnve encapsulation regard DONT_ENCAPSULATE.
14599         Do not preliminary `#define signal sigset'.
14600
14601         * systime.h: Do not prototype environ on windows nt and cygwin,
14602         this conflicts with system header.
14603
14604         * syssignal.h: Use correct define for WINDOWSNT
14605
14606         * sysdep.h: Do not prototype environ on windows nt, this conflicts
14607         with system header.
14608
14609         * sysdep.c (near start of file): Fixed commentary and rearranged
14610         ifdefs in readable order.
14611         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
14612         (start_of_text):
14613         (end_of_text):
14614         (end_of_data): Do not compile in if using PDUMP.
14615
14616         * symsinit.h: Prototyped vars_of_nt().
14617
14618         * ntproc.c (windows9x_p): Added, instead of os_subtype.
14619         (find_child_console): Use it.
14620         (sys_kill): Use it.
14621
14622         * ntheap.h: Do not extern os_subtype.
14623
14624         * ntheap.c (cache_system_info): Do not cache unneeded:
14625         nt_major_version, nt_minor_version and os_subtype.
14626         (recreate_heap): Do not compile in when PDUMPing.
14627
14628         * nt.c (geteuid and friends): Use the new varibale
14629         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
14630         (init_user_info): Removed the above mentioned hackery.
14631         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
14632         stat has been fixed in the C runtime.
14633         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
14634
14635         * file-coding.c (struct file_coding_dump): Do not define
14636         ucs_to_mule_table in the struct if not MULE.
14637         (struct struct lrecord_description fcd_description_1): Do not dump
14638         the above.
14639
14640         * emacs.c (main_1): Call vars_of_nt().
14641         (right before Fdump_emacs_data): Don't need lastfile if using both
14642         portabe dumper and system malloc.
14643
14644         * alloc.c (Fmemory_limit): Conditionalized out.
14645         (pdump): Use OPEN_BINARY for the portable dump file.
14646         (pdump_load): Ditto.
14647
14648 2000-02-02  Mike Alexander  <mta@arbortext.com>
14649
14650         * nt.c (convert_time): Set tm_isdst before calling mktime and
14651         avoid calling it at all if the compiler supports 64 bit integers.
14652         Also initialize utc_base_ft before using it.
14653
14654 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
14655
14656         * frame.c (change_frame_size_1): Take f->internal_border_width
14657         into consideration when calculating the width of the frame.
14658
14659 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14660
14661         * window.c (frame_min_height):
14662         (frame_size_valid_p):
14663         (frame_pixsize_valid_p): Added.
14664         (check_frame_size): Generalized.
14665
14666         * window.h: Prototyped the above.
14667
14668         * lisp.h:
14669         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
14670         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
14671         Deleted Vwin32_* and Vbinary_process_* unused variables.
14672
14673         * device-msw.c (msprinter_init_device): Do not get printer font
14674         list; Added DEVMODE functions.
14675
14676         * frame-msw.c: Added lots of printer code.
14677
14678         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
14679         general.c.
14680
14681         * console-msw.h: Added more msprinter device private slots.
14682
14683 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14684
14685         * event-msw.c (key_needs_default_processing_p): Added.
14686         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
14687
14688 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14689
14690         * glyphs.c (image_instance_layout): Mark image instance as clean
14691         after layout.
14692         (glyph_dirty_p): Removed redundant function.
14693         (invalidate_glyph_geometry_maybe): Added.
14694         (update_glyph_cachel_data): Call it.
14695
14696         * glyphs.h: Prototyped it.
14697
14698         * redisplay.c (add_glyph_rune): Call it.
14699         (redisplay_window): Reset glyphs cachels when frame faces have
14700         changed, thus forcing recomputation of built-in border glyphs.
14701
14702 2000-01-30  Martin Buchholz  <martin@xemacs.org>
14703
14704         * Makefile.in.in: Make portable dumper and purify play well together.
14705         Add imperfect, but better than nothing, support for pdump.
14706         Remove xemacs.dmp when temacs is re-generated.
14707         Don't ignore errors when dumping xemacs.
14708
14709         * symbols.c (maybe_call_magic_handler): Remove one magic number.
14710
14711 2000-01-28  Andy Piper  <andy@xemacs.org>
14712
14713         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
14714         (setup_normal_frame): ditto.
14715         (setup_frame_without_minibuffer): ditto.
14716         (setup_minibuffer_frame): ditto.
14717         (delete_frame_internal): ditto.
14718         (Fmake_frame_invisible): ditto.
14719         (Ficonify_frame): ditto.
14720
14721         * window.h: change Fset_window_buffer signature.
14722
14723         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
14724         (Fset_window_buffer): allow recording of buffer if the window is
14725         the selected window.
14726         (window_loop): Use new Fset_window signature.
14727
14728 2000-01-23  Daniel Pittman  <daniel@danann.net>
14729
14730         * config.h.in: Added template for `HAVE_ATHENA_3D'
14731
14732 2000-01-29  Andy Piper  <andy@xemacs.org>
14733
14734         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
14735
14736         * gutter.c (output_gutter): Don't output if the window isn't live.
14737
14738 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14739
14740         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
14741         of 01/12/00: Moved SetFocus back here where it belongs.
14742
14743 2000-01-23  Andy Piper  <andy@xemacs.org>
14744
14745         * s/cygwin32.h: declare printer things.
14746
14747 2000-01-26  Andy Piper  <andy@xemacs.org>
14748
14749         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
14750         Alexander.
14751
14752 2000-01-24  Andy Piper  <andy@xemacs.org>
14753
14754         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
14755         (mswindows_button_instantiate): Make sure glyph is a pixmap.
14756
14757         * glyphs-widget.c (widget_instantiate): Avoid shadows.
14758
14759         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
14760
14761         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
14762
14763         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
14764         (mswindows_output_display_block): Avoid local shadows.
14765
14766         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
14767         (mswindows_enqueue_mouse_button_event): ditto.
14768         (mswindows_handle_gui_wm_command): remove declaration.
14769
14770         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
14771         warnings.
14772
14773         * console-msw.h: Avoid shadows.
14774         (mswindows_get_toolbar_button_text):
14775         (emacs_mswindows_create_stream_pair):
14776         (emacs_mswindows_delete_stream_pair):
14777         (mswindows_handle_toolbar_wm_command): declare.
14778
14779         * device-msw.c (build_syscolor_string): Avoid shadows.
14780
14781 2000-01-23  Andy Piper  <andy@xemacs.org>
14782
14783         * glyphs-widget.c (widget_instantiate): reverse the items for
14784         layouts so that children are in the expected order.
14785
14786 2000-01-28  Martin Buchholz  <martin@xemacs.org>
14787
14788         * ralloc.c: safe_bcopy ==> memmove
14789         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
14790         * s/msdos.h: Remove BCOPY macros.
14791         * insdel.c (gap_right): Remove BCOPY conditional code.
14792         * insdel.c (gap_left): Remove BCOPY conditional code.
14793         XEmacs demands a working ANSI C compiler - hence memmove.
14794
14795         * regex.c (regex_compile): Remove accidental use of trigraphs.
14796
14797 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14798
14799         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
14800         event timestamp.
14801
14802 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14803
14804         * event-msw.c (mswindows_drain_windows_queue): Added the
14805         parameter.
14806         (mswindows_need_event): Commented the call to
14807         mswindows_drain_windows_queue().
14808         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
14809         only.
14810
14811         * console-msw.h: Moved a few function prototypes here from
14812         event-msw.c.
14813
14814         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
14815         parameter from unsigned short to unsigned long.
14816         (Fmswindows_shell_execute): Added return value.
14817
14818 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
14819
14820         * sysdep.c (init_system_name):
14821           process-unix.c (unix_canonicalized_host_name):
14822         Don't call freeaddrinfo() if getaddrinfo() fails.
14823
14824         * process-unix.c (unix_open_unix_network_stream):
14825         Moved the code to get a port # into address loop.
14826
14827 2000-01-27  Martin Buchholz  <martin@xemacs.org>
14828
14829         * buffer.c (reinit_vars_of_buffer):
14830         The right place to initialize conversion_in_dynarr and
14831         conversion_out_dynarr.
14832
14833         * alloc.c (pdump): Use the real open() till sys_open() is functional.
14834
14835         * process-unix.c (unix_canonicalize_host_name): Muleize.
14836         (unix_open_network_stream): Muleize.
14837
14838         * buffer.h: Fix up prototypes for ralloc.c functions.
14839
14840 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
14841         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
14842         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
14843                 instead of gethostbyname()
14844         * process-unix.c: In unix_canonicalize_host_name() and
14845                 unix_open_network_stream(), add code to use getaddrinfo()
14846                 instead of gethostbyname().
14847
14848 2000-01-27  Daniel Pittman <daniel@danann.net>
14849
14850         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
14851         libs when built with flat Athena.
14852
14853 2000-01-27  Martin Buchholz  <martin@xemacs.org>
14854
14855         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
14856         Use coding standards for function prototypes.
14857
14858 2000-01-25  Martin Buchholz  <martin@xemacs.org>
14859
14860         * dialog-msw.c (push_lisp_string_as_unicode):
14861         * doc.c (unparesseuxify_doc_string):
14862         * dired.c (Fuser_name_completion_1):
14863         * dired.c (Fuser_name_all_completions):
14864         * dired.c (free_user_cache):
14865         * dired.c (user_name_completion):
14866         * console-x.c (get_display_arg_connection):
14867         * minibuf.c (clear_echo_area_internal):
14868         * minibuf.c (echo_area_append):
14869         * eldap.c (Fldap_open):
14870         * eldap.c (Fldap_search_internal):
14871         * frame-x.c (x_set_frame_text_value):
14872         * frame-x.c (x_set_frame_properties):
14873         * frame-x.c (x_create_widgets):
14874         * redisplay-tty.c (term_get_fkeys_1):
14875         * objects-x.c (x_parse_nearest_color):
14876         * objects-x.c (x_valid_color_name_p):
14877         * objects-x.c (x_initialize_font_instance):
14878         * objects-x.c (x_list_fonts):
14879         * objects-x.c (x_find_charset_font):
14880         * tooltalk.c (Fadd_tooltalk_message_arg):
14881         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
14882         * tooltalk.c (Fadd_tooltalk_pattern_arg):
14883         * process-unix.c (unix_create_process):
14884         * ntproc.c (sys_spawnve):
14885         * sound.c (Fplay_sound_file):
14886         * sound.c (Fplay_sound):
14887         * buffer.c (init_initial_directory):
14888         * buffer.c (init_buffer):
14889         * editfns.c (init_editfns):
14890         * editfns.c (Ftemp_directory):
14891         * editfns.c (Fuser_full_name):
14892         * editfns.c (uncache_home_directory):
14893         * editfns.c (get_home_directory):
14894         * editfns.c (Fuser_home_directory):
14895         * editfns.c (Fformat_time_string):
14896         * editfns.c (Fcurrent_time_string):
14897         * gui-x.c (button_item_to_widget_value):
14898         * database.c (Fopen_database):
14899         * event-Xt.c (x_to_emacs_keysym):
14900         * event-Xt.c (x_event_to_emacs_event):
14901         * event-Xt.c (describe_event_window):
14902         * event-msw.c (mswindows_wnd_proc):
14903         * glyphs-eimage.c (jpeg_instantiate):
14904         * glyphs-eimage.c (gif_instantiate):
14905         * glyphs-eimage.c (png_instantiate):
14906         * glyphs-eimage.c (tiff_instantiate):
14907         * glyphs-x.c (xbm_instantiate_1):
14908         * glyphs-x.c (x_xbm_instantiate):
14909         * glyphs-x.c (x_xface_instantiate):
14910         * glyphs-x.c (autodetect_instantiate):
14911         * glyphs-x.c (cursor_font_instantiate):
14912         * glyphs-x.c (x_widget_instantiate):
14913         * glyphs-x.c (x_widget_set_property):
14914         * glyphs-x.c (x_widget_property):
14915         * glyphs-x.c (BUILD_GLYPH_INST):
14916         * print.c (write_string_to_stdio_stream):
14917         * print.c (output_string):
14918         * print.c (Falternate_debugging_output):
14919         * print.c (Fexternal_debugging_output):
14920         * glyphs-msw.c (extract_xpm_color_names):
14921         * glyphs-msw.c (mswindows_xpm_instantiate):
14922         * glyphs-msw.c (bmp_instantiate):
14923         * glyphs-msw.c (resource_name_to_resource):
14924         * glyphs-msw.c (mswindows_resource_instantiate):
14925         * glyphs-msw.c (xbm_instantiate_1):
14926         * glyphs-msw.c (mswindows_xbm_instantiate):
14927         * glyphs-msw.c (mswindows_xface_instantiate):
14928         * glyphs-msw.c (mswindows_widget_instantiate):
14929         * glyphs-msw.c (add_tree_item):
14930         * glyphs-msw.c (add_tab_item):
14931         * glyphs-msw.c (mswindows_combo_box_instantiate):
14932         * glyphs-msw.c (mswindows_widget_property):
14933         * glyphs-msw.c (mswindows_combo_box_property):
14934         * glyphs-msw.c (mswindows_widget_set_property):
14935         * console.c (stuff_buffered_input):
14936         * objects-msw.c (mswindows_initialize_color_instance):
14937         * objects-msw.c (mswindows_valid_color_name_p):
14938         * objects-msw.c (mswindows_list_fonts):
14939         * objects-msw.c (mswindows_font_instance_truename):
14940         * bytecode.c (optimize_compiled_function):
14941         * select-x.c (symbol_to_x_atom):
14942         * select-x.c (x_atom_to_symbol):
14943         * select-x.c (hack_motif_clipboard_selection):
14944         * select-x.c (selection_data_to_lisp_data):
14945         * select-x.c (lisp_data_to_selection_data):
14946         * select-x.c (Fx_get_cutbuffer_internal):
14947         * select-x.c (Fx_store_cutbuffer_internal):
14948         * buffer.h (TO_EXTERNAL_FORMAT): New function.
14949         * buffer.h (TO_INTERNAL_FORMAT): New function.
14950         * emacs.c (make_arg_list_1):
14951         * emacs.c (make_argc_argv):
14952         * emacs.c (main_1):
14953         * emacs.c (Fdump_emacs):
14954         * emacs.c (split_string_by_emchar_1):
14955         * file-coding.h:
14956         * lisp.h:
14957         * lstream.h:
14958         * symsinit.h:
14959         * device-x.c (x_init_device):
14960         * device-x.c (Fx_valid_keysym_name_p):
14961         * device-x.c (Fx_get_font_path):
14962         * device-x.c (Fx_set_font_path):
14963         * glyphs.c (bitmap_to_lisp_data):
14964         * glyphs.c (pixmap_to_lisp_data):
14965         * alloc.c (make_ext_string): Use coding system arguments.  Update
14966         all callers.
14967         * alloc.c (build_string):
14968         * callproc.c (child_setup):
14969         * callproc.c (init_callproc):
14970         * fileio.c (lisp_strerror):
14971         * fileio.c (directory_file_name):
14972         * fileio.c (Fexpand_file_name):
14973         * fileio.c (Ffile_truename):
14974         * fileio.c (Fsysnetunam):
14975         * fileio.c (Fdo_auto_save):
14976         * sysdep.c (sys_readdir):
14977         * tests.c: New file.  Allow adding C tests.
14978         Replace GET_* macros with a more comprehensible and flexible
14979         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
14980         Modify all calls.
14981         Any coding system can be used to do format conversion.
14982         Eliminate enum external_data_format.
14983         Eliminate convert_to_external_format.
14984         Eliminate convert_to_internal_format.
14985         Make sure file-name, keyboard, terminal, and ctext are always
14986         defined as coding systems or aliases.  Make
14987         file-name-coding-system, terminal-coding-system, and
14988         keyboard-coding-system magical variables that are equivalent to
14989         defining the corresponding coding system aliases.
14990
14991         * file-coding.c (Fcoding_system_canonical_name_p): New function.
14992         * file-coding.c (Fcoding_system_alias_p): New function.
14993         * file-coding.c (Fcoding_system_aliasee): New function.
14994         * file-coding.c (append_suffix_to_symbol): New function.
14995         * file-coding.c (dangling_coding_system_alias_p): New function.
14996         * file-coding.c (Ffind_coding_system):
14997         * file-coding.c (Fcopy_coding_system):
14998         * file-coding.c (encode_coding_no_conversion):
14999         * file-coding.c (syms_of_file_coding):
15000         * file-coding.c (vars_of_file_coding):
15001         Rewrite coding system alias code.
15002         Allow nested aliases, like symbolic links.
15003         Allow redefinition of coding system aliases.
15004         Prevent existence of dangling coding system aliases.
15005
15006         * dired.c (Fuser_name_completion_1):
15007         * dired.c (Fuser_name_all_completions):
15008         A crash would happen if user did QUIT in the middle of building
15009         user_name_cache.  Remove redundant code in mainline and unwind_protect.
15010
15011         * lisp.h:
15012         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
15013
15014         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
15015         an unsigned char *.  Update all callers.
15016
15017 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15018
15019         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
15020
15021 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15022
15023         * elhash.c (hentry_description): Use more portable definition.
15024         (resize_hash_table): Initialize new hentries using
15025         xnew_array_and_zero, thereby simplifying the code.
15026
15027         * mule-charset.c (make_charset): Make sure entire object is
15028         initialized, to avoid Purify warnings.
15029
15030         * alloc.c (resize_string): Fix unlikely crash with big strings.
15031
15032 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15033
15034         * realpath.c (xrealpath):
15035         Don't call getwd().
15036
15037 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15038
15039         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
15040
15041 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
15042
15043         * unexelfsgi.c (unexec): Change the way we decide which segment
15044         should be extended.
15045
15046         Assumption that .bss section should be outside the PT_LOADable
15047         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
15048         it's present) is inside the 'data' segment. This would fail the
15049         test which was used to find a segment to grow and cover new
15050         heap. Instead of this assumption, I created another one - on IRIX
15051         the segment to grow should start below .bss and it's address
15052         should extent above the end of .bss. Once this segment is
15053         identified, it's grown to accommodate the new heap and new
15054         zero-length .bss section is added at the end of .data2.
15055
15056 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15057
15058         * eval.c (Feval): Wrong number of arguments should use original
15059         function, not the indirect_function version of it.
15060
15061 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
15062
15063         * glyphs-x.c (x_button_instantiate): Don't add image if
15064         it is not a pixmap.
15065         (x_locate_pixmap_file): Call Fexpand_file_name when file name
15066         is relative.
15067
15068 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
15069
15070         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
15071         declaration.
15072         (DEFVAR_INT_MAGIC): Ditto.
15073         (DEFVAR_BOOL_MAGIC): Ditto.
15074         * glyphs.h: Reindent backslash.
15075
15076 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15077
15078         * glyphs-widget.c (layout_query_geometry):
15079         (layout_layout): Use correct types for gheight, gwidth.
15080
15081 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15082
15083         * EmacsManager.c (QueryGeometry): Purified.
15084
15085 2000-01-23  Martin Buchholz  <martin@xemacs.org>
15086
15087         * alloc.c (make_float): Make sure entire object is initialized, to
15088         avoid Purify warnings.
15089         (pdump_register_sub): Remove useless assignment.
15090         (pdump): Use xmalloc, not malloc.
15091         (pdump_load): Use xmalloc, not malloc.
15092
15093 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15094
15095         * callproc.c:
15096         * dired-msw.c:
15097         * fileio.c:
15098         * process-nt.c:
15099         * redisplay-msw.c:
15100         * sysdep.c: Removed redundant #include <windows.h>
15101
15102 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15103
15104         * frame.c (delete_frame_internal): Do not delete device when its
15105         implementation so declares.
15106         (delete_frame_internal): Set device selected frame to nil when
15107         last frame goes away.
15108
15109         * device-msw.c (msprinter_device_system_metrics): Implemented.
15110         (mswindows_device_system_metrics): Added 'device-dpi property.
15111
15112         * device.c: (Fdevice_printer_p): Added.
15113         Added 'offset-workspace device metric.
15114
15115         * console.h (device_metrics): Declared DM_offset_workspace.
15116
15117 2000-01-23  Martin Buchholz  <martin@xemacs.org>
15118
15119         * fileio.c (Ffile_truename): Remove pointless and confusing
15120         initialization of elen.
15121
15122         * glyphs-widget.c: Compiler warning fixes.
15123
15124 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
15125
15126         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
15127         instead of a Lisp_Object as argument to make it consistent with
15128         the other LIVE_P macros.
15129         (CHECK_LIVE_PROCESS): New macro.
15130
15131         * process.c: Declare Qprocess_live_p.
15132         (Fprocess_live_p): New function.
15133         (create_process): Use PROCESS_LIVE_P.
15134         (read_process_output): Ditto.
15135         (set_process_filter): Ditto.
15136         (Fdelete_process): Ditto.
15137         (kill_buffer_processes): Ditto
15138         (process_send_signal): Use CHECK_LIVE_PROCESS.
15139         (Fprocess_input_coding_system): Check whether process is still
15140         alive (fix PR#1061).
15141         (Fprocess_output_coding_system): Ditto.
15142         (Fprocess_coding_system): Ditto.
15143         (Fset_process_input_coding_system): Ditto.
15144         (Fset_process_output_coding_system): Ditto.
15145
15146 2000-01-23  Andy Piper  <andy@xemacs.org>
15147
15148         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
15149         layout and widget.
15150
15151         * glyphs.c (mark_image_instance): take into account changed
15152         image_instance format.
15153         (image_instance_equal): ditto.
15154         (image_instance_hash): ditto.
15155
15156         * glyphs-widget.c (widget_instantiate): Incorporate layout
15157         instantiation here. Delay layout of the layout until later.
15158         (layout_instantiate): deleted.
15159         (layout_query_geometry): new function. get the geometry of a
15160         layout.
15161         (layout_layout): layout a layout dynamically.
15162         (image_instantiator_widget): New function - splitting up
15163         image_instantiator_format_create_glyphs_widget for netwinder
15164         compilation.
15165         (image_instantiator_buttons):
15166         (image_instantiator_edit_fields):
15167         (image_instantiator_combo_box):
15168         (image_instantiator_scrollbar):
15169         (image_instantiator_progress_guage):
15170         (image_instantiator_tree_view):
15171         (image_instantiator_tab_control):
15172         (image_instantiator_labels):
15173         (image_instantiator_layout): ditto.
15174         (image_instantiator_format_create_glyphs_widget): Call preceding
15175         functions.
15176
15177 2000-01-22  Martin Buchholz  <martin@xemacs.org>
15178
15179         * process.c (Fset_process_coding_system):
15180         * device-x.c (Fx_keysym_hash_table):
15181         Docstring fixes.
15182
15183         * lstream.c (Lstream_write): Return documented value, not 0.
15184
15185         * fileio.c (directory_file_name):
15186         (Fsubstitute_in_file_name):
15187         (Fsubstitute_insert_file_contents_internal):
15188         (Fwrite_region_internal):
15189         * emacs.c:
15190         * sysdep.c:
15191         * getloadavg.c:
15192         * systty.h:
15193         Remove vestigial APOLLO-conditional code.
15194
15195 2000-01-21  Martin Buchholz  <martin@xemacs.org>
15196
15197         * getpagesize.h: Add guard macros.
15198         * libsst.h: Add guard macros.
15199         * libst.h: Add guard macros.
15200         * line-number.h: Add guard macros.
15201         * ndir.h: Add guard macros.
15202         * sysfloat.h: Add guard macros.
15203         * sysfile.h: Add guard macros.
15204         * sysproc.h: Add guard macros.
15205         * syswait.h: Add guard macros.
15206         * xintrinsic.h: Add guard macros.
15207         * xintrinsicp.h: Add guard macros.
15208         * xmmanager.h: Add guard macros.
15209         * xmmanagerp.h: Add guard macros.
15210         * xmprimitive.h: Add guard macros.
15211         * xmu.h: Add guard macros.
15212         * gpmevent.h: Add copyright statement. Add guard macros.
15213         * miscplay.h: Add guard macros.
15214         * *.h: Use consistent C-standards-approved guard macro names.
15215
15216         * opaque.c (make_opaque): Switch parameter order.
15217         * opaque.h (make_opaque): Switch parameter order.
15218         Update all callers.
15219         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
15220
15221         * config.h.in (type_checking_assert): Added.
15222         (bufpos_checking_assert): Added.
15223
15224 2000-01-21  Martin Buchholz  <martin@xemacs.org>
15225
15226         * alloc.c: Harmless pdump changes.
15227         - Use countof().
15228         - spell alignment correctly.
15229         * sysdep.c: Use countof()
15230
15231 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15232
15233         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
15234         initially_selected_for_input() console method, default to 0.
15235         (semi_canonicalize_console_connection): Try to delegate to
15236         canonicalize_console_connection if no such console method.
15237         (canonicalize_console_connection): Vice versa.
15238         (print_console): Do not print nil connection.
15239
15240         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
15241         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
15242         (XDEVIMPF_FRAMELESS_OK): Added.
15243         (CONSOLE_INHERITS_METHOD): Added.
15244
15245         * console-msw.c (mswindows_canonicalize_console_connection):
15246         Added.
15247         (mswindows_canonicalize_device_connection): Added.
15248
15249         * console-msw.h (struct msprinter_device): Added this struct and
15250         accessor macros.
15251         (mswindows_device): Made fontlist a lisp object.
15252
15253         * device.c (semi_canonicalize_device_connection):  Try to delegate
15254         to canonicalize_device_connection if no such console method.
15255         (canonicalize_device_connection): Vice versa.
15256         (print_device): Do not print nil connection.
15257
15258         * device-msw.c (mswindows_init_device): Call InitCommonControls
15259         when have widgets.
15260         (mswindows_delete_device): Removed fontlist deallocation.
15261         (mswindows_mark_device): Added.
15262
15263         * events.c (event_equal): Added abort() at unreached code.
15264         (event_hash): Ditto.
15265
15266         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
15267         fallback tags of Windows devices.
15268
15269         * general.c (syms_of_general): Initialized Qmsprinter.
15270
15271         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
15272         of fallback tags of Windows devices.
15273
15274         * lisp.h: Declared Qmsprinter.
15275
15276         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
15277         of strings.
15278         (mswindows_list_fonts): Ditto.
15279         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
15280         that it can be used by both mswindows and msprinter devices.
15281         (initialize_font_instance): Added.
15282         (mswindows_initialize_font_instance): Use it.
15283         (msprinter_initialize_font_instance): Added.
15284
15285         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
15286         and implementation flags check.
15287         (redisplay_without_hooks): Changed the call to the above.
15288         (Fredraw_device): Ditto.
15289         (Fredisplay_device): Ditto.
15290
15291         * redisplay-msw.c (get_frame_dc): Implemented.
15292         (get_frame_compdc): Implemented.
15293         (many functions): Use the two functions above to get device
15294         contexts, ether for a window or a printer.
15295
15296 2000-01-21  Olivier Galibert  <galibert@pobox.com>
15297
15298         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
15299         initialization here.
15300         (init_symbols_once_early): Call it.
15301         * emacs.c (main_1): Call it.
15302         * symsinit.h: Declare it.
15303
15304 2000-01-19  Olivier Galibert  <galibert@pobox.com>
15305
15306         * alloc.c: Use a lrecord_header * in the backtrace instead of a
15307         Lisp_Object.
15308         (pdump_backtrace): Ditto.
15309         (pdump_register_object): Ditto.  Cleanup use of the pointers.
15310         (pdump_get_entry): Abort if trying to register a null pointer.
15311         (pdump_dump_data): Cleanup types when relocating.
15312         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
15313         (pdump_dump_rtables): Remove bad casts.
15314         (pdump_load): Cleanup relocation w.r.t union type.  Use a
15315         Lisp_Object instead of a EMACS_INT for the hashtable
15316         reorganization.
15317
15318 2000-01-20  Martin Buchholz  <martin@xemacs.org>
15319
15320         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
15321
15322         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
15323
15324         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
15325
15326         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
15327
15328 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15329
15330         * faces.h (FACE_STRIKETHRU_P): Added.
15331
15332         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
15333         of font variants.
15334
15335         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
15336         (mswindows_set_dc_font): New function, aware of font variants,
15337         separated from mswindows_update_dc.
15338
15339         * objects-msw.h (struct mswindows_font_instance_data): Added
15340         definition.
15341
15342         * objects-msw.c (mswindows_finalize_font_instance): Delete all
15343         cached fonts and the data structure.
15344         (mswindows_initialize_font_instance): Added creation of font data
15345         structure.
15346         (mswindows_print_font_instance): Print at least something.
15347         (mswindows_create_font_variant): Implemented.
15348         (mswindows_get_hfont): Implemented.
15349
15350 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
15351
15352         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
15353         prototyping problem with msvc.
15354
15355         * emacs.c (main_1): added syms_of_gui_mswindows() call
15356
15357         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
15358         syms_of_gui_mswindows() function
15359
15360         * symsinit.h: added the prototype for syms_of_gui_mswindows()
15361
15362 2000-01-18  Martin Buchholz <martin@xemacs.org>
15363
15364         * XEmacs 21.2.27 is released.
15365
15366 2000-01-18  Martin Buchholz  <martin@xemacs.org>
15367
15368         * glyphs-eimage.c (struct tiff_error_struct):
15369         (tiff_error_func):
15370         (tiff_warning_func):
15371         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
15372
15373         * unexmips.c:
15374         * unexhp9k3.c:
15375         * unexfreebsd.c:
15376         * unexec.c: Remove vestigial Lucid C code.
15377         * unexalpha.c:
15378         * unexaix.c:
15379         * termcap.c:
15380         * libsst.c: Ansify.
15381         Remove declarations of errno and strerror().
15382
15383         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
15384
15385         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
15386
15387 2000-01-16  Martin Buchholz  <martin@xemacs.org>
15388
15389         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
15390         Optimize.
15391
15392 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15393
15394         * md5.c:
15395         * file-coding.c:
15396         * file-coding.h:
15397         Change enum eol_type to eol_type_t.
15398
15399 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15400
15401         * gui.c (get_gui_callback): Check cons before accessing car.
15402
15403 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15404
15405         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
15406         (XSETSPECIFIER_TYPE): Ditto.
15407
15408 2000-01-17  Didier Verna  <didier@xemacs.org>
15409
15410         * redisplay.c (generate_fstring_runes): compute string size in
15411         characters, not bytes.
15412
15413 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
15414
15415         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
15416
15417 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
15418
15419         * print.c (print_error_message): Call print_prepare().
15420
15421 2000-01-14  Martin Buchholz  <martin@xemacs.org>
15422
15423         * .dbxrc: Renamed from dbxrc.
15424
15425         * events.c (event_to_character):
15426         Use `assert (foo)' instead of `if (!foo) abort()'
15427
15428         * .gdbinit (xtype): Add documentation.
15429         * .gdbinit (check-temacs): New function.
15430         * .gdbinit (check-xemacs): New function.
15431         * dbxrc (check-xemacs): New function.
15432         * dbxrc (check-xemacs): New function.
15433
15434 2000-01-14  Andy Piper  <andy@xemacs.org>
15435
15436         * glyphs-widget.c (widget_query_geometry): Make sure that we
15437         calculate default dimensions correctly.
15438
15439 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15440
15441         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
15442
15443         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
15444         pdump_wire'd variable.
15445
15446         * emacs.c: (main_1): Conditionalized calls to
15447         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
15448
15449 2000-01-13  Martin Buchholz  <martin@xemacs.org>
15450
15451         * window.c (Fset_window_configuration):
15452         * sysdep.c (_start):
15453         * input-method-motif.c (res):
15454         * event-Xt.c (Xt_process_to_emacs_event):
15455         Simple compiler warning fixes.
15456
15457         * bytecode.c (funcall_compiled_function): Use the original
15458         function symbol on the backtrace list in preference to the
15459         compiled_function object in error messages.
15460
15461 2000-01-13  Andy Piper  <andy@xemacs.org>
15462
15463         * glyphs-x.c (update_widget_face): Make sure we update the widget
15464         background as well as foreground.
15465
15466 2000-01-13  Andy Piper  <andy@xemacs.org>
15467
15468         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
15469         fields to subwindow.
15470         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
15471         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
15472         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
15473         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
15474
15475         * glyphs-widget.c (check_valid_tab_orientation): new function.
15476         (initialize_widget_image_instance): zero orientation and
15477         justification.
15478         (widget_instantiate): pick up orientation.
15479         (tab_control_query_geometry): return appropriate values for
15480         vertical tabs.
15481
15482         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
15483         appropriate creation flags for left, right and bottom tabs.
15484
15485         * s/cygwin32.h: add tab definitions.
15486
15487 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15488
15489         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
15490         frame upon hiding a subwindow.
15491         (mswindows_button_instantiate): Changed the push button style to
15492         BS_PUSHBUTTON.
15493         (mswindows_button_instantiate): Removed button BS_NOTIFY
15494         style.
15495         (mswindows_button_instantiate): Removed redundant check for
15496         a disabled gui item.
15497         (mswindows_button_instantiate): Made use of WS_TABSTOP
15498         consistent: "operable" controls (edit, button, tree, scroll) have
15499         this style, "display-only" ones (static, progress gauge) do
15500         not. This style is currently ignored by XEmacs though. Also,
15501         removed the WS_EX_CONTROLPARENT style - it is not for children,
15502         it is for their parents!
15503         (mswindows_edit_field_instantiate): Ditto.
15504         (mswindows_progress_gauge_instantiate): Ditto.
15505         (mswindows_tree_view_instantiate): Ditto.
15506         (mswindows_tab_control_instantiate): Ditto.
15507         (mswindows_scrollbar_instantiate): Ditto.
15508         (mswindows_combo_box_instantiate): Ditto.
15509         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
15510         style to the "clip" window.
15511         (mswindows_button_instantiate): Removed compilation warning by
15512         equally typing terms of the ?: operator.
15513
15514 2000-01-12  Didier Verna  <didier@xemacs.org>
15515
15516         * redisplay.c (generate_fstring_runes): new parameter holding the
15517         last modeline-format extent.
15518         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
15519         extent, fill the glyph block with it.
15520         (generate_fstring_runes): handle these parameters.
15521         (generate_formatted_string_db): ditto.
15522
15523         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
15524         glyphs'extents in the modeline.
15525
15526 1999-01-11  Mike Woolley  <mike@bulsara.com>
15527
15528         * ntheap.c: Reduced the reserved heap space from 1Gb down to
15529         256Mb, as a workaround for the non-starting problem many people
15530         have experienced.
15531
15532 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15533
15534         * console-tty.c (Fset_console_tty_output_coding_system):
15535         Force redrawing tty frame.
15536
15537 2000-01-10  Didier Verna  <didier@xemacs.org>
15538
15539         * redisplay.c (generate_fstring_runes): fix size computation bug.
15540
15541 2000-01-09  William M. Perry <wmperry@aventail.com>
15542
15543         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
15544
15545 2000-01-09  Andy Piper  <andy@xemacs.org>
15546
15547         * glyphs-msw.c: index -> i to avoid shadows.
15548         (xbm_create_bitmap_from_data): make static.
15549         (check_valid_string_or_int): deleted.
15550         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
15551
15552         * glyphs-x.c (x_update_subwindow): remove unused args.
15553
15554         * glyphs.c (glyph_image_instance): return the thing. Don't set the
15555         back pointer - this is done in allocate_image_instance.
15556         (query_string_font): return Qnil to make the compiler happy.
15557         (unmap_subwindow): set to ~0 to make the compiler happy.
15558         (glyph_query_geometry): comment out until used.
15559         (glyph_layout): ditto.
15560
15561 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
15562
15563         * insdel.c (signal_after_change): Remove extraneous unbind_to().