4313536a60438d5175043bbbbfd7ce7e25fff458
[chise/xemacs-chise.git.1] / src / ChangeLog
1 2003-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * mule-charset.c (Qmap_ks_x1001): Renamed from `Qkorean_ksc5601'.
4         (syms_of_mule_charset): Add new symbol `=ks-x1001' instead of
5         `korean-ksc5601'.
6         (complex_vars_of_mule_charset): Rename `korean-ksc5601' to
7         `=ks-x1001'.
8
9 2003-04-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
10
11         * mule-charset.c (Qmap_jis_x0212): Renamed from
12         `Qjapanese_jisx0212'.
13         (syms_of_mule_charset): Add new symbol `=jis-x0212' instead of
14         `japanese-jisx0212'.
15         (complex_vars_of_mule_charset): Rename `japanese-jisx0212' to
16         `=jis-x0212'.
17
18 2003-04-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
19
20         * mule-charset.c (Qmap_jis_x0208_1983): Renamed from
21         `Qjapanese_jisx0208'.
22         (syms_of_mule_charset): Add new symbol `=jis-x0208-1983' instead
23         of `japanese-jisx0208'.
24         (complex_vars_of_mule_charset): Rename `japanese-jisx0208' to
25         `=jis-x0208-1983'.
26
27 2003-04-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
28
29         * mule-charset.c (Qmap_jis_x0208_1978): Renamed from
30         `Qjapanese_jisx0208_1978'.
31         (syms_of_mule_charset): Add new symbol `=jis-x0208-1978' instead
32         of `japanese-jisx0208-1978'.
33         (complex_vars_of_mule_charset): Rename `japanese-jisx0208-1978' to
34         `=jis-x0208-1978'.
35
36 2003-04-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
37
38         * chartab.c (decode_char_table_range): CHARTAB_RANGE_DEFAULT is
39         only for XEmacs CHISE.
40
41 2003-04-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
42
43         * char-ucs.h: Compact non-ISO-IR charset-ids.
44         (LEADING_BYTE_UCS): Changed to -177.
45         (LEADING_BYTE_CONTROL_1): Changed to -77.
46         (LEADING_BYTE_UCS_BMP): Changed to -176.
47         (LEADING_BYTE_JAPANESE_JISX0208_1990): Changed to -168.
48
49 2003-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
50
51         * mule-charset.c (Qiso_ir): New variable.
52         (Fmake_charset): Recognise new property `iso-ir'.
53         (syms_of_mule_charset): Add new symbol `iso-ir'.
54
55 2003-04-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
56
57         * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
58         n to -n; charset-id of non ISO-IR sets are changed to positive
59         numbers.
60
61 2003-03-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
62
63         * text-coding.c (decode_add_er_char): Use XUINT instead of XINT
64         for &MCS-XXXXXXXX; values.
65
66 2003-03-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
67
68         * mule.c (Vxemacs_chise_version): Renamed from
69         `Vutf_2000_version'.
70         (vars_of_mule): Add new variable `xemacs-chise-version'; define
71         `utf-2000-version' as an alias for `xemacs-chise-version'.
72
73 2003-03-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
74
75         * mule-charset.c: Include <chise.h> when `CHISE' is defined.
76         (load_char_decoding_entry_maybe): Use libchise when `CHISE' is
77         defined.
78
79         * config.h.in (CHISE): New macro.
80
81 2003-03-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
82
83         * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
84         of `ucs'.
85         (Qmap_ucs): New variable.
86         (syms_of_mule_charset): Add new symbol `=ucs'.
87         (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
88
89         * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
90         (simplify_char_spec): Likewise.
91
92         * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
93
94         * char-ucs.h (Qmap_ucs): New extern variable.
95
96 2003-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
97
98         * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
99         (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
100         don't define it when UTF2000 is not defined.
101         (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
102         `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
103         when UTF2000 is not defined.
104         (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
105         rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
106
107 2003-03-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
108
109         * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
110
111         * mule-charset.c (Vcharset_ucs_gb): Deleted.
112         (Qucs_gb): Deleted.
113         (syms_of_mule_charset): Delete `ucs-gb'.
114         (complex_vars_of_mule_charset): Likewise.
115
116 2003-03-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
117
118         * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
119
120         * mule-charset.c (Vcharset_ucs_cns): Deleted.
121         (Qucs_cns): Deleted.
122         (syms_of_mule_charset): Delete `ucs-cns'.
123         (complex_vars_of_mule_charset): Likewise.
124
125 2003-03-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
126
127         * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
128
129         * mule-charset.c (Vcharset_ucs_jis): Deleted.
130         (Qucs_jis): Deleted.
131         (syms_of_mule_charset): Delete `ucs-jis'.
132         (complex_vars_of_mule_charset): Likewise.
133
134 2003-03-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
135
136         * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
137
138         * mule-charset.c (Vcharset_ucs_ks): Deleted.
139         (Qucs_ks): Deleted.
140         (syms_of_mule_charset): Delete `ucs-ks'.
141         (complex_vars_of_mule_charset): Likewise.
142
143 2003-03-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
144
145         * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
146         (Qideograph_daikanwa_2): Deleted.
147         (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
148         (complex_vars_of_mule_charset): Likewise.
149
150         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
151         (LEADING_BYTE_DAIKANWA_1): Deleted.
152         (LEADING_BYTE_DAIKANWA_2): Deleted.
153         (MIN_CHAR_DAIKANWA): Deleted.
154         (MAX_CHAR_DAIKANWA): Deleted.
155
156 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
157
158         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
159         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
160         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
161
162         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
163         (Vcharset_ideograph_daikanwa): Deleted.
164         (Qideograph_hanziku_{1..12}): Deleted.
165         (Qideograph_daikanwa): Deleted.
166         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
167         Vcharset_ideograph_daikanwa.
168         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
169         `ideograph-hanziku-{1..12}'.
170         (complex_vars_of_mule_charset): Likewise.
171
172 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
173
174         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
175
176         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
177         (Qideograph_gt_pj_{1..11}): Deleted.
178         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
179         (complex_vars_of_mule_charset): Likewise.
180
181 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
182
183         * mule-charset.c (Vcharset_ucs_big5): Deleted.
184         (Vcharset_ideograph_gt): Deleted.
185         (Qucs_big5): Deleted.
186         (Qideograph_gt): Deleted.
187         (syms_of_mule_charset): Delete symbol `ucs-big5' and
188         `ideograph-gt'.
189         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
190         and `ideograph-gt'.
191
192         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
193         (LEADING_BYTE_GT): Deleted.
194         (MIN_CHAR_GT): Deleted.
195         (MAX_CHAR_GT): Deleted.
196
197 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
198
199         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
200
201 2003-01-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
202
203         * chartab.c (save_uint8_byte_table): Add new argument `filter'.
204         (save_uint16_byte_table): Likewise.
205         (save_byte_table): Likewise; convert values by it.
206         (Fput_char_attribute): Don't use `char-refs-simplify-char-specs'
207         for `ideographic-structure'.
208         (Fsave_char_attribute_table): Use `char-refs-simplify-char-specs'
209         as the filter for `ideographic-structure'.
210
211 2003-01-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
212
213         * chartab.c (put_char_composition): New function.
214         (Fput_char_attribute): Use `put_char_composition'; use
215         `Fchar_refs_simplify_char_specs' for `ideographic-structure'.
216
217         * fns.c (simplify_char_spec): New function.
218         (char_ref_simplify_spec): New function.
219         (Fchar_refs_simplify_char_specs): New function.
220         (syms_of_fns): Add new builtin function
221         `char-refs-simplify-char-specs'.
222
223 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
224
225         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
226         (Qideograph_cbeta): Deleted.
227         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
228         (complex_vars_of_mule_charset): Likewise.
229
230         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
231         (MIN_CHAR_CBETA): Comment out.
232         (MAX_CHAR_CBETA): Likewise.
233
234 2002-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
235
236         * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
237         `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
238         CHISE client feature.
239
240 2002-12-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
241
242         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
243
244 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
245
246         * mule-charset.c (charset_lookup_description_1): Use
247         `NUM_LEADING_BYTES' in UTF-2000.
248
249 2002-12-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
250
251         * char-ucs.h (GC_CHARSETP): Deleted.
252
253 2002-12-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
254
255         * char-ucs.h (MAX_CHAR_GT): Updated.
256
257 2002-12-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
258
259         * text-coding.c: Sync with XEmacs 21.4.10.
260
261 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
262
263         * mule-charset.c (Vcharset_china3_jef): Deleted.
264         (Qchina3_jef): Deleted.
265         (syms_of_mule_charset): Don't define `china3-jef'.
266         (complex_vars_of_mule_charset): Likewise.
267
268         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
269         (MIN_CHAR_CHINA3_JEF): Comment out.
270         (MAX_CHAR_CHINA3_JEF): Comment out.
271
272 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
273
274         * mule-charset.c (Vcharset_ucs_gb): New variable.
275         (Qucs_gb): New variable.
276         (syms_of_mule_charset): Add new symbol `ucs-gb'.
277         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
278
279         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
280
281 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
282
283         * mule-charset.c (charset_code_point): if a coded-charset has a
284         final-byte, don't inherit the builtin range of the mother CCS.
285
286 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
287
288         * mule-charset.c (charset_code_point): Fix problem about
289         inheritance.
290
291 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
292
293         * mule-charset.c (decode_builtin_char): Reorganized.
294
295 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
296
297         * text-coding.c (char_encode_as_entity_reference): Modify for
298         `charset_code_point'.
299         (char_encode_shift_jis): Likewise.
300         (char_encode_big5): Likewise.
301         (char_encode_utf8): Likewise.
302         (char_encode_iso2022): Likewise.
303
304         * mule-charset.c (charset_code_point): Add new argument
305         `defined_only'.
306         (Fencode_char): Add new optional argument `defined_only'.
307
308         * chartab.c (put_char_table): Modify for `charset_code_point'.
309
310         * char-ucs.h (charset_code_point): Add new argument
311         `defined_only'.
312         (encode_char_1): Modify for `charset_code_point'.
313
314 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
315
316         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
317         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
318
319 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
320
321         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
322         (Qjis_x0208): Likewise.
323         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
324         XCHARSET_FINAL(charset).
325         (charset_code_point): Modify condition for final-byte based
326         builtin-chars.
327         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
328         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
329         in UTF-2000; specify `=jis-x0208' as the mother of
330         `japanese-jisx0208-1978', `japanese-jisx0208' and
331         `japanese-jisx0208-1990' in UTF-2000.
332
333 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
334
335         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
336
337 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
338
339         * text-coding.c (decode_coding_utf16): Support UTF-16.
340         (char_encode_utf16): Fixed.
341
342 2002-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
343
344         * text-coding.c (Qutf16): New variable in MULE.
345         (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
346         (Fcoding_system_type): Add `utf-16' in MULE.
347         (struct detection_state): Add a structure for utf16 in MULE.
348         (detect_coding_type): Setup st->utf16.mask in MULE.
349         (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
350         MULE.
351         (reset_encoding_stream): Use `char_encode_utf16' and
352         `char_finish_utf16' for `CODESYS_UTF16' in MULE.
353         (detect_coding_utf16): New function [incomplete].
354         (decode_coding_utf16): New function [support only UCS-2].
355         (char_encode_utf16): New function.
356         (char_finish_utf16): New function.
357         (syms_of_file_coding): Add new symbol `utf-16'; setup
358         `coding_category_symbol[CODING_CATEGORY_UTF16]'.
359
360         * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
361         UTF-2000.
362         (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
363         (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
364
365 2002-10-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
366
367         * chartab.c (put_char_table): When a charset is specified as a
368         range in UTF-2000, don't support builtin characters.
369
370 2002-09-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
371
372         * mule-charset.c (decode_defined_char): Don't refer external
373         database if Qunbound or Qnil are found.
374         (Fsave_charset_mapping_table): Don't define it if
375         HAVE_CHISE_CLIENT is not defined.
376         (Freset_charset_mapping_table): New function.
377         (load_char_decoding_entry_maybe): Store Qnil if a character is not
378         found in external database.
379         (syms_of_mule_charset): Don't define `save-charset-mapping-table'
380         if HAVE_CHISE_CLIENT is not defined; add new builtin function
381         `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
382
383 2002-09-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
384
385         * text-coding.c (decode_coding_utf8): Check CCS is specified or
386         not.
387
388 2002-08-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
389
390         * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
391         Q_lowercase, Q_uppercase in UTF-2000.
392
393         * chartab.c (get_char_table): Add special code for the standard
394         case table to use character attribute `->downcase' and
395         `->uppercase' for case operations in UTF-2000.
396
397         * casetab.c (Qflippedcase): New variable in UTF-2000.
398         (Q_lowercase): Likewise.
399         (Q_uppercase): Likewise.
400         (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
401         and `->uppercase' in UTF-2000.
402         (complex_vars_of_casetab): Assign attribute name `downcase' to
403         downcase and CANON table of Vstandard_case_table in UTF-2000;
404         assign attribute name `flippedcase' to upcase and EQV table of
405         Vstandard_case_table in UTF-2000.
406
407 2002-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
408
409         * text-coding.c (decode_add_er_char): Support isolated-chars.
410         (char_encode_as_entity_reference): Likewise.
411
412 2002-08-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
413
414         * emacs.c (Vutf_2000_lisp_directory): New variable.
415         (Vconfigure_utf_2000_lisp_directory): Likewise.
416         (complex_vars_of_emacs): Add new variable
417         `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
418
419 2002-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
420
421         * char-ucs.h (DECODE_CHAR): Delete special code for
422         `chinese-big5-1' and `chinese-big5-2'.
423
424         * mule-charset.c (Qbig5_1): New variable in UTF-2000.
425         (Qbig5_2): Likewise.
426         (decode_defined_char): Support CONVERSION_BIG5_1 and
427         CONVERSION_BIG5_2.
428         (decode_builtin_char): Likewise.
429         (charset_code_point): Likewise.
430         (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
431         'conversion in UTF-2000.
432         (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
433         (complex_vars_of_mule_charset): Define `chinese-big5-1' and
434         `chinese-big5-2' as children of `chinese-big5'.
435
436         * char-ucs.h (CONVERSION_BIG5_1): New macro.
437         (CONVERSION_BIG5_2): New macro.
438
439 2002-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
440
441         * text-coding.c (char_encode_big5): Support entity-reference.
442
443 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
444
445         * text-coding.c (char_encode_as_entity_reference): New function.
446         (char_encode_utf8): Use `char_encode_as_entity_reference'.
447
448 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
449
450         * text-coding.c (decode_coding_big5): Support entity-reference
451         decoding feature.
452
453 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
454
455         * text-coding.c (allocate_coding_system): Initialize initial
456         charsets for CODESYS_UTF8.
457         (Fmake_coding_system): Accept charset-g0, charset-g1 and
458         charset-g2 for CODESYS_UTF8.
459         (decode_coding_utf8): Use charset-g0.
460         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
461         to force variants to map to UCS.
462
463 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
464
465         * text-coding.c (Qutf_8_mcs): New variable.
466         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
467         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
468         instead of `utf-8' in UTF-2000.
469
470 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
471
472         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
473         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
474         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
475         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
476         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
477         CONVERSION_96x96x96x96 are introduced.
478         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
479         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
480         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
481
482         * char-ucs.h (CONVERSION_94): New macro.
483         (CONVERSION_96): New macro.
484         (CONVERSION_94x94): New macro.
485         (CONVERSION_96x96): New macro.
486         (CONVERSION_94x94x94): New macro.
487         (CONVERSION_96x96x96): New macro.
488         (CONVERSION_94x94x94x60): New macro.
489         (CONVERSION_94x94x94x94): New macro.
490         (CONVERSION_96x96x96x96): New macro.
491
492 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
493
494         * chartab.c (Vcharacter_variant_table): Deleted.
495         (Fchar_variants): Use character-attribute `->ucs-variants' instead
496         of `Vcharacter_variant_table'.
497         (Fput_char_attribute): Likewise.
498         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
499         (complex_vars_of_chartab): Likewise.
500
501 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
502
503         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
504
505         * fns.c (Qideographic_structure): New variable.
506         (Qkeyword_char): New variable.
507         (ids_format_unit): New function.
508         (Fideographic_structure_to_ids): New function.
509         (syms_of_fns): Add new symbols `ideographic-structure' and
510         `:char'; add new builtin function `ideographic-structure-to-ids'.
511
512         * data.c (Fchar_ref_p): New function.
513         (syms_of_data): Add new builtin function `char-ref-p'.
514
515         * chartab.h: Add an EXFUN for `Ffind_char'.
516
517 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
518
519         * text-coding.c (Vcharacter_composition_table): Deleted.
520         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
521         in every UTF-2000.
522
523         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
524         UTF-2000.
525         (Vcharacter_composition_table): Deleted.
526         (Fget_composite_char): Use the implementation for external-DB
527         support in every UTF-2000.
528         (Fput_char_attribute): Likewise.
529         (char_attribute_system_db_file): Don't define if external-DB
530         feature is not available.
531         (Fsave_char_attribute_table): Likewise.
532         (Fmount_char_attribute_table): Likewise.
533         (Fclose_char_attribute_table): Likewise.
534         (Freset_char_attribute_table): Likewise.
535         (Fload_char_attribute_table): Likewise.
536         (syms_of_chartab): Don't define `save-char-attribute-table',
537         `mount-char-attribute-table', `reset-char-attribute-table',
538         `close-char-attribute-table' and `load-char-attribute-table' if
539         external-DB feature is not available.
540         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
541
542 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
543
544         * text-coding.c (Qcomposition): Add extern if external-DB feature
545         is supported.
546         (Vcharacter_composition_table): Don't add extern if external-DB
547         feature is supported.
548         (COMPOSE_ADD_CHAR): Modify for new data-representation of
549         character composition rule if external-DB feature is supported.
550
551         * chartab.c (Vcharacter_composition_table): Don't define if
552         external-DB feature is supported.
553         (Qcomposition): New variable.
554         (Fget_composite_char): New implementation for external-DB support.
555         (Fput_char_attribute): Use `composition' property of each
556         character instead of `Vcharacter_composition_table' to store
557         character-composition rules if external-DB feature is supported.
558         (syms_of_chartab): Add new symbol `composition'.
559         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
560         external-DB feature is supported.
561
562 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
563
564         * chartab.c (Vchar_db_stingy_mode): New variable.
565         (load_char_attribute_maybe): Close database if
566         Vchar_db_stingy_mode is not NIL.
567         (Fload_char_attribute_table_map_function): Use
568         `get_char_id_table_0' instead of `get_char_id_table'.
569         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
570
571         * chartab.h (get_char_id_table_0): New inline function.
572         (get_char_id_table): Use `get_char_id_table_0'.
573
574 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
575
576         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
577         and `COMPOSE_ADD_CHAR'.
578         (decode_coding_iso2022): Use `decode_flush_er_chars'.
579
580 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
581
582         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
583         instead of `DECODE_ADD_UCS_CHAR'.
584         (COMPOSE_ADD_CHAR): Likewise.
585
586 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
587
588         * text-coding.c (decode_flush_er_chars): New inline function.
589         (decode_add_er_char): New function.
590         (decode_coding_utf8): Use `decode_flush_er_chars' and
591         `decode_add_er_char'.
592
593 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
594
595         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
596         done before `decode_output_utf8_partial_char'.
597
598         * mule-charset.c (complex_vars_of_mule_charset): Specify
599         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
600         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
601
602 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
603
604         * mule-charset.c (decode_defined_char): New function; search
605         mother.
606         (decode_builtin_char): Don't search mother if
607         XCHARSET_MAX_CODE(charset) == 0.
608         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
609         == 0 even if code >= XCHARSET_MAX_CODE(charset).
610         (Fdecode_char): Use `decode_defined_char' instead of
611         `DECODE_DEFINED_CHAR'.
612         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
613         mother of `Vcharset_ucs_jis'.
614
615         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
616         instead of `DECODE_DEFINED_CHAR'.
617
618         * char-ucs.h (decode_defined_char): Renamed from
619         `DECODE_DEFINED_CHAR'; changed to normal function.
620         (DECODE_CHAR): Use `decode_defined_char' instead of
621         `DECODE_DEFINED_CHAR'.
622
623         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
624
625 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
626
627         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
628
629         * text-coding.c (Vcoded_charset_entity_reference_alist): New
630         variable.
631         (Quse_entity_reference): New variable.
632         (Qd): New variable.
633         (Qx): New variable.
634         (QX): New variable.
635         (coding_system_description): Add description for
636         `ccs_priority_list'.
637         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
638         (allocate_coding_system): Initialize `ccs_priority_list' in
639         UTF-2000.
640         (Fmake_coding_system): Add description about
641         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
642         (codesys).
643         (Fcoding_system_property): Accept `disable-composition' and
644         `use-entity-reference' in UTF-2000.
645         (struct decoding_stream): Add new member `er_counter' and `er_buf'
646         in UTF-2000.
647         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
648         (decode_coding_utf8): Decode entity-reference if
649         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
650         (char_encode_utf8): Encode non-Unicode characters as
651         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
652         (str->codesys).
653         (syms_of_file_coding): Add new symbols `use-entity-reference',
654         `d', `x', `X'.
655         (vars_of_file_coding): Add new variable
656         `coded-charset-entity-reference-alist'.
657         (complex_vars_of_file_coding): Declare `disable-composition' and
658         `use-entity-reference' to be coding-system-properties in UTF-2000.
659
660         * file-coding.h (struct Lisp_Coding_System): Add new member
661         `use_entity_reference' and `ccs_priority_list'.
662         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
663         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
664         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
665
666 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
667
668         * chartab.c (save_uint8_byte_table): Don't clear the table.
669         (save_uint16_byte_table): Likewise.
670         (save_byte_table): Likewise.
671         (Fmount_char_attribute_table): New function.
672         (syms_of_chartab): Add new builtin function
673         `mount-char-attribute-table'.
674
675 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
676
677         * mule-charset.c (Fsave_charset_mapping_table): Open database as
678         "w+" mode.
679         (load_char_decoding_entry_maybe): Open database as read-only mode.
680
681         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
682         open database as "w+" mode.
683         (load_char_attribute_maybe): Open database as read-only mode.
684         (Fload_char_attribute_table): Likewise.
685
686 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
687
688         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
689         (char_table_description): Delete member `db_file'.
690         (Fmake_char_table): Don't refer `ct->db_file'.
691         (Fcopy_char_table): Likewise.
692         (Fsave_char_attribute_table): Likewise.
693         (Fclose_char_attribute_table): Likewise.
694         (Freset_char_attribute_table): Likewise.
695         (load_char_attribute_maybe): Likewise.
696         (Fload_char_attribute_table): Likewise.
697
698         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
699
700 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
701
702         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
703         (Fsave_char_attribute_table): Don't check `ct->db_file' if
704         `ct->db' is living.
705         (load_char_attribute_maybe): Likewise.
706         (Fload_char_attribute_table): Likewise.
707
708 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
709
710         * chartab.c (Fclose_char_attribute_table): Set Qnil on
711         `ct->db_file' unconditionally.
712
713 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
714
715         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
716         UTF-2000.
717         (char_table_description): Add description for `db_file' and `db'
718         in UTF-2000.
719         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
720         UTF-2000.
721         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
722         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
723         (Fclose_char_attribute_table): New function.
724         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
725         (load_char_attribute_maybe): Change interface; use `cit->db_file'
726         and `cit->db'.
727         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
728         (syms_of_chartab): Add new builtin function
729         `Fclose_char_attribute_table'.
730
731 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
732
733         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
734         `db' in UTF-2000.
735         (load_char_attribute_maybe): Change interface.
736         (get_char_id_table): Modify for `load_char_attribute_maybe'.
737
738 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
739
740         * database.h: Add an EXFUN for `Fdatabase_live_p'.
741
742 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
743
744         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
745         instead of `DECODE_CHAR' for mother; don't use special code for
746         chinese-big5 to use code space of chinese-big5-1 and
747         chinese-big5-2.
748         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
749         `MAX_CHAR_BIG5_CDP' for chinese-big5.
750
751         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
752         (MAX_CHAR_BIG5_CDP): Revival.
753
754 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
755
756         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
757         the XLFD registry-encoding name of `chinese-big5'.
758
759 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
760
761         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
762         (Qchinese_big5_cdp): Deleted.
763         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
764         (complex_vars_of_mule_charset): Delete coded-charset
765         `chinese-big5-cdp'.
766
767         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
768         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
769         `CHARSET_ID_OFFSET - n' for private CCS.
770         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
771         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
772         of `MIN_LEADING_BYTE'.
773         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
774         `(CHARSET_ID_OFFSET - 97)'.
775         (MIN_CHAR_BIG5_CDP): Deleted.
776         (MAX_CHAR_BIG5_CDP): Deleted.
777
778 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
779
780         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
781
782 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
783
784         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
785         (vars_of_mule): Add new variable `utf-2000-version' [moved from
786         chartab.c].
787
788         * chartab.c (Vutf_2000_version): Moved to mule.c.
789         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
790
791 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
792
793         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
794         when HAVE_CHISE_CLIENT is not defined.
795
796         * mule.c (vars_of_mule): Provide feature `chise' when
797         HAVE_CHISE_CLIENT is defined.
798
799 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
800
801         * config.h.in (UTF2000): Add comment.
802         (HAVE_CHISE_CLIENT): New macro.
803
804 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
805
806         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
807         CONSP.
808         (Fput_char_attribute): Likewise.
809         (char_attribute_system_db_file): Encode file-name of attribute.
810         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
811         the initial value.
812
813 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
814
815         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
816         (Fsave_charset_mapping_table): Use
817         `char_attribute_system_db_file'.
818         (load_char_decoding_entry_maybe): Likewise.
819
820         * chartab.h (Qsystem_char_id): New external variable.
821         (char_attribute_system_db_file): New prototype.
822
823         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
824         (char_attribute_system_db_file): New function.
825         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
826         (Freset_char_attribute_table): Likewise.
827         (load_char_attribute_maybe): Likewise.
828         (Fload_char_attribute_table): Likewise.
829         (syms_of_chartab): Add new symbol `system-char-id'.
830
831 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
832
833         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
834         `XCHARSET_GRAPHIC(ccs)'.
835
836 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
837
838         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
839
840 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
841
842         * chartab.c (Q_ucs_variants): New variable.
843         (syms_of_chartab): Add new symbol `->ucs-variants'.
844         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
845         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
846         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
847
848         * mule-charset.c (load_char_decoding_entry_maybe): New function.
849
850         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
851         `HAVE_DATABASE' is defined.
852         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
853         `HAVE_DATABASE' is defined.
854
855 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
856
857         * chartab.c (Fsave_char_attribute_table): Don't clear internal
858         attribute-table.
859         (Freset_char_attribute_table): New function.
860         (syms_of_chartab): Add new builtin function
861         `reset-char-attribute-table'.
862
863 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
864
865         * chartab.c (load_char_attribute_maybe): Don't make directories.
866
867 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
868
869         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
870
871         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
872         for decoding-table.
873
874 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
875
876         * mule-charset.c (Fsave_charset_mapping_table): Use
877         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
878
879         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
880         instead of `XCHARSET_CHARS'.
881
882 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
883
884         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
885         (XCHARSET_BYTE_SIZE): Likewise.
886
887         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
888         mule-charset.c].
889         (XCHARSET_BYTE_SIZE): Likewise.
890
891 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
892
893         * chartab.c (Fput_char_attribute): Use exec-directory instead of
894         data-directory to store database.
895         (Fsave_char_attribute_table): Likewise.
896         (load_char_attribute_maybe): Likewise.
897         (Fload_char_attribute_table): Likewise.
898
899 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
900
901         * mule-charset.c (Fsave_charset_mapping_table): New function.
902         (syms_of_mule_charset): Add new builtin function
903         `save-charset-mapping-table'.
904
905 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
906
907         * char-ucs.h (decoding_table_check_elements): Delete prototype.
908         (get_ccs_octet_table): New inline function.
909         (put_ccs_octet_table): Likewise.
910         (decoding_table_put_char): Use `get_ccs_octet_table' and
911         `put_ccs_octet_table'.
912         (decoding_table_remove_char): Use `decoding_table_put_char'.
913         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
914
915         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
916         into encoding_table.
917         (make_charset): Use Qunbound instead Qnil as initial value of
918         decoding_table.
919
920 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
921
922         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
923         element is Qunloaded.
924         (map_over_uint16_byte_table): Likewise.
925         (map_over_byte_table): Likewise.
926         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
927         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
928         database support, load encoding-table of the specified
929         coded-charset if it is not loaded yet.
930         (save_uint8_byte_table): New function of UTF-2000 with external
931         database support.
932         (save_uint16_byte_table): Likewise.
933         (save_byte_table): Likewise.
934         (Fput_char_attribute): Don't store value into external database
935         even if the external database feature is supported in UTF-2000;
936         set `attribute' as name of char-table if the external database
937         feature is supported.
938         (Fsave_char_attribute_table): New function in UTF-2000.
939         (syms_of_chartab): Add new builtin function
940         `save-char-attribute-table' in UTF-2000.
941
942 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
943
944         * chartab.c (char_attribute_table_to_put): New variable in
945         UTF-2000.
946         (Qput_char_table_map_function): Likewise.
947         (value_to_put): Likewise.
948         (Fput_char_table_map_function): New function in UTF-2000.
949         (put_char_table): Use `Fmap_char_attribute' for
950         CHARTAB_RANGE_CHARSET in UTF-2000.
951         (Fput_char_attribute): Store symbol instead of string in
952         `XCHAR_TABLE_NAME (table)'.
953         (load_char_attribute_maybe): Likewise.
954         (syms_of_chartab): Add new symbol/function
955         `put-char-table-map-function'.
956
957 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
958
959         * database.h: Add new EXFUN for `Fmap_database'.
960
961         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
962         (syms_of_database): Likewise.
963
964         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
965         UTF-2000.
966         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
967         (XCHAR_TABLE_UNLOADED): Likewise.
968
969         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
970         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
971         HAVE_DATABASE is defined.
972         (char_attribute_table_to_load): New variable of UTF-2000 with
973         external database support.
974         (Qload_char_attribute_table_map_function): Likewise.
975         (Fload_char_attribute_table_map_function): New function of
976         UTF-2000 with external database support.
977         (Fload_char_attribute_table): New function of UTF-2000.
978         (Fmap_char_attribute): Call Fload_char_attribute_table if
979         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
980         (syms_of_chartab): Add new symbol and function
981         `load-char-attribute-table-map-function' in UTF-2000 with external
982         database support; add new function `load-char-attribute-table' in
983         UTF-2000.
984
985 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
986
987         * chartab.h (load_char_attribute_maybe): New prototype for
988         UTF-2000 with DATABASE support.
989         (get_char_id_table): Use `load_char_attribute_maybe' if
990         HAVE_DATABASE is defined.
991
992         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
993         with DATABASE support.
994
995 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
996
997         * chartab.c (Fput_char_attribute): Use S-expression as key of
998         external database.
999
1000         * chartab.h (get_char_id_table): Use S-expression as key of
1001         external database.
1002
1003 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1004
1005         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
1006         if an element is not loaded, load the corresponding attributes
1007         from an external database.
1008         (map_over_uint16_byte_table): Likewise.
1009         (map_over_byte_table): Likewise.
1010         (map_char_table): Modify for `map_over_uint8_byte_table',
1011         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
1012         element is not loaded, load the corresponding attributes from an
1013         external database.
1014         (Fput_char_attribute): Change initial values to Qunloaded.
1015
1016         * chartab.h (get_char_id_table): If a character attribute is not
1017         loaded and the attribute value is not found in an external
1018         database, store Qunbound as the attribute value.
1019
1020 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1021
1022         * chartab.c (BT_UINT8_unloaded): New macro.
1023         (UINT8_VALUE_P): Accept Qunloaded.
1024         (UINT8_ENCODE): Likewise.
1025         (UINT8_DECODE): Likewise.
1026         (BT_UINT16_unloaded): New macro.
1027         (UINT16_VALUE_P): Accept Qunloaded.
1028         (UINT16_ENCODE): Likewise.
1029         (UINT16_DECODE): Likewise.
1030         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
1031         BT_UINT16_unloaded.
1032         (mark_char_table): Mark `ct->name' in UTF-2000.
1033         (char_table_description): Add `name' in UTF-2000.
1034         (Fmake_char_table): Initialize `ct->name'.
1035         (Fcopy_char_table): Copy `ct->name'.
1036         (Fput_char_attribute): Store value into an external database if
1037         HAVE_DATABASE is defined.
1038
1039         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
1040         UTF-2000.
1041         (CHAR_TABLE_NAME): New macro in UTF-2000.
1042         (XCHAR_TABLE_NAME): New macro in UTF-2000.
1043         (get_char_id_table): Try to read an external database if Qunloaded
1044         is stored in a table.
1045
1046         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
1047         Qunloaded.
1048
1049 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1050
1051         * database.h: Add EXFUN definitions for Fopen_database,
1052         Fput_database, Fget_database and Fclose_database.
1053
1054         * data.c (Qunloaded): New variable in UTF-2000.
1055
1056         * lisp.h (Qunloaded): New variable in UTF-2000.
1057
1058 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1059
1060         * mule-charset.c (put_char_ccs_code_point): Modify for
1061         `decoding_table_remove_char' and `decoding_table_put_char'.
1062         (remove_char_ccs): Modify for `decoding_table_remove_char'.
1063
1064         * char-ucs.h (decoding_table_remove_char): Change arguments to
1065         hide decoding_table vector.
1066         (decoding_table_put_char): Likewise.
1067
1068 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1069
1070         * mule-charset.c (decoding_table_remove_char): Moved to
1071         char-ucs.h.
1072         (decoding_table_put_char): Likewise.
1073
1074         * char-ucs.h (decoding_table_check_elements): New prototype [moved
1075         from mule-charset.c].
1076         (decoding_table_remove_char): New inline function [moved from
1077         mule-charset.c].
1078         (decoding_table_put_char): Likewise.
1079
1080 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1081
1082         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
1083         extension.
1084
1085 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1086
1087         * mule-charset.c (decode_builtin_char): Support mother charsets.
1088
1089 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1090
1091         * mule-charset.c (Q94x94x60): New variable.
1092         (charset_code_point): Support conversion `94x94x60'.
1093         (Fmake_charset): Likewise.
1094         (syms_of_mule_charset): Add new symbol `94x94x60'.
1095
1096         * char-ucs.h (CONVERSION_94x94x60): New macro.
1097
1098 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1099
1100         * mule-charset.c (charset_code_point): Unify code about
1101         `code-offset'.
1102
1103 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1104
1105         * mule-charset.c (charset_code_point): Merge code about builtin
1106         characters into code about mother charsets; don't use
1107         `range_charset_code_point'.
1108         (range_charset_code_point): Deleted.
1109
1110 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1111
1112         * mule-charset.c (Qcode_offset): New variable.
1113         (Fmake_charset): Use `XUINT' to get value of `min-code' and
1114         `max-code'; accept new property `code-offset'.
1115         (syms_of_mule_charset): Add new symbol `code-offset'.
1116
1117 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1118
1119         * mule-charset.c (range_charset_code_point): Fixed.
1120
1121 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1122
1123         * mule-charset.c (decode_builtin_char): Change semantics of
1124         code-offset of coded-charset.
1125         (charset_code_point): Likewise.
1126         (range_charset_code_point): Likewise.
1127         (complex_vars_of_mule_charset): Modify for the change.
1128
1129 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1130
1131         * mule-charset.c (Fencode_char): Reverse arguments.
1132
1133         * mule-charset.c (charset_code_point): Fixed.
1134
1135 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1136
1137         * mule-charset.c (Vcharset_mojikyo): Deleted.
1138         (Vcharset_mojikyo_2022_1): Deleted.
1139         (Vcharset_mojikyo_pj_{1..21}): Deleted.
1140         (Qmin_code): New variable in UTF-2000.
1141         (Qmax_code): Likewise.
1142         (Qmother): Likewise.
1143         (Qconversion): Likewise.
1144         (Q94x60): Likewise.
1145         (Qmojikyo): Deleted.
1146         (Qmojikyo_2022_1): Deleted.
1147         (Qmojikyo_pj_{1..22}): Deleted.
1148         (mark_charset): Mark `cs->mother'.
1149         (charset_description): Add description for `mother'.
1150         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
1151         new arguments `mother' and `conversion'; use
1152         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
1153         (charset_code_point): Moved from char-ucs.h; support `mother'
1154         charset feature.
1155         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
1156         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
1157         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
1158         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
1159         allow 2 as the value of `graphic' in UTF-2000; add new properties
1160         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
1161         require `final' in UTF-2000; modify for `make_charset'.
1162         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
1163         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
1164         (Fcharset_property): Support `mother', `min-code' and `max-code'.
1165         (Fencode_char): New function.
1166         (syms_of_mule_charset): Add new builtin function `encode-char' in
1167         UTF-2000; add new symbols `min-code', `max-code', `mother',
1168         `conversion' and `94x60'; delete symbols `mojikyo',
1169         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
1170         (complex_vars_of_mule_charset): Modify for `make_charset' change;
1171         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
1172         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
1173
1174         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
1175         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
1176
1177         * char-ucs.h (Vcharset_mojikyo): Deleted.
1178         (Vcharset_mojikyo_2022_1): Deleted.
1179         (LEADING_BYTE_MOJIKYO): Deleted.
1180         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
1181         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
1182         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
1183         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
1184         add new member `mother'; add new member `conversion'.
1185         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
1186         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
1187         (CHARSET_MOTHER): New macro.
1188         (CHARSET_CONVERSION): New macro.
1189         (CONVERSION_IDENTICAL): New macro.
1190         (CONVERSION_94x60): New macro.
1191         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
1192         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
1193         (XCHARSET_MOTHER): New macro.
1194         (XCHARSET_CONVERSION): New macro.
1195         (MIN_CHAR_MOJIKYO): Deleted.
1196         (MAX_CHAR_MOJIKYO): Deleted.
1197         (DECODE_MOJIKYO_2022): Deleted.
1198         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
1199         (charset_code_point): Changed to non-inline function.
1200         (encode_char_1): Use `charset_code_point'.
1201         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
1202
1203 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1204
1205         * lread.c (read_compiled_function): Fix prototype.
1206         (read_vector): Likewise.
1207
1208 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1209
1210         * lrecord.h (struct lrecord_header): Delete `older'.
1211         (set_lheader_implementation): Delete code for `older'.
1212         (set_lheader_older_implementation): Deleted.
1213         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
1214         (OLDER_RECORD_P): Deleted.
1215         (OLDER_RECORD_HEADER_P): Deleted.
1216         (alloc_older_lcrecord): Deleted.
1217         (alloc_older_lcrecord_type): Deleted.
1218
1219         * alloc.c (all_older_lcrecords): Deleted.
1220         (alloc_older_lcrecord): Deleted.
1221         (disksave_object_finalization_1): Delete code for older objects.
1222         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
1223         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
1224
1225 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1226
1227         * mule-charset.c (decoding_table_put_char): Use `make_vector'
1228         instead of `make_older_vector'.
1229         (put_char_ccs_code_point): Likewise.
1230         (mark_charset): Mark `cs->decoding_table'.
1231         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
1232
1233         * lisp.h (make_older_vector): Deleted.
1234         (make_vector_newer): Deleted.
1235
1236         * config.h.in (HAVE_GGC): Deleted.
1237
1238         * alloc.c (make_older_vector): Deleted.
1239         (make_vector_newer_1): Deleted.
1240         (make_vector_newer): Deleted.
1241
1242 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1243
1244         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
1245         (Qideograph_daikanwa_2): New variable.
1246         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
1247         (complex_vars_of_mule_charset): Add new coded-charset
1248         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
1249         `LEADING_BYTE_DAIKANWA'.
1250
1251         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
1252         (LEADING_BYTE_DAIKANWA_1): New macro.
1253         (LEADING_BYTE_DAIKANWA_2): New macro.
1254         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
1255
1256 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1257
1258         * mule-charset.c (complex_vars_of_mule_charset): Change
1259         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
1260         the second revised version.
1261
1262 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1263
1264         * mule-charset.c (Vcharset_ucs_smp): New variable.
1265         (Vcharset_ucs_sip): New variable.
1266         (Qucs_smp): New variable.
1267         (Qucs_sip): New variable.
1268         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
1269         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
1270         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
1271         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
1272         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
1273         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
1274
1275         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
1276         (LEADING_BYTE_UCS_SIP): New macro.
1277         (MIN_CHAR_SMP): New macro.
1278         (MAX_CHAR_SMP): New macro.
1279         (MIN_CHAR_SIP): New macro.
1280         (MAX_CHAR_SIP): New macro.
1281
1282 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
1283
1284         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
1285         utf-2000.
1286
1287 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1288
1289         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
1290         value; don't store value into `encoding_table' of `Lisp_Charset'.
1291         (mark_charset): `encoding_table' was deleted.
1292         (charset_description): Likewise.
1293         (make_charset): Likewise.
1294         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
1295         `put_char_ccs_code_point'.
1296
1297         * chartab.h (Fput_char_attribute): New EXFUN.
1298
1299         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
1300         is unified with normal symbol space.
1301         (Fget_char_attribute): Likewise.
1302         (Fput_char_attribute): Likewise; behavior of
1303         `put_char_ccs_code_point' is changed.
1304
1305         * char-ucs.h: Include "elhash.h".
1306         (Vchar_attribute_hash_table): New external variable.
1307         (struct Lisp_Charset): Delete `encoding_table'.
1308         (CHARSET_ENCODING_TABLE): New implementation; refer
1309         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
1310         `Lisp_Charset'.
1311
1312 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1313
1314         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
1315         (cs) == 0.
1316
1317 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1318
1319         * text-coding.c (char_encode_big5): Prefer charset-g1 than
1320         `chinese-big5'.
1321
1322 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1323
1324         * chartab.c (uint8_byte_table_description): New constant.
1325         (uint8-byte-table): Use `uint8_byte_table_description'.
1326         (uint16_byte_table_description): New constant.
1327         (uint16-byte-table): Use `uint16_byte_table_description'.
1328
1329 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1330
1331         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
1332         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
1333
1334 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1335
1336         * mule-charset.c (Vcharset_ucs_ks): New variable.
1337         (Qucs_ks): New variable.
1338         (syms_of_mule_charset): Add new symbol `ucs-ks'.
1339         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
1340
1341         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
1342
1343 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1344
1345         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
1346         (Fdecode_char): Likewise.
1347
1348         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
1349         chartab.h.
1350         (Fdefine_char): Modify for Fdecode_char.
1351         (Ffind_char): Likewise.
1352
1353         * mule-charset.c (Fdecode_char): Add new optional argument
1354         `defined-only'.
1355         (Fdecode_builtin_char): Modify for `Fdecode_char'.
1356
1357 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1358
1359         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
1360         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
1361         (allocate_coding_system): Initialize initial-charsets of
1362         CODESYS_BIG5 in XEmacs UTF-2000.
1363         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
1364         CODESYS_BIG5 in XEmacs UTF-2000.
1365         (decode_coding_big5): Use initial-charset-g0 and -g1 of
1366         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
1367
1368         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
1369         variables.
1370         (Qideograph_hanziku_{1 .. 12}): Likewise.
1371         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
1372         .. 12}'.
1373         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
1374         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
1375         `ideograph-hanziku-{1 .. 12}'.
1376
1377         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
1378         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
1379         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
1380         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
1381         (DECODE_DEFINED_CHAR): New inline function.
1382         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
1383
1384 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1385
1386         * mule-charset.c (Vcharset_china3_jef): Renamed from
1387         `Vcharset_japanese_jef_china3'.
1388         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
1389         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
1390         `{MIN|MAX}_CHAR_JEF_CHINA3'..
1391         (syms_of_mule_charset): Rename `china3-jef' from
1392         `japanese-jef-china3'.
1393         (complex_vars_of_mule_charset): Likewise; rename
1394         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
1395
1396         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
1397         `LEADING_BYTE_JEF_CHINA3'.
1398         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
1399         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
1400
1401 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1402
1403         * mule-charset.c (encode_builtin_char_1): Comment out special code
1404         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
1405
1406         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
1407         (MAX_CHAR_MOJIKYO_0): Comment out.
1408         (MIN_CHAR_CBETA): Changed to 0x00E20000.
1409         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
1410         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
1411         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
1412
1413 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1414
1415         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
1416         (Qideograph_cbeta): New variable.
1417         (encode_builtin_char_1): Comment out special code for
1418         coded-charset `mojikyo' and `japanese-jef-china3'.
1419         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
1420         (complex_vars_of_mule_charset): Add new coded-charset
1421         `ideograph-cbeta'.
1422
1423         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
1424         (MIN_CHAR_CBETA): New macro.
1425         (MAX_CHAR_CBETA): New macro.
1426
1427 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1428
1429         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
1430         (LEADING_BYTE_JEF_CHINA3): New macro.
1431         (MIN_CHAR_JEF_CHINA3): New macro.
1432         (MAX_CHAR_JEF_CHINA3): Likewise.
1433         (DECODE_CHAR): Fixed.
1434
1435 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1436
1437         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
1438         (Qjapanese_jef_china3): New variable.
1439         (encode_builtin_char_1): Support `japanese-jef-china3'.
1440         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
1441         (complex_vars_of_mule_charset): Add new coded-charset
1442         `japanese-jef-china3'.
1443
1444 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1445
1446         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
1447         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
1448         94^4, 96^3, 96^4, 128^n and 256^n set.
1449         (put_char_table): Use `XCHARSET_CELL_RANGE'.
1450         (map_char_table): Likewise.
1451
1452 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1453
1454         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
1455         UTF-2000.
1456
1457 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1458
1459         * chartab.h (get_char_id_table): New inline function.
1460
1461         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
1462         function.
1463
1464 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1465
1466         * chartab.h (decode_char_table_range): New prototype in XEmacs
1467         UTF-2000.
1468         (put_char_id_table): New inline function in XEmacs UTF-2000.
1469
1470         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
1471         function.
1472         (decode_char_table_range): Delete static declaration in XEmacs
1473         UTF-2000.
1474
1475 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1476
1477         * chartab.c (put_char_id_table): Use `put_char_table'.
1478
1479 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1480
1481         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
1482         (map_over_uint16_byte_table): Likewise.
1483         (map_over_byte_table): Likewise.
1484         (map_char_table): Modify for `map_over_uint8_byte_table',
1485         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
1486         UTF-2000.
1487
1488 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1489
1490         * chartab.c (struct map_char_table_for_charset_arg): New
1491         structure.
1492         (map_char_table_for_charset_fun): New function.
1493         (map_char_table): Use `map_char_table' for encoding_table of
1494         `range->charset'.
1495
1496 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1497
1498         * chartab.c (map_char_table): Check a character is found in
1499         range->charset instead of non default value is defined in
1500         char-table when range is CHARTAB_RANGE_ROW.
1501
1502 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1503
1504         * chartab.c (map_char_id_table): Deleted.
1505         (Fmap_char_attribute): Use `map_char_table' instead of
1506         `map_char_id_table'.
1507
1508 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1509
1510         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
1511         UTF-2000.
1512         (update_syntax_table): Deleted in XEmacs UTF-2000.
1513
1514         * syntax.c (find_defun_start): Use `syntax_table' instead of
1515         `mirror_syntax_table' in XEmacs UTF-2000.
1516         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
1517         UTF-2000.
1518         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
1519         XEmacs UTF-2000.
1520         (Fmatching_paren): Likewise.
1521         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
1522         in XEmacs UTF-2000.
1523         (find_start_of_comment): Likewise.
1524         (find_end_of_comment): Likewise.
1525         (Fforward_comment): Likewise.
1526         (scan_lists): Likewise.
1527         (char_quoted): Likewise.
1528         (Fbackward_prefix_chars): Likewise.
1529         (scan_sexps_forward): Likewise.
1530         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
1531         (update_syntax_table): Likewise.
1532
1533         * search.c (skip_chars): Use `syntax_table' instead of
1534         `mirror_syntax_table' in XEmacs UTF-2000.
1535         (wordify): Likewise.
1536         (Freplace_match): Likewise.
1537
1538         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
1539         `mirror_syntax_table' in XEmacs UTF-2000.
1540         (WORDCHAR_P_UNSAFE): Likewise.
1541         (re_match_2_internal): Likewise.
1542
1543         * font-lock.c (find_context): Use `buf->syntax_table' instead of
1544         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1545
1546         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
1547         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
1548
1549         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
1550         XEmacs UTF-2000.
1551
1552         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
1553         UTF-2000.
1554         (print_char_table): Print `default_value' in XEmacs UTF-2000.
1555         (char_table_description): Delete `mirror_table' in XEmacs
1556         UTF-2000.
1557         (fill_char_table): Don't call `update_syntax_table' in XEmacs
1558         UTF-2000.
1559         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
1560         (Fcopy_char_table): Likewise.
1561         (put_char_table): Don't call `update_syntax_table' in XEmacs
1562         UTF-2000.
1563
1564         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
1565         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1566         (casify_region_internal): Likewise.
1567
1568         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
1569
1570         * buffer.c (common_init_complex_vars_of_buffer): Don't use
1571         `mirror_syntax_table' in XEmacs UTF-2000.
1572
1573         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
1574         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1575         (Fexpand_abbrev): Likewise.
1576
1577 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1578
1579         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
1580
1581 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1582
1583         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
1584         (map_over_uint16_byte_table): Likewise.
1585         (map_over_byte_table): Likewise.
1586         (get_char_id_table): Refer `cit->default_value'.
1587         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1588         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
1589         of character-id ranges.
1590         (mark_char_table): Mark `ct->default_value'.
1591         (char_table_description): Add `default_value'.
1592         (fill_char_table): Use `default_value'.
1593         (decode_char_table_range): Decode `nil' as
1594         `CHARTAB_RANGE_DEFAULT'.
1595         (get_char_id_table): Refer `cit->default_value'.
1596         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1597         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
1598         temporary hack; check value of char-table is bound or not.
1599         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
1600
1601         * chartab.h (struct Lisp_Char_Table): Add new member
1602         `default_value' in XEmacs UTF-2000.
1603         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
1604         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
1605         UTF-2000.
1606
1607 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1608
1609         * chartab.h (Lisp_Char_ID_Table): Deleted.
1610
1611         * chartab.c (char_table_description): Fix typo.
1612         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
1613         `Lisp_Char_ID_Table'.
1614
1615 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1616
1617         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
1618         `CHAR_ID_TABLE_P'.
1619
1620         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
1621         `CHAR_ID_TABLE_P'.
1622
1623         * chartab.h (XCHAR_ID_TABLE): Deleted.
1624         (XSETCHAR_ID_TABLE): Deleted.
1625         (CHAR_ID_TABLE_P): Deleted.
1626
1627         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
1628         `CHAR_ID_TABLE_P'.
1629         (Fget_composite_char): Likewise.
1630         (put_char_table): Likewise.
1631         (add_char_attribute_alist_mapper): Fixed.
1632         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
1633         `CHAR_ID_TABLE_P'.
1634         (Fget_char_attribute): Likewise.
1635         (Fget_char_attribute): Likewise.
1636         (Fmap_char_attribute): Likewise.
1637
1638         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
1639         `CHAR_ID_TABLE_P'.
1640         (encode_char_1): Likewise.
1641
1642 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1643
1644         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
1645         `XCHAR_ID_TABLE'.
1646
1647         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
1648         instead of `XCHAR_ID_TABLE'.
1649         (remove_char_ccs): Likewise.
1650
1651         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
1652         `XCHAR_ID_TABLE'.
1653         (Fget_composite_char): Likewise.
1654         (Fchar_variants): Likewise.
1655         (put_char_table): Likewise.
1656         (add_char_attribute_alist_mapper): Likewise.
1657         (Fchar_attribute_alist): Likewise.
1658         (Fget_char_attribute): Likewise.
1659         (Fput_char_attribute): Likewise.
1660         (Fmap_char_attribute): Likewise.
1661         (Fmap_char_attribute): Likewise.
1662
1663         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
1664         `XCHAR_ID_TABLE'.
1665         (encode_char_1): Likewise.
1666
1667 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1668
1669         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
1670         `Lisp_Char_ID_Table'.
1671         (mark_char_id_table): Deleted.
1672         (print_char_id_table): Likewise.
1673         (char_id_table_equal): Likewise.
1674         (char_id_table_hash): Likewise.
1675         (char_id_table_description): Likewise.
1676         (char_id_table): Likewise.
1677         (make_char_id_table): Use `Fmake_char_table' and
1678         `fill_char_table'.
1679         (get_char_id_table): Use `Lisp_Char_Table' instead of
1680         `Lisp_Char_ID_Table'.
1681         (put_char_id_table): Likewise.
1682         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
1683         `XCHAR_ID_TABLE'.
1684         (Fremove_char_attribute): Likewise.
1685         (syms_of_chartab): Don't define type `char-id-table'.
1686
1687         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
1688         (char_id_table): Likewise.
1689         (GC_CHAR_ID_TABLE_P): Likewise.
1690         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
1691         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
1692         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
1693         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
1694         (get_char_id_table): Use `Lisp_Char_Table' instead of
1695         `Lisp_Char_ID_Table'.
1696         (put_char_id_table_0): Likewise.
1697         (put_char_id_table): Likewise.
1698
1699 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1700
1701         * chartab.h: Lisp_Byte_Table related codes are moved from
1702         chartab.h.
1703
1704         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
1705
1706 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1707
1708         * chartab.h: Don't include "chartab.h".
1709         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
1710         (Lisp_Char_ID_Table): Likewise.
1711         (char_id_table): Likewise.
1712         (XCHAR_ID_TABLE): Likewise.
1713         (XSETCHAR_ID_TABLE): Likewise.
1714         (CHAR_ID_TABLE_P): Likewise.
1715         (GC_CHAR_ID_TABLE_P): Likewise.
1716         (get_char_id_table): Likewise.
1717
1718         * char-ucs.h: Include "chartab.h".
1719         (struct Lisp_Char_ID_Table): Moved to chartab.h.
1720         (Lisp_Char_ID_Table): Likewise.
1721         (char_id_table): Likewise.
1722         (XCHAR_ID_TABLE): Likewise.
1723         (XSETCHAR_ID_TABLE): Likewise.
1724         (CHAR_ID_TABLE_P): Likewise.
1725         (GC_CHAR_ID_TABLE_P): Likewise.
1726         (get_char_id_table): Likewise.
1727
1728 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1729
1730         * chartab.c (copy_uint8_byte_table): New function.
1731         (copy_uint16_byte_table): New function.
1732         (copy_byte_table): New function.
1733         (map_over_uint8_byte_table): Modify to avoid huge numbers of
1734         characters to call.
1735         (map_over_uint16_byte_table): Likewise.
1736         (map_over_byte_table): Likewise.
1737         (get_byte_table): Move prototype to chartab.h.
1738         (put_byte_table): Likewise.
1739         (put_char_id_table_0): Moved to chartab.h.
1740         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
1741         (char_table_entry_equal): Likewise.
1742         (char_table_entry_hash): Likewise.
1743         (char_table_entry_description): Likewise.
1744         (char_table_entry): Likewise.
1745         (make_char_table_entry): Likewise.
1746         (copy_char_table_entry): Likewise.
1747         (get_non_ascii_char_table_value): Likewise.
1748         (map_over_charset_ascii): Likewise.
1749         (map_over_charset_control_1): Likewise.
1750         (map_over_charset_row): Likewise.
1751         (map_over_other_charset): Likewise.
1752         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
1753         (print_char_table): Likewise.
1754         (char_table_equal): Likewise.
1755         (char_table_hash): Likewise.
1756         (char_table_description): Likewise.
1757         (fill_char_table): Likewise.
1758         (Fcopy_char_table): Likewise.
1759         (get_char_table): Likewise.
1760         (Fget_range_char_table): Likewise.
1761         (put_char_table): Likewise.
1762         (map_char_table): Likewise.
1763         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
1764         UTF-2000.
1765
1766 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1767
1768         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
1769         `Vauto_fill_chars' in XEmacs UTF-2000.
1770
1771         * chartab.h (get_byte_table): New prototype [moved from
1772         chartab.c].
1773         (put_byte_table): Likewise [moved from chartab.c].
1774         (put_char_id_table_0): New inline function [moved from chartab.c].
1775         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
1776         (Lisp_Char_Table_Entry): Likewise.
1777         (char_table_entry): Likewise.
1778         (XCHAR_TABLE_ENTRY): Likewise.
1779         (XSETCHAR_TABLE_ENTRY): Likewise.
1780         (CHAR_TABLE_ENTRYP): Likewise.
1781         (CHECK_CHAR_TABLE_ENTRY): Likewise.
1782         (NUM_ASCII_CHARS): Likewise.
1783         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
1784         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
1785
1786 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1787
1788         * chartab.c (get_char_id_table): Change interface.
1789         (put_char_id_table_0): New function.
1790         (put_char_id_table): Change interface; new implementation.
1791         (Fget_composite_char): Modify for interface change of
1792         `get_char_id_table'.
1793         (Fchar_variants): Likewise.
1794         (add_char_attribute_alist_mapper): Likewise.
1795         (Fchar_attribute_alist): Likewise.
1796         (Fget_char_attribute): Likewise.
1797         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
1798         as same as character as the first argument like `put-char-table';
1799         modify for interface change of `put_char_id_table'.
1800         (Fremove_char_attribute): Modify for interface change of
1801         `put_char_id_table'.
1802
1803 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1804
1805         * text-coding.c: Sync up with XEmacs 21.2.41.
1806         (COMPOSE_ADD_CHAR): Modify for interface change of
1807         `get_char_id_table'.
1808
1809         * mule-charset.c (put_char_ccs_code_point): Modify for interface
1810         change of `put_char_id_table'.
1811         (remove_char_ccs): Likewise.
1812
1813         * chartab.h (put_char_id_table): Change interface.
1814
1815         * char-ucs.h (get_char_id_table): Change interface.
1816         (charset_code_point): Modify for interface change of
1817         `get_char_id_table'.
1818         (encode_char_1): Likewise.
1819
1820 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1821
1822         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
1823         argument `ccs'.
1824         (map_over_uint16_byte_table): Likewise.
1825         (map_over_byte_table): Likewise.
1826         (map_char_id_table): Add new argument `range' like
1827         `map_char_table'.
1828         (Fmap_char_attribute): Add new argument `range' like
1829         `Fmap_char_table'.
1830
1831 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1832
1833         * chartab.c (map_over_uint8_byte_table): Change interface of
1834         mapping function to use struct chartab_range instead of Emchar.
1835         (map_over_uint16_byte_table): Likewise.
1836         (map_over_byte_table): Likewise.
1837         (map_char_id_table): Likewise.
1838         (struct slow_map_char_id_table_arg): Deleted.
1839         (slow_map_char_id_table_fun): Deleted.
1840         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
1841         function `slow_map_char_table_fun' instead of struct
1842         `slow_map_char_id_table_arg' and function
1843         `slow_map_char_id_table_fun'.
1844
1845 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1846
1847         * mule-charset.c: Move char-it-table related codes to chartab.c.
1848         (Vutf_2000_version): Moved to chartab.c.
1849         (Fdefine_char): Likewise.
1850         (Ffind_char): Likewise.
1851         (syms_of_mule_charset): Move types `uint8-byte-table',
1852         `uint16-byte-table', `byte-table' and `char-id-table' to
1853         chartab.c; move functions `char_attribute_list,
1854         `find_char_attribute_table, `char_attribute_alist,
1855         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
1856         `map_char_attribute, `define_char, `find_char, `char_variants and
1857         `get_composite_char to chartab.c; move symbols `=>ucs',
1858         `->decomposition', `compat', `isolated', `initial', `medial',
1859         `final', `vertical', `noBreak', `fraction', `super', `sub',
1860         `circle', `square', `wide', `narrow', `small' and `font' to
1861         chartab.c.
1862         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
1863         setting codes for `Vcharacter_composition_table' and
1864         `Vcharacter_variant_table' to chartab.c.
1865         (complex_vars_of_mule_charset): Move setting code for
1866         `Vchar_attribute_hash_table' to chartab.c.
1867
1868         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
1869         (make_char_id_table): New prototype.
1870         (put_char_id_table): Likewise.
1871         (Fget_char_attribute): Likewise.
1872
1873         * chartab.c: Move char-id-table related code from mule-charset.c.
1874         (Vutf_2000_version): Moved from mule-charset.c.
1875
1876         * char-ucs.h (Qucs): New external variable.
1877         (put_char_ccs_code_point): New prototype.
1878         (remove_char_ccs): Likewise.
1879
1880 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1881
1882         * mule-charset.c (Vcharset_ucs_jis): New variable.
1883         (Qucs_jis): Likewise.
1884         (syms_of_mule_charset): Add new symbol `ucs-jis'.
1885         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
1886
1887         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
1888
1889 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1890
1891         * mule-charset.c (map_over_uint8_byte_table): New function.
1892         (map_over_uint16_byte_table): Likewise.
1893         (map_over_byte_table): Likewise.
1894         (map_char_id_table): Likewise.
1895         (slow_map_char_id_table_fun): Likewise.
1896         (Fmap_char_attribute): Likewise.
1897         (syms_of_mule_charset): Add new function `map-char-attribute'.
1898
1899 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1900
1901         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
1902         (syms_of_mule_charset): Add new function `find-char'.
1903
1904 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1905
1906         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
1907         XEmacs UTF-2000.
1908         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
1909         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
1910         XEmacs UTF-2000.
1911         (complex_vars_of_mule_charset): Add new coded-charset
1912         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
1913         `ideograph-gt-pj-*'.
1914
1915         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
1916
1917 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1918
1919         * mule-charset.c (encode_builtin_char_1): Purge codes about
1920         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
1921         {MIN|MAX}_CHAR_HEBREW.
1922         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
1923         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
1924
1925         * char-ucs.h (MIN_CHAR_GREEK): Purged.
1926         (MAX_CHAR_GREEK): Purged.
1927         (MIN_CHAR_CYRILLIC): Purged.
1928         (MAX_CHAR_CYRILLIC): Purged.
1929         (MIN_CHAR_HEBREW): Commented out.
1930         (MAX_CHAR_HEBREW): Likewise.
1931
1932 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1933
1934         * mule-charset.c (Qto_ucs): New variable.
1935         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
1936         (Fdefine_char): Likewise.
1937         (syms_of_mule_charset): Add new symbol `=>ucs'.
1938
1939 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1940
1941         * mule-charset.c (Fdecode_char): Fixed.
1942
1943 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1944
1945         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
1946         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
1947         "tcvn5712-1".
1948
1949 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1950
1951         * mule-charset.c (Vcharset_ucs_big5): New variable.
1952         (Qucs_big5): Likewise.
1953         (syms_of_mule_charset): Add new symbol `ucs-big5'.
1954         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
1955
1956         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
1957
1958 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1959
1960         * mule-charset.c (decode_builtin_char): Check Big5 code range
1961         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
1962
1963 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1964
1965         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
1966         (Qchinese_gb12345): Likewise.
1967         (Fdecode_builtin_char): Fixed.
1968         (syms_of_mule_charset): Add `chinese-gb12345'.
1969         (complex_vars_of_mule_charset): Add coded-charset
1970         `chinese-gb12345'.
1971
1972         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
1973         (LEADING_BYTE_CHINESE_GB12345): New macro.
1974
1975 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1976
1977         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
1978         and `latin-viscii-upper' for `latin-viscii'.
1979
1980 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1981
1982         * mule-charset.c (Fdecode_builtin_char): Comment out
1983         regularization code for ISO-IR GR representation.
1984
1985 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1986
1987         * mule-charset.c (decode_builtin_char): New function; renamed from
1988         `make_builtin_char'; return -1 instead of signal.
1989         (Fdecode_builtin_char): Use `decode_builtin_char'.
1990
1991         * char-ucs.h (decode_builtin_char): New prototype; renamed from
1992         `make_builtin_char'.
1993         (DECODE_CHAR): Use `decode_builtin_char' instead of
1994         `make_builtin_char'; use mapping table of `chinese-big5' for
1995         `chinese-big5-{1,2}'.
1996
1997 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1998
1999         * text-coding.c (char_encode_big5): New function.
2000         (char_finish_big5): Likewise.
2001         (reset_encoding_stream): Use `char_encode_big5' and
2002         `char_finish_big5' for CODESYS_BIG5.
2003         (mule_encode): Don't use `encode_coding_big5'.
2004         (encode_coding_big5): Deleted.
2005
2006 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2007
2008         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
2009         0x81- in XEmacs UTF-2000.
2010         (detect_coding_big5): Likewise.
2011
2012 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2013
2014         * mule-charset.c (Fdefine_char): Don't use a CCS property to
2015         generate character-id if the CCS property does not have
2016         corresponding predefined character.
2017         (make_builtin_char): Return -1 if corresponding predefined
2018         character is not found.
2019         (Fdecode_char): Return nil if corresponding character is not
2020         found.
2021         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
2022         don't map to builtin ucs space.
2023
2024 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2025
2026         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
2027         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
2028
2029 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2030
2031         * mule-charset.c (Vcharset_ideograph_gt): New variable.
2032         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
2033         (Qideograph_gt): Likewise.
2034         (Qideograph_gt_pj_{1..11}): Likewise.
2035         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
2036         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
2037         `ideograph-gt-pj-11'.
2038         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
2039         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
2040         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
2041
2042         * char-ucs.h (LEADING_BYTE_GT): New macro.
2043         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
2044         (MIN_CHAR_GT): Likewise.
2045         (MAX_CHAR_GT): Likewise.
2046
2047 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2048
2049         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
2050         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
2051
2052         * doprnt.c (unsigned_int_converters): Add `c'.
2053         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
2054
2055         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
2056         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
2057         `MIN_CHAR_MOJIKYO'.
2058         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
2059         (MAX_CHAR_MOJIKYO_0): New macro.
2060         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
2061
2062 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2063
2064         * mule-charset.c (Fdefine_char): Delete cemented out code.
2065         (encode_builtin_char_1): Modify for new allocation of builtin
2066         Mojikyo characters.
2067
2068         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
2069
2070 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2071
2072         * mule-charset.c (Vcharset_ucs_cns): New variable.
2073         (Qucs_cns): New variable.
2074         (syms_of_mule_charset): Add new symbol `ucs-cns'.
2075         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
2076
2077 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2078
2079         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
2080
2081 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2082
2083         * search.c (search_buffer): Make `charset_base_code' as
2084         character-id >> 6 to eliminate the corresponding last byte in
2085         UTF-8 representation [I'm not sure it is right thing].
2086         (boyer_moore): Likewise.
2087
2088 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2089
2090         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
2091         representation in MULE.
2092
2093 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2094
2095         * text-coding.c (Fmake_coding_system): Use
2096         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
2097         `EXTERNAL_PROPERTY_LIST_LOOP'.
2098
2099 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2100
2101         * text-coding.c (decode_output_utf8_partial_char): New function.
2102         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
2103
2104 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2105
2106         * text-coding.c (decode_coding_utf8): Output original byte
2107         sequence if it is broken; change order of conditions.
2108
2109         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
2110         of conditions.
2111
2112         * mb-multibyte.h (BYTE_ASCII_P):
2113         Use bit ops for char-signedness safety.
2114         (BYTE_C0_P): Use bit ops for char-signedness safety.
2115         (BYTE_C1_P): Use bit ops for char-signedness safety.
2116
2117         * character.h: (XCHAR_OR_CHAR_INT):
2118         Always use inline function.
2119         Remove redundant type checking assert() - XINT will abort quite
2120         nicely.
2121
2122 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2123
2124         * text-coding.c: (Fencode_shift_jis_char):
2125         (Fencode_big5_char):
2126         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
2127         Replace 0 with '\0' when working with bytes.
2128         Replace initial "(" with "\(" in docstrings.
2129
2130         (Fmake_coding_system):
2131         When type is ccl and value is vector, register it with a proper
2132         symbol.  And checks whether the given ccl program is valid.
2133         (mule_decode): When calling ccl_driver, if src indicates
2134         NULL pointer, set an empty string instead.
2135         (mule_encode): Likewise.
2136
2137         (detect_eol_type):
2138         (detect_coding_sjis):
2139         (decode_coding_sjis):
2140         (detect_coding_big5):
2141         (decode_coding_big5):
2142         (detect_coding_ucs4):
2143         (decode_coding_ucs4):
2144         (detect_coding_utf8):
2145         (decode_coding_utf8):
2146         (detect_coding_iso2022):
2147         (decode_coding_iso2022):
2148         (decode_coding_no_conversion):
2149         (mule_decode):
2150         Make all detecting and decoding functions take an Extbyte * arg.
2151         (text_encode_generic):
2152         (encode_coding_big5):
2153         (encode_coding_no_conversion):
2154         (mule_encode):
2155         Make all encoding functions take a Bufbyte * arg.
2156         Use size_t instead of unsigned int for memory sizes.
2157         Only cast to unsigned char whenever dereferencing Extbyte *.
2158
2159         (struct lrecord_description fcd_description_1): Use countof.
2160         (complex_vars_of_file_coding):
2161         Use countof instead of sizeof.
2162         Use CHECK_NATNUM instead of CHECK_INT.
2163
2164 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2165
2166         * mule-charset.c (Fget_char_attribute): Add new optional argument
2167         `default-value'.
2168         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
2169         (remove_char_ccs): Likewise.
2170
2171 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2172
2173         * text-coding.c (char_encode_shift_jis): New implementation in
2174         UTF-2000.
2175         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
2176         ...)'.
2177
2178         * mule-charset.c (Vcharset_chinese_big5): New variable in
2179         UTF-2000.
2180         (Qchinese_big5): New variable in UTF-2000.
2181         (BIG5_SAME_ROW): New macro in UTF-2000.
2182         (make_builtin_char): Use builtin characters of
2183         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
2184         characters of `Vcharset_chinese_big5'.
2185         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
2186         (complex_vars_of_mule_charset): Add new coded-charset
2187         `chinese-big5' in UTF-2000.
2188
2189         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
2190         (Vcharset_chinese_big5): New external variable declaration.
2191         (Vcharset_japanese_jisx0208_1990): Likewise.
2192
2193 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2194
2195         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
2196         function.
2197         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
2198
2199 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2200
2201         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
2202         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
2203         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
2204         `mojikyo-pj-*'.
2205
2206 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2207
2208         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
2209
2210 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2211
2212         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2213         to 0.17.
2214
2215 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2216
2217         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
2218         for `CHARSET_BY_ATTRIBUTES'.
2219         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2220         `CHARSET_BY_ATTRIBUTES'.
2221
2222         * text-coding.c (struct decoding_stream): Rename member `CH' to
2223         `CPOS'.
2224         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
2225         (decode_coding_sjis): Likewise.
2226         (decode_coding_big5): Likewise.
2227         (decode_coding_ucs4): Likewise.
2228         (decode_coding_utf8): Likewise.
2229         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2230         `CHARSET_BY_ATTRIBUTES'.
2231         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
2232         `str->counter'; decode 3, 4 bytes sets.
2233         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
2234         sets.
2235         (decode_coding_no_conversion): Use `str->cpos' instead of
2236         `str->ch'.
2237
2238         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
2239         (Qmojikyo_2022_1): New variable.
2240         (make_charset): Don't use `CHARSET_TYPE_*'.
2241         (range_charset_code_point): Support coded-charset
2242         `mojikyo-2022-1'.
2243         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
2244         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
2245         `CHARSET_BY_ATTRIBUTES'.
2246         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
2247         `CHARSET_BY_ATTRIBUTES'.
2248         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
2249         (complex_vars_of_mule_charset): Add new coded-charset
2250         `mojikyo-2022-1'.
2251
2252         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
2253         interface; changed to inline function.
2254
2255         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
2256         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
2257         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
2258         (CHARSET_TYPE_94): Deleted.
2259         (CHARSET_TYPE_94X94): Deleted.
2260         (CHARSET_TYPE_96): Deleted.
2261         (CHARSET_TYPE_96X96): Deleted.
2262         (CHARSET_TYPE_128): Deleted.
2263         (CHARSET_TYPE_128X128): Deleted.
2264         (CHARSET_TYPE_256): Deleted.
2265         (CHARSET_TYPE_256X256): Deleted.
2266         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
2267         to inline function.
2268         (DECODE_MOJIKYO_2022): New inline function.
2269         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
2270         `Vcharset_mojikyo_2022_1'.
2271
2272 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2273
2274         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
2275         instead of `EQ'.
2276         (put_byte_table): Likewise.
2277         (char_id_table_equal): Use `get_byte_table' [new implementation].
2278
2279 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2280
2281         * mule-charset.c: Include <limits.h> in UTF-2000.
2282         (BT_UINT8_MIN): New macro in UTF-2000.
2283         (BT_UINT8_MAX): New macro in UTF-2000.
2284         (BT_UINT8_t): New macro in UTF-2000.
2285         (BT_UINT8_nil): New macro in UTF-2000.
2286         (BT_UINT8_unbound): New macro in UTF-2000.
2287         (INT_UINT8_P): New inline function in UTF-2000.
2288         (UINT8_VALUE_P): New inline function in UTF-2000.
2289         (UINT8_ENCODE): New inline function in UTF-2000.
2290         (UINT8_DECODE): New inline function in UTF-2000.
2291         (mark_uint8_byte_table): New function in UTF-2000.
2292         (print_uint8_byte_table): New function in UTF-2000.
2293         (uint8_byte_table_equal): New function in UTF-2000.
2294         (uint8_byte_table_hash): New function in UTF-2000.
2295         (make_uint8_byte_table): New function in UTF-2000.
2296         (uint8_byte_table_same_value_p): New function in UTF-2000.
2297         (BT_UINT16_MIN): New macro in UTF-2000.
2298         (BT_UINT16_MAX): New macro in UTF-2000.
2299         (BT_UINT16_t): New macro in UTF-2000.
2300         (BT_UINT16_nil): New macro in UTF-2000.
2301         (BT_UINT16_unbound): New macro in UTF-2000.
2302         (INT_UINT16_P): New inline function in UTF-2000.
2303         (UINT16_VALUE_P): New inline function in UTF-2000.
2304         (UINT16_ENCODE): New inline function in UTF-2000.
2305         (UINT16_DECODE): New inline function in UTF-2000.
2306         (UINT8_TO_UINT16): New inline function in UTF-2000.
2307         (mark_uint16_byte_table): New function in UTF-2000.
2308         (print_uint16_byte_table): New function in UTF-2000.
2309         (uint16_byte_table_equal): New function in UTF-2000.
2310         (uint16_byte_table_hash): New function in UTF-2000.
2311         (make_uint16_byte_table): New function in UTF-2000.
2312         (uint16_byte_table_same_value_p): New function in UTF-2000.
2313         (print_byte_table): New function in UTF-2000.
2314         (byte-table): Use `print_byte_table' as printer.
2315         (make_byte_table): Delete second argument `older'.
2316         (byte_table_same_value_p): New function in UTF-2000.
2317         (copy_byte_table): Deleted.
2318         (get_byte_table): New function in UTF-2000.
2319         (put_byte_table): New function in UTF-2000.
2320         (print_char_id_table): New function in UTF-2000.
2321         (char-id-table): Use `print_char_id_table' as printer.
2322         (make_char_id_table): Delete second argument `older'.
2323         (get_char_id_table): Use `get_byte_table [new implementation].
2324         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
2325         implementation].
2326         (Ffind_char_attribute_table): New function in UTF-2000.
2327         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2328         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
2329         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
2330         (syms_of_mule_charset): Add new function
2331         `find-char-attribute-table' in UTF-2000.
2332
2333         * lrecord.h (enum lrecord_type): Add
2334         `lrecord_type_uint16_byte_table' and
2335         `lrecord_type_uint8_byte_table'.
2336
2337         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
2338         (Lisp_Uint8_Byte_Table): New type.
2339         (XUINT8_BYTE_TABLE): New macro.
2340         (XSETUINT8_BYTE_TABLE): New macro.
2341         (UINT8_BYTE_TABLE_P): New macro.
2342         (GC_UINT8_BYTE_TABLE_P): New macro.
2343         (struct Lisp_Uint16_Byte_Table): New structure.
2344         (Lisp_Uint16_Byte_Table): New type.
2345         (XUINT16_BYTE_TABLE): New macro.
2346         (XSETUINT16_BYTE_TABLE): New macro.
2347         (UINT16_BYTE_TABLE_P): New macro.
2348         (GC_UINT16_BYTE_TABLE_P): New macro.
2349
2350 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2351
2352         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
2353         (Vcharacter_ideographic_strokes_table): Deleted.
2354         (Vcharacter_total_strokes_table): Deleted.
2355         (Vcharacter_morohashi_daikanwa_table): Deleted.
2356         (Vcharacter_decomposition_table): Deleted.
2357         (Qname): Deleted because it is duplicated.
2358         (Qideographic_radical): Deleted.
2359         (Qideographic_strokes): Deleted.
2360         (Qtotal_strokes): Deleted.
2361         (Qmorohashi_daikanwa): Deleted.
2362         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
2363         `ideographic-radical', `ideographic-strokes', `total-strokes',
2364         `morohashi-daikanwa' and `->decomposition'.
2365         (Fget_char_attribute): Likewise.
2366         (Fput_char_attribute): Likewise; use `make-vector' instead of
2367         `make_older_vector' for `->decomposition' value.
2368         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
2369         `ideograph-daikanwa'.
2370         (syms_of_mule_charset): Delete builtin symbols `name',
2371         `ideographic-radical', `ideographic-strokes', `total-strokes' and
2372         `morohashi-daikanwa'.
2373         (vars_of_mule_charset): Don't setup
2374         `Vcharacter_ideographic_radical_table',
2375         `Vcharacter_ideographic_strokes_table',
2376         `Vcharacter_total_strokes_table',
2377         `Vcharacter_morohashi_daikanwa_table' and
2378         `Vcharacter_decomposition_table'.
2379
2380 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2381
2382         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
2383         `make_older_vector', `make_vector_newer_1' and
2384         `make_vector_newer'.
2385
2386         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
2387         `make_older_vector' and `make_vector_newer'.
2388
2389         * config.h.in (HAVE_GGC): New macro.
2390
2391 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2392
2393         * mule-charset.c (struct char_attribute_list_closure): New
2394         structure in UTF-2000.
2395         (add_char_attribute_to_list_mapper): New function in UTF-2000.
2396         (Fchar_attribute_list): Likewise.
2397         (Fset_charset_mapping_table): Use `make_vector_newer'.
2398         (Fdecode_builtin_char): New function in UTF-2000.
2399         (syms_of_mule_charset): Add new function `char-attribute-list' and
2400         `decode-builtin-char' in UTF-2000.
2401
2402         * lisp.h (make_vector_newer): New prototype.
2403
2404         * alloc.c (make_vector_newer_1): New function.
2405         (make_vector_newer): New function.
2406
2407 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2408
2409         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
2410         50100)'.
2411
2412 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2413
2414         * mule-charset.c (Vchar_attribute_hash_table): New variable.
2415         (Vcharacter_attribute_table): Deleted.
2416         (Vcharacter_name_table): Deleted.
2417         (put_char_attribute): Deleted.
2418         (remove_char_attribute): Deleted.
2419         (struct char_attribute_alist_closure): New structure.
2420         (add_char_attribute_alist_mapper): New function.
2421         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
2422         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
2423         (Fget_char_attribute): Likewise.
2424         (Fput_char_attribute): Likewise.
2425         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
2426         of `remove_char_attribute'.
2427         (Fdefine_char): Return character.
2428         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
2429         and `Vcharacter_name_table'.
2430         (complex_vars_of_mule_charset): Likewise
2431         `Vchar_attribute_hash_table'.
2432
2433 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2434
2435         * character.h (CHARC_CHARSET): New macro.
2436         (CHARC_CHARSET_ID): New macro.
2437         (CHARC_CODE_POINT): New macro.
2438         (CHARC_COLUMNS): New macro.
2439         (CHARC_TO_CHAR): New inline function.
2440         (CHARC_EQ): New inline function.
2441         (CHARC_ASCII_EQ): New inline function.
2442         (CHARC_IS_SPACE): New inline function.
2443         (ASCII_TO_CHARC): New inline function.
2444
2445         * char-ucs.h (encode_char_2): Deleted.
2446         (ENCODE_CHAR): Use `encode_char_1' again.
2447         (breakup_char_1): Likewise.
2448         (CHAR_TO_CHARC): New inline function.
2449
2450         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
2451
2452 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2453
2454         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
2455         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
2456         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
2457         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
2458         (create_string_text_block): Use `CHARC_ASCII_EQ' and
2459         `CHARC_IS_SPACE'.
2460         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
2461
2462         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
2463         `CHARC_CODE_POINT'.
2464         (x_output_display_block): Use `CHARC_CHARSET' and
2465         `CHARC_ASCII_EQ'.
2466
2467         * redisplay-tty.c (tty_output_display_block): Use
2468         `CHARC_ASCII_EQ'.
2469         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
2470
2471         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
2472
2473         * insdel.c (find_charsets_in_charc_string): Use
2474         `CHARC_CHARSET_ID'.
2475         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
2476         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
2477         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
2478         (convert_charc_string_into_malloced_string): Likewise.
2479
2480 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2481
2482         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
2483         instead of <Emchar_dynarr *> for buf; use
2484         `convert_bufbyte_string_into_charc_dynarr' instead of
2485         `convert_bufbyte_string_into_emchar_dynarr'; use
2486         `find_charsets_in_charc_string' instead of
2487         `find_charsets_in_emchar_string'.
2488
2489         * redisplay.h:
2490         - Include "character.h".
2491         (struct rune): New member `cglyph'; delete member `chr'.
2492
2493         * redisplay.c (redisplay_text_width_charc_string): New function;
2494         delete `redisplay_text_width_emchar_string'.
2495         (rtw_charc_dynarr): New variable; renamed from
2496         `rtw_emchar_dynarr'.
2497         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
2498         `rtw_emchar_dynarr'; use
2499         `convert_bufbyte_string_into_charc_dynarr' instead of
2500         `convert_bufbyte_string_into_emchar_dynarr'; use
2501         `redisplay_text_width_charc_string' instead of
2502         `redisplay_text_width_emchar_string'.
2503         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
2504         instead of `rtw_emchar_dynarr'; use
2505         `convert_bufbyte_string_into_charc_dynarr' instead of
2506         `convert_bufbyte_string_into_emchar_dynarr'.
2507         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
2508         `redisplay_text_width_charc_string' instead of
2509         `redisplay_text_width_emchar_string'.
2510         (create_text_block): Modify for <struct rune> change.
2511         (generate_formatted_string_db): Likewise.
2512         (create_string_text_block): Likewise.
2513         (pixel_to_glyph_translation): Likewise.
2514
2515         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
2516         instead of <const Emchar *>.
2517         (x_text_width): Likewise.
2518         (x_output_display_block): Use <Charc_dynarr *> instead
2519         <Emchar_dynarr *>; modify for <structure rune> change.
2520         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
2521         *>.
2522
2523         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
2524         <const Emchar *>; use `charc_string_displayed_columns' instead of
2525         `emchar_string_displayed_columns'.
2526         (tty_output_display_block): Use <Charc_dynarr *> instead of
2527         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
2528         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
2529         (tty_output_charc_dynarr_dynarr): New variable; renamed from
2530         `tty_output_emchar_dynarr_dynarr'.
2531         (tty_output_charc_dynarr): New function; delete
2532         `tty_output_charc_dynarr'.
2533
2534         * redisplay-output.c (compare_runes): Modify for `struct rune'.
2535         (redisplay_output_layout): Use <Charc_dynarr *> instead of
2536         <Emchar_dynarr *> for buf; use
2537         `convert_bufbyte_string_into_charc_dynarr' instead of
2538         `convert_bufbyte_string_into_emchar_dynarr'.
2539
2540         * frame.c (title_string_charc_dynarr): New variable; renamed from
2541         `title_string_emchar_dynarr'.
2542         (generate_title_string): Use `title_string_charc_dynarr' instead
2543         of `title_string_emchar_dynarr'; use
2544         `convert_charc_string_into_malloced_string' instead of
2545         `convert_emchar_string_into_malloced_string'.
2546         (init_frame): Use `title_string_charc_dynarr' instead of
2547         `title_string_emchar_dynarr'.
2548
2549         * console.h:
2550         - Include "character.h".
2551         (struct console_methods): Use <const Charc *> instead of <const
2552         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
2553         <Emchar_dynarr *> in output_string_method.
2554
2555         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
2556         <Emchar_dynarr *>.
2557
2558         * console-stream.c (stream_text_width): Use <const Charc *>
2559         instead of <const Emchar *>.
2560
2561         * character.h (Charc_dynarr): New type.
2562
2563         * char-ucs.h (structure Charc): New structure; define new type
2564         `Charc'.
2565
2566         * char-lb.h (DECODE_CHAR): New inline function.
2567         (encode_char_1): New inline function.
2568         (ENCODE_CHAR): New macro.
2569         (structure Charc): New structure; define new type `Charc'.
2570
2571         * char-1byte.h (Vcharset_control_1): New macro.
2572         (Vcharset_latin_iso8859_1): New macro.
2573         (DECODE_CHAR): New inline function.
2574         (encode_char_1): New inline function.
2575         (ENCODE_CHAR): New macro.
2576         (structure Charc): New structure; define new type `Charc'.
2577
2578         * insdel.c (find_charsets_in_charc_string): New function; delete
2579         `find_charsets_in_emchar_string'.
2580         (charc_string_displayed_columns): New function; delete
2581         `emchar_string_displayed_columns'.
2582         (convert_bufbyte_string_into_charc_dynarr): New function; delete
2583         `convert_bufbyte_string_into_emchar_dynarr'.
2584         (convert_charc_string_into_bufbyte_dynarr): New function; delete
2585         `convert_charc_string_into_bufbyte_dynarr'.
2586         (convert_charc_string_into_malloced_string): New function; delete
2587         `convert_charc_string_into_malloced_string'.
2588
2589         * buffer.h (find_charsets_in_charc_string): New prototype; delete
2590         `find_charsets_in_emchar_string'.
2591         (charc_string_displayed_columns): New prototype; delete
2592         `emchar_string_displayed_columns'.
2593         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
2594         `convert_charc_string_into_bufbyte_dynarr'.
2595         (convert_charc_string_into_malloced_string): New prototype; delete
2596         `convert_charc_string_into_malloced_string'.
2597
2598 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2599
2600         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
2601
2602 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2603
2604         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
2605
2606         * char-ucs.h: Use <short> for <Charset_ID>.
2607
2608         * mule-charset.h, char-1byte.h: Use <unsigned char> for
2609         <Charset_ID>.
2610
2611 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2612
2613         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2614         to 0.16.
2615
2616 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2617
2618         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
2619         variable.
2620         (Qmorohashi_daikanwa): New variable.
2621         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
2622         for `morohashi-daikanwa' attribute.
2623         (Fget_char_attribute): Likewise.
2624         (Fput_char_attribute): Likewise.
2625         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
2626         has the same value of `ideograph-daikanwa'.
2627         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
2628         (vars_of_mule_charset): Setup
2629         `Vcharacter_morohashi_daikanwa_table'.
2630
2631 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2632
2633         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
2634         attributes.
2635         (add_charset_to_list_mapper): Add `key' instead of
2636         `XCHARSET_NAME (value)' to return aliases.
2637
2638 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2639
2640         * mule-charset.c (Vcharacter_ideographic_radical_table): New
2641         variable.
2642         (Vcharacter_ideographic_strokes_table): New variable.
2643         (Qideographic_radical): New variable.
2644         (Qideographic_strokes): New variable.
2645         (Fchar_attribute_alist): Use
2646         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
2647         attribute; use `Vcharacter_ideographic_strokes_table' for
2648         `ideographic-strokes' attribute.
2649         (Fget_char_attribute): Likewise.
2650         (Fput_char_attribute): Likewise.
2651         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
2652         `ideographic-strokes'.
2653         (vars_of_mule_charset): Setup
2654         `Vcharacter_ideographic_radical_table' and
2655         `Vcharacter_ideographic_strokes_table'.
2656
2657 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2658
2659         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
2660         (Qtotal_strokes): New variable.
2661         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
2662         `total-strokes' attribute.
2663         (Fget_char_attribute): Likewise.
2664         (Fput_char_attribute): Likewise.
2665         (syms_of_mule_charset): Add new symbol `total-strokes'.
2666         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
2667
2668 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2669
2670         * mule-charset.c (Vcharacter_decomposition_table): New variable.
2671         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
2672         are found.
2673         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
2674         `->decomposition' attribute.
2675         (Fput_char_attribute): Likewise.
2676         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
2677
2678 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2679
2680         * mule-charset.c (decoding_table_check_elements): New function.
2681         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
2682
2683 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2684
2685         * mule-charset.c (Fset_charset_mapping_table): Use
2686         `put_char_ccs_code_point'.
2687
2688 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2689
2690         * mule-charset.c (decoding_table_put_char): New inline function.
2691         (put_char_ccs_code_point): Use `decoding_table_put_char'.
2692
2693 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2694
2695         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
2696         (XCHARSET_BYTE_SIZE): New macro.
2697         (decoding_table_remove_char): New inline function.
2698         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
2699         `decoding_table_remove_char'.
2700         (remove_char_ccs): Use `decoding_table_remove_char'.
2701         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
2702
2703 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2704
2705         * mule-charset.c (Vcharacter_name_table): New variable.
2706         (Qname): New variable.
2707         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
2708         attribute.
2709         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
2710         `Vcharacter_name_table' for `name' attribute.
2711         (Fremove_char_attribute): Use function `remove_char_ccs'.
2712         (put_char_ccs_code_point): New function.
2713         (remove_char_ccs): New function.
2714         (syms_of_mule_charset): Add new symbol `name'.
2715         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
2716
2717 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2718
2719         * mule-charset.c (make_byte_table): Add new argument `older'.
2720         (make_char_id_table): Likewise.
2721         (copy_char_id_table): Comment out because it is not used.
2722         (put_char_id_table): Modify for `make_byte_table'.
2723         (Fput_char_attribute): Make encoding_table as older object;
2724         inherit older bit of `Vcharacter_composition_table'.
2725         (mark_charset): Don't mark `cs->encoding_table'.
2726         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
2727         normal object; make `Vcharacter_composition_table' as an older
2728         object; delete staticpro for `Vcharacter_composition_table'; make
2729         `Vcharacter_variant_table' as a normal object.
2730
2731         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
2732         (mark_object): Don't check older object in UTF-2000.
2733
2734         * lrecord.h (struct lrecord_header): Add new member `older' in
2735         UTF-2000.
2736         (set_lheader_implementation): Setup `SLI_header->older' in
2737         UTF-2000.
2738         (set_lheader_older_implementation): New macro in UTF-2000.
2739         (OLDER_RECORD_P): New macro in UTF-2000.
2740         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
2741         (alloc_older_lcrecord): New prototype in UTF-2000.
2742         (alloc_older_lcrecord_type): New macro in UTF-2000.
2743
2744 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2745
2746         * mule-charset.c (byte_table_description): Use
2747         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
2748         (char_id_table_description): Delete bogus `, 1'.
2749         (Fget_char_attribute): Refer encoding_table of each coded-charset
2750         to get value of coded-charset attribute of a character.
2751         (Fput_char_attribute): Use `make_older_vector' instead of
2752         `make_vector'; use encoding_table of each coded-charset to store
2753         value of coded-charset attribute of a character.
2754         (Fremove_char_attribute): Use encoding_table of each coded-charset
2755         to store value of coded-charset attribute of a character.
2756         (mark_charset): Mark `cs->encoding_table'; don't mark
2757         `cs->decoding_table'.
2758         (charset_description): Add description of new member
2759         `encoding_table'.
2760         (make_charset): Initialize `encoding_table'.
2761
2762         * char-ucs.h (struct Lisp_Charset): Add new member
2763         `encoding_table'.
2764         (CHARSET_ENCODING_TABLE): New macro.
2765         (XCHARSET_ENCODING_TABLE): New macro.
2766         (charset_code_point): New implementation.
2767         (encode_char_1): Likewise.
2768
2769         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
2770         (disksave_object_finalization_1): Call finalizers of
2771         `all_older_lcrecords' in UTF-2000.
2772         (make_older_vector): New function in UTF-2000.
2773         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
2774         UTF-2000.
2775
2776         * lisp.h (make_older_vector): New prototype in UTF-2000.
2777
2778 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2779
2780         * lrecord.h (enum lrecord_type): Rename
2781         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
2782
2783         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
2784         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
2785         `get_char_code_table'.
2786
2787         * mule-charset.c (mark_char_id_table): Renamed from
2788         `mark_char_code_table'.
2789         (char_id_table_equal): Renamed from `char_code_table_equal'.
2790         (char_id_table_hash): Renamed from `char_code_table_hash'.
2791         (make_char_id_table): Renamed from `make_char_code_table'.
2792         (copy_char_id_table): Renamed from `copy_char_code_table'.
2793         (get_char_id_table): Renamed from `get_char_code_table'.
2794         (put_char_id_table): Renamed from `put_char_code_table'.
2795         (to_char_id): Renamed from `to_char_code'.
2796
2797         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
2798         `Lisp_Char_Code_Table'.
2799         (char_id_table): Renamed from `char_code_table'.
2800         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
2801         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
2802         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
2803         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
2804         (get_char_id_table): Renamed from `get_char_code_table'.
2805
2806 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2807
2808         * lrecord.h (enum lrecord_type): Rename
2809         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
2810
2811         * mule-charset.c (mark_byte_table): Renamed from
2812         `mark_char_byte_table'.
2813         (byte_table_equal): Renamed from `char_byte_table_equal'.
2814         (byte_table_hash): Renamed from `byte_table_hash'.
2815         (make_byte_table): Renamed from `make_byte_table'.
2816         (copy_byte_table): Renamed from `copy_char_byte_table'.
2817
2818         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
2819         `Lisp_Char_Byte_Table'.
2820         (byte_table): Renamed from `char_byte_table'.
2821         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
2822         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
2823         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
2824         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
2825
2826 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2827
2828         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
2829         (dfc_convert_to_internal_format): Likewise.
2830         
2831         * text-coding.c (Fcoding_system_canonical_name_p): New function.
2832         * text-coding.c (Fcoding_system_alias_p): New function.
2833         * text-coding.c (Fcoding_system_aliasee): New function.
2834         * text-coding.c (append_suffix_to_symbol): New function.
2835         * text-coding.c (dangling_coding_system_alias_p): New function.
2836         * text-coding.c (Ffind_coding_system):
2837         * text-coding.c (Fcopy_coding_system):
2838         * text-coding.c (encode_coding_no_conversion):
2839         * text-coding.c (syms_of_file_coding):
2840         * text-coding.c (vars_of_file_coding):
2841         Rewrite coding system alias code.
2842         Allow nested aliases, like symbolic links.
2843         Allow redefinition of coding system aliases.
2844         Prevent existence of dangling coding system aliases.
2845         Eliminate convert_to_external_format.
2846         Eliminate convert_to_internal_format.
2847         
2848         * text-coding.c: Change enum eol_type to eol_type_t.
2849
2850 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2851
2852         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
2853         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2854
2855         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
2856         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2857
2858 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2859
2860         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
2861         `ideograph-daikanwa'.
2862
2863         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
2864         (Vcharset_ucs_bmp): Likewise.
2865         (Vcharset_mojikyo): Add new extern variable definition.
2866         (Vcharset_latin_iso8859_2): Deleted because it is not used.
2867         (Vcharset_latin_iso8859_3): Likewise.
2868         (Vcharset_latin_iso8859_4): Likewise.
2869         (Vcharset_latin_iso8859_9): Likewise.
2870         (Vcharset_latin_viscii_lower): Likewise.
2871         (Vcharset_latin_viscii_upper): Likewise.
2872         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
2873         `mojikyo' code-point is used to decode.
2874         (encode_char_2): New function [to convert `mojikyo' code-point to
2875         Mojikyo font encoding].
2876         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
2877         (breakup_char_1): Likewise.
2878         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
2879
2880 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2881
2882         * text-coding.c (Fmake_coding_system): Add document about
2883         `disable-composition' property.
2884
2885 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2886
2887         * text-coding.c (Qdisable_composition): New variable; delete
2888         `Qcomposite'.
2889         (Fmake_coding_system): Add new property `disable-composite';
2890         delete property `composite'.
2891         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
2892         instead of `!CODING_SYSTEM_COMPOSITE'.
2893         (syms_of_file_coding): Add new symbol `disable-composition';
2894         delete symbol `composite'.
2895
2896         * file-coding.h (struct Lisp_Coding_System): Add
2897         `disable_composition'; delete `enable_composition'.
2898         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2899         `CODING_SYSTEM_COMPOSITE'.
2900         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2901         `XCODING_SYSTEM_COMPOSITE'.
2902
2903 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2904
2905         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2906         to 0.15.
2907
2908 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2909
2910         * text-coding.c (Qcomposite): New variable.
2911         (Fmake_coding_system): Add new property `composite'.
2912         (struct decoding_stream): Add `combined_char_count',
2913         `combined_chars' and `combining_table' in UTF-2000.
2914         (COMPOSE_FLUSH_CHARS): New macro.
2915         (COMPOSE_ADD_CHAR): New macro.
2916         (reset_decoding_stream): Reset `str->combined_char_count' and
2917         `str->combining_table' in UTF-2000.
2918         (decode_coding_iso2022): Modify for character-decomposition.
2919         (syms_of_file_coding): Add new symbol `composite'.
2920
2921 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2922
2923         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
2924         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
2925         of `Vcharacter_composition_table' if `->decomposition' property
2926         has only 1 element.
2927         (Qlatin_tcvn5712): New variable.
2928         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
2929         (complex_vars_of_mule_charset): Add new coded-charset
2930         `latin-tcvn5712'.
2931
2932         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
2933
2934 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2935
2936         * file-coding.h (struct Lisp_Coding_System): Add
2937         `enable_composition'.
2938         (CODING_SYSTEM_COMPOSITE): New macro.
2939         (XCODING_SYSTEM_COMPOSITE): New macro.
2940
2941 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
2942
2943         * mule-canna.c (c2mu): Fix problem with UTF-2000.
2944
2945 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
2946
2947         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
2948         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
2949
2950 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
2951
2952         * mule-charset.c (Vcharset_mojikyo): New variable.
2953         (Fdefine_char): Don't use coded-charset which does not have
2954         non-builtin character range to allocate character-id.
2955         (Qmojikyo): New variable.
2956         (syms_of_mule_charset): Add new symbol `mojikyo'.
2957         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
2958
2959         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
2960         (LEADING_BYTE_MOJIKYO): New macro.
2961         (MIN_CHAR_MOJIKYO): New macro.
2962         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
2963         (MAX_CHAR_MOJIKYO): New macro.
2964
2965 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
2966
2967         * mule-charset.c (remove_char_attribute): Fixed.
2968
2969 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
2970
2971         * mule-charset.c (remove_char_attribute): New function.
2972         (Fremove_char_attribute): New function.
2973         (encode_builtin_char_1): Comment out builtin-support for
2974         greek-iso8859-7 and cyrillic-iso8859-5.
2975         (Fdecode_char): Check `code' is an integer.
2976         (syms_of_mule_charset): Add `remove-char-attribute'.
2977         (MIN_CHAR_GREEK): Deleted.
2978         (MAX_CHAR_GREEK): Likewise.
2979         (MIN_CHAR_CYRILLIC): Likewise.
2980         (MAX_CHAR_CYRILLIC): Likewise.
2981         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
2982         MAX_CHAR_GREEK for `greek-iso8859-7'.
2983
2984         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
2985         (MAX_CHAR_GREEK): Likewise.
2986         (MIN_CHAR_CYRILLIC): Likewise.
2987         (MAX_CHAR_CYRILLIC): Likewise.
2988
2989 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
2990
2991         * mule-charset.c (Fdefine_char): Fix problem when new code-point
2992         format is used without `ucs' property.
2993         (Fdecode_char): Fix problem with GR representation.
2994         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
2995         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
2996
2997 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
2998
2999         * mule-charset.c (make_builtin_char): New function.
3000         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
3001         (Fset_charset_mapping_table): Modify for new representation of
3002         code-point.
3003         (Fdecode_char): New function.
3004         (syms_of_mule_charset): Add new builtin function `decode-char' in
3005         UTF-2000.
3006
3007         * char-ucs.h (make_builtin_char): New prototype.
3008         (DECODE_CHAR): New inline function.
3009         (MAKE_CHAR): Use `DECODE_CHAR'.
3010
3011 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
3012
3013         * text-coding.c (parse_charset_conversion_specs): Use
3014         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
3015         `XCHARSET_TYPE'.
3016         (iso2022_designate): Likewise.
3017
3018         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
3019         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
3020
3021         * mule-charset.c (Vcharset_ucs): New variable.
3022         (print_charset): Change design; use `CHARSET_CHARS' and
3023         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
3024         (make_charset): Change signature to specify `chars' and
3025         `dimension' instead of `type'.
3026         (range_charset_code_point): Modify for 256^n-set.
3027         (encode_builtin_char_1): Encode as `ucs' in default.
3028         (Fmake_charset): Modify for `make_charset'.
3029         (Fmake_reverse_direction_charset): Likewise.
3030         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
3031         UTF-2000.
3032         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
3033         for `make_charset'.
3034
3035         * char-ucs.h (Vcharset_ucs): New variable.
3036         (LEADING_BYTE_UCS): New macro.
3037         (struct Lisp_Charset): Delete `type'; change type of `dimension'
3038         and `chars' to `unsigned short' from `unsigned int'.
3039         (CHARSET_TYPE): Deleted.
3040         (XCHARSET_TYPE): Deleted.
3041
3042 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
3043
3044         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
3045
3046         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
3047         (ENCODE_CHAR): New macro.
3048
3049 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3050
3051         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3052         to 0.14 (Kawachi-Katakami).
3053
3054 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3055
3056         * text-coding.c (char_encode_shift_jis): Modify for
3057         `charset_code_point'.
3058         (char_encode_iso2022): Likewise.
3059
3060         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
3061         (integer) instead of list of <Lisp_Object>s (integers) as the
3062         format of code-point of a coded-charset.
3063         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3064         (encode_builtin_char_1): New function; delete
3065         `split_builtin_char'.
3066         (charset_code_point): Return <int> instead of <Lisp_Object>.
3067         (Fsplit_char): Don't use `SPLIT_CHAR'.
3068
3069         * char-ucs.h (encode_builtin_char_1): New prototype; delete
3070         prototype for `split_builtin_char'.
3071         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3072         (charset_code_point): Likewise.
3073         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
3074         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
3075
3076 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
3077
3078         * mule-charset.c (complex_vars_of_mule_charset): Don't define
3079         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
3080
3081 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3082
3083         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
3084
3085         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
3086         (MAX_CHAR_OBS_94x94): Deleted.
3087
3088 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3089
3090         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
3091
3092         * char-ucs.h (MAX_CHAR_BMP): New macro.
3093
3094 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3095
3096         * text-coding.c: Sync with r21-2-24.
3097
3098 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
3099
3100         * file-coding.c: Modify for UTF-2000.
3101
3102 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3103
3104         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3105         to 0.13 (Takaida).
3106
3107 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3108
3109         * mule-charset.c (split_builtin_char): Delete builtin support for
3110         `katakana-jisx0201'.
3111         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
3112         BMP area in builtin representation.
3113
3114         * char-ucs.h (MAKE_CHAR): Delete builtin support for
3115         `Vcharset_katakana_jisx0201'.
3116
3117 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
3118
3119         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
3120         (Qisolated): New variable.
3121         (Qinitial): New variable.
3122         (Qmedial): New variable.
3123         (Qfinal): New variable.
3124         (Qvertical): New variable.
3125         (Qsmall): New variable.
3126         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
3127         `Qvertical' and `Qsmall'.
3128         (Qmojikyo_pj_[1 .. 21]): New variable.
3129         (syms_of_mule_charset): Add new symbols `isolated', `initial',
3130         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
3131         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
3132         .. 21]'.
3133
3134 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
3135
3136         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
3137         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
3138         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
3139
3140 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3141
3142         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
3143         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
3144         BMP.
3145         (Qjapanese_jisx0208_1990): New variable.
3146         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
3147         (complex_vars_of_mule_charset): Add new coded-charset
3148         `japanese-jisx0208-1990'.
3149
3150         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
3151         (MIN_CHAR_JIS_X0208_1990): New macro.
3152         (MAX_CHAR_JIS_X0208_1990): New macro.
3153
3154 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3155
3156         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
3157         coded-charset is not found.
3158
3159 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3160
3161         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
3162         (Fdefine_char): Use `Fmake_char'.
3163
3164 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3165
3166         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
3167         (Vcharset_hiragana_jisx0208): Deleted.
3168         (Vcharset_katakana_jisx0208): Deleted.
3169         (Qideograph_daikanwa): New variable.
3170         (Qhiragana_jisx0208): Deleted.
3171         (Qkatakana_jisx0208): Deleted.
3172         (split_builtin_char): Split `ideograph-daikanwa'.
3173         (Fsplit_char): New implementation for UTF-2000.
3174         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
3175         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
3176         (complex_vars_of_mule_charset): Add new coded-charset
3177         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
3178         `katakana-jisx0208'.
3179
3180         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
3181         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
3182         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
3183         (MIN_CHAR_DAIKANWA): New macro.
3184         (MAX_CHAR_DAIKANWA): New macro.
3185
3186 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3187
3188         * data.c (Fstring_to_number): Don't recognize floating point if
3189         base is not 10.
3190
3191 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3192
3193         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
3194
3195 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3196
3197         * mule-charset.c (Qsquare): New variable.
3198         (to_char_code): Add `Qsquare'.
3199         (syms_of_mule_charset): Add new symbol `square'.
3200
3201 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3202
3203         * mule-charset.c (Qcircle): New variable.
3204         (to_char_code): Add `Qcircle'.
3205         (syms_of_mule_charset): Add new symbol `circle'.
3206
3207 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3208
3209         * mule-charset.c (Qfont): New variable.
3210         (to_char_code): Add `Qfont'.
3211         (syms_of_mule_charset): Add new symbol `font'.
3212
3213 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3214
3215         * mule-charset.c (Qsub): New variable.
3216         (to_char_code): Add `Qsub'.
3217         (syms_of_mule_charset): Add new symbol `sub'.
3218
3219 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3220
3221         * mule-charset.c (Fput_char_attribute): Convert each element of
3222         VALUE to GL position if ATTRIBUTE is a GR-set,
3223
3224 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3225
3226         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
3227         coded-charset is a GR-set.
3228
3229 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3230
3231         * mule-charset.c (Fput_char_attribute): Check each element of
3232         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
3233
3234 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3235
3236         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
3237         UTF-2000.
3238         (Qethiopic_ucs): New variable in UTF-2000.
3239         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
3240         (complex_vars_of_mule_charset): Add new coded-charset
3241         `ethiopic-ucs' in UTF-2000.
3242
3243         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
3244         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3245         9)'.
3246         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3247         10)'.
3248         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
3249
3250 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
3251
3252         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
3253         `ascii'.
3254
3255 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3256
3257         * mule-charset.c (Vcharacter_variant_table): New variable.
3258         (Q_ucs): New variable.
3259         (Fchar_variants): New function.
3260         (Fput_char_attribute): Register `->ucs' value to
3261         `Vcharacter_variant_table'.
3262         (syms_of_mule_charset): Add new function `char-variants' and new
3263         symbol `->ucs'.
3264         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
3265
3266 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3267
3268         * mule-charset.c (get_char_code_table): Allow negative character
3269         code.
3270         (put_char_code_table): Likewise.
3271         (Vcharacter_composition_table): New variable.
3272         (Q_decomposition): New variable.
3273         (Qwide): New variable.
3274         (Qnarrow): New variable.
3275         (Qcompat): New variable.
3276         (QnoBreak): New variable.
3277         (Qsuper): New variable.
3278         (Qfraction): New variable.
3279         (to_char_code): New function.
3280         (Fget_composite_char): New function.
3281         (Fput_char_attribute): Register `->decomposition' value to
3282         `Vcharacter_composition_table'.
3283         (syms_of_mule_charset): Add new function `get-composite-char', new
3284         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
3285         `super' and `fraction'.
3286         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
3287
3288 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3289
3290         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
3291         character; copy the return value.
3292
3293 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3294
3295         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
3296
3297         * mule-charset.c (range_charset_code_point): Must use make_int.
3298         (split_builtin_char): New function.
3299
3300 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3301
3302         * mule-charset.c (char_byte_table): Change name from
3303         "char-code-table" to "char-byte-table".
3304         (mark_char_code_table): New function.
3305         (char_code_table_equal): New function.
3306         (char_code_table_hash): New function.
3307         (char_code_table_description): New constant.
3308         (char_code_table): New type.
3309         (make_char_code_table): New function.
3310         (copy_char_code_table): New function.
3311         (get_char_code_table): Modify for `char_code_table' type.
3312         (put_char_code_table): Likewise.
3313         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
3314         (Kashiwara).
3315
3316         * char-ucs.h (char_code_table): New type.
3317         (XCHAR_CODE_TABLE): New macro.
3318         (XSETCHAR_CODE_TABLE): New macro.
3319         (CHAR_CODE_TABLE_P): New macro.
3320         (GC_CHAR_CODE_TABLE_P): New macro.
3321         (struct Lisp_Char_Code_Table): New structure.
3322
3323 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3324
3325         * mule-charset.c (Fmake_charset): Setup byte_offset for
3326         {94|96}^n-set.
3327
3328 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3329
3330         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
3331         character.
3332
3333 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3334
3335         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
3336         is found.
3337
3338 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3339
3340         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
3341         charset, it is regarded as a charset.
3342         (put_char_attribute): New function in UTF-2000.
3343         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
3344         charset, mapping-table of the charset is modified.
3345         (Fdefine_char): New function in UTF-2000.
3346         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
3347         `Fput_char_attribute'.
3348         (syms_of_mule_charset): Add new function `define-char' and new
3349         symbol `ucs' in UTF-2000.
3350         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
3351
3352 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3353
3354         * mule-charset.c (Fcharset_name): Define `byte_offset' in
3355         non-UTF-2000 configuration.
3356
3357 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3358
3359         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
3360         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
3361
3362         * mule-charset.c (mark_charset): `cs->encoding_table' has been
3363         deleted.
3364         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
3365         (Fset_charset_mapping_table): Likewise.
3366
3367         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
3368         (CHARSET_ENCODING_TABLE): Delete.
3369         (XCHARSET_ENCODING_TABLE): Delete.
3370         (charset_code_point): New interface.
3371
3372 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3373
3374         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
3375         instead of `charset_get_byte1' and `charset_get_byte2'.
3376
3377         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
3378         (charset_get_byte2): Deleted.
3379
3380 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3381
3382         * char-ucs.h (SPLIT_CHAR): New inline function.
3383         (breakup_char_1): Use `SPLIT_CHAR'.
3384
3385         * mule-charset.c (range_charset_code_point): New function.
3386         (charset_code_point): New function.
3387
3388         * char-ucs.h (range_charset_code_point): New interface.
3389         (breakup_char_1): Use `range_charset_code_point'.
3390
3391 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3392
3393         * mule-charset.c (Fmake_charset): Delete unused local variable
3394         `code_offset'.
3395
3396         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
3397         (breakup_char_1): Find a charset and code-point in
3398         `Vcharacter_attribute_table'.
3399
3400 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3401
3402         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3403         to 0.10 (Yao).
3404
3405 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
3406
3407         * mule-charset.c (Vcharacter_attribute_table): New variable.
3408         (Fchar_attribute_alist): New function.
3409         (Fget_char_attribute): New function.
3410         (Fput_char_attribute): New function.
3411         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
3412         too.
3413         (syms_of_mule_charset): Add new function `char-attribute-alist',
3414         `get-char-attribute' and `put-char-attribute'.
3415         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
3416
3417 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
3418
3419         * mule-charset.c (Fmake_charset): Just use
3420         `get_unallocated_leading_byte'.
3421
3422         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
3423         sets; don't use final-byte based number for private sets.
3424
3425 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3426
3427         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
3428         integer.
3429
3430 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3431
3432         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3433         to 0.9.
3434
3435 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3436
3437         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
3438         of `CHAR_LEADING_BYTE' in UTF-2000.
3439
3440         * insdel.c (find_charsets_in_bufbyte_string): Use
3441         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
3442         (find_charsets_in_emchar_string): Likewise.
3443
3444         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
3445         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
3446
3447         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
3448         (CHAR_CHARSET_ID): New macro.
3449
3450 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3451
3452         * chartab.c (get_char_table): Don't use type `Charset_ID' for
3453         charset-id - MIN_LEADING_BYTE.
3454         (put_char_table): Likewise.
3455
3456 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3457
3458         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
3459         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
3460         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
3461         (CHARSET_ID_OFFSET): New macro.
3462         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
3463         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
3464         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
3465         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
3466         4).
3467         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
3468         5).
3469         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
3470         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
3471         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
3472         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
3473         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
3474
3475 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3476
3477         * mule-charset.c (next_allocated_leading_byte): New variable in
3478         UTF-2000.
3479         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
3480         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
3481         (get_unallocated_leading_byte): Simply use
3482         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
3483         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
3484         UTF-2000.
3485
3486         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
3487         (MAX_LEADING_BYTE_PRIVATE): New macro.
3488         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
3489         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
3490
3491 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3492
3493         * mule-charset.c (Fmake_charset): Allocate final-byte based
3494         charset-id for 94-set, 96-set and 94x94-set.
3495
3496 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3497
3498         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
3499         ambiguous `else'.
3500         (Fmake_charset): Likewise.
3501         (complex_vars_of_mule_charset): Modify the font registry of
3502         `ucs-bmp' not to match `Ethiopic-Unicode'.
3503
3504 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3505
3506         * mule-charset.c (complex_vars_of_mule_charset): Add font
3507         registory of `ucs-bmp'.
3508
3509 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3510
3511         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
3512         coded-charsets in `default-coded-charset-priority-list' when
3513         breaking up a character.
3514
3515         * mule-charset.c (Vcharset_latin_viscii): New variable.
3516         (Qlatin_viscii): New variable.
3517         (make_charset): Don't use `decoding_table'.
3518         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
3519         byte_offset.
3520         (Fset_charset_mapping_table): New implementation.
3521         (syms_of_mule_charset): Add new symbol `latin-viscii'.
3522         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
3523         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
3524         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
3525         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
3526         charset `latin_viscii'.
3527
3528         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
3529         (CHARSET_TYPE_94X94): Change to 1 from 2.
3530         (CHARSET_TYPE_96): Change to 2 from 1.
3531         (CHARSET_TYPE_128): New macro.
3532         (CHARSET_TYPE_128X128): Change to 5 from 4.
3533         (CHARSET_TYPE_256): New macro.
3534         (CHARSET_TYPE_256X256): Change to 7 from 5.
3535         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
3536
3537 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3538
3539         * text-coding.c (char_encode_shift_jis): Refer
3540         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
3541         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
3542
3543         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
3544         (char_byte_table_equal): New function in UTF-2000.
3545         (char_byte_table_hash): New function in UTF-2000.
3546         (char_byte_table_description): New constant in UTF-2000.
3547         (char_byte_table): New type in UTF-2000.
3548         (make_char_byte_table): New function in UTF-2000.
3549         (copy_char_byte_table): New function in UTF-2000.
3550         (make_char_code_table): New macro in UTF-2000.
3551         (get_char_code_table): New function in UTF-2000.
3552         (put_char_code_table): New function in UTF-2000.
3553         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3554         (charset_description): Add setting in UTF-2000.
3555         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
3556         `CHARSET_TO_BYTE1_TABLE(cs)'.
3557         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
3558         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
3559         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
3560         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
3561         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
3562         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
3563         `CHARSET_TO_BYTE2_TABLE(cs)'.
3564
3565         * char-ucs.h (char_byte_table): New type.
3566         (XCHAR_BYTE_TABLE): New macro.
3567         (XSETCHAR_BYTE_TABLE): New macro.
3568         (CHAR_BYTE_TABLE_P): New macro.
3569         (GC_CHAR_BYTE_TABLE_P): New macro.
3570         (struct Lisp_Char_Byte_Table): New structure.
3571         (get_char_code_table): New interface.
3572         (Emchar_to_byte_table): Deleted.
3573         (get_byte_from_character_table): Deleted.
3574         (struct Lisp_Charset): Add `encoding_table'; delete
3575         `to_byte1_table' and `to_byte2_table'.
3576         (CHARSET_ENCODING_TABLE): New macro.
3577         (CHARSET_TO_BYTE1_TABLE): Deleted.
3578         (CHARSET_TO_BYTE2_TABLE): Deleted.
3579         (XCHARSET_ENCODING_TABLE): New macro.
3580         (XCHARSET_TO_BYTE1_TABLE): Deleted.
3581         (XCHARSET_TO_BYTE2_TABLE): Deleted.
3582
3583 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3584
3585         * mule-charset.c (syms_of_mule_charset): Delete charset alias
3586         `vietnamese-viscii-*'.
3587
3588 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3589
3590         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
3591         (Qvietnamese_viscii_upper): New variable.
3592         (Fdefine_charset_alias): New function.
3593         (syms_of_mule_charset): Add new function `define-charset-alias'.
3594         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
3595         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
3596         `latin-viscii-*'.
3597
3598 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
3599
3600         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
3601         (MAX_CHAR_OBS_94x94): New macro.
3602         (breakup_char_1): Support obsolete XEmacs-UCS private code space
3603         for 94x94 sets.
3604
3605         * mule-charset.c (put_byte_from_character_table): Change unit size
3606         from 128 to 256.
3607         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
3608         not defined.
3609         (Fmake_reverse_direction_charset): Modify dummy argument of
3610         `make_charset' for non-UTF-2000 environment.
3611
3612 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3613
3614         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
3615
3616         * mule-charset.c (destroy_byte_from_character_table): New macro.
3617         (latin_jisx0201_to_ucs): Deleted.
3618         (latin_iso8859_2_to_ucs): Deleted.
3619         (latin_iso8859_3_to_ucs): Deleted.
3620         (latin_iso8859_4_to_ucs): Deleted.
3621         (latin_iso8859_9_to_ucs): Deleted.
3622         (latin_viscii_lower_to_ucs): Deleted.
3623         (latin_viscii_upper_to_ucs): Deleted.
3624         (mark_charset): Mark `cs->decoding_table'.
3625         (Fcharset_mapping_table): Fix DOC-string.
3626         (Fset_charset_mapping_table): New function.
3627         (syms_of_mule_charset): Add nwe function
3628         `set-charset-mapping-table'.
3629         (complex_vars_of_mule_charset): Don't setup and use
3630         `latin_*_to_ucs'.
3631
3632 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3633
3634         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
3635         charset.
3636
3637 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3638
3639         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
3640         (Vcharset_katakana_jisx0208): New variable.
3641         (Qhiragana_jisx0208): New variable.
3642         (Qkatakana_jisx0208): New variable.
3643         (make_charset): Add new argument `byte_offset'.
3644         (charset_get_byte1): Modify for new coded-charset definition; use
3645         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3646         `XCHARSET_BYTE_OFFSET'.
3647         (Fmake_charset): Modify for `make_charset'.
3648         (Fmake_reverse_direction_charset): Likewise.
3649         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
3650         `katakana-jisx0208'.
3651         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
3652         `.'  in font registry of charset `katakana-jisx0201',
3653         `latin-jisx0201', `vietnamese-viscii-lower' and
3654         `vietnamese-viscii-upper'; modify DOC-string of charset
3655         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
3656         registry of charset `japanese-jisx0208' not to use font for JIS
3657         X0208:1990; add new charset `hiragana-jisx0208' and
3658         `katakana-jisx0208'.
3659
3660         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
3661         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
3662         (struct Lisp_Charset): Add `byte_offset'.
3663         (CHARSET_BYTE_OFFSET): New macro.
3664         (XCHARSET_UCS_MIN): New macro.
3665         (XCHARSET_UCS_MAX): New macro.
3666         (XCHARSET_CODE_OFFSET): New macro.
3667         (XCHARSET_BYTE_OFFSET): New macro.
3668         (MIN_CHAR_HIRAGANA): New macro.
3669         (MAX_CHAR_HIRAGANA): New macro.
3670         (MIN_CHAR_KATAKANA): New macro.
3671         (MAX_CHAR_KATAKANA): New macro.
3672         (MAKE_CHAR): Modify for new coded-charset definition; use
3673         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3674         `XCHARSET_BYTE_OFFSET'.
3675
3676 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3677
3678         * mule-charset.c (CHAR96): Deleted.
3679         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
3680         <Lisp_Object>.
3681         (latin_iso8859_2_to_ucs): Likewise.
3682         (latin_iso8859_3_to_ucs): Likewise.
3683         (latin_iso8859_4_to_ucs): Likewise.
3684         (latin_iso8859_9_to_ucs): Likewise.
3685         (latin_viscii_lower_to_ucs): Likewise.
3686         (latin_viscii_upper_to_ucs): Likewise.
3687         (latin_tcvn5712_to_ucs): Commented out.
3688         (make_charset): Change type of argument `decoding_table' from
3689         <Emchar*> to <Lisp_Object> [vector of characters].
3690         (Fmake_charset): Modify for `make_charset'.
3691         (Fmake_reverse_direction_charset): Likewise.
3692         (Fcharset_mapping_table): New function in UTF-2000.
3693         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
3694         UTF-2000.
3695         (complex_vars_of_mule_charset): Modify for type change of
3696         `*_to_ucs'; modify for `make_charset'.
3697
3698         * char-ucs.h (struct Lisp_Charset): Change type of
3699         `decoding_table' from <Emchar*> to <Lisp_Object>.
3700         (MAKE_CHAR): Modify for new specification of `decoding_table'.
3701
3702 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
3703
3704         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
3705         error with non-UTF-2000-Mule.
3706
3707 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
3708
3709         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
3710         in lisp again].
3711         (Vcharset_chinese_cns11643_4): Likewise.
3712         (Vcharset_chinese_cns11643_5): Likewise.
3713         (Vcharset_chinese_cns11643_6): Likewise.
3714         (Vcharset_chinese_cns11643_7): Likewise.
3715         (Qchinese_cns11643_3): Likewise.
3716         (Qchinese_cns11643_4): Likewise.
3717         (Qchinese_cns11643_5): Likewise.
3718         (Qchinese_cns11643_6): Likewise.
3719         (Qchinese_cns11643_7): Likewise.
3720         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
3721         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3722         and `chinese-cns11643-7' to lisp/mule/chinese.el.
3723         (complex_vars_of_mule_charset): Likewise.
3724
3725 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3726
3727         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
3728         96-set.
3729         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
3730         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
3731
3732 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3733
3734         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
3735         0xFF60.
3736         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
3737         (breakup_char_1): Likewise.
3738
3739         * text-coding.c (char_encode_iso2022): Keep designated charsets if
3740         one of them includes the specified character.
3741
3742 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3743
3744         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
3745
3746 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3747
3748         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
3749
3750 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3751
3752         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
3753         definition for non-UTF-2000 Mule.
3754         (latin_iso8859_3_to_ucs): Likewise.
3755         (latin_iso8859_4_to_ucs): Likewise.
3756         (latin_iso8859_9_to_ucs): Likewise.
3757         (latin_jisx0201_to_ucs): Likewise.
3758         (MIN_CHAR_THAI): Likewise.
3759         (MAX_CHAR_THAI): Likewise.
3760         (MIN_CHAR_GREEK): Likewise.
3761         (MAX_CHAR_GREEK): Likewise.
3762         (MIN_CHAR_HEBREW): Likewise.
3763         (MAX_CHAR_HEBREW): Likewise.
3764         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
3765         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
3766         (MIN_CHAR_CYRILLIC): Likewise.
3767         (MAX_CHAR_CYRILLIC): Likewise.
3768
3769 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3770
3771         * char-ucs.h (breakup_char_1): Use
3772         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
3773         thai-tis620 and katakana-jisx0201 area.
3774
3775 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3776
3777         * char-ucs.h (breakup_char_1): Use
3778         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
3779         area.
3780
3781         * text-coding.c (reset_encoding_stream): Fixed.
3782         (char_encode_ucs4): Delete `& 255'.
3783
3784         * char-ucs.h (breakup_char_1): Use
3785         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
3786
3787 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3788
3789         * file-coding.c (Fmake_coding_system): Don't set up
3790         `codesys->fixed.size'.
3791         (encode_coding_no_conversion): Don't refer
3792         `str->codesys->fixed.size'.
3793
3794 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3795
3796         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
3797         (latin_a_char_to_byte1): Deleted.
3798         (latin_a_char_to_byte2): Deleted.
3799
3800 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3801
3802         * mule-charset.c (make_charset): Add new argument `ucs_min',
3803         `ucs_max' and `code_offset'.
3804         (charset_get_byte1): New implementation [delete specific charset
3805         depended implementations].
3806         (Fmake_charset): Modify for `make_charset'.
3807         (Fmake_reverse_direction_charset): Likewise.
3808         (complex_vars_of_mule_charset): Likewise.
3809
3810         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
3811         `code_offset'.
3812         (CHARSET_UCS_MIN): New macro.
3813         (CHARSET_UCS_MAX): New macro.
3814         (CHARSET_CODE_OFFSET): New macro.
3815         (MAKE_CHAR): Delete charset depended definitions [except
3816         katakana-jisx0201].
3817
3818 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
3819
3820         * char-ucs.h (breakup_char_1): Use
3821         `Vdefault_coded_charset_priority_list' for C0-Controls,
3822         Basic-Latin, C1-Controls and Latin-1-Supplement area.
3823
3824 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3825
3826         * char-ucs.h (charset_get_byte1): New function.
3827         (XCHARSET_GET_BYTE1): Deleted.
3828         (charset_get_byte2): New function.
3829         (XCHARSET_GET_BYTE2): Deleted.
3830         (Vdefault_coded_charset_priority_list): New external variable.
3831         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
3832         `Vdefault_preferred_coded_charset_list'.
3833
3834         * mule-charset.c (charset_get_byte1): New function.
3835         (charset_get_byte2): New function.
3836         (Vdefault_coded_charset_priority_list): New variable.
3837         (vars_of_mule_charset): Add new variable
3838         `default-coded-charset-priority-list'.
3839
3840 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3841
3842         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
3843         (XCHARSET_GET_BYTE2): New inline function.
3844         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
3845         `XCHARSET_GET_BYTE2'.
3846
3847 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3848
3849         * mule-charset.c (make_charset): Initialize
3850         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
3851         NULL if table is not defined.
3852
3853 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3854
3855         * text-coding.c (char_encode_shift_jis): Use
3856         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
3857         `ucs_to_latin_jisx0201'.
3858
3859         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
3860         (ucs_to_latin_iso8859_2): Deleted.
3861         (ucs_to_latin_iso8859_3): Deleted.
3862         (ucs_to_latin_iso8859_4): Deleted.
3863         (ucs_to_latin_iso8859_9): Deleted.
3864         (ucs_to_latin_viscii_lower): Deleted.
3865         (ucs_to_latin_viscii_upper): Deleted.
3866         (ucs_to_latin_tcvn5712): Deleted.
3867         (make_charset): Add new argument `decoding_table'; set up
3868         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
3869         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
3870         `decoding_table' is defined in UTF-2000.
3871         (Fmake_charset): Modify for `make_charset'.
3872         (Fmake_reverse_direction_charset): Likewise.
3873         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
3874         and `GENERATE_96_SET'.
3875
3876         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
3877         (ucs_to_latin_jisx0201): Deleted.
3878         (latin_iso8859_2_to_ucs): Deleted.
3879         (ucs_to_latin_iso8859_2): Deleted.
3880         (latin_iso8859_3_to_ucs): Deleted.
3881         (ucs_to_latin_iso8859_3): Deleted.
3882         (latin_iso8859_4_to_ucs): Deleted.
3883         (ucs_to_latin_iso8859_4): Deleted.
3884         (latin_iso8859_9_to_ucs): Deleted.
3885         (ucs_to_latin_iso8859_9): Deleted.
3886         (latin_viscii_lower_to_ucs): Deleted.
3887         (ucs_to_latin_viscii_lower): Deleted.
3888         (latin_viscii_upper_to_ucs): Deleted.
3889         (ucs_to_latin_viscii_upper): Deleted.
3890         (struct Lisp_Charset): Renamed `encoding_table' to
3891         `to_byte1_table'; add `to_byte2_table'.
3892         (CHARSET_DECODING_TABLE): New macro.
3893         (CHARSET_TO_BYTE1_TABLE): New macro.
3894         (CHARSET_TO_BYTE2_TABLE): New macro.
3895         (XCHARSET_DECODING_TABLE): New macro.
3896         (XCHARSET_TO_BYTE1_TABLE): New macro.
3897         (XCHARSET_TO_BYTE2_TABLE): New macro.
3898         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
3899         tables.
3900         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
3901         don't use `ucs_to_*' tables.
3902
3903 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3904
3905         * text-coding.c (Fmake_coding_system): Don't set up
3906         `codesys->fixed.size'.
3907         (encode_coding_no_conversion): Use `if' instead of `switch'.
3908
3909         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
3910
3911 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3912
3913         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
3914         (Fmake_charset): Modify for `make_charset'.
3915         (Fmake_reverse_direction_charset): Likewise.
3916         (complex_vars_of_mule_charset): Likewise.
3917
3918 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3919
3920         * text-coding.c (char_encode_shift_jis): Use table
3921         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
3922
3923 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3924
3925         * text-coding.c (text_encode_generic): Use `if' instead of
3926         `switch'.
3927         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
3928         decode JIS-Latin.
3929
3930 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3931
3932         * text-coding.c (encode_coding_sjis): Deleted.
3933         (char_encode_shift_jis): New function.
3934         (char_finish_shift_jis): New function.
3935         (reset_encoding_stream): Set up `encode_char' and `finish' for
3936         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
3937         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
3938         (char_encode_utf8): Treat `eol_type'.
3939
3940 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3941
3942         * file-coding.c (decode_coding_iso2022): Use
3943         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
3944
3945 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3946
3947         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3948         to 0.7 (Hirano).
3949
3950 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3951
3952         * char-lb.h (CHAR_COLUMNS): New macro.
3953
3954 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3955
3956         * text-coding.c (char_encode_ucs4): New function.
3957         (char_finish_ucs4): New function.
3958         (encode_coding_ucs4): Deleted.
3959         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
3960         (text_encode_generic): Delete local variable `charset' and `half'.
3961         (ucs_to_mule_table): Deleted.
3962         (mule_to_ucs_table): Deleted.
3963         (Fset_ucs_char): Deleted.
3964         (ucs_to_char): Deleted.
3965         (Fucs_char): Deleted.
3966         (Fset_char_ucs): Deleted.
3967         (Fchar_ucs): Deleted.
3968         (decode_ucs4): Deleted.
3969         (mule_char_to_ucs4): Deleted.
3970         (encode_ucs4): Deleted.
3971         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
3972         (decode_coding_utf8): Likewise.
3973         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
3974         (char_encode_iso2022): Fixed.
3975         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
3976         `Fset_char_ucs' and `Fchar_ucs'.
3977         (complex_vars_of_file_coding): Don't initialize
3978         `ucs_to_mule_table'.
3979
3980         * objects-tty.c (tty_initialize_font_instance): Don't use
3981         `XCHARSET_COLUMNS'.
3982
3983         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
3984         UTF-2000.
3985
3986         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
3987         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3988
3989         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
3990         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3991         (emchar_string_displayed_columns): Likewise.
3992
3993         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
3994         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3995         (string_column_at_point): Likewise.
3996         (Fmove_to_column): Likewise.
3997
3998         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
3999         `encoding_table' and `decoding_table'.
4000         (CHARSET_REP_BYTES): Deleted.
4001         (XCHARSET_REP_BYTES): Deleted.
4002         (XCHARSET_COLUMNS): Deleted.
4003         (CHAR_COLUMNS): New macro.
4004         (lookup_composite_char): Deleted unconditionally.
4005         (composite_char_string): Likewise.
4006
4007 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4008
4009         * char-ucs.h (Emchar_to_byte_table): New type.
4010         (get_byte_from_character_table): New function interface.
4011         (Vcharset_latin_jisx0201): New variable.
4012         (latin_jisx0201_to_ucs): New variable.
4013         (ucs_to_latin_jisx0201): New variable.
4014         (Vcharset_latin_iso8859_2): New variable.
4015         (latin_iso8859_2_to_ucs): New variable.
4016         (ucs_to_latin_iso8859_2): New variable.
4017         (Vcharset_latin_iso8859_3): New variable.
4018         (latin_iso8859_3_to_ucs): New variable.
4019         (ucs_to_latin_iso8859_3): New variable.
4020         (Vcharset_latin_iso8859_4): New variable.
4021         (latin_iso8859_4_to_ucs): New variable.
4022         (ucs_to_latin_iso8859_4): New variable.
4023         (Vcharset_latin_iso8859_9): New variable.
4024         (latin_iso8859_9_to_ucs): New variable.
4025         (ucs_to_latin_iso8859_9): New variable.
4026         (Vcharset_latin_viscii_lower): New variable.
4027         (latin_viscii_lower_to_ucs): New variable.
4028         (ucs_to_latin_viscii_lower): New variable.
4029         (Vcharset_latin_viscii_upper): New variable.
4030         (latin_viscii_upper_to_ucs): New variable.
4031         (ucs_to_latin_viscii_upper): New variable.
4032         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
4033         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
4034         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
4035         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
4036         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
4037         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
4038         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
4039         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
4040         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
4041         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
4042
4043         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
4044         (Vcharset_latin_viscii_upper): New variable.
4045         (make_byte_from_character_table): New function.
4046         (put_byte_from_character_table): New function.
4047         (get_byte_from_character_table): New function.
4048         (CHAR96): New macro.
4049         (ucs_to_latin_jisx0201): New variable.
4050         (latin_jisx0201_to_ucs): New variable.
4051         (ucs_to_latin_iso8859_2): New variable.
4052         (latin_iso8859_2_to_ucs): New variable.
4053         (ucs_to_latin_iso8859_3): New variable.
4054         (latin_iso8859_3_to_ucs): New variable.
4055         (ucs_to_latin_iso8859_4): New variable.
4056         (latin_iso8859_4_to_ucs): New variable.
4057         (ucs_to_latin_iso8859_9): New variable.
4058         (latin_iso8859_9_to_ucs): New variable.
4059         (ucs_to_latin_viscii_lower): New variable.
4060         (latin_viscii_lower_to_ucs): New variable.
4061         (ucs_to_latin_viscii_upper): New variable.
4062         (latin_viscii_upper_to_ucs): New variable.
4063         (ucs_to_latin_tcvn5712): New variable.
4064         (latin_tcvn5712_to_ucs): New variable.
4065         (Qlatin_viscii_lower): New variable.
4066         (Qlatin_viscii_upper): New variable.
4067         (syms_of_mule_charset): Set up new symbol
4068         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
4069         (complex_vars_of_mule_charset): Set up new charset
4070         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
4071         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
4072         `ucs_to_<CHARSET>' tables.
4073
4074 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
4075
4076         * text-coding.c: New file.
4077
4078 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4079
4080         * mule-charset.c (Fmake_char): Fix problem of 256-set.
4081
4082         * char-ucs.h (Vcharset_ucs_bmp): New variable.
4083         (MAKE_CHAR): Modify for `ucs-bmp'.
4084         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
4085         non-MULE characters of BMP.
4086
4087 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
4088
4089         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4090         to 0.6.
4091
4092 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4093
4094         * lstream.h:
4095         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
4096         - Include character.h for `CHAR_ASCII_P'.
4097
4098         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
4099
4100         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
4101         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
4102
4103         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
4104         (BYTE_C0_P): Likewise.
4105         (BYTE_C1_P): Likewise.
4106         (Lstream_get_emchar_1): Likewise.
4107         (Lstream_fput_emchar): Likewise.
4108         (Lstream_funget_emchar): Likewise.
4109         (copy_internal_to_external): Likewise.
4110         (copy_external_to_internal): Likewise.
4111
4112         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
4113         (BYTE_C0_P): Likewise.
4114         (BYTE_C1_P): Likewise.
4115         (Lstream_get_emchar_1): Likewise.
4116         (Lstream_fput_emchar): Likewise.
4117         (Lstream_funget_emchar): Likewise.
4118         (copy_internal_to_external): Likewise.
4119         (copy_external_to_internal): Likewise.
4120
4121         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
4122         (REP_BYTES_BY_FIRST_BYTE): Likewise.
4123
4124         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
4125         (BYTE_ASCII_P): Moved to mb-1byte.h.
4126
4127 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4128
4129         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
4130
4131         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
4132         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
4133         (VALID_CHARPTR_P): Moved to mb-*byte.h.
4134         (VALIDATE_CHARPTR_BACKWARD): Likewise.
4135         (VALIDATE_CHARPTR_FORWARD): Likewise.
4136         (simple_charptr_emchar): Moved to mb-multibyte.h.
4137         (simple_set_charptr_emchar): Likewise.
4138         (simple_charptr_copy_char): Likewise.
4139         (non_ascii_charptr_emchar): Likewise.
4140         (non_ascii_set_charptr_emchar): Likewise.
4141         (non_ascii_charptr_copy_char): Likewise.
4142         (charptr_emchar): Moved to mb-*byte.h.
4143         (set_charptr_emchar): Likewise.
4144         (charptr_copy_char): Likewise.
4145
4146         * mb-1byte.h, mb-multibyte.h: New files.
4147
4148 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4149
4150         * mb-utf-8.h (MULTIBYTE): New macro.
4151         (MAX_EMCHAR_LEN): Moved from buffer.h.
4152         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
4153
4154         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
4155
4156         * mb-lb.h, multibyte.h: New files.
4157
4158         * char-1byte.h (Charset_ID): Moved from buffer.h.
4159         (MIN_LEADING_BYTE): Likewise.
4160         (LEADING_BYTE_ASCII): Likewise.
4161         (NUM_LEADING_BYTES): Likewise.
4162         (CHARSETP): Likewise.
4163         (CHARSET_BY_LEADING_BYTE): Likewise.
4164         (XCHARSET_LEADING_BYTE): Likewise.
4165         (XCHARSET_GRAPHIC): Likewise.
4166         (XCHARSET_COLUMNS): Likewise.
4167         (XCHARSET_DIMENSION): Likewise.
4168         (CHAR_CHARSET): Likewise.
4169         (CHAR_LEADING_BYTE): Likewise.
4170         (BREAKUP_CHAR): Likewise.
4171         (Vcharset_ascii): Likewise.
4172
4173         * buffer.h: Include multibyte.h unconditionally.
4174         (VALID_CHARPTR_P): Moved to multibyte.h.
4175         (ASSERT_VALID_CHARPTR): Likewise.
4176         (REAL_INC_CHARPTR): Likewise.
4177         (REAL_INC_CHARBYTIND): Likewise.
4178         (REAL_DEC_CHARPTR): Likewise.
4179         (INC_CHARPTR): Likewise.
4180         (INC_CHARBYTIND): Likewise.
4181         (DEC_CHARPTR): Likewise.
4182         (VALIDATE_CHARPTR_BACKWARD): Likewise.
4183         (VALIDATE_CHARPTR_FORWARD): Likewise.
4184         (charptr_n_addr): Likewise.
4185         (MAX_EMCHAR_LEN): Moved to mb-*.h.
4186         (simple_charptr_emchar): Moved to multibyte.h.
4187         (simple_set_charptr_emchar): Likewise.
4188         (simple_charptr_copy_char): Likewise.
4189         (non_ascii_charptr_emchar): Likewise.
4190         (non_ascii_set_charptr_emchar): Likewise.
4191         (non_ascii_charptr_copy_char): Likewise.
4192         (charptr_emchar): Likewise.
4193         (set_charptr_emchar): Likewise.
4194         (charptr_copy_char): Likewise.
4195         (charptr_emchar_n): Likewise.
4196         (Charset_ID): Moved to char-1byte.h.
4197         (Vcharset_ascii): Likewise.
4198         (CHAR_CHARSET): Likewise.
4199         (CHAR_LEADING_BYTE): Likewise.
4200         (LEADING_BYTE_ASCII): Likewise.
4201         (NUM_LEADING_BYTES): Likewise.
4202         (MIN_LEADING_BYTE): Likewise.
4203         (CHARSETP): Likewise.
4204         (CHARSET_BY_LEADING_BYTE): Likewise.
4205         (XCHARSET_LEADING_BYTE): Likewise.
4206         (XCHARSET_GRAPHIC): Likewise.
4207         (XCHARSET_COLUMNS): Likewise.
4208         (XCHARSET_DIMENSION): Likewise.
4209         (BREAKUP_CHAR): Likewise.
4210
4211 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4212
4213         * character.h: Add document about interface for characters.
4214
4215         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
4216         (MAKE_CHAR): Delete comment about
4217         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
4218         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
4219         (BREAKUP_CHAR): Modify name of arguments.
4220         (CHAR_CHARSET): Modify name of argument.
4221
4222         * buffer.h: Delete document about Emchar accessors.
4223
4224 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4225
4226         * character.h (CHAR_INTP): Moved from buffer.h
4227         (CHAR_OR_CHAR_INTP): Likewise.
4228         (XCHAR_OR_CHAR_INT): Likewise.
4229         (CHECK_CHAR_COERCE_INT): Likewise.
4230
4231         * buffer.h (CHAR_INTP): Moved to character.h
4232         (CHAR_OR_CHAR_INTP): Likewise.
4233         (XCHAR_OR_CHAR_INT): Likewise.
4234         (CHECK_CHAR_COERCE_INT): Likewise.
4235
4236 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4237
4238         * character.h:
4239         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
4240         - Include char-1byte.h, char-lb.h or char-ucs.h.
4241
4242         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
4243
4244         * buffer.h: Include character unconditionally.
4245         (valid_char_p): Moved to char-*.h.
4246         (non_ascii_valid_char_p): Moved to char-lb.h.
4247
4248         * char-1byte.h, char-lb.h, char-ucs.h: New files.
4249
4250 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4251
4252         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
4253         in UTF-2000 because it is not ported yet and not to use
4254         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
4255         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
4256         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
4257
4258         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
4259         (CHAR_ASCII_P): Moved from character.h.
4260
4261         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
4262         (CHAR_ASCII_P): Likewise.
4263         (CHAR_FIELD1_MASK): Deleted.
4264         (CHAR_FIELD2_MASK): Deleted.
4265         (CHAR_FIELD3_MASK): Deleted.
4266         (MAX_CHAR_BASIC_LATIN): New macro.
4267         (CHAR_FIELD1): Deleted.
4268         (CHAR_FIELD2_INTERNAL): Deleted.
4269         (CHAR_FIELD3_INTERNAL): Deleted.
4270         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
4271         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
4272         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
4273         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
4274         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
4275         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
4276         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
4277         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
4278         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
4279         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
4280         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
4281         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
4282         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
4283         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
4284         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
4285         (MIN_CHAR_COMPOSITION): Deleted.
4286         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
4287         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
4288
4289 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
4290
4291         * buffer.h: Include mb-utf-8.h in UTF-2000.
4292
4293         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
4294
4295         * mb-utf-8.h: New file.
4296
4297 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
4298
4299         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
4300         instead of `int'.
4301
4302         * mule-charset.h, buffer.h (Charset_ID): New type.
4303
4304 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
4305
4306         * mule-canna.c (c2mu): Use `MAKE_CHAR',
4307         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
4308         instead of `MULE_CHAR_PRIVATE_OFFSET',
4309         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
4310         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
4311         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
4312
4313         * character.h (Vcharset_japanese_jisx0212): New variable
4314         definition.
4315
4316 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
4317
4318         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
4319         (charset_by_attributes): Delete array about direction.
4320         (latin_a_char_to_charset): New variable in UTF-2000.
4321         (latin_a_char_to_byte1): New variable in UTF-2000.
4322         (latin_a_char_to_byte2): New variable in UTF-2000.
4323         (Qucs_bmp): New variable.
4324         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
4325         `Bufbyte'.
4326         (next_allocated_2_byte_leading_byte): Likewise.
4327         (non_ascii_set_charptr_emchar): Likewise.
4328         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
4329         `CHARSET_TYPE_256X256' in UTF-2000; modify for
4330         `charset_by_attributes'.
4331         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
4332         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
4333         and `CHARSET_BY_LEADING_BYTE'.
4334         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
4335         `utf-2000-version' to `vars_of_mule_charset'.
4336         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
4337         define `leading-code-private-11' in UTF-2000; move setting of
4338         `utf-2000-version' from `syms_of_mule_charset'.
4339         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
4340         UTF-2000.
4341
4342         * character.h (Charset_ID): New type.
4343         (LEADING_BYTE_UCS_BMP): New macro.
4344         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
4345         (CHARSET_ID_OFFSET_94): New macro.
4346         (MIN_CHARSET_ID_PRIVATE_94): New macro.
4347         (MAX_CHARSET_ID_PRIVATE_94): New macro.
4348         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
4349         final-byte.
4350         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
4351         (LEADING_BYTE_LATIN_JISX0201): Likewise.
4352         (CHARSET_ID_OFFSET_96): New macro.
4353         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
4354         CHARSET_ID_OFFSET_96 and final-byte.
4355         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
4356         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
4357         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
4358         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
4359         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
4360         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
4361         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
4362         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
4363         (LEADING_BYTE_THAI_TIS620): Likewise.
4364         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
4365         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
4366         (CHARSET_ID_OFFSET_94x94): New macro.
4367         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
4368         CHARSET_ID_OFFSET_94x94 and final-byte.
4369         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
4370         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
4371         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
4372         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
4373         (LEADING_BYTE_CHINESE_GB2312): Likewise.
4374         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
4375         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
4376         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
4377         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
4378         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
4379         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
4380         (CHARSET_TYPE_128X128): New macro.
4381         (CHARSET_TYPE_256X256): New macro.
4382         (XCHARSET_PRIVATE_P): Delete unconditionally.
4383         (charset_by_attributes): Delete array about direction.
4384         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
4385         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
4386         (MIN_CHAR_94): New macro.
4387         (MAX_CHAR_94): New macro.
4388         (MIN_CHAR_96): New macro.
4389         (MAX_CHAR_96): New macro.
4390         (MIN_CHAR_94x94): New macro.
4391         (MAX_CHAR_94x94): New macro.
4392         (MIN_CHAR_96x96): New macro.
4393         (MAX_CHAR_96x96): New macro.
4394         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
4395         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
4396         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
4397         - 32)'.
4398         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
4399         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
4400         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
4401         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
4402         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
4403         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
4404         `XCHARSET_LEADING_BYTE' to make code-point.
4405         (latin_a_char_to_charset): New variable.
4406         (latin_a_char_to_byte1): New variable.
4407         (latin_a_char_to_byte2): New variable.
4408         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
4409         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
4410         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
4411
4412         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
4413         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
4414         (find_charsets_in_emchar_string): Likewise.
4415         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
4416
4417         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
4418         `int'.
4419         (decode_coding_iso2022): Likewise.
4420
4421         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
4422         of `unsigned char'.
4423
4424         * redisplay.c (redisplay_text_width_emchar_string): Use
4425         `Charset_ID' instead of `unsigned char'.
4426         (redisplay_frame_text_width_string): Likewise.
4427
4428         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
4429         `unsigned char'.
4430
4431         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
4432         instead of `unsigned char'.
4433         (face_cachel_charset_font_metric_info): Likewise.
4434
4435         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
4436         (get_non_ascii_char_table_value): Likewise.
4437         (get_char_table): Likewise.
4438         (put_char_table): Likewise.
4439         (map_over_other_charset): Likewise.
4440         (map_char_table): Likewise.
4441
4442         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
4443         instead of `unsigned char'.
4444
4445 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
4446
4447         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
4448         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
4449
4450         * mule-charset.c (leading_code_private_11): Don't define in
4451         UTF-2000.
4452
4453         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
4454         in UTF-2000 because it is not ported yet and not to use
4455         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
4456
4457 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
4458
4459         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
4460
4461 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4462
4463         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
4464         in UTF-2000.
4465
4466         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
4467         of unsigned char to store leading-byte.
4468
4469         * chartab.c (get_non_ascii_char_table_value): Don't use
4470         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
4471
4472         * file-coding.c (encode_coding_big5): Delete bogus implementation
4473         in UTF2000.
4474
4475         * character.h (LEADING_BYTE_*): Delete definition for
4476         non-UTF-2000.
4477         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
4478         (LEADING_BYTE_PREFIX_P): Deleted.
4479         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
4480         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
4481         (BUFBYTE_LEADING_BYTE_P): Deleted.
4482         (CHARSET_PRIVATE_P): Deleted unconditionally.
4483         (rep_bytes_by_first_byte): Deleted unconditionally.
4484         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
4485         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
4486         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
4487         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
4488         (CHAR_FIELD2): Deleted.
4489         (CHAR_FIELD3): Deleted.
4490         (MAKE_CHAR): Delete definition for non-UTF-2000.
4491         (BREAKUP_CHAR_1_UNSAFE): Deleted.
4492         (breakup_char_1): New implementation.
4493         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
4494         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
4495
4496 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4497
4498         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
4499         condition.
4500
4501 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4502
4503         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
4504         (CHARSET_PRIVATE_P): Likewise.
4505         (XCHARSET_PRIVATE_P): Likewise.
4506         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
4507
4508         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
4509         UTF2000.
4510         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
4511
4512 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4513
4514         * character.h (LEADING_BYTE_*): Changed in UTF2000.
4515         (NUM_LEADING_BYTES): Changed from 128 to 256.
4516         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
4517         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
4518         UTF2000.
4519         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
4520
4521         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
4522         UTF2000.
4523         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
4524         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
4525         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
4526         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
4527         (Qchinese_cns11643_3): New variable in UTF2000.
4528         (Qchinese_cns11643_4): New variable in UTF2000.
4529         (Qchinese_cns11643_5): New variable in UTF2000.
4530         (Qchinese_cns11643_6): New variable in UTF2000.
4531         (Qchinese_cns11643_7): New variable in UTF2000.
4532         (syms_of_mule_charset): Define `chinese-cns11643-3',
4533         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4534         and `chinese-cns11643-7' in UTF2000.
4535         (vars_of_mule_charset): Initialize
4536         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
4537         + 1 in UTF2000.
4538         (complex_vars_of_mule_charset): Setup charset
4539         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
4540         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
4541
4542 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4543
4544         * mule-charset.c: Move setting for `leading-code-private-11' from
4545         `syms_of_mule_charset' to `vars_of_mule_charset'.
4546
4547 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4548
4549         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
4550         and `NUM_LEADING_BYTES' in assert.
4551
4552 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4553
4554         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
4555         instead of 128.
4556         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
4557         `NUM_LEADING_BYTES' instead of 128.
4558
4559 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4560
4561         * mule-charset.h (charset_by_leading_byte): Use
4562         `NUM_LEADING_BYTES' instead of 128.
4563         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
4564
4565         * mule-charset.c (charset_by_leading_byte): Use
4566         `NUM_LEADING_BYTES' instead of 128.
4567         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
4568
4569         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
4570         128.
4571
4572 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
4573
4574         * mule-charset.c (syms_of_mule_charset): Update to
4575         0.4 (Shin-Imamiya).
4576
4577 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
4578
4579         * file-coding.c (encode_coding_sjis): New implementation for
4580         UTF2000.  (decode_coding_sjis): Ditto.
4581
4582 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4583
4584         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
4585         Don't define in UTF2000.
4586
4587         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
4588         defined.
4589
4590         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4591         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
4592         MULE.
4593
4594 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4595
4596         * config.h.in (CHAR_IS_UCS4): New macro.
4597
4598         * mule-charset.c (rep_bytes_by_first_byte): Modify for
4599         conventional MULE representation.
4600         (syms_of_mule_charset): Update to 0.3 (Imamiya).
4601
4602         * mule-charset.h: Reverted to original.
4603
4604         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4605         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
4606         "mule-charset.h" if CHAR_IS_UCS4 is defined.
4607
4608         * character.h: New file.
4609
4610         * file-coding.c (Fmake_coding_system): Set 1 to
4611         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
4612         defined.
4613         (encode_coding_no_conversion): New implementation for UTF2000.
4614
4615         * file-coding.h (struct Lisp_Coding_System): Add new member
4616         `fixed.size'.
4617
4618 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
4619
4620         * file-coding.c (decode_coding_iso2022): Code-point arguments of
4621         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
4622         (encode_coding_iso2022): New implementation for UTF2000.
4623
4624 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4625
4626         * mule-canna.c (c2mu): New implementation for UTF2000.
4627         (m2c): Likewise.
4628
4629 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4630
4631         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
4632
4633 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4634
4635         * file-coding.c (reset_encoding_stream): Set 0 to
4636         `str->iso2022.current_char_boundary' in UTF2000.
4637         (encode_utf8): Don't define in UTF2000.
4638         (encode_coding_utf8): New implementation for UTF-8 representation
4639         of UTF2000.
4640         (complex_vars_of_file_coding): Define coding-system `utf-8'.
4641
4642 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4643
4644         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
4645
4646         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
4647         UTF2000.
4648         (REP_BYTES_BY_FIRST_BYTE): Likewise.
4649
4650         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
4651
4652         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
4653         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
4654         as UTF-8 in UTF2000.
4655         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
4656         (non_ascii_valid_char_p): Don't define in UTF2000.
4657         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
4658         (Lstream_get_emchar_1): Likewise.
4659         (utf-2000-version): New variable in UTF2000.
4660
4661         * lread.c (read_escape): Add new reader `u'.
4662
4663         * insdel.c (three_to_one_table): Don't define in UTF2000.
4664         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
4665         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4666         UTF2000.
4667         (bytind_to_bufpos_func): Likewise.
4668         (buffer_mule_signal_inserted_region): Likewise.
4669         (vars_of_insdel): Don't initialize `three_to_one_table'.
4670         (init_buffer_text): Use `buf->text->mule_size' instead of
4671         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4672         UTF2000.
4673
4674         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
4675         UTF-8 representation in UTF2000.
4676         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
4677         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
4678         (decode_coding_iso2022): Don't define local variable `lb' in
4679         UTF2000; don't use LEADING_BYTE in UTF2000; use
4680         `DECODE_ADD_UCS_CHAR' in UTF2000.
4681         (convert_to_external_format): Decode as UTF-8 in UTF2000.
4682
4683         * config.h.in (UTF2000): New macro.
4684
4685         * buffer.h (struct buffer_text): Add new member `mule_size' and
4686         don't add `mule_shifter' and `mule_three_p' in UTF2000.
4687         (valid_char_p): Return always 1 in UTF2000.
4688         (MAX_EMCHAR_LEN): 6 in UTF2000.
4689         (three_to_one_table): Don't define in UTF2000.
4690         (real_bufpos_to_bytind): Modify for UTF-8 representation in
4691         UTF2000.
4692         (real_bytind_to_bufpos): Likewise.
4693
4694         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
4695
4696 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4697
4698         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
4699         representation change.
4700         (Vutf_2000_version): New variable.
4701         (leading_code_private_11): New variable.
4702         (syms_of_mule_charset): Add new variables `utf-2000-version' and
4703         `leading-code-private-11'.
4704
4705         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
4706         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
4707         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
4708         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
4709         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
4710         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
4711         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
4712         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
4713         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
4714         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
4715         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
4716         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
4717         (MIN_CHAR_GREEK): New macro.
4718         (MAX_CHAR_GREEK): New macro.
4719         (MIN_CHAR_CYRILLIC): New macro.
4720         (MAX_CHAR_CYRILLIC): New macro.
4721         (MIN_CHAR_HEBREW): New macro.
4722         (MAX_CHAR_HEBREW): New macro.
4723         (MIN_CHAR_THAI): New macro.
4724         (MAX_CHAR_THAI): New macro.
4725         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
4726         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
4727         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
4728         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
4729         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
4730         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
4731         (CHAR_FIELD2): New inline function.
4732         (CHAR_FIELD3): New inline function.
4733         (MULE_CHAR_PRIVATE_OFFSET): New macro.
4734         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
4735         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
4736         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
4737         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
4738         (MIN_CHAR_COMPOSITION): Likewise.
4739         (CHAR_LEADING_BYTE): Modified for character representation change.
4740         (MAKE_CHAR): Likewise.
4741
4742         * lisp.h (Vcharset_latin_iso8859_1): New variable.
4743         (Vcharset_greek_iso8859_7): Likewise.
4744         (Vcharset_cyrillic_iso8859_5): Likewise.
4745         (Vcharset_hebrew_iso8859_8): Likewise.
4746         (Vcharset_thai_tis620): Likewise.
4747         (Vcharset_katakana_jisx0201): Likewise.
4748
4749 2003-01-03  Stephen J. Turnbull  <stephen@xemacs.org>
4750
4751         * XEmacs 21.4.11 "Native Windows TTY Support" is released.
4752
4753 2002-12-14  Ben Wing  <ben@xemacs.org>
4754
4755         * callint.c: Declaration error.
4756         * dumper.c (pdump):
4757         * dumper.c (pdump_load): Warning fix.
4758         * process.c: GCPRO error.
4759         * glyphs.c (unmap_subwindow):
4760         * glyphs.c (map_subwindow): Parenthesizing errors with ! and &&.
4761         * event-stream.c (maybe_kbd_translate): Wrong argument to
4762         character_to_event().
4763
4764         * alloc.c (garbage_collect_1):
4765         * emacs.c:
4766         * emacs.c (debug_can_access_memory):
4767         * emacs.c (fatal_error_signal):
4768         * emacs.c (mswindows_handle_hardware_exceptions):
4769         * emacs.c (main_1):
4770         * emacs.c (main):
4771         * emacs.c (assert_failed):
4772         * emacs.c (syms_of_emacs):
4773         * lisp.h:
4774         * print.c:
4775         * print.c (std_handle_out_va):
4776         * print.c (write_string_to_stdio_stream):
4777         * print.c (write_fmt_string):
4778         * print.c (printing_badness):
4779         * print.c (printing_major_badness):
4780         * print.c (print_internal):
4781         * print.c (debug_print_no_newline):
4782         * print.c (debug_backtrace):
4783         Be more defensive in handling bad values when printing.  Add code
4784         from trunk involving inhibit_non_essential_printing_operations.
4785         When going down or in debug_print(), don't do external conversion
4786         and such and try really, really hard when printing to avoid core
4787         dumping.  Add force-debugging-signal, debug_break().
4788
4789 2002-12-12  Stephen J. Turnbull  <stephen@xemacs.org>
4790
4791         * dumper.c (pdump_load): Include sysdep.h; retry with truename.
4792         Analysis and original patch by Vin Shelton <acs@xemacs.org>.
4793
4794 2002-12-02  Greg Allen  <greg_allen@westlb-systems.co.uk>
4795
4796         * database.c: Fix open_database. Berkeley DB API has changed in
4797         4.1. see: http://www.sleepycat.com/docs/ref/upgrade.4.1/fop.html
4798
4799 2002-11-26  Stephen J. Turnbull  <stephen@xemacs.org>
4800
4801         * specifier.c (Fvalid_specifier_type_p): Typo in comment.
4802
4803 2002-11-13  Stephen J. Turnbull  <stephen@xemacs.org>
4804
4805         * event-Xt.c (Xt_timeout):
4806         (Xt_timeout_callback):
4807         (emacs_Xt_add_timeout):
4808         (emacs_Xt_remove_timeout):
4809         (Xt_timeout_to_emacs_event):
4810         Turn completed_timeouts from a stack into a queue.  Fixes
4811         deadlocks <15829.21626.171573.994716@sinisa.nasamreza.org>.
4812
4813 2002-11-07  Wolfram Gloger  <wg@malloc.de>
4814
4815         * alloc.c (reinit_alloc_once_early): Disable mmap in Doug Lea malloc.
4816         * emacs.c (main): Assert that mmap'd allocation is disabled.
4817
4818 2002-10-14  Andy Piper  <andy@xemacs.org>
4819
4820         * glyphs-widget.c (layout_query_geometry): add in fiddle
4821         factor. Include border text in width layout calculation.
4822         (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10.
4823
4824 2002-11-02  Stephen J. Turnbull  <stephen@xemacs.org>
4825
4826         * XEmacs 21.4.10 "Military Intelligence" is released.
4827
4828 2002-10-17  Raymond Toy  <toy@rtp.ericsson.se>
4829
4830         * nas.c: Update for NAS 1.6 and later, from Jon Trulson.  Was
4831         using the NAS private array SoundFileInfo that no longer exists in
4832         NAS 1.6 and later.  Preserve backward compatibility with NAS 1.5a
4833         and earlier.  This is broken for some versions between 1.5a and
4834         1.5f.
4835
4836 2002-10-10  Stephen J. Turnbull  <stephen@xemacs.org>
4837
4838         * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
4839
4840         * emacs.c (shut_down_emacs): Improve crash message.
4841
4842 2002-10-09  Stephen J. Turnbull  <stephen@xemacs.org>
4843
4844         * file-coding.c (determine_real_coding_system): Check for coding
4845         cookie in first LINES_TO_CHECK lines (currently 2).  Cater to
4846         shebangs and Python PEP 263.
4847
4848 2002-10-08  Andy Piper  <andy@xemacs.org>
4849
4850         * glyphs-widget.c (layout_query_geometry): only resize dynamically
4851         if static sizes haven't been set.
4852
4853 2002-08-30  Mike Alexander  <mta@arbortext.com>
4854
4855         * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
4856         to close a socket.
4857
4858 2002-10-03  Stephen J. Turnbull  <stephen@xemacs.org>
4859
4860         * callproc.c (child_setup): 21.4 doesn't have retry_close.
4861
4862 2002-09-20  Mike Sperber <mike@xemacs.org>
4863
4864         (This partially gets back my patch from 2002-07-20 without the
4865         bug.)
4866         * callproc.c (child_setup): Remove Ben's comment noting confusion
4867         over the file descriptors >= 3: close_process_descs() doesn't
4868         close those.  Fix fd range to go up to MAXDESC-1 instead of 64.
4869         * process-unix.c (unix_create_process): Call
4870         begin_dont_check_for_quit to inhibit unwanted interaction (and
4871         thus breaking of X event synchronicity) in the child.
4872
4873 2002-09-26  Golubev I. N.  <gin@mo.msk.ru>
4874
4875         * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
4876         widget.
4877
4878 2002-08-20  Ben Sigelman  <bhsigelm@cs.brown.edu>
4879
4880         * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
4881         instead of while(XtAppPending()&XtIMXEvent).  Upon a gdm logout,
4882         the xemacs process did not exit, but looped infinitely here.  This
4883         fixes that problem.
4884
4885 2002-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
4886
4887         * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
4888         (find_context): Improve comments.
4889
4890         * regex.c (re_compile_fastmap):  Gratuitous #ifdef comment fixes.
4891         (re_match_2): An XCHAR_TABLE operation was missing.
4892
4893         Many of the following changes were inspired by Andy Piper's (now
4894         obsolete) patch to make syntax-table text property lookup optional.
4895
4896         [Documentation]
4897
4898         * syntax.h (top level): Document semantics of syntax flags.
4899         * syntax.c (comstr_start, Fforward_comment): Improve comments.
4900         * syntax.c, syntax.h (top level): Document syntax cache better in
4901         comments.
4902
4903         [Instrument syntax caching (temporary change)]
4904
4905         * syntax.h (enum syntax_cache_statistics_functions, struct
4906         syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
4907         SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
4908         * syntax.c (scan_words, Fforward_comment, scan_lists,
4909         Fbackward_prefix_characters):
4910         * font-lock.c (find_context):
4911         Use them to instrument syntax caching. 
4912         * syntax.c (struct syntax_cache_statistics, scs_statistics,
4913         syntax_cache_statistics_function_names): New type and variables.
4914         * syntax.c (update_syntax_cache): Update and report statistics.
4915
4916         [Major syntax cache optimizations]
4917
4918         syntax.c (lookup_syntax_properties): Default off.
4919
4920         * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
4921         * syntax.c (update_syntax_cache):
4922         Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
4923
4924         [Minor syntax cache optimizations and code clarifications]
4925
4926         * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
4927         SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
4928         SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
4929         SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
4930         SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
4931         (Code clarification.)
4932
4933         * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
4934         scan_lists): Compute code from syncode, use Boolean macros instead
4935         of redundant masking operations.  (Code clarification; any decent
4936         compiler can do this optimization.)
4937
4938         * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
4939         for clarity.
4940
4941         * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
4942         PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
4943         use F*_single_property_change instead of F*_extent_change.
4944         Currently F*_single_property_change is _much_ less efficient.
4945
4946         * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
4947         * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT):  Initialize
4948         syntax_cache.object properly, don't leave Qt or Qnil.
4949         (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
4950         * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
4951         tests for Qt or Qnil.
4952
4953 2002-09-21  Stephen J. Turnbull  <stephen@xemacs.org>
4954
4955         * redisplay.c (point_in_line_start_cache): 
4956         * extents.c (print_extent_1):
4957         Fix warnings.
4958
4959         * extents.c (Fset_extent_property): Document `syntax-table' property.
4960
4961         * extents.h (Fnext_single_property_change): EXFUN it.
4962
4963 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
4964
4965         * search.c (clear_unused_search_regs): New static function.
4966         (search_buffer): 
4967         (simple_search): 
4968         (boyer_moore):
4969         Use it.  Fixes "stale match data" bug reported by Martin Stjernholm.
4970         Minor clarifications in comments.
4971
4972         * regex.c (re_match_2_internal): Ensure no stale submatches.
4973
4974 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
4975
4976         * event-Xt.c (enqueue_focus_event): Add missing prototype.
4977
4978 2002-08-29  Jerry James  <james@xemacs.org>
4979
4980         * lisp.h: structrures -> structures.
4981
4982 2002-06-03  Andy Piper  <andy@xemacs.org>
4983
4984         * frame.c (frame_conversion_internal): add conversion appropriate
4985         for setting frame dimensions in pixels.
4986
4987         * console.h (struct console_methods): add device-specific widget
4988         layout functions.
4989
4990         * emacs.c (main_1): initialize glyph vars.
4991
4992         * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
4993         (handle_focus_event_2): new function. Allow focus to
4994         be set to a particular window and widget.
4995         (enqueue_focus_event): new function. Create a
4996         synthetic focus event.
4997         (emacs_Xt_handle_magic_event): call
4998         handle_focus_event_2.
4999
5000         * frame.c (Fset_frame_pixel_height): new function. Allow
5001         pixel-based sizing. Does the right thing on character-oriented
5002         displays.
5003         (Fset_frame_pixel_width): ditto.
5004         (Fset_frame_pixel_size): ditto.
5005         (syms_of_frame): declare.
5006
5007         * general-slots.h: add :vertically-justify and
5008         :horizontally-justify.
5009
5010         * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
5011         (mswindows_widget_border_width): new function.
5012         (mswindows_combo_box_instantiate): set border widths.
5013         (console_type_create_glyphs_mswindows): declare.
5014
5015         * glyphs-widget.c:
5016         (check_valid_justification): allow vertical and horizontal
5017         justification.
5018         (widget_border_width): new function. Call device methods.
5019         (widget_instance_border_width): ditto.
5020         (logical_unit_height): new function. Determine the height of a
5021         logical-unit. Logical units are intended to provide grid-like
5022         layout for subcontrols in a layout. If the layout is
5023         :vertically-justify top then subcontrols will be positioned on
5024         logical-unit boundaries, thus allowing adjacent subcontrols to
5025         line up.
5026         (widget_logical_unit_height): ditto for widgets.
5027         (redisplay_widget): misc cleanup.
5028         (widget_spacing): new function. Call device specific
5029         methods. Intended to be the default gap between adjacent widgets.
5030         (widget_query_geometry): use new spacing functions to determine
5031         appropriate geometry.
5032         (initialize_widget_image_instance): initialize horizontal and
5033         vertical justification.
5034         (widget_instantiate): use logica-units where appropriate for
5035         sizing large widgets.
5036         (button_query_geometry): use widget_instance_border_width.
5037         (tree_view_query_geometry): ditto.
5038         (tab_control_query_geometry): ditto.
5039         (edit_field_query_geometry): new function.
5040         (layout_update): pick up :justify, :horizontally-justify and
5041         :vertically-justify none of which worked previously. :justify is
5042         used as a fallback for both horizontal and vertical justification.
5043         (layout_query_geometry): use logical units to size appropriately.
5044         (layout_layout): ditto.
5045         (Fwidget_logical_to_character_width): new function. Allow users to
5046         convert from logical units to characters so that frame sizes can
5047         be set appropriately.
5048         (Fwidget_logical_to_character_height): ditto.
5049         (syms_of_glyphs_widget): declare.
5050         (image_instantiator_edit_fields): add edit_field_query_geometry.
5051         (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
5052         :horizontally-justify.
5053         (specifier_vars_of_glyphs_widget): new function. Declare
5054         Vwidget_border_width which is not yet used.
5055
5056         * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
5057         (x_widget_border_width): new function.
5058         (x_widget_instantiate): create a sensible name for widgets.
5059         (console_type_create_glyphs_x): declare x_widget_border_width.
5060
5061         * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
5062         (struct Lisp_Image_Instance): add :vertically-justify and
5063         :horizontally-justify.
5064         (LAYOUT_JUSTIFY_TOP): new.
5065         (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
5066         (ROUND_UP): new macro. Round argument up to next integral
5067         interval.
5068
5069         * redisplay-output.c (redisplay_output_layout): misc formatting.
5070
5071         * symsinit.h: declare specifier_vars_of_glyphs_widget.
5072
5073 2002-08-23  Stephen J. Turnbull  <stephen@xemacs.org>
5074
5075         * XEmacs 21.4.9 "Informed Management" is released.
5076
5077 2002-08-19  Andy Piper  <andy@xemacs.org>
5078
5079         * fileio.c (Ffile_truename): on cygwin using win32 normalize to
5080         win32 format.
5081
5082         * realpath.c (xrealpath): normalize drive spec also so that dir
5083         sep chars are not mixed on cygwin.
5084
5085 2002-08-06  Jerry James  <james@xemacs.org>
5086
5087         * window.c (Fsplit_window): Count only half of the divider width
5088         against the left window when splitting horizontally. 
5089
5090 2002-06-24  Andy Piper  <andy@xemacs.org>
5091
5092         * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
5093         toolbar was cleared.
5094
5095         * toolbar-msw.c (mswindows_clear_frame_toolbars): new
5096         function. Split out from mswindows_output_frame_toolbars.
5097         (mswindows_output_frame_toolbars): move clear pieces to
5098         mswindows_output_frame_toolbars.
5099
5100         * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
5101         out from gtk_output_frame_toolbars.
5102         (gtk_output_frame_toolbars): move clear pieces to
5103         gtk_clear_frame_toolbars.
5104
5105         * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
5106         the frame is cleared. How this ever worked before is a mystery.
5107         (x_output_frame_toolbars): Only output toolbars.
5108         (x_clear_frame_toolbars): new. Clear previous toolbar locations.
5109
5110         * gutter.c (update_gutter_geometry):
5111         Mark frame layout changed.
5112         (update_frame_gutter_geometry, update_frame_gutters):
5113         Respect frame_layout_changed.
5114
5115         * console.h (struct console_methods): add
5116         clear_frame_toolbars_method.
5117
5118         * redisplay.c (redisplay_frame): call
5119         update_frame_toolbars_geometry and re-order update_frame_toolbars.
5120
5121         * toolbar.h: declare update_frame_toolbars_geometry.
5122
5123         * toolbar.c (update_frame_toolbars_geometry): new function. Split
5124         out from update_frame_toolbars.  Call clear_frame_toolbars.
5125         (update_frame_toolbars): only output, do not change geometry.
5126
5127         * redisplay.c: add frame_layout_changed.
5128
5129         * redisplay.h: add frame_layout_changed.
5130         (CLASS_RESET_CHANGED_FLAGS): set it.
5131         (GLOBAL_RESET_CHANGED_FLAGS): ditto.
5132         (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
5133         (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
5134
5135         * device.h (struct device): add frame_layout_changed.
5136         (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
5137
5138         * frame.h (struct frame): add frame_layout_changed.
5139         (MARK_FRAME_LAYOUT_CHANGED): new.
5140
5141 2002-06-30  Mike Alexander  <mta@arbortext.com>
5142
5143         * event-msw.c (mswindows_need_event): Don't wait for a new message
5144         if the queue is not empty.  Suggested by Paul Moore.
5145
5146 2002-06-12  Andy Piper  <andy@xemacs.org>
5147
5148         * frame-msw.c (msprinter_init_frame_3): calculate the frame size
5149         for printing on accurately.
5150
5151 2002-06-09  Rick Rankin <rick_rankin@yahoo.com>
5152
5153         * event-msw.c (mswindows_wnd_proc): Add a handler for the
5154         WM_ACTIVATE message. Make sure that the frame is visible if the
5155         window is visible. This seemss to fix the problem where XEmacs
5156         appears to freeze after switching desktops with certain virtual
5157         window managers.
5158         (debug_output_mswin_message): Added code to output message
5159         parameters for WM_WINDOWPOSCHANGED, 
5160         WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
5161
5162 2002-05-25  Andy Piper  <andy@xemacs.org>
5163
5164         * select-x.c (vars_of_select_x): Fix docstring of
5165         x-selection-strict-motif-ownership
5166
5167 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5168
5169         * keymap.c (get_keymap):
5170         Add comment about do_autoload GCPROs own args.
5171
5172 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5173
5174         * bytecode.c (execute_optimized_program): check_opcode ifdef
5175         ERROR_CHECK_BYTE_CODE.
5176
5177 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5178
5179         Thanks to Ben Wing and Michael Sperber.
5180
5181         * eval.c (Fcommand_execute):
5182         (Feval):
5183         (Ffuncall):
5184         (Fmacroexpand_internal):
5185         (function_argcount):
5186         callint.c (Fcall_interactively):
5187         Add comment about do_autoload GCPROs own args.
5188
5189         * (do_autoload): GCPRO both args as well as local Lisp_Object.
5190
5191         * eval.c (Ffuncall): Extra braces to placate GCC.
5192
5193 2002-08-10  Stephen J. Turnbull  <stephen@xemacs.org>
5194
5195         * backtrace.h (grow_specpdl):
5196         (SPECPDL_RESERVE):
5197         * EmacsFrame.c (EmacsFrameSetValues):
5198         * eval.c (grow_specpdl):
5199         * ExternalShell.c (hack_event_masks_1):
5200         * glyphs-x.c (convert_EImage_to_XImage): 
5201         (x_finalize_image_instance):
5202         * ralloc.c (page_size):
5203         (r_alloc_sbrk):
5204         * xgccache.c (gc_cache_hash):
5205         Fix unsigned comparison warnings.
5206
5207 2002-07-29  Jerry James  <james@xemacs.org>
5208
5209         * lread.c (locate_file): Any nonnegative return value indicates
5210         success if MODE is nonnegative.
5211
5212 2002-08-03  Brian A Palmer  <bpalmer@rescomp.Stanford.EDU>
5213
5214         * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
5215         argument. 
5216
5217 2002-07-17  Stephen J. Turnbull  <stephen@xemacs.org>
5218
5219         * process-unix.c (unix_send_process): #ifdef the coding_stream member.
5220
5221         * dumper.c (pdump_get_indirect_count):
5222         (pdump_scan_by_alignment):
5223         (pdump_dump_root_struct_ptrs):
5224         (pdump_dump_rtables):
5225         (pdump_dump_root_objects):
5226         (pdump):
5227         * nas.c (WaveOpenDataForReading):
5228         * fns.c (print_bit_vector):
5229         * font-lock.c (SINGLE_SYNTAX_STYLE):
5230         * glyphs.c (check_for_ignored_expose):
5231         (find_matching_subwindow):
5232         * glyphs-eimage.c:
5233         * imgproc.c (get_histogram):
5234         * redisplay.c (point_in_line_start_cache):
5235         * redisplay-output.c (redisplay_unmap_subwindows):
5236         * symbols.c (defsymbol_massage_name_1):
5237         (defkeyword_massage_name):
5238         (deferror_massage_name_and_message):
5239         * redisplay-x.c (x_output_string): 
5240         * emacs.c (run_temacs_argv_size, run_temacs_args_size):
5241         * frame.h (struct frame):
5242         * filelock.c (current_lock_owner):
5243         * doprnt.c (emacs_doprnt_1):
5244         * lisp.h (struct Lisp_Bit_Vector):
5245         (DO_REALLOC):
5246         Fix warnings.
5247
5248 2002-02-13  Ben Wing  <ben@xemacs.org>
5249
5250         * event-stream.c (reset_key_echo):
5251         * event-stream.c (reset_this_command_keys):
5252         * event-stream.c (execute_command_event):
5253         If console is dead as a result of C-x 5 0, then post-command stuff
5254         needs to be careful and do only non-console-specific stuff.
5255
5256 2002-07-01  Mike Sperber <mike@xemacs.org>
5257
5258         * process-unix.c (unix_send_process): Mark coding_outstream as
5259         non-open upon SIGPIPE.
5260
5261         * event-stream.c (Fnext_event): Reorder switch cases to something
5262         that makes sense.
5263
5264 2001-08-13  Dmitry Astapov  <adept@umc.com.ua>
5265
5266         * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
5267         Don't bogusly reinitialize ascii_character property.
5268
5269 2002-07-08  Mike Sperber <mike@xemacs.org>
5270
5271         * process.c (Fstart_process_internal): Do error checking before we
5272         fork off the child, so the child can't muck with the state of the
5273         parent.
5274
5275 2002-07-08  Mike Sperber <mike@xemacs.org>
5276
5277         * ralloc.c (init_ralloc): Allocate properly for pdump.
5278
5279 2002-06-12  Andy Piper  <andy@xemacs.org>
5280
5281         * glyphs.c (query_string_geometry): check the string.
5282
5283         * glyphs-widget.c (widget_logical_unit_height): cope with nil
5284         widget names.
5285
5286 2002-06-17  Jerry James  <james@xemacs.org>
5287
5288         * sysdll.c: Remove RTLD_GLOBAL initialization.
5289         * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
5290
5291 2002-06-25  Stephen J. Turnbull  <stephen@xemacs.org>
5292
5293         * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
5294
5295 2002-05-16  Mathias Grimmberger  <mgri@zaphod.sax.de>
5296
5297         * sysdep.c (sys_rename): Make sys_rename work for the case where
5298         Windows rename sets errno to EACCES if target file exists.
5299
5300 2002-05-21  Jonathan Harris  <jonathan@xemacs.org>
5301
5302         * device-msw.c (mswindows_handle_page_setup_dialog_box):
5303         Fix detection of metric units to work on Win95
5304
5305 2002-05-21  Stephen J. Turnbull  <stephen@xemacs.org>
5306
5307         * syswindows.h: #define LOCALE_RETURN_NUMBER.  Why, I don't know.
5308
5309 2002-04-25  Andy Piper  <andy@xemacs.org>
5310
5311         * redisplay.c (create_text_block): Remove extra comment trailer.
5312
5313 2002-04-24  Andy Piper  <andy@xemacs.org>
5314
5315         * redisplay.c (create_text_block): Don't actually add propagation
5316         data if the line ends after we have added a glyph.
5317
5318 2002-04-22  Andy Piper  <andy@xemacs.org>
5319
5320         * extents.c (extent_fragment_update): check for glyphs we have
5321         previously displayed.
5322         * extents.c (print_extent_1): warning removal.
5323         * extents.h: change prototype.
5324         * redisplay-output.c (redisplay_normalize_glyph_area): calculate
5325         widths correctly for wide glyphs.
5326         * redisplay.c (position_redisplay_data_type): add end_glyph_width.
5327         * redisplay.c (prop_type): add PROP_GLYPH.
5328         * redisplay.c (struct prop_block): add glyph type
5329         * redisplay.c (add_glyph_rune): when adding part of a glyph add it
5330         to the propagation data.
5331         * redisplay.c (create_text_block): if there is a glyph in the
5332         propagation data use it to salt extent_fragment_update.
5333         * redisplay.c (create_string_text_block): ditto.
5334
5335 2002-04-13  Nix  <nix@esperi.demon.co.uk>
5336
5337         * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
5338         * redisplay-output.c (compare_runes): Compare them.
5339         * redisplay.c: Update copyright date.
5340         * redisplay.c (pos_data): Add need_baseline_computation field.
5341         * redisplay.c (add_glyph_rune): Update ascent, descent, and
5342         need_baseline_computation; zero yoffset. Set max_pixmap_height
5343         for all pixmaps, not just automatically positioned ones.
5344         * redisplay.c (calculate_yoffset): New, compute yoffset values.
5345         * redisplay.c (calculate_baseline): New, compute textual baseline.
5346         * redisplay.c (add_glyph_rune): Call them.
5347         * redisplay.c (create_text_block): Likewise.
5348         * redisplay.c (create_overlay_glyph_block): Likewise.
5349         * redisplay.c (add_margin_runes): Likewise.
5350         * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
5351
5352         * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
5353         * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
5354         * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
5355         * redisplay-msw.c (mswindows_output_string): Likewise.
5356         * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
5357         * redisplay-gtk.c (gtk_output_display_block): Likewise.
5358         * redisplay-x.c (x_output_display_block): Likewise.
5359
5360 2002-03-28  Ben Wing  <ben@xemacs.org>
5361
5362         * redisplay.c: Fixed bug in redisplay
5363         w.r.t. hscroll/truncation/continuation glyphs causing jumping up
5364         and down of the lines, since they're bigger than the line
5365         size. (It was seen most obviously when there's a horizontal scroll
5366         bar, e.g. do C-h a glyph or something like that.) The problem was
5367         that the glyph-contrib-p setting on glyphs was ignored even if it
5368         was set properly, which it wasn't until now.
5369
5370 2002-04-24  Andy Piper  <andy@xemacs.org>
5371
5372         * lisp.h (Dynarr_end): Fix definition.
5373
5374 2002-02-06  Adrian Aichner  <adrian@xemacs.org>
5375
5376         * redisplay.c (mark_redisplay): Remove call to
5377         update_frame_window_mirror.
5378
5379 2001-11-15  Andy Piper  <andy@xemacs.org>
5380
5381         * win32.c (Fmswindows_shell_execute): fix handling of URL's under
5382         cygwin (again).
5383
5384 2002-02-13  Andy Piper  <andy@xemacs.org>
5385
5386         * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
5387         we did in fact enqueue the XM_MAPFRAME event.
5388
5389 2002-01-15  Adrian Aichner  <adrian@xemacs.org>
5390
5391         * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
5392         to fix problem switching between virtual desktops under virtuawin
5393         virtual window manager.
5394
5395 2001-07-30  Adrian Aichner  <adrian@xemacs.org>
5396
5397         * event-msw.c: Typo fix.
5398         * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
5399         magic XM_MAPFRAME event has been sent.
5400
5401 2001-11-23  Andy Piper  <andy@xemacs.org>
5402
5403         * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
5404
5405 2001-11-21  Andy Piper  <andy@xemacs.org>
5406
5407         * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
5408         mouse events outside the frame.
5409
5410 2002-03-20  Andy Piper  <andy@xemacs.org>
5411
5412         * menubar-msw.c (mswindows_popup_menu): warning removal.
5413         * dialog-msw.c (dialog_popped_down): ditto.
5414
5415 2001-12-11  Andy Piper  <andy@xemacs.org>
5416
5417         * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
5418         * dialog-msw.c (mswindows_make_dialog_box_internal): set
5419         popup_up_p.
5420         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
5421         * menubar-msw.c (mswindows_handle_wm_command): ditto.
5422         * menubar-msw.c (mswindows_popup_menu): ditto.
5423
5424 2001-10-29  Andy Piper  <andy@xemacs.org>
5425
5426         * dialog-msw.c (handle_directory_dialog_box): quit if the user
5427         cancels.
5428
5429 2002-01-03  Andy Piper  <andy@xemacs.org>
5430
5431         * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
5432         letters.
5433         (xrealpath): ditto.
5434
5435 2002-03-29  Jonathan Harris  <jonathan@xemacs.org>
5436
5437         * device-msw.c (plist_get_margin): Add arg specifying mm or inches
5438         * device-msw.c (plist_set_margin): Fix multiplicand used for mm
5439         * device-msw.c (mswindows_handle_page_setup_dialog_box):
5440         Detect and handle case where machine is set up for metric units
5441
5442 2002-04-02  Andy Piper  <andy@xemacs.org>
5443
5444         * dired-msw.c (mswindows_get_files): 
5445         * nt.c (mswindows_stat): SetErrorMode() so that file errors are
5446         completely handled by XEmacs. Suggested by Thomas Vogler
5447         <mail@thomas-vogler.de>.
5448
5449 2001-11-14  Andy Piper  <andy@xemacs.org>
5450
5451         * nt.c (REG_ROOT): change registry key to XEmacs.
5452
5453 2002-04-27  Andy Piper  <andy@xemacs.org>
5454
5455         * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
5456
5457 2002-04-26  Andy Piper  <andy@xemacs.org>
5458
5459         * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
5460         behavior.
5461
5462 2002-03-14  Mike Alexander  <mta@arbortext.com>
5463
5464         * event-msw.c (mswindows_unwait_process): New, remove process from
5465         wait list
5466         * process-nt.c (nt_finalize_process_data): Call
5467         mswindows_unwait_process
5468         * console-msw.h: Declare mswindows_unwait_process
5469
5470 2002-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
5471
5472         * editfns.c (Fdecode_time):
5473         (Fformat_time_string):
5474         Check for invalid time.  Thanks to Nick Pakoulin <npak@ispras.ru>.
5475         (make_time): Warning elimination (change arg name).
5476
5477 2001-11-24  Andy Piper  <andy@xemacs.org>
5478
5479         * window.c (Fsplit_window): Doc return type.
5480
5481 2002-04-01  Andy Piper  <andy@xemacs.org>
5482
5483         * emacs.c (Fkill_emacs): Only output message box in interactive
5484         mode.
5485
5486 2002-04-26  Andy Piper  <andy@xemacs.org>
5487  
5488         * config.h.in: pull in 21.5.x change to stop alloca warnings under
5489         cygwin.
5490
5491 2002-03-18  Gregory Steuck  <greg-xemacs-patch@nest.cx>
5492
5493         * unexelf.c:  Use ELFSIZE or define from _LP64 to indicate a 64
5494         bit platform.
5495
5496 2002-05-09  Stephen J. Turnbull  <stephen@xemacs.org>
5497
5498         * XEmacs 21.4.8 "Honest Recruiter" is released.
5499
5500 2002-05-07  Nix  <nix@esperi.demon.co.uk>
5501
5502         Supersedes 2002-04-17 patch.
5503
5504         * process.h (PROCESS_LIVE_P): Use the process status as
5505         evidence of health, not the state of the input stream.
5506         (PROCESS_READABLE_P): Say if the process is readable
5507         from. (It may be dead nonetheless.)
5508         (CHECK_READABLE_PROCESS): Test for that condition.
5509
5510         * process.c (create_process): Use PROCESS_READABLE_P.
5511         (read_process_output, set_process_filter): Likewise.
5512
5513         * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
5514         (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
5515
5516         This code is #if 0'd, this is not the time to add new functions:
5517
5518         * process.c (Fprocess_readable_p): Report readability status.
5519         * process.c (Qprocess_readable_p): New, associated symbol...
5520         * process.c (syms_of_process): ... initialize it.
5521
5522 2002-05-04  Stephen J. Turnbull  <stephen@xemacs.org>
5523
5524         * XEmacs 21.4.7 "Economic Science" is released.
5525
5526 2002-04-17  Nix  <nix@esperi.demon.co.uk>
5527
5528         * process.h (PROCESS_LIVE_P): Use the process status as
5529         evidence of health, not the state of the input stream.
5530
5531 2002-04-30  Charles G. Waldman <cgw@xemacs.org>
5532
5533         * sysdep.c (sys_siglist): change "signum" to "signal"
5534
5535 2001-04-21  Martin Buchholz  <martin@xemacs.org>
5536
5537         * s/darwin.h: New file.
5538         Thanks to Greg Parker <gparker@cs.stanford.edu>.
5539         
5540 2002-04-23  Andreas Jaeger  <aj@suse.de>
5541
5542         * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
5543         which use lib64 for 64-bit libs.
5544         (START_FILES): Likewise.
5545
5546 2002-02-11  Mike Sperber  <mike@xemacs.org>
5547
5548         * device-x.c: 
5549         (x_IO_error_handler):
5550         (x_init_device): Temporarily keep device in static variable
5551         `device_being_initialized' so we can recover gracefully from
5552         internal XOpenDevice failure.  (XOpenDevice is documented to
5553         return NULL on failure, but sometimes calls the IO error handler
5554         instead.)
5555
5556 2002-01-31  John H. Palmieri  <palmieri@math.washington.edu>
5557
5558         * dired.c (Ffile_name_all_completions): Change documentation --
5559         remove reference to completion-ignored-extensions.
5560         * dired.c (vars_of_dired): Change documentation for
5561         completion-ignored-extensions -- remove reference to
5562         file-name-all-completions.
5563
5564 2002-03-06  Jerry James  <james@xemacs.org>
5565
5566         * emodules.c (emodules_load): Fix multiple loading of same module.
5567
5568 2002-01-25  Andrew Begel <abegel@cs.berkeley.edu>
5569         * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
5570         RTLD_LAZY to avoid incorrect symbol binding when using nested
5571         shared libraries on Solaris.
5572
5573 2002-02-12  Stephen J. Turnbull  <stephen@xemacs.org>
5574
5575         * fileio.c (Ffind_file_name_handler): Improve docstring.
5576
5577 2002-01-20  Stephen J. Turnbull  <stephen@xemacs.org>
5578
5579         * fns.c (Fmapconcat): Improve docstring.
5580
5581 2002-01-03  Eric Gillespie, Jr.  <epg@pretzelnet.org>
5582
5583         * device-gtk.c: Add prototype for
5584         emacs_gtk_selection_clear_event_handle.
5585         (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
5586         selection.  Setup signal handler for "selection_clear_event"
5587         (emacs_gtk_selection_clear_event_handle).
5588
5589         * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
5590         other applications owning the clipboard (based on
5591         x_handle_selection_clear).
5592
5593 2001-12-23  William M. Perry  <wmperry@gnu.org>
5594
5595         * menubar-gtk.c (gtk_popup_menu)  Add sanity checks, fix crash.
5596         
5597 2002-01-04  Martin Buchholz  <martin@xemacs.org>
5598
5599         * keymap.c (define_key_alternate_name): Parenthesize EQ.
5600
5601 2001-12-17  Stephen J. Turnbull  <stephen@xemacs.org>
5602
5603         * XEmacs 21.4.6 "Common Lisp" is released.
5604
5605 2001-12-16  Torsten Duwe  <duwe@caldera.de>
5606
5607         * search.c (Freplace_match): Add missing sub-expression functionality.
5608
5609         * buffer.c (decode_buffer): Add a check for pointer type to
5610         decode_buffer, before gcc's CSE optimization reorders a
5611         dereference in front of the allow_string test.
5612
5613 2001-11-16  Darryl Okahata  <darrylo@xemacs.org>
5614
5615         * window.c (window_loop): Fix bug that sometimes prevented
5616         window_loop() from iterating across multiple devices.  Also, at
5617         Ben's request, changed infloop-detecting code to abort() instead
5618         of silently terminating window_loop().
5619
5620 2001-11-21  Stephen J. Turnbull  <stephen@xemacs.org>
5621
5622         Based on analysis and patch by Simon Josefson <jas@extundo.com>.
5623         * editfns.c (make_time): New function.
5624         (Fencode_time): Use it instead of wasteful_word_to_lisp.
5625         * lisp.h (make_time): Prototype and comment it.
5626         * dired.c (wasteful_word_to_lisp): Deprecate.
5627         (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
5628
5629 2001-10-31  Kyle Jones  <kyle_jones@wonderworks.com>
5630
5631         * fileio.c (auto_save_1): Use current coding system, not
5632         escape-quoted.
5633
5634 2001-11-13  Ben Wing  <ben@xemacs.org>
5635
5636         * window.c:
5637         * window.c (window_truncation_on):
5638         * window.c (syms_of_window):
5639         truncate-partial-width-windows should respect the buffer being
5640         displayed, like other redisplay vars.
5641
5642 2001-11-13  Hirokazu FUKUI  <hfukui@sannet.ne.jp>
5643
5644         * event-stream.c (Fread_key_sequence): save current buffer.
5645
5646 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
5647
5648         * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
5649
5650 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
5651
5652         * alloc.c (lcrecord_stats): Add space for types defined in modules.
5653
5654 2001-10-26  Mike Alexander  <mta@arbortext.com>
5655
5656         * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
5657
5658 2001-10-25  Andy Piper  <andy@xemacs.org>
5659
5660         * ChangeLog:
5661         * dialog-msw.c (handle_directory_proc): new function.
5662          (handle_directory_dialog_box): new fucntion.
5663          (handle_file_dialog_box): use new directory dialog support.
5664          (mswindows_make_dialog_box_internal): ditto.
5665         * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
5666         handling.
5667         (mswindows_find_frame): make global.
5668         * fileio.c (Fexpand_file_name): build fix.
5669         * general-slots.h: add Qdirectory.
5670         * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
5671         handling.
5672         * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
5673         cygwin not leaving win32 paths unchanged.
5674         * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
5675         cygwin runtime to do path conversion.
5676         (Fmswindows_shell_execute): fix cygwin handling of URLs.
5677         (syms_of_win32): add new function.
5678         * window.c (window_loop): build fix.
5679
5680 2001-10-15  Andy Piper  <andy@xemacs.org>
5681
5682         (Fmswindows_shell_execute): fix handling of URL's under cygwin.
5683
5684 2001-10-23  Stephen J. Turnbull  <stephen@xemacs.org>
5685
5686         * XEmacs 21.4.5 "Civil Service" is released.
5687
5688 2001-04-08  Danny Colascione  <qtmstr@optonline.net>
5689
5690         * glyphs-x.c: Force buffer-tab highlight update when moving the
5691         buffer, avoiding an ugly black border, used for keyboard focus
5692         indication, on a widget that can never have keyboard focus, the
5693         buffer tab.
5694
5695 2001-08-30  Daiki Ueno  <ueno@unixuser.org>
5696
5697         * process-unix.c (unix_open_multicast_group): Remove too much
5698         conversion between host and network byte order.
5699
5700 2001-09-10  Nix  <nix@esperi.demon.co.uk>
5701
5702         * src/buffer.c (kill_buffer): Undedicate windows showing BUF
5703         before replacing them.
5704
5705         * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
5706         operation.
5707
5708         * src/window.c (undedicate_windows): Use it.
5709         * src/window.h: Add prototype.
5710
5711 2001-09-17  Ben Wing  <ben@xemacs.org>
5712
5713         * fileio.c (normalize_filename):
5714         * fileio.c (Fexpand_file_name):
5715         Fix various C++ compile errors in Andy's recent code.
5716         
5717         * callint.c (Fcall_interactively):
5718         * editfns.c (Ftemp_directory):
5719         * editfns.c (Fuser_full_name):
5720         * emacs.c (argmatch):
5721         * lread.c (locate_file_map_suffixes):
5722         * redisplay-x.c (x_ring_bell):
5723         Fix sign-compare warnings.
5724         
5725 2001-09-08  Andy Piper  <andy@xemacs.org>
5726
5727         * fileio.c (normalize_filename): copied from nt.c
5728         * (Ffile_name_directory): enable win32 paths under cygwin.
5729         * (Ffile_name_nondirectory): ditto.
5730         * (directory_file_name): ditto.
5731         * (Fexpand_file_name): ditto.
5732         * (Ffile_truename): ditto.
5733         * (Fsubstitute_in_file_name): ditto.
5734         * (Ffile_name_absolute_p): ditto.
5735         * (Ffile_readable_p): ditto.
5736
5737 2001-09-08  Andy Piper  <andy@xemacs.org>
5738
5739         * device-msw.c (mswindows_finish_init_device): remove dde
5740         initialization.
5741         * device-msw.c (mswindows_init_dde): factor out from
5742         mswindows_finish_init_device()
5743         * device-msw.c (init_mswindows_very_early): new function
5744         initialize but don't enable dde.
5745         * emacs.c (main_1): call init_mswindows_very_early.
5746         * event-msw.c:
5747         * event-msw.c (mswindows_dde_callback): only execute when we are
5748         ready.
5749         * symsinit.h: declare init_mswindows_very_early.
5750
5751 2001-05-02  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
5752
5753         [sjt: This has been in 21.5 for months with no complaints.]
5754
5755         * console.h (struct console_methods): Added flags member.
5756         (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
5757         (CONMETH_IMPL_FLAG):
5758         (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
5759         Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
5760
5761         * device.c (window_system_pixelated_geometry): Use the above macros.
5762
5763         * device.h (DEVICE_IMPL_FLAG): Macro to check a device
5764         implememntation flag.
5765         * device.h (DEVICE_DISPLAY_P): Use it.
5766
5767         * frame.c (delete_frame_internal): Use the above macro.
5768
5769         * redisplay.c (redisplay_device): Use it.
5770         (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
5771         (redisplay_frame): Ditto.
5772
5773         * device-msw.c (mswindows_device_implementation_flags): Removed.
5774         (msprinter_device_implementation_flags): Removed.
5775         (console_type_create_device_mswindows): Removed references to
5776         implementation_flags methods, set implementation flags here.
5777         (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
5778
5779         * device-gtk.c (gtk_device_implementation_flags): Removed method.
5780         (console_type_create_device_gtk): Removed method declaration.
5781         Added commented out statement which semantically matches the
5782         commented out statement in the above removed method.
5783
5784 2001-04-14  Gordon Sadler  <gbsadler1@lcisp.com>
5785
5786         The attached patch fixes a few warnings. 
5787
5788         * src/emacs.c: prototype console_type_create_select_gtk for GTK only
5789         * src/frame-gtk.c: guard against GNOME calls in GTK only
5790         * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
5791         * src/select-gtk.c: prototype lisp_to_time
5792
5793 2001-06-08  Ben Wing  <ben@xemacs.org>
5794
5795         ------ gc-in-window-procedure fixes ------
5796         
5797         * alloc.c:
5798         * alloc.c (struct post_gc_action):
5799         * alloc.c (register_post_gc_action):
5800         * alloc.c (run_post_gc_actions):
5801         * alloc.c (garbage_collect_1):
5802         Create "post-gc actions", to avoid those dreaded "GC during window
5803         procedure" problems.
5804
5805         * event-msw.c:
5806         Abort, clean and simple, when GC in window procedure.  We want
5807         to flush these puppies out.
5808
5809         * glyphs-msw.c:
5810         * glyphs-msw.c (finalize_destroy_window):
5811         * glyphs-msw.c (mswindows_finalize_image_instance):
5812         Use a post-gc action when destroying subwindows.
5813
5814         * lisp.h:
5815         Declare register_post_gc_action().
5816
5817         * scrollbar-msw.c:
5818         * scrollbar-msw.c (unshow_that_mofo):
5819         Use a post-gc action when unshowing scrollbar windows, if in gc.
5820
5821         * redisplay.c (mark_redisplay):
5822         Add comment about the utter evilness of what's going down here.
5823
5824         ------ cygwin setitimer fixes ------
5825         
5826         * Makefile.in.in (sheap_objs):
5827         * Makefile.in.in (profile_objs):
5828         * Makefile.in.in (objs):
5829         Compile profile.c only when HAVE_SETITIMER.
5830         
5831         * nt.c (mswindows_sigset):
5832         * nt.c (mswindows_sighold):
5833         * nt.c (mswindows_sigrelse):
5834         * nt.c (mswindows_sigpause):
5835         * nt.c (mswindows_raise):
5836         * nt.c (close_file_data):
5837         Style fixes.
5838         
5839         * nt.c:
5840         Move setitimer() emulation to win32.c, because Cygwin needs it too.
5841         
5842         * profile.c:
5843         * profile.c (Fstart_profiling):
5844         * profile.c (Fstop_profiling):
5845         Make sure we don't compile if no setitimer().  Use qxe_setitimer()
5846         instead of just plain setitimer().
5847         
5848         * signal.c:
5849         * signal.c (set_one_shot_timer):
5850         * signal.c (alarm):
5851         Define qxe_setitimer() as an encapsulation around setitimer() --
5852         call setitimer() directly unless Cygwin or MS Win, in which case
5853         we use our simulated version in win32.c.
5854         
5855         * systime.h:
5856         * systime.h (struct itimerval):
5857         * systime.h (ITIMER_REAL):
5858         Prototype mswindows_setitimer() and qxe_setitimer().  Long
5859         comment about "qxe" and the policy regarding encapsulation.
5860
5861         * win32.c:
5862         * win32.c (setitimer_helper_proc):
5863         * win32.c (setitimer_helper_period):
5864         * win32.c (setitimer_helper):
5865         * win32.c (mswindows_setitimer):
5866         Move setitimer() emulation here, so Cygwin can use it.
5867         Rename a couple of functions and variables to be longer and more
5868         descriptive.  In setitimer_helper_proc(), send the signal
5869         using either mswindows_raise() or (on Cygwin) kill().  If for
5870         some reason we are still getting lockups, we'll change the kill()
5871         to directly invoke the signal handlers.
5872
5873         ------ windows shell fixes ------
5874         
5875         * callproc.c:
5876         * ntproc.c:
5877         Comments about how these two files must die.
5878
5879         * callproc.c (init_callproc):
5880         On MS Windows, init shell-file-name from SHELL, then COMSPEC,
5881         not just COMSPEC. (more correct and closer to FSF.) Don't
5882         force a value for SHELL into the environment. (Comments added
5883         to explain why not.)
5884         
5885         * nt.c (init_user_info):
5886         Don't shove a fabricated SHELL into the environment.  See above.
5887
5888 2001-06-01  Ben Wing  <ben@xemacs.org>
5889
5890         * Makefile.in.in (ldflags):
5891         eliminate that pesky "defaulting to 00401000" warning.
5892         * nt.h:
5893         eliminate warnings.
5894
5895 2001-06-15  Golubev I. N.  <gin@mo.msk.ru>
5896
5897         * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
5898         * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
5899
5900 2001-04-24  Jerry James <james@xemacs.org>
5901
5902         * faces.h: pass parameters to Fadd_spec_to_specifier in the
5903         correct order.
5904
5905 2001-06-01  Ben Wing  <ben@xemacs.org>
5906
5907         * event-msw.c (debug_mswin_messages):
5908         conditionalize the messages that were causing compile errors.
5909         (if only macros could generate #ifdef statements ...)
5910
5911 2001-07-28  Stephen J. Turnbull  <stephen@xemacs.org>
5912
5913         * XEmacs 21.4.4 "Artificial Intelligence" is released.
5914
5915 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
5916
5917         * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
5918
5919 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
5920
5921         * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
5922         * process-unix.c (unix_canonicalize_host_name):
5923         sysdep.c (init_system_name):
5924         Use it to conditionally support IPv6 canonicalization.
5925
5926 2001-05-31  Paul Stodghill  <stodghil@cs.cornell.edu>
5927
5928         * event-msw.c:
5929         Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
5930
5931 2001-05-19  Paul Krause  <paulkrause1@mediaone.net>
5932
5933         * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
5934         attempt is made to scroll when no scroll bar is available.
5935
5936 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
5937
5938         * input-method-motif.c (XIM_delete_frame): New callback.
5939         (XIM_init_frame): Register it.  (Reapplied by SJT, it somehow
5940         got deleted from 21.4.3.)
5941
5942 2001-06-01  Ben Wing  <ben@xemacs.org>
5943
5944         * nt.c (mswindows_utime):
5945         * nt.c (close_file_data):
5946         fix off-by-one-indirection error.
5947
5948 2001-05-29  Adrian Aichner  <adrian@xemacs.org>
5949
5950         * fileio.c: Include nt.h.  Remove lisp_string_set_file_times()
5951         because set_file_times() now takes Lisp_Object path, instead of
5952         char*.
5953         * nt.c: Include buffer.h.
5954         * nt.c (convert_from_time_t): New.
5955         * nt.c (mswindows_utime): New.  Use utime, since SetFileTime does
5956         not set mtime correctly.
5957         * nt.h: Declare mswindows_utime().
5958         * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
5959         path, instead of char*.
5960         * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
5961
5962 2001-05-30  Ben Wing  <ben@xemacs.org>
5963
5964         For 21.4:
5965
5966         (Stephen, just take all event-msw.c patches.  This includes
5967         the "iconify" fix below.)
5968
5969         * event-msw.c:
5970         * event-msw.c (mswindows_dequeue_dispatch_event):
5971         * event-msw.c (assert):
5972         * event-msw.c (emacs_mswindows_quit_p):
5973         * event-msw.c (debug_mswin_messages):
5974         * event-msw.c (debug_output_mswin_message):
5975         * event-msw.c (vars_of_event_mswindows):
5976         Fix yet more problems with C-g handling.
5977         Implement debug-mswindows-events.
5978         
5979 2001-05-24  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
5980
5981         * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
5982         
5983 2001-05-23  Ben Wing  <ben@xemacs.org>
5984
5985         * event-msw.c (winsock_writer):
5986         * event-msw.c (winsock_closer):
5987         prior kludgy code was clobbering the buffer, thinking it was
5988         "unused" space to store an unneeded return value; instead, use
5989         the variable we've already got staring us in the face.
5990
5991 2001-05-17  Andy Piper  <andy@xemacs.org>
5992
5993         * sysfile.h: don't assume that file attributes are boolean
5994
5995 2001-05-23  Ben Wing  <ben@xemacs.org>
5996
5997         * device-msw.c (msprinter_init_device):
5998         signal an error rather than crash with an unavailable network
5999         printer (from Mike Alexander).
6000         
6001         * event-msw.c:
6002         * event-msw.c (struct winsock_stream):
6003         * event-msw.c (winsock_writer):
6004         * event-msw.c (winsock_closer):
6005         * event-msw.c (make_winsock_stream_1):
6006         cleanup headers.  fix (hopefully) an error with data corruption
6007         when sending to a network connection.
6008
6009         * fileio.c (Fexpand_file_name): Fix evil code that attempts
6010         to handle the ~user prefix by (a) always assuming we're referencing
6011         ourselves and not even verifying the user -- hence any file with
6012         a tilde as its first char is invalid! (b) if there wasn't a slash
6013         following the filename, the pointer was set *past* the end of
6014         file and we started reading from uninitialized memory.  Now we
6015         simply treat these as files, always.
6016
6017         * buffer.c (common_init_complex_vars_of_buffer): comment change.
6018         
6019 2001-05-19  Ben Wing  <ben@xemacs.org>
6020
6021         * eval.c: doc comment about gcpro'ing in record_unwind_protect.
6022
6023         * process-nt.c:
6024         * process-nt.c (vars_of_process_nt):
6025         remove unused mswindows-quote-process-args.  rec for 21.4.
6026         
6027 2001-05-12  Ben Wing  <ben@xemacs.org>
6028
6029         * event-msw.c (mswindows_dde_callback):
6030         * event-msw.c (mswindows_wnd_proc):
6031         eliminate cygwin warnings.
6032
6033 2001-05-06  Ben Wing  <ben@xemacs.org>
6034
6035         * console-msw.h:
6036         * device-msw.c:
6037         * device-msw.c (print_dialog_worker):
6038         * device-msw.c (mswindows_handle_print_dialog_box):
6039         * device-msw.c (syms_of_device_mswindows):
6040         * dialog-msw.c (mswindows_make_dialog_box_internal):
6041         * general-slots.h:
6042         implement printing the selection when it's selected.
6043
6044 2001-05-20  Drazen Kacar  <dave@arsdigita.com>
6045
6046         * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
6047
6048 2001-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
6049
6050         * lisp.h (EMACS_INT_MAX): This should be one bit less since
6051         EMACS_INT is signed.
6052
6053 2001-04-15  Michael Lausch  <mla@1012surf.net>
6054
6055         * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
6056         gtk_widget_request_size() to give scrollbar >0 width for
6057         GTK >1.2.8.
6058
6059 2001-05-30  William M. Perry  <wmperry@gnu.org>
6060
6061         * event-gtk.c: Check for buttons as modifier keys.
6062
6063 2001-05-25  Craig Lanning  <CraigL@Knology.net>
6064
6065         * s\mingw32.h:
6066         Properly find MinGW's <process.h> inside Cygwin's restructured
6067         include directories.  Don't try to include <cygwin/version.h>
6068         since we are dropping support for MinGW in versions of Cygwin
6069         earlier than b21.
6070         * nt.c:
6071         Drop support for MinGW in versions of Cygwin before b21.
6072         * sysdep.c:
6073         Properly find MinGW's <process.h> inside Cygwin's restructured
6074         include directories.
6075         * syswindows.h:
6076         Drop support for MinGW in versions of Cygwin before b21.
6077         * unexcw.c:
6078         Even though a.out.h is no longer detected by configure, allow
6079         MinGW to use it until we figure out how to do the job with Win32.
6080
6081 2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
6082
6083         * syntax.c (find_start_of_comment):
6084         Fix `unbalanced parentheses' bug when dealing with mixed comment
6085         styles in c++/java/etc. mode
6086
6087 2001-05-29  Mike Alexander  <mta@arbortext.com>
6088
6089         * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
6090         FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
6091
6092 2001-05-17  Andrew Begel  <abegel@eecs.berkeley.edu>
6093
6094         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
6095
6096 2001-03-31  Mike Sperber <mike@xemacs.org>
6097
6098         * search.c (Freplace_match): Support FSF-style specification of
6099         match subexpression when applied to a buffer.
6100
6101 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
6102
6103         * event-stream.c (is_scrollbar_event): add missing semicolon
6104
6105 2001-05-22  Isaac Hollander  <ysh@mindspring.com>
6106
6107         * Makefile.in.in: Use TAR macro instead of hardcoding
6108           tar.  Allows use of GNU tar instead of system tar
6109
6110 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
6111
6112         * event-stream.c (is_scrollbar_event): add missing semicolon
6113
6114 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
6115
6116         * XEmacs 21.4.3 "Academic Rigor" is released.
6117
6118 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
6119
6120         * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
6121
6122 2001-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
6123
6124         * buffer.c (Vcase_fold_search): Remove obsolete
6125           comment about non ASCII case-fold-search.  This
6126           bug has been fixed by case-table changes.
6127
6128 2001-05-11  Stephen J. Turnbull  <stephen@xemacs.org>
6129
6130         * event-msw.c: Restore include of events-mod.h.
6131
6132 2001-04-22   zhaoway  <zw@debian.org>
6133
6134         * event-stream.c (is_scrollbar_event): Noop returning 0 if
6135         !HAVE_SCROLLBARS.
6136
6137 2001-05-10  Stephen J. Turnbull  <stephen@xemacs.org>
6138
6139         * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
6140
6141 2001-05-08  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>
6142
6143         * mule-charset.c (Fmake_charset): Add missing else.
6144
6145 2001-04-23  Ben Wing  <ben@xemacs.org>
6146
6147         * event-msw.c (FAKE_MOD_QUIT):
6148         * event-msw.c (mswindows_dequeue_dispatch_event):
6149         * event-msw.c (mswindows_wnd_proc):
6150         * event-msw.c (emacs_mswindows_quit_p):
6151         Get critical quit working.
6152
6153 2001-05-05  Ben Wing  <ben@xemacs.org>
6154
6155         * console-msw.h:
6156         * device-msw.c:
6157         * device-msw.c (mswindows_get_default_margin):
6158         * frame-msw.c (mswindows_size_frame_internal):
6159         * frame-msw.c (msprinter_init_frame_1):
6160         * frame-msw.c (vars_of_frame_mswindows):
6161         Change top/bottom margin defaults to 0.5 inches.
6162
6163 2001-05-01  Martin Buchholz  <martin@xemacs.org>
6164
6165         Fix link error with gcc 3.0 on Linux.
6166         * terminfo.c (UP): Remove.
6167         * terminfo.c (BC): Remove.
6168         * terminfo.c (PC): Remove.
6169         They weren't used, and in any case, these symbols should be
6170         defined in the *library*.
6171
6172 2001-05-03  Martin Buchholz  <martin@xemacs.org>
6173
6174         * s/aix4.h: Fix crash with xlc -O3.
6175         Improve comment explaining how -O3 works.
6176
6177 2001-04-15  Ben Wing  <ben@xemacs.org>
6178
6179         * event-stream.c:
6180         * event-stream.c (Fnext_event):
6181         * event-stream.c (is_scrollbar_event):
6182         * event-stream.c (execute_command_event):
6183         Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
6184         crash' problem.  His fix introduces other problems.  We filter
6185         out scrollbar events specifically, making them somewhat invisible
6186         to command-building, and not appearing in `this-command-keys'.
6187         More work is still needed (see comments in event-stream.c), but
6188         this fixes all the major problems.
6189
6190 2001-04-20  Ben Wing  <ben@xemacs.org>
6191
6192         * .cvsignore: Added stuff for Windows.
6193
6194 2001-04-28  Ben Wing  <ben@xemacs.org>
6195
6196         * buffer.c (Ferase_buffer):
6197         * editfns.c (buffer_insert1):
6198         * editfns.c (Finsert_before_markers):
6199         * editfns.c (Finsert_string):
6200         * editfns.c (Finsert_char):
6201         * editfns.c (Fdelete_region):
6202         * editfns.c (Fwiden):
6203         * editfns.c (Fnarrow_to_region):
6204         remove bogus lines setting zmacs_region_stays to 0.
6205         
6206 2001-04-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
6207
6208         * process-unix.c (unix_open_network_stream): If connect() fails
6209         invalidate file descriptor after closing it.
6210
6211 2001-03-08  Mike Alexander  <mta@arbortext.com>
6212
6213         * event-msw.c (mswindows_need_event_in_modal_loop):
6214         Don't dispatch a message if we didn't get one.
6215         (mswindows_need_event):
6216         Terminate the correct process when one exits instead of the first
6217         one on Vprocess_list and look for process termination when in
6218         mswindows_protect_modal_loop.
6219
6220 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
6221
6222         * XEmacs 21.4.1 "Copyleft" is released.
6223
6224 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
6225
6226         * input-method-motif.c (XIM_delete_frame): New callback.
6227         (XIM_init_frame): Register it.
6228
6229 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
6230
6231         * XEmacs 21.4.0 "Solid Vapor" is released.
6232
6233 2001-04-15  Ben Wing  <ben@xemacs.org>
6234
6235         * cmdloop.c (call_command_loop):
6236         Fix braino in bit-rotting code.
6237         
6238 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
6239
6240         * extents.c (Fset_extent_endpoints): Force creation of extent info
6241         in buffer_or_string.
6242
6243         * extents.c (process_extents_for_insertion_mapper): Correctly
6244         check for open-open zero-length extents.
6245
6246 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
6247
6248         * lisp.h: New typedefs Memory_count, Element_count.
6249         * regex.c:
6250         * regex.h:
6251         Sign-compare warning elimination: several unsigned -> signed.
6252         Based on work by Ben Wing <ben@xemacs.org>.
6253
6254 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
6255
6256         * XEmacs 21.2.47 "Zephir" is released.
6257
6258 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
6259
6260         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
6261
6262 2001-04-03  Mike Sperber <mike@xemacs.org>
6263
6264         * search.c: Revert previous patch due because of release.
6265
6266 2001-03-30  Ben Wing  <ben@xemacs.org>
6267
6268         * s\cygwin32.h:
6269         Add missing killpg prototype.
6270
6271         * elhash.c:
6272         Add a comment about fixing problems when a new entry is added
6273         while mapping.
6274
6275         * frame-msw.c (mswindows_init_frame_1):
6276         Fix compile warnings.
6277
6278         * menubar.c (vars_of_menubar):
6279         Provide `menu-accelerator-support' to indicate that we properly
6280         support %_ in menu specifications, so that package code can
6281         conditionalize on this (and remove %_ from menu specifications
6282         on older versions).
6283
6284         * event-msw.c:
6285         * scrollbar-msw.c:
6286         * scrollbar-msw.c (can_scroll):
6287         * scrollbar-msw.h:
6288         Fix handling of mouse wheel under Windows to follow standards --
6289         now scrolls window under pointer, not selected window.
6290
6291 2001-03-31  Mike Sperber <mike@xemacs.org>
6292
6293         * search.c (Freplace_match): Support FSF-style specification of
6294         match subexpression when applied to a buffer.
6295
6296 2001-03-15  Martin Buchholz  <martin@xemacs.org>
6297
6298         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
6299         function to modify KEYMAP, so map over a copy of the hash table.
6300
6301 2001-03-21  Martin Buchholz <martin@xemacs.org>
6302
6303         * XEmacs 21.2.46 "Urania" is released.
6304
6305 2001-03-20  Dan Holmsand  <dan@eyebee.com>
6306
6307         * realpath.c (xrealpath): Make file-truename work with symlinks to
6308         /cygdrive paths on cygwin. Always lowercase drive-letters on
6309         native windows.
6310         (cygwin_readlink): Don't try to find canonical filename unless
6311         file exists.
6312
6313 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
6314
6315         * ChangeLog: Log GTK merge.
6316
6317         * dumper.c:
6318         * select-x.c:
6319         * specifier.c:
6320         * symeval.h:
6321         Revert gratuitous whitespace changes from GTK merge.
6322
6323         * emacs.c: Document end of complex #ifdef @ l. 1495.
6324
6325
6326 2001-03-12  Andy Piper  <andy@xemacs.org>
6327
6328         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
6329         have to do likewise.
6330
6331 2001-03-12  Andy Piper  <andy@xemacs.org>
6332
6333         * sysdep.c: we only support mingw now.
6334
6335 2001-03-09  Andy Piper  <andy@xemacs.org>
6336
6337         * unexcw.c (copy_executable_and_dump_data_section): making approx
6338         overrun a warning only.
6339
6340 2001-03-10  William M. Perry  <wmperry@aventail.com>
6341
6342         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
6343         satisfy Stephen's identical-after-cpp plea.
6344
6345 2001-03-02  Ben Wing  <ben@xemacs.org>
6346
6347         * cmds.c:
6348         * cmds.c (Fforward_char):
6349         * syntax.c:
6350         * window.c:
6351
6352         Augment documentation of the most common motion commands to make
6353         note of the shifted-motion support.
6354         
6355 2001-03-02  Ben Wing  <ben@xemacs.org>
6356
6357         * nt.c (mswindows_fstat):
6358         * nt.c (mswindows_stat):
6359         * search.c (boyer_moore):
6360         Fix compile warnings under Windows.
6361         
6362         * sysdep.c (sys_readdir):
6363         Fix buggy filename-conversion code under Mule.
6364
6365 2001-03-09  William M. Perry  <wmperry@aventail.com>
6366
6367         * Makefile.in.in:
6368         * config.h.in:
6369         * console.c:
6370         * console.h:
6371         * device.c:
6372         * device.h:
6373         * dragdrop.c:
6374         * emacs.c:
6375         * event-stream.c:
6376         * events.c:
6377         * events.h:
6378         * faces.c:
6379         * frame.h:
6380         * general-slots.h:
6381         * glyphs.c:
6382         * gutter.c:
6383         * inline.c:
6384         * lisp.h:
6385         * lrecord.h:
6386         * make-src-depend:
6387         * redisplay-output.c:
6388         * redisplay.c:
6389         * symsinit.h:
6390         * sysfile.h:
6391         * toolbar.c:
6392         * window.c:
6393         The Great GTK Merge.
6394
6395         * ChangeLog.GTK:
6396         * console-gtk.c:
6397         * console-gtk.h:
6398         * device-gtk.c:
6399         * emacs-marshals.c:
6400         * emacs-widget-accessors.c:
6401         * event-gtk.c:
6402         * frame-gtk.c:
6403         * gccache-gtk.c:
6404         * gccache-gtk.h:
6405         * glade.c:
6406         * glyphs-gtk.c:
6407         * glyphs-gtk.h:
6408         * gtk-glue.c:
6409         * gtk-xemacs.c:
6410         * gtk-xemacs.h:
6411         * gui-gtk.c:
6412         * gui-gtk.h:
6413         * menubar-gtk.c:
6414         * native-gtk-toolbar.c:
6415         * objects-gtk.c:
6416         * objects-gtk.h:
6417         * redisplay-gtk.c:
6418         * scrollbar-gtk.c:
6419         * scrollbar-gtk.h:
6420         * select-gtk.c:
6421         * toolbar-gtk.c:
6422         * ui-byhand.c:
6423         * ui-gtk.c:
6424         * ui-gtk.h:
6425         The Great GTK Merge: new files.
6426
6427 2001-02-26  Ben Wing  <ben@xemacs.org>
6428
6429         Reapplied Lstream change.
6430
6431 2001-02-26  Ben Wing  <ben@xemacs.org>
6432
6433         Undid the last change, since it is more controversial than I
6434         thought.  It should be back in at some point soon.
6435         
6436 2001-02-25  Ben Wing  <ben@xemacs.org>
6437
6438         * buffer.c:
6439         * callproc.c (Fold_call_process_internal):
6440         * event-msw.c (ntpipe_slurp_reader):
6441         * event-msw.c (ntpipe_shove_writer):
6442         * event-msw.c (winsock_reader):
6443         * event-msw.c (winsock_writer):
6444         * file-coding.c:
6445         * file-coding.c (detect_eol_type):
6446         * file-coding.c (detect_coding_type):
6447         * file-coding.c (determine_real_coding_system):
6448         * file-coding.c (Fdetect_coding_region):
6449         * file-coding.c (decoding_reader):
6450         * file-coding.c (decoding_writer):
6451         * file-coding.c (mule_decode):
6452         * file-coding.c (Fdecode_coding_region):
6453         * file-coding.c (encoding_reader):
6454         * file-coding.c (encoding_writer):
6455         * file-coding.c (mule_encode):
6456         * file-coding.c (Fencode_coding_region):
6457         * file-coding.c (detect_coding_sjis):
6458         * file-coding.c (decode_coding_sjis):
6459         * file-coding.c (encode_coding_sjis):
6460         * file-coding.c (detect_coding_big5):
6461         * file-coding.c (decode_coding_big5):
6462         * file-coding.c (encode_coding_big5):
6463         * file-coding.c (detect_coding_ucs4):
6464         * file-coding.c (decode_coding_ucs4):
6465         * file-coding.c (encode_coding_ucs4):
6466         * file-coding.c (detect_coding_utf8):
6467         * file-coding.c (decode_coding_utf8):
6468         * file-coding.c (encode_coding_utf8):
6469         * file-coding.c (detect_coding_iso2022):
6470         * file-coding.c (decode_coding_iso2022):
6471         * file-coding.c (encode_coding_iso2022):
6472         * file-coding.c (decode_coding_no_conversion):
6473         * file-coding.c (encode_coding_no_conversion):
6474         * glyphs-x.c (write_lisp_string_to_temp_file):
6475         * gpmevent.c (tty_get_foreign_selection):
6476         * lisp.h:
6477         * lstream.c:
6478         * lstream.c (Lstream_flush_out):
6479         * lstream.c (Lstream_adding):
6480         * lstream.c (Lstream_write_1):
6481         * lstream.c (Lstream_write):
6482         * lstream.c (Lstream_raw_read):
6483         * lstream.c (Lstream_read_more):
6484         * lstream.c (Lstream_read):
6485         * lstream.c (Lstream_unread):
6486         * lstream.c (Lstream_fputc):
6487         * lstream.c (stdio_reader):
6488         * lstream.c (stdio_writer):
6489         * lstream.c (filedesc_reader):
6490         * lstream.c (filedesc_writer):
6491         * lstream.c (lisp_string_reader):
6492         * lstream.c (struct fixed_buffer_stream):
6493         * lstream.c (make_fixed_buffer_input_stream):
6494         * lstream.c (make_fixed_buffer_output_stream):
6495         * lstream.c (fixed_buffer_reader):
6496         * lstream.c (fixed_buffer_writer):
6497         * lstream.c (struct resizing_buffer_stream):
6498         * lstream.c (resizing_buffer_writer):
6499         * lstream.c (dynarr_writer):
6500         * lstream.c (lisp_buffer_reader):
6501         * lstream.c (lisp_buffer_writer):
6502         * lstream.h:
6503         * lstream.h (lstream_implementation):
6504         * lstream.h (struct lstream):
6505         * md5.c (Fmd5):
6506         * process-nt.c (nt_send_process):
6507         * process-unix.c (unix_send_process):
6508         
6509         Correct Lstream lossage due to mixing of signed and unsigned
6510         quantities.  All Lstream uses of size_t and ssize_t are now a
6511         single signed data type Lstream_data_count.  This fixes problems
6512         under Windows with sending large quantities of data to a process,
6513         and may well fix other subtle bugs.
6514
6515 2001-02-23  Martin Buchholz <martin@xemacs.org>
6516
6517         * XEmacs 21.2.45 "Thelxepeia" is released.
6518
6519 2001-02-21  Martin Buchholz  <martin@xemacs.org>
6520
6521         * lisp-union.h (XSETINT): 
6522         (XSETCHAR):
6523         (XSETOBJ): 
6524         Reverse previous change of 2001-02-06.
6525
6526 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
6527
6528         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
6529         buffers.
6530         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
6531         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
6532         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
6533         * regex.c (POS_AS_IN_BUFFER): removed
6534         * regex.c (re_search_2):
6535         * regex.c (re_match_2):
6536         Don't use an offset of 1 when calculating buffer positions, since
6537         `BI_BUF_BEGV' does it already.
6538
6539 2001-02-18  Wim Dumon  <wim@easics.be>
6540
6541         * insdel.c (prepare_to_modify_buffer): Also check for
6542         supersession when clash-detection is enabled. 
6543
6544 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
6545
6546         * regex.c (re_match_2_internal):
6547         Convert temp characters from 'const unsigned char' to 're_char'.
6548         Fix crashing bug with extended characters under mule.
6549         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
6550         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
6551         font-lock, pdump, and new syntax-table code.
6552         * syntax.c (find_start_of_comment):
6553         (find_end_of_comment):
6554         (forward-comment):
6555         Fix crashing bugs involving moving beyond end of buffer.
6556         * syntax.c (find_start_of_comment):
6557         Fixed logic to allow proper detection of cases where the same
6558         character is used to end both a two-char comment start and a
6559         two-char comment end sequence. Fixes `(forward-comment -1)'.
6560         * syntax.c (find_start_of_comment):
6561         Return position just past last comment-end character for all cases
6562         (previously was only done for two-char comment-end sequences).
6563         * syntax.c (forward-comment):
6564         Take value returned from `find_end_of_comment', rather than
6565         incrementing it.
6566         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
6567         Properly deal with BUFFERP (syntax_cache.object)
6568
6569 2001-02-17  Martin Buchholz  <martin@xemacs.org>
6570
6571         * alloc.c (Fgarbage_collect): 
6572         * alloc.c (make_bit_vector_from_byte_vector):
6573         -Wsign-compare-correctness.
6574
6575 2001-02-16  Martin Buchholz  <martin@xemacs.org>
6576
6577         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
6578         (XSETCHAR): Likewise.
6579         (XSETOBJ): Likewise.
6580
6581 2001-02-15  Martin Buchholz  <martin@xemacs.org>
6582
6583         * mule-canna.c (canna-func-delete_previous): 
6584         Rename to canna-func-delete-previous.
6585
6586 2001-02-14  Martin Buchholz  <martin@xemacs.org>
6587
6588         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
6589
6590 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
6591
6592         * font-lock.c (find_context): Fix C++ compile errors introduced by
6593         recent patch
6594
6595 2001-02-13  Martin Buchholz  <martin@xemacs.org>
6596
6597         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
6598         pragma, but earlier ones barf on the same pragma.
6599
6600 2001-02-06  Mike Sperber <mike@xemacs.org>
6601
6602         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
6603         `configure-mule-lisp-directory'.
6604
6605 2001-02-12  Martin Buchholz  <martin@xemacs.org>
6606
6607         Make sure dump-id.c is compiled in the same way as other .c's.
6608         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
6609         * dump-id.h: Remove.
6610         * emacs.c: Move dump-id.h into dumper.h.
6611         * dumper.h: Move dump-id.h into dumper.h.
6612         * Makefile.in.in:
6613         Use standard .c.o rule for building dump-id.o.
6614         Remove preprocessor flags from link command.
6615         Add dump-id.o to ${otherobjs} if PDUMP.
6616
6617 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
6618
6619         Port FSF 20.7 syntax table improvements.
6620         * syntax.c.
6621         * syntax.h.
6622
6623         Fixups for new syntax table stuff.
6624         * dired.c: Include syntax.c.
6625         (Fdirectory_files): Initialize regex_match_object and
6626         regex_emacs_buffer.
6627         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
6628         and Fget_char_property.
6629
6630         Use ported FSF 20.7 syntax table improvements.
6631         * font-lock.c.
6632         * regex.c.
6633         * search.c.
6634         
6635 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6636
6637         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
6638         Unixware's enum boolean from sys/types.h.
6639
6640 2001-02-10  Martin Buchholz  <martin@xemacs.org>
6641
6642         Fix support for building with latest Purify.
6643         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
6644         (PURIFY_FLAGS): Likewise.
6645
6646 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6647
6648         * fileio.c (lisp_string_set_file_times): New.
6649         * fileio.c (Fcopy_file): Use it.
6650         Fixes bug:
6651         (copy-file filename non-ascii-filename t t)
6652         ==> No such file or directory, non-ascii-filename
6653
6654 2001-02-10  Martin Buchholz  <martin@xemacs.org>
6655
6656         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
6657         USHRT_MAX seems clearer than ~0 anyways.
6658
6659 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6660
6661         dumper improvements.  Inspired by Olivier.
6662         * dumper.c (pdump_max_align): New.
6663         * dumper.c (pdump_add_entry): Use pdump_max_align.
6664         * dumper.c (pdump_get_entry_list): Likewise.
6665         * dumper.c (pdump_scan_by_alignment): Likewise.
6666         Don't iterate through unnecessary alignments.
6667         * dumper.c (pdump_file_get): No need to align result of malloc().
6668         * dumper.c (pdump_mallocadr): Remove.  
6669         The result of malloc() is guaranteed to be maximally aligned.
6670         * dumper.c: s/elmt/elt/g;
6671         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
6672         * dumper.c (pdump_alert_undump_object): Likewise.
6673         * dumper.c (pdump_align_table): 
6674         Don't support alignments > 64.
6675         Store ALIGNOF's, not shift counts, in table.
6676
6677 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6678
6679         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
6680         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
6681         * systime.h: Use HAVE_UTIME.
6682         * sysdep.c (struct utimbuf): Remove.
6683         * sysdep.c (set_file_times): Prefer utime() to utimes().
6684         * config.h.in (HAVE_UTIME): New.
6685         * config.h.in (HAVE_UTIME_H): Remove.
6686         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
6687
6688 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6689
6690         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
6691
6692 2001-02-08  Martin Buchholz  <martin@xemacs.org>
6693
6694         * s/irix6-0.h: Use the standard system memmove, not bcopy.
6695
6696 2001-02-08  Martin Buchholz <martin@xemacs.org>
6697
6698         * XEmacs 21.2.44 "Thalia" is released.
6699
6700 2001-02-06  Martin Buchholz  <martin@xemacs.org>
6701
6702         Fixes crashes in kill-emacs on some systems.
6703         * process-unix.c (unix_kill_child_process):
6704         It's OK for kill() to fail with ESRCH.
6705
6706 2001-02-07  Martin Buchholz  <martin@xemacs.org>
6707
6708         Contortions to make .gdbinit tricks work on most systems.
6709         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
6710         * alloc.c (dbg_valmask): Make non-const.
6711         * alloc.c (dbg_typemask): Make non-const.
6712         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
6713         * alloc.c (dbg_valbits): Make non-const.
6714         * alloc.c (dbg_gctypebits): Make non-const.
6715         * .gdbinit (decode_object): Make it work with AIX cc.
6716
6717 2001-02-06  Martin Buchholz  <martin@xemacs.org>
6718
6719         * elhash.c (make_general_lisp_hash_table):
6720         Use simpler and more efficient calloc to clear entries.
6721
6722 2001-02-07  Martin Buchholz  <martin@xemacs.org>
6723
6724         * window.c (window_scroll): Work around an AIX C compiler bug.
6725         Fixes 'scroll-up' does nothing problem with xlC.
6726
6727 2001-02-05  Martin Buchholz  <martin@xemacs.org>
6728
6729         * .gdbinit: Remove obsolete comment.
6730
6731 2001-01-31  Mike Alexander  <mta@arbortext.com>
6732
6733         * select.c (Fown_selection_internal): Set owned_p for device
6734         method correctly.
6735
6736 2001-02-01  Martin Buchholz  <martin@xemacs.org>
6737
6738         Port to g++ 2.97.
6739         "not" cannot be used as a macro name as it is an operator in C++
6740         * config.h.in: Stop #defining `not'.
6741         * chartab.c (check_category_char): not ==> not_p
6742         * chartab.h: Likewise.
6743         * regex.c (re_match_2_internal): Likewise.
6744
6745 2001-02-02  Martin Buchholz  <martin@xemacs.org>
6746
6747         * lisp-disunion.h: Fix up comments.
6748
6749 2001-01-31  Martin Buchholz  <martin@xemacs.org>
6750
6751         * keymap.c (define_key_check_and_coerce_keysym):
6752         (syms_of_keymap):
6753         Support mouse-6 and mouse-7 bindings in the obvious way.
6754
6755 2001-02-01  Martin Buchholz  <martin@xemacs.org>
6756
6757         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
6758
6759 2001-01-30  Martin Buchholz  <martin@xemacs.org>
6760
6761         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
6762         Previous patch missed DEFVAR_INT_MAGIC.
6763         Make sure future DEFVAR_foo use correct types.
6764         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
6765         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
6766         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
6767         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
6768         * (DEFVAR_INT): Likewise.
6769         * redisplay.c (vertical_clip): Should be of type Fixnum.
6770         * redisplay.c (horizontal_clip): Likewise.
6771         * lisp.h (dump_add_opaque_int): New.
6772         (dump_add_opaque_fixnum): New.
6773
6774 2001-01-29  Andy Piper  <andy@xemacs.org>
6775
6776         * glyphs-widget.c (check_valid_int_or_function): allow symbols
6777         since they can be eval'ed
6778
6779 2001-01-29  Martin Buchholz  <martin@xemacs.org>
6780
6781         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
6782         Oops, XEmacs redefines `class'.  Use `typename' instead.
6783
6784 2001-01-28  Martin Buchholz  <martin@xemacs.org>
6785
6786         * dumper.c: Fix C++ compile errors.
6787
6788 2001-01-29  Martin Buchholz  <martin@xemacs.org>
6789
6790         * tparam.c: Use correct prototypes.
6791
6792 2001-01-28  Martin Buchholz  <martin@xemacs.org>
6793
6794         * sysproc.h: #include util.h for NetBSD's openpty.
6795
6796 2001-01-27  Martin Buchholz  <martin@xemacs.org>
6797
6798         More 64-bit correctness.
6799         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
6800         Use a typedef `fixnum' for the type used for DEFVAR_INT.
6801         Fix up comments.
6802         This finally finishes the 64-bit SGI port.
6803         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
6804         * symbols.c: Fix up comments and type casts.
6805         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
6806         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
6807         * symeval.h (Fixnum): New type.
6808         * symeval.h (symbol_value_type): Fix up comment.
6809
6810         * commands.h:
6811         * nt.c:
6812         * emacs.c:
6813         * data.c:
6814         * redisplay.c:
6815         * abbrev.c:
6816         * dired-msw.c:
6817         * event-Xt.c:
6818         * eldap.c:
6819         * window.c:
6820         * sound.c:
6821         * event-stream.c:
6822         * eval.c:
6823         * buffer.c:
6824         * mule-canna.c: A million DEFVAR_INTs here...
6825         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
6826         * extents.c:
6827         * cmdloop.c:
6828         * lisp.h:
6829         * select-x.c:
6830         * console-x.h:
6831         * event-msw.c:
6832         * mule-wnnfns.c:
6833         * hpplay.c:
6834         * ralloc.c:
6835         * alloc.c:
6836         * keymap.c:
6837         * profile.c:
6838         s/int/Fixnum/g in DEFVAR_INT declarations.
6839
6840 2001-01-26  Martin Buchholz  <martin@xemacs.org>
6841
6842         Port pdump to SGI alignment-sensitive environment.
6843         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
6844         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
6845         properly aligned.
6846         Define and use aligned reading and writing macros.
6847         Use buffered stdio instead of posix i/o for faster dumping.
6848         Eliminate kludgy 256 byte space for header.
6849         Read and write from dump file using structs for alignment safety.
6850         * dumper.c (pdump_align_stream): New.
6851         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
6852         * dumper.c (PDUMP_READ_ALIGNED): New.
6853         * dumper.c (PDUMP_WRITE_ALIGNED): New.
6854         * dumper.c (pdump_static_Lisp_Object): New struct.
6855         * dumper.c (pdump_static_pointer): New struct.
6856         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
6857         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
6858         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
6859         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
6860
6861         * dumper.c (pdump_backtrace):
6862         * dumper.c (pdump_get_indirect_count):
6863         * dumper.c (pdump_register_object):
6864         * dumper.c (pdump_register_struct):
6865         * dumper.c (pdump_reloc_one):
6866         * dumper.c (pdump_scan_by_alignment):
6867         * dumper.c (pdump_dump_from_root_struct_ptrs):
6868         * dumper.c (pdump_dump_opaques):
6869         * dumper.c (pdump_dump_rtables):
6870         * dumper.c (pdump_dump_from_root_objects):
6871         * dumper.c (pdump):
6872         * dumper.c (pdump_load_finish):
6873         Use aligned reading and writing.
6874
6875         * dumper.c (pdump_free): Make static.
6876         * dumper.c (pdump_hFile): Likewise.
6877         * dumper.c (pdump_hMap): Likewise.
6878
6879 2001-01-26  Martin Buchholz <martin@xemacs.org>
6880
6881         * XEmacs 21.2.43 "Terspichore" is released.
6882
6883 2001-01-25  Martin Buchholz  <martin@xemacs.org>
6884
6885         Type fiddling for window_config.saved_windows_count
6886         * window.c (struct window_config): 
6887         Make saved_windows_count member unsigned.
6888         * window.c (sizeof_window_config_for_n_windows): 
6889         Make parameter unsigned.
6890         * window.c (mark_window_config):
6891         * window.c (window_config_equal):
6892         * window.c (free_window_configuration):
6893         * window.c (Fset_window_configuration):
6894         * window.c (count_windows):
6895         * window.c (Fcurrent_window_configuration):
6896         * window.c (reinit_vars_of_window):
6897         Update all callers and users.
6898
6899 2001-01-25  Martin Buchholz  <martin@xemacs.org>
6900
6901         Alignment correctness for flexible arrays.
6902         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
6903         Make alignment-correct. Add interesting comments.
6904         * alloc.c (size_vector):
6905         * alloc.c (make_vector_internal):
6906         * alloc.c (make_bit_vector_internal):
6907         * alloc.c (sweep_bit_vectors_1):
6908         * fns.c (size_bit_vector):
6909         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
6910         * window.c (sizeof_window_config_for_n_windows): 
6911         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
6912
6913 2001-01-24  Martin Buchholz  <martin@xemacs.org>
6914
6915         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
6916
6917 2001-01-23  Andy Piper  <andy@xemacs.org>
6918
6919         * select.c (Fown_selection_internal): pass owned_p
6920
6921         * select-msw.c (mswindows_own_selection): New Signature.
6922
6923         * console.h (struct console_methods): add owned_p to
6924         _own_selection.
6925
6926         * select-x.c (x_own_selection): pass owned_p
6927         (hack_motif_clipboard_selection): use owned_p
6928         (vars_of_select_x): new variable -
6929         x_selection_strict_motif_ownership.
6930
6931 2001-01-23  Martin Buchholz  <martin@xemacs.org>
6932
6933         * specifier.h (specifier_data_offset): Remove pointless parens.
6934         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
6935
6936 2001-01-24  Martin Buchholz  <martin@xemacs.org>
6937
6938         Make Lisp_Object sizeof methods be alignment-correct.
6939         pdump must restore objects to the same alignment as the C compiler
6940         assumes.  It really matters on SGIs.
6941         * lstream.c (aligned_sizeof_lstream): New.
6942         (sizeof_lstream): Use aligned_sizeof_lstream.
6943         (Lstream_new): Likewise.
6944         * opaque.c (aligned_sizeof_opaque): New.
6945         (sizeof_opaque): Use aligned_sizeof_opaque.
6946         (make_opaque): Likewise.
6947         * specifier.c (aligned_sizeof_specifier): New.
6948         (sizeof_specifier): Use aligned_sizeof_specifier.
6949         (make_specifier_internal): Likewise.
6950
6951 2001-01-23  Martin Buchholz  <martin@xemacs.org>
6952
6953         * lstream.h (struct lstream): Use max_align_t for trailing data.
6954         * specifier.h (struct Lisp_Specifier): Likewise.
6955
6956 2001-01-22  Martin Buchholz  <martin@xemacs.org>
6957
6958         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
6959         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
6960         (CCL_SUSPEND): Likewise.
6961         (CCL_INVALID_CMD): Likewise.
6962         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
6963         (ccl_driver): Likewise.
6964         (CCL_WRITE_CHAR): Macro hygiene.
6965         (CCL_WRITE_STRING): Macro hygiene.
6966
6967 2001-01-22  Martin Buchholz  <martin@xemacs.org>
6968
6969         Port "portable" dumper to SunOS 4 and HP-UX.
6970         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
6971         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
6972         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
6973
6974 2001-01-22  Martin Buchholz  <martin@xemacs.org>
6975
6976         * lisp.h (ALIGNOF): A better definition for C++.
6977
6978 2001-01-20  Martin Buchholz  <martin@xemacs.org>
6979
6980         Macro hygiene.
6981         Fix printf warnings: int format, long int arg.
6982         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
6983         (PUSH_FAILURE_POINT): Use correct printf formats.
6984         (POP_FAILURE_POINT): Use correct printf formats.  
6985         Use do {...} while (0)
6986
6987 2001-01-20  Martin Buchholz <martin@xemacs.org>
6988
6989         * XEmacs 21.2.42 "Poseidon" is released.
6990
6991 2001-01-20  Martin Buchholz  <martin@xemacs.org>
6992
6993         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
6994
6995 2001-01-19  Martin Buchholz  <martin@xemacs.org>
6996
6997         De-kludgify FIXED_TYPE free list frobbing.
6998         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
6999         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
7000         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
7001         * alloc.c (Lisp_Free): New pseudo lisp object definition.
7002         * alloc.c (LRECORD_FREE_P): New.
7003         * alloc.c (MARK_LRECORD_AS_FREE): New.
7004         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
7005         * alloc.c (STRUCT_FREE_P): Deleted.
7006         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
7007         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
7008         * alloc.c (STRING_CHARS_FREE_P): New.
7009         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
7010         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
7011         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
7012         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
7013         * alloc.c (resize_string): Use new definitions.
7014         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
7015         * alloc.c (verify_string_chars_integrity): Use new definitions.
7016         * alloc.c (compact_string_chars): Use new definitions.
7017         * alloc.c: Update monster comments.
7018         * lrecord.h (lrecord_type): Add some new lrecord types for
7019         alloc.c's use.
7020
7021 2001-01-18  Martin Buchholz  <martin@xemacs.org>
7022
7023         Improve alignment hackery.
7024         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
7025         (max_align_t): Moved from opaque.h - general purpose.
7026         (ALIGN_PTR): Use size_t, not long.
7027         * opaque.h (max_align_t): Move to lisp.h.
7028
7029 2001-01-18  Norbert Koch  <nk@LF.net>
7030
7031         * gui.h: Fix and add prototypes to fix build problems.
7032
7033 2001-01-18  Martin Buchholz  <martin@xemacs.org>
7034
7035         temacs is going away, so `dump-temacs' is now a bad name.
7036         * .dbxrc (dump-temacs): Rename to `dmp'.
7037         * .gdbinit (dump-temacs): Rename to `dmp'.
7038
7039 2001-01-17  Andy Piper  <andy@xemacs.org>
7040
7041         * glyphs.c (print_image_instance): comment to make martin happy.
7042
7043         * glyphs-x.c (x_redisplay_widget): update faces after a frame
7044         change.
7045
7046         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
7047         activation.
7048         (mswindows_tab_control_redisplay): warning suppression.
7049
7050         * glyphs-widget.c (widget_update): re-write to cope with updated
7051         items.
7052         (widget_instantiate): use new gui_item functions.
7053         (tab_control_update): deleted.
7054         (progress_gauge_update): deleted.
7055         (image_instantiator_progress_guage): take out update reference.
7056         (image_instantiator_tree_view): ditto.
7057         (image_instantiator_tab_control): ditto.
7058
7059         * gui.c (widget_gui_parse_item_keywords): new function. Do things
7060         Right the new way.
7061         (gui_item_add_keyval_pair): re-write to cope with descriptors and
7062         return whether anything was changed.
7063         (update_gui_item_keywords): as it sounds.
7064
7065         * gui.h: declare widget_gui_parse_item_keywords.
7066
7067         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
7068         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
7069
7070 2001-01-17  Martin Buchholz <martin@xemacs.org>
7071
7072         * XEmacs 21.2.41 "Polyhymnia" is released.
7073
7074 2001-01-16  Didier Verna  <didier@xemacs.org>
7075
7076         * glyphs.c (image_instantiate): don't use fallbacks when
7077         instantiating a face's background pixmap by inheritance.
7078
7079 2001-01-14  Mike Sperber <mike@xemacs.org>
7080
7081         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
7082         Conditionalize accordingly.
7083
7084 2001-01-16  Martin Buchholz  <martin@xemacs.org>
7085
7086         * dumper.c (pdump_file_get): Fix a compiler warning.
7087
7088 2001-01-15  Martin Buchholz  <martin@xemacs.org>
7089
7090         Make Purify happy when pdumping.
7091         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
7092         iniitalizing all bits of new lisp object memory.
7093         * symbols.c (Fmake_local_variable): Likewise.
7094         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
7095         * symbols.c (Fdefvaralias): Likewise.
7096         * mule-charset.c (vars_of_mule_charset): Likewise.
7097
7098 2001-01-15  Martin Buchholz  <martin@xemacs.org>
7099         Add the `-nd' flag when running pre-dump operations under the debugger.
7100         * .dbxrc (run-temacs): Add `-nd'.
7101         * .dbxrc (update-elc): Likewise.
7102         * .dbxrc (dump-temacs): Likewise.
7103         * .gdbinit (run-temacs): Likewise.
7104         * .gdbinit (check-temacs): Likewise.
7105         * .gdbinit (update-elc): Likewise.
7106         * .gdbinit (dump-temacs): Likewise.
7107
7108 2001-01-14  Martin Buchholz  <martin@xemacs.org>
7109
7110         Allow building 64-bit executables on AIX with GNU malloc, e.g.
7111         export OBJECT_MODE=64
7112         configure --pdump --use-union-type=no
7113         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
7114         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
7115
7116         * miscplay.c (sndcnv8U_2mono):
7117         Avoid two uses of `++' in the same expression.
7118         Suppresses a GCC warning.
7119
7120 2001-01-13  Martin Buchholz  <martin@xemacs.org>
7121
7122         Make sure future compilers don't miscompile alloc.c.
7123         * alloc.c:
7124         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
7125         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
7126
7127 2001-01-12  Martin Buchholz  <martin@xemacs.org>
7128
7129         * dumper.c: A little post-pdump-rename comment fixup.
7130
7131 2001-01-09  Jerry James  <james@eecs.ku.edu>
7132
7133         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
7134
7135 2001-01-13  Martin Buchholz  <martin@xemacs.org>
7136
7137         * *.[ch]: Globally rename symbols using the following `pdump-rename'
7138         script:
7139         #!/bin/sh
7140         replace_symbol () {
7141           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
7142         }
7143
7144         replace_symbol pdump_wire_lists pdump_weak_object_chains
7145         replace_symbol pdump_wire_list dump_add_weak_object_chain
7146
7147         replace_symbol pdump_wires pdump_root_objects
7148         replace_symbol pdump_wire dump_add_root_object
7149
7150         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
7151         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
7152
7153         replace_symbol dumpstructinfos pdump_root_struct_ptrs
7154         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
7155         replace_symbol dumpstructinfo pdump_root_struct_ptr
7156         replace_symbol dumpstruct dump_add_root_struct_ptr
7157
7158         replace_symbol dumpopaque dump_add_opaque
7159         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
7160         replace_symbol dumpopaqueinfos pdump_opaques
7161         replace_symbol dumpopaqueinfo pdump_opaque
7162
7163         replace_symbol nb_structdump nb_root_struct_ptrs
7164         replace_symbol nb_opaquedump nb_opaques
7165
7166         replace_symbol align_table pdump_align_table
7167         replace_symbol dump_header pdump_header
7168
7169         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
7170         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
7171
7172
7173 2001-01-12  Martin Buchholz  <martin@xemacs.org>
7174
7175         * s/aix4.h: Keep the C for AIX compiler from overaggressively
7176         optimizing bytecount_to_charcount().
7177
7178 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
7179
7180         * config.h.in:
7181         (HAVE_DLFCN_H): Removed.
7182         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
7183
7184 2001-01-06  Martin Buchholz  <martin@xemacs.org>
7185
7186         Portable dumper maintainability improvements.
7187         * alloc.c (staticpro):
7188         * alloc.c (staticpro_nodump):
7189         * alloc.c (garbage_collect_1):
7190         * alloc.c (reinit_alloc_once_early):
7191         * alloc.c (init_alloc_once_early):
7192         * alloc.c: Move dumper functions to alloc.c.
7193         * dumper.c (pdump_backtrace):
7194         * dumper.c (pdump_dump_structs):
7195         * dumper.c (pdump_dump_opaques):
7196         * dumper.c (pdump_dump_rtables):
7197         * dumper.c (pdump_dump_wired):
7198         * dumper.c (pdump):
7199         * dumper.c (pdump_load_check):
7200         * dumper.c (pdump_load_finish):
7201         * dumper.c (pdump_file_unmap):
7202         * dumper.c (pdump_file_get):
7203         * dumper.c (pdump_resource_free):
7204         * dumper.c (pdump_resource_get):
7205         * dumper.c (pdump_file_free):
7206         * dumper.c (pdump_file_try):
7207         * dumper.c (pdump_load):
7208         Remove fixed size limits on staticpro(), staticpro_nodump(),
7209         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
7210         Remove custom code for dumping lrecord_implementations_table - use
7211         dumpopaque instead.
7212         Remove (most of the) custom code for dumping staticpros - dump it
7213         like any other dynarr.
7214
7215         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
7216         * dumper.c: Moved functions from alloc.c.
7217         * alloc.c (dumpstruct): Moved to dumper.c.
7218         * alloc.c (dumpopaque): Likewise.
7219         * alloc.c (pdump_wire): Likewise.
7220         * alloc.c (pdump_wire_list): Likewise.
7221
7222         * lisp.h (Dynarr_sizeof): New.
7223         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
7224         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
7225         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
7226
7227         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
7228         * lisp.h (dumpopaque): ditto.
7229         * lisp.h (pdump_wire): ditto.
7230         * lisp.h (pdump_wire_list): ditto.
7231
7232 2001-01-09  Martin Buchholz  <martin@xemacs.org>
7233
7234         * make-src-depend (PrintPatternDeps):
7235         Use `sort' to make output independent of perl version.
7236
7237 2001-01-08  Martin Buchholz  <martin@xemacs.org>
7238
7239         Port to Netbsd 1.5.
7240         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
7241         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
7242
7243 2001-01-03  Didier Verna  <didier@xemacs.org>
7244
7245         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
7246         that `focus_frame' is alive before thinking of calling
7247         `redisplay_redraw_cursor' on it.
7248
7249 2001-01-08  Martin Buchholz <martin@xemacs.org>
7250
7251         * XEmacs 21.2.40 is released.
7252
7253 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
7254
7255         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
7256
7257 2001-01-06  Martin Buchholz  <martin@xemacs.org>
7258
7259         * alloc.c (dbg_valmask): Make const.
7260         * alloc.c (dbg_typemask): Make const.
7261         * alloc.c (dbg_USE_UNION_TYPE): Make const.
7262         * alloc.c (dbg_valbits): Make const.
7263         * alloc.c (dbg_gctypebits): Make const.
7264
7265 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
7266
7267         * redisplay-x.c (x_bevel_area):
7268         redisplay.h (struct rune):
7269         Typo fixes in comments.
7270
7271 2001-01-05  Andy Piper  <andy@xemacs.org>
7272
7273         * glyphs-x.c (x_redisplay_widget): use size changed for offset
7274         adjustment.
7275
7276         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
7277
7278 2001-01-05  Martin Buchholz  <martin@xemacs.org>
7279
7280         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
7281
7282         * mule-ccl.c (stack_idx_of_map_multiple):
7283         Non const global data must not be initialized!
7284         Found by MIYASHITA Hisashi.
7285
7286 2001-01-02  Andy Piper  <andy@xemacs.org>
7287
7288         * frame.c (change_frame_size): make sure frame size is always
7289         marked as changed.
7290
7291         * glyphs.c (image_instance_layout): minor code reuse.
7292
7293         * window.c (Fcurrent_window_configuration): revert previous
7294         change.
7295
7296 2001-01-02  Martin Buchholz  <martin@xemacs.org>
7297
7298         * glyphs.h:
7299         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
7300
7301 2000-12-31  Andy Piper  <andy@xemacs.org>
7302
7303         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
7304         when widget gets unmapped.
7305
7306         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
7307         function. Make sure widgets losing focus don't just drop it.
7308         (handle_focus_event_1): record the widget with focus.
7309
7310 2000-12-31  Andy Piper  <andy@xemacs.org>
7311
7312         * window.c (allocate_window): use
7313         make_image_instance_cache_hash_table.
7314         (make_dummy_parent): ditto.
7315         (Fset_window_configuration): ditto.
7316
7317         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
7318
7319         * glyphs.c (process_image_string_instantiator): use
7320         INSTANTIATOR_TYPE.
7321         (get_image_instantiator_governing_domain): ditto.
7322         (normalize_image_instantiator): ditto.
7323         (instantiate_image_instantiator): ditto.
7324         (make_image_instance_1): ditto.
7325         (image_instantiate): ditto. Key on glyph *and* instantiator type.
7326         (instantiator_eq_equal): new function for use with instance hash
7327         tables.
7328         (instantiator_eq_hash): ditto.
7329         (make_image_instance_cache_hash_table): create a suitable hash
7330         table for storing image instances.
7331
7332         * elhash.h (hash_table_weakness): new internal weakness type
7333         HASH_TABLE_KEY_CAR_VALUE_WEAK.
7334         declare new functions.
7335
7336         * elhash.c (finish_marking_weak_hash_tables): introduce yet
7337         another weakness type for glyphs.
7338         (make_standard_lisp_hash_table): new function split out from
7339         make_general_lisp_hash_table.
7340         (make_lisp_hash_table): call make_standard_lisp_hash_table.
7341         (hash_table_instantiate): ditto.
7342         (Fmake_hash_table): ditto.
7343
7344 2000-12-31  Martin Buchholz <martin@xemacs.org>
7345
7346         * XEmacs 21.2.39 is released.
7347
7348 2000-12-29  Andy Piper  <andy@xemacs.org>
7349
7350         * menubar.c (menubar_visible_p_changed): signal the frame changed.
7351
7352         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
7353         the frame has changed so that we pick up geometry changes such as
7354         menubar visibility.
7355
7356 2000-12-28  Andy Piper  <andy@xemacs.org>
7357
7358         * lastfile.c (my_ebss): make a char array so we can pad the
7359         bss. Fixes cygwin unexec.
7360
7361         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
7362
7363 2000-12-26  Andy Piper  <andy@xemacs.org>
7364
7365         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
7366         comments and try and be more precise about a non-/SIGIO world.
7367         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
7368         SIGIO.
7369
7370         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
7371         we don't normalize to zero width or height.
7372
7373 2000-12-24  Andy Piper  <andy@xemacs.org>
7374
7375         * Makefile.in.in (ldflags): add -mwindows when appropriate.
7376
7377 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
7378
7379         * s/sco5.h: SCO 5 has pty support.
7380
7381 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
7382
7383         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
7384         input-method-xlib.c contains whole contents of input-method-xfs.c,
7385         so we can use input-method-xlib.c's code for USE_XFONTSET
7386         using #ifdefs.
7387         * input-method-xfs.c: removed.
7388
7389 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
7390
7391         * file-coding.h (enum coding_category_type): reorder enumerators to
7392         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
7393         (now one greater than largest real coding_category_type enumerator).
7394         * file-coding.c (coding_category_symbol, coding_category_by_priority,
7395         coding_category_system, fcd_descriptihon_1, decode_coding_category,
7396         Fcoding_category_list, Fset_coding_priority_list,
7397         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
7398         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
7399
7400 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
7401
7402         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
7403         * redisplay-output.c (redisplay_output_window): Clear top of window
7404         when face is changed.
7405         * redisplay-x.c (x_redraw_exposed_window): Call
7406         redisplay_clear_top_of_window.
7407         * redisplay.h: Publish redisplay_clear_top_of_window.
7408
7409 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
7410
7411         * buffer.c (Fkill_buffer): Map over all devices.
7412         * window.c (window_loop): Remove UNSHOW_BUFFER code.
7413         (list_windows): New function.
7414         (list_all_windows): Ditto.
7415         (Freplace_buffer_in_windows): Use them.
7416
7417 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
7418
7419         * database.c (berkdb_subtype): Recognize new subtype `queue'.
7420         (Fopen_database): Use `db_create' instead of `db_open'.
7421         (syms_of_database): Initialize Qqueue.
7422
7423 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
7424
7425         * buffer.c (common_init_complex_vars_of_buffer): Initialize
7426         buffer_local_face_property.
7427         * buffer.h (struct buffer): New member buffer_local_face_property.
7428         * window.c (Fset_window_buffer):  Mark window's face as changed
7429         when buffer has buffer local face.
7430         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
7431         * objects.c (color_after_change): Set buffer_local_face_property
7432         when locale of face specifier is buffer.
7433         * objects.c (font_after_change): Ditto.
7434         * objects.c (face_boolean_after_change): Ditto.
7435         * glyphs.c (image_after_change): Ditto.
7436
7437 2000-12-09  Dan Holmsand  <dan@eyebee.com>
7438
7439         * nt.c (mswindows_fstat): Report file permissions, volume serial
7440         number, etc. Code adapted from FSF Emacs 20.7.
7441
7442 2000-12-09  Dan Holmsand  <dan@eyebee.com>
7443
7444         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
7445         of stat when we don't have symbolic links, to make sure
7446         mswindows_stat is called on mswindows.
7447
7448 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
7449
7450         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
7451
7452 2000-12-12  Martin Buchholz  <martin@xemacs.org>
7453
7454         * doprnt.c (emacs_doprnt_1): More printing fixes.
7455         Make printing of numbers compatible with libc and FSF Emacs.
7456         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
7457         Use the system printf to do most of the hard work of formatting,
7458         instead of doprnt_1().
7459         Calculate memory to allocate for format string.
7460         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
7461         (doprnt_1): Cleaner code and documentation.
7462
7463 2000-12-01  Jerry James  <james@eecs.ukans.edu>
7464
7465         * Makefile.in.in: Use the loop variable to install headers.
7466
7467 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
7468
7469         * window.c (Fsplit_window): Don't invalidate face cache.
7470
7471 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
7472
7473         * minibuf.c (Fall_completions): Undo the previous change
7474         which removed checking elements start with space.
7475
7476 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
7477
7478         * mule-canna.c: Didier suppression.
7479
7480 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
7481
7482         * mule-canna.c: rename static unsigned char buf[] to key_buffer
7483         (warning suppression).  Add English comment translations.
7484
7485 2000-12-05  Martin Buchholz  <martin@xemacs.org>
7486
7487         * unexelfsgi.c (unexec): Better test for mmap failure.
7488
7489 2000-12-05  Martin Buchholz <martin@xemacs.org>
7490
7491         * XEmacs 21.2.38 is released.
7492
7493 2000-12-05  Martin Buchholz  <martin@xemacs.org>
7494
7495         * redisplay.c (bar-cursor): Make a user variable.
7496
7497         * symsinit.h: Add init_postgresql_from_environment.
7498
7499 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
7500
7501         * regex.c: Convert to clean C.
7502
7503 2000-12-05  Dan Holmsand  <dan@eyebee.com>
7504
7505         * realpath.c:
7506         Don't #include sysfile.h. Revert to duplicating PATH_MAX
7507         initialization.
7508         (sys_readlink): renamed to system_readlink to avoid conflict with
7509         the other sys_readlink.
7510
7511 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
7512
7513         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
7514
7515 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
7516
7517         * postgresql.c (init_postgresql_from_environment): new function.
7518         (vars_of_postgresql): Move code initializing Lisp variables out and
7519         into init_postgresql_from_environment.
7520         emacs.c (main_1): Call init_postgresql_from_environment if and only
7521         if running a dumped XEmacs.
7522
7523 2000-08-31  Dan Holmsand  <dan@eyebee.com>
7524
7525         * buffer.c: Make find-file-compare-truenames default to true on
7526         windows.
7527
7528         * realpath.c (win32_abs_start):
7529         (cygwin_readlink):
7530         (win32_readlink): New functions.
7531         (xrealpath): Return really real filenames on windows.
7532
7533         * fileio.c (Ffile_truename): Make file-truename work on windows.
7534
7535 2000-11-29  Didier Verna  <didier@xemacs.org>
7536
7537         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
7538         * faces.c (update_face_cachel_data): use it.
7539         * faces.c (add_face_cachel): use it. Complete background pixmap
7540         frobbing in face cache if `update_face_cachel_data' has not done so.
7541
7542 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
7543
7544         * search.c (string_match_1): Don't set last_thing_searched
7545         when search failed.
7546
7547 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
7548
7549         * buffer.c: Include casetab.h
7550         (common_init_complex_vars_of_buffer): Use new case-table object.
7551         * buffer.h: Include casetab.h
7552         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
7553         (DOWNCASE_TABLE_OF): Ditto.
7554         * bufslots.h: Remove char-tables and add case-table.
7555         * casetab.c: Include casetab.h
7556         (CASE_TABLE_P): Removed.
7557         (mark_case_table): New function.
7558         (allocate_case_table): New function.
7559         (Fcase_table_p): Use new case-table.
7560         (case_table_char): New function.
7561         (Fget_case_table): Ditto.
7562         (Fput_case_table): Ditto.
7563         (Fput_case_table_pair): Ditto.
7564         (Fcopy_case_table): Ditto.
7565         (Fcurrent_case_table): Return case-table.
7566         (Fstandard_case_table): Return case-table.
7567         (Fset_case_table): Fix doc-string.
7568         (set_case_table): Use case-table
7569         (syms_of_casetab): DEFSUBR new functions.
7570         (complex_vars_of_casetab): Set up standard case-table.
7571         * casetab.h: New file.
7572         * editfns.c: Include casetab.h
7573         (Fcompare_buffer_substrings): Use case-table.
7574         * inline.c: Include casetab.h
7575         * lisp.h: Remove bogus extern.
7576         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
7577         * search.c: Include casetab.h
7578         (TRANSLATE_ASCII): Removed.
7579         (TRANSLATE): Unconditionally translate character.
7580         (looking_at_1): Use case-table.
7581         (string_match_1): Ditto.
7582         (fast_string_match): Ditto.
7583         (search_command): Ditto.
7584         (search_buffer): Separate boyer_moore.  Check whether
7585         boyer_moore is possible.
7586         (simple_search): New function.
7587         (boyer_moore): Separated from search_buffer. Translate char.
7588
7589 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
7590
7591         * regex.c (RE_TR_ASCII): Removed.
7592         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
7593         (PATFETCH): Call PATFETCH_RAW.
7594         (PATFETCH_RAW): Fetch Emchar.
7595         (PATUNFETCH): Decrement charptr.
7596         (GET_BUFFER_SPACE): Rename b to buf_end.
7597         (BUF_PUSH): Ditto.
7598         (BUF_PUSH_2): Ditto.
7599         (BUF_PUSH_3): Ditto.
7600         (EXTEND_BUFFER): Ditto.
7601         (SET_LIST_BIT): Ditto.
7602         (regex_compile): Ditto.  Translate non ASCII char.
7603         (compile_range): Ditto.
7604         (re_search_2): Ditto.
7605         (re_match_2_internal): Compare Emchar.
7606         (bcmp_translate): Ditto.
7607
7608 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
7609
7610         * lisp.h (basic char/int typedefs):  comment improvement.
7611
7612 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
7613
7614         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
7615         unstomp inhibit_site_lisp.  Improve comments.
7616
7617 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
7618
7619         * mule-charset.c (Fcharset_property):  improve type checking, comments.
7620
7621 2000-11-28  Andy Piper  <andy@xemacs.org>
7622
7623         * redisplay-output.c (redisplay_output_subwindow): make sure we do
7624         clipped display for windows in the gutter also.
7625         (redisplay_display_boxes_in_window_p): change semantics of return
7626         codes to be more intuitive.
7627
7628         * gutter.h: declare display_boxes_in_gutter_p.
7629
7630         * gutter.c (display_boxes_in_gutter_p): new function for
7631         redisplay.
7632
7633 2000-11-22  Andy Piper  <andy@xemacs.org>
7634
7635         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
7636         autodetect domain.
7637
7638 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
7639
7640         * callproc.c (Fold_call_process_internal):
7641         * gpm.c (Freceive_gpm_event):
7642         (tty_get_foreign_selection): Might be just warning supression.
7643         * fileio.c (Fwrite_region_internal):
7644         (Fset_visited_file_modtime):
7645         * keymap.c (event_matches_key_specifier_p):
7646         Initialize GCPROed variable.
7647
7648         * menubar-x.c (command_builder_find_menu_accelerator):
7649         Initialize before use.
7650
7651 2000-11-23  Andy Piper  <andy@xemacs.org>
7652
7653         * unexcw.c (unexec): make the resulting executable executable.
7654
7655 2000-11-21  Martin Buchholz  <martin@xemacs.org>
7656
7657         * doc.c (get_doc_string):
7658         Use size_t, not int, for result of XSTRING_LENGTH.
7659
7660         * cmds.c (Fdelete_char):
7661         * cmds.c (Fpoint_at_eol):
7662         * cmds.c (Fself_insert_command):
7663         Use EMACS_INT, not int, for result of XINT.
7664         Someday, someone will want to insert more than 2**31 identical characters.
7665
7666         * cmds.c (Fdelete_char):
7667         * cmds.c (Fdelete_backward_char):
7668         * syntax.c (Fforward_word):
7669         * syntax.c (Fforward_comment):
7670         Make COUNT argument optional, for consistency with forward-char et al.
7671
7672 2000-11-22  Martin Buchholz  <martin@xemacs.org>
7673
7674         * lisp.h:
7675         * print.c (long_to_string):
7676         Return a useful value: the pointer at end of data written.
7677
7678         * doprnt.c:
7679         Use `static const char * const' for constant strings.
7680         (union printf_arg): Delete `i', `ui' members.
7681         (get_doprnt_args):
7682         (emacs_doprnt_1):
7683         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
7684         Do all printf-ing via the `l' specifier.
7685         Use EMACS_INT instead of int.
7686         Optimize.
7687
7688 2000-11-20  Didier Verna  <didier@xemacs.org>
7689
7690         * faces.c (update_face_cachel_data): don't frob the background
7691         pixmap when the window is being created. The face is needed but
7692         does not exist yet.
7693
7694 2000-11-20  Andy Piper  <andy@xemacs.org>
7695
7696         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
7697         messing with a debug environment.
7698
7699 2000-11-20  Martin Buchholz  <martin@xemacs.org>
7700
7701         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
7702
7703 2000-11-20  Martin Buchholz  <martin@xemacs.org>
7704
7705         * casetab.c (Fcase_table_p): Fix compile error and crash.
7706
7707 2000-11-18  Philip Aston  <philipa@mail.com>
7708
7709         * s/cygwin32.h: Cygwin has SVR4-like pty support.
7710
7711 2000-11-18  Martin Buchholz  <martin@xemacs.org>
7712
7713         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
7714         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
7715
7716 2000-11-17  Martin Buchholz  <martin@xemacs.org>
7717
7718         * config.h.in: Define HAVE_ELF_H if elf.h exists.
7719         * unexelf.c: Use HAVE_ELF_H.
7720         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
7721         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
7722         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
7723         Greg Harrington <greg_harrington@hotmail.com> provided a machine
7724         for testing.
7725         So this is an unexelfsgi.c from a different line of development.
7726
7727 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
7728
7729         * regex.c (RE_TR_ASCII): New function.
7730         (RE_TRANSLATE): Call it.
7731
7732 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
7733
7734         * buffer.h (TRT_TABLE_OF): Remove assert.
7735         (IN_TRT_TABLE_DOMAIN): Removed.
7736
7737 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
7738
7739         * free-hook.c (log_gcpro):
7740         (show_gcprohist): Add support for GCPRO5.
7741
7742 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
7743
7744         * emacs.c (main_1): Improve -sd error message when --pdump=no.
7745
7746 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
7747
7748         * symeval.h: Declare flush_all_buffer_local_cache.
7749
7750         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
7751         (flush_buffer_local_cache): Added.
7752         (flush_all_buffer_local_cache): Added.
7753
7754         * lrecord.h: Remove unused XD_LO_RESET_NIL.
7755
7756         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
7757         (pdump_dump_data): Ditto.
7758         (pdump_reloc_one): Ditto.
7759         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
7760         before dumping.
7761
7762
7763 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
7764
7765         * buffer.c: Remove if 0'ed entry.
7766         * buffer.h: Rewrite TRT to use char-table.
7767         * bufslots.h: Remove mirror tables.
7768         * casetab.c: Remove mirror tables.
7769         (CASE_TABLE_P): New macro.
7770         (Fcase_table_p): Element of a case table is string or char-table.
7771         (make_mirror_trt_table): Removed.
7772         (set_case_table): Setup char-table from strings for backward
7773         compatibility.
7774         * dired.c (Fdirectory_files):
7775         * dired-msw.c: (mswindows_get_files):
7776         * lisp.h: Change prototype of re_pattern_buffer.
7777         * regex.c: (RE_TRANSLATE): New macro.
7778         (TRANSLATE_P): Ditto.
7779         Change translate to type RE_TRANSLATE_TYPE.
7780         * regex.h: Define RE_TRANSLATE_TYPE
7781         * search.c (TRANSLATE): New macro.
7782         (TRANSLATE_ASCII): New macro.
7783         Translate table is changed to Lisp_Object.
7784         (signal_failure): Inhibit return.
7785
7786 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
7787
7788         * device-msw.c:
7789         * eldap.c:
7790         * event-Xt.c:
7791         * event-stream.c:
7792         * print.c:
7793         Do UNGCPRO before return.
7794
7795 2000-11-14  Martin Buchholz <martin@xemacs.org>
7796
7797         * XEmacs 21.2.37 is released.
7798
7799 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
7800
7801         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
7802         Add comments about discarded return value.
7803
7804 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
7805
7806         * callint.c:
7807         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
7808
7809 2000-10-27  Andy Piper  <andy@xemacs.org>
7810
7811         * gutter.c (Fset_default_gutter_position): default left and right
7812         gutters to visible.
7813         (calculate_gutter_size): calculate resonable heuristic for left
7814         and right gutter sizes.
7815         (specifier_vars_of_gutter): change left and right gutter sizes to
7816         autodetect.
7817         (calculate_gutter_size_from_display_lines): new function.
7818         (output_gutter): check for resizing on left and right gutters.
7819         (clear_gutter): don't special case top and left gutters.
7820         (specifier_vars_of_gutter): use new signature for
7821         set_specifier_caching.
7822
7823         * glyphs-x.c (x_redisplay_widget): spelling fix.
7824         * glyphs.c (specifier_vars_of_glyphs):
7825         * menubar.c (specifier_vars_of_menubar):
7826         * redisplay.c (specifier_vars_of_redisplay):
7827         * toolbar.c (specifier_vars_of_toolbar):
7828         * window.c (specifier_vars_of_window):
7829         * scrollbar.c (specifier_vars_of_scrollbar):
7830         (complex_vars_of_scrollbar): use new signature for
7831         set_specifier_caching.
7832
7833         * specifier.c (set_specifier_caching): include recompute flag.
7834         (recompute_one_cached_specifier_in_window): always recompute if
7835         flag set.
7836         (recompute_one_cached_specifier_in_frame): ditto.
7837
7838         * specifier.h (struct specifier_caching): add recompute flag.
7839
7840 2000-10-24  Andy Piper  <andy@xemacs.org>
7841
7842         * unexcw.c (copy_executable_and_dump_data_section): add new
7843         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
7844         5.0 happy.
7845
7846 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
7847
7848         * console-x.h (x_device): New member modifier_release_time.
7849         * event-Xt.c (x_handle_sticky_modifiers):
7850         Bound interval modifier keys are sticky.
7851         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
7852         * events.h: extern it.
7853
7854 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
7855
7856         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
7857
7858 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
7859
7860         * event-stream.c (execute_command_event): Preserve current_events
7861         and the like when event is misc-user-event.
7862         Inhibit quit during the call to maybe_echo_keys.
7863
7864 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
7865
7866         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
7867         symlink when buffer is killed.
7868         (inhibit_clash_detection): New variable.
7869
7870 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
7871
7872         * console.c (Fset_input_method): Trigger redisplay on tty.
7873
7874 2000-11-07  Martin Buchholz  <martin@xemacs.org>
7875
7876         * process.c (Fprocess_status): Revert to previous behavior:
7877         (process-status "nosuchprocess") ==> nil
7878
7879 2000-11-06  Martin Buchholz  <martin@xemacs.org>
7880
7881         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
7882         Work around another GCC 2.95.2 optimizer bug.
7883
7884 2000-11-02  Martin Buchholz  <martin@xemacs.org>
7885
7886         * process.c (Fget_process): Use LIST_LOOP_2.
7887         (kill_buffer_processes): Use LIST_LOOP_2.
7888
7889         * minibuf.c (Fall_completions):
7890         Delete old non-functional code for FSF fourth argument.
7891
7892         * frame.c (frame_matches_frame_spec):
7893         Renamed from `frame_matches_frametype'.  Update all callers.
7894         (device_matches_device_spec):
7895         Renamed from 'device_matches_console_spec'.  Update all callers.
7896
7897         * doc.c (Fsubstitute_command_keys):
7898         Remove buffer overflow crash.  Small code cleanups.
7899
7900         * casetab.c (check_case_table): Simpler code.
7901
7902         * window.c (Freplace_buffer_in_windows):
7903         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
7904         (and similar implementation) as Fdelete_windows_on.
7905         Update all callers.
7906
7907         * alloc.c (Fmake_list):
7908         * alloc.c (make_vector):
7909         * alloc.c (Fmake_vector):
7910         * alloc.c (make_bit_vector):
7911         * alloc.c (Fmake_bit_vector):
7912         * alloc.c (Fbit_vector):
7913         * alloc.c (Fmake_string):
7914         * alloc.c (Fpurecopy):
7915         * alloc.c (Fmemory_limit):
7916         * buffer.c:
7917         * buffer.c (Fget_buffer):
7918         * buffer.c (Fkill_buffer):
7919         * buffer.c (complex_vars_of_buffer):
7920         * bytecode.c (Fcompiled_function_stack_depth):
7921         * callint.c (Fprefix_numeric_value):
7922         * event-stream.c:
7923         * event-stream.c (Fread_key_sequence):
7924         * casetab.c:
7925         * casetab.c (Fcase_table_p):
7926         * casetab.c (check_case_table):
7927         * casetab.c (Fset_case_table):
7928         * casetab.c (Fset_standard_case_table):
7929         * chartab.c:
7930         * chartab.c (Fchar_table_type):
7931         * chartab.c (Freset_char_table):
7932         * chartab.c (Fget_char_table):
7933         * chartab.c (Fget_range_char_table):
7934         * chartab.c (Fput_char_table):
7935         * chartab.c (Fmap_char_table):
7936         * chartab.c (Fcategory_table_p):
7937         * chartab.c (Fcheck_category_at):
7938         * chartab.c (Fchar_in_category_p):
7939         * chartab.c (Fcategory_table):
7940         * chartab.c (Fcopy_category_table):
7941         * chartab.c (Fset_category_table):
7942         * chartab.c (Fcategory_designator_p):
7943         * chartab.c (Fcategory_table_value_p):
7944         * cmds.c (Fdelete_char):
7945         * cmds.c (Fdelete_backward_char):
7946         * cmds.c (Fself_insert_command):
7947         * cmds.c (Fself_insert_internal):
7948         * console.c (Fvalid_console_type_p):
7949         * console.c (Fcdfw_console):
7950         * console.c (Fconsole_type):
7951         * console.c (Fconsole_name):
7952         * console.c (Fconsole_device_list):
7953         * console.c (Fconsole_on_window_system_p):
7954         * data.c:
7955         * data.c (Feq):
7956         * data.c (Fold_eq):
7957         * data.c (Fsubr_interactive):
7958         * data.c (Fchar_to_int):
7959         * data.c (Fint_to_char):
7960         * data.c (Fsetcar):
7961         * data.c (Fsetcdr):
7962         * data.c (Fnumber_to_string):
7963         * data.c (Fstring_to_number):
7964         * data.c (Frem):
7965         * database.c (mark_database):
7966         * database.c (finalize_database):
7967         * database.c (Fdatabase_live_p):
7968         * database.c (Fdatabasep):
7969         * device-x.c (Fx_get_resource):
7970         * device.c (Fdfw_device):
7971         * dired.c:
7972         * dired.c (Ffile_name_completion):
7973         * dired.c (Ffile_name_all_completions):
7974         * dired.c (Fuser_name_completion):
7975         * dired.c (Fuser_name_completion_1):
7976         * dired.c (Fuser_name_all_completions):
7977         * doc.c (Fdocumentation):
7978         * doc.c (Fdocumentation_property):
7979         * doc.c (Fsubstitute_command_keys):
7980         * editfns.c:
7981         * editfns.c (Fchar_to_string):
7982         * editfns.c (Fstring_to_char):
7983         * editfns.c (Ftemp_directory):
7984         * editfns.c (Finsert_char):
7985         * editfns.c (Fbuffer_substring_no_properties):
7986         * editfns.c (Fnarrow_to_region):
7987         * editfns.c (Fchar_equal):
7988         * editfns.c (Fchar_Equal):
7989         * editfns.c (Ftranspose_regions):
7990         * emacs.c (Fdump_emacs):
7991         * eval.c (Fthrow):
7992         * eval.c (Fcommand_execute):
7993         * eval.c (Fautoload):
7994         * eval.c (Fbacktrace):
7995         * eval.c (Fbacktrace_frame):
7996         * events.c:
7997         * events.c (Fcopy_event):
7998         * events.c (Fcharacter_to_event):
7999         * events.c (Fevent_button):
8000         * events.c (Fevent_process):
8001         * extents.c:
8002         * extents.c (Fnext_extent_change):
8003         * extents.c (Fextent_property):
8004         * faces.c (Ffacep):
8005         * faces.c (Fmake_face):
8006         * file-coding.c:
8007         * file-coding.c (Fencode_shift_jis_char):
8008         * file-coding.c (Fencode_big5_char):
8009         * fileio.c (Ffile_name_directory):
8010         * fileio.c (Ffile_name_nondirectory):
8011         * fileio.c (Ffile_name_as_directory):
8012         * fileio.c (Fdirectory_file_name):
8013         * fileio.c (Ffile_truename):
8014         * fileio.c (Fsubstitute_in_file_name):
8015         * fileio.c (Ffile_modes):
8016         * fileio.c (Fset_file_modes):
8017         * fileio.c (Fset_default_file_modes):
8018         * fileio.c (Fverify_visited_file_modtime):
8019         * floatfns.c (Facos):
8020         * floatfns.c (Fasin):
8021         * floatfns.c (Fatan):
8022         * floatfns.c (Fcos):
8023         * floatfns.c (Fsin):
8024         * floatfns.c (Ftan):
8025         * floatfns.c (Fbessel_j0):
8026         * floatfns.c (Fbessel_j1):
8027         * floatfns.c (Fbessel_jn):
8028         * floatfns.c (Fbessel_y0):
8029         * floatfns.c (Fbessel_y1):
8030         * floatfns.c (Fbessel_yn):
8031         * floatfns.c (Ferf):
8032         * floatfns.c (Ferfc):
8033         * floatfns.c (Flog_gamma):
8034         * floatfns.c (Fexp):
8035         * floatfns.c (Fexpt):
8036         * floatfns.c (Flog):
8037         * floatfns.c (Flog10):
8038         * floatfns.c (Fsqrt):
8039         * floatfns.c (Fcube_root):
8040         * floatfns.c (Facosh):
8041         * floatfns.c (Fasinh):
8042         * floatfns.c (Fatanh):
8043         * floatfns.c (Fcosh):
8044         * floatfns.c (Fsinh):
8045         * floatfns.c (Ftanh):
8046         * floatfns.c (Fabs):
8047         * floatfns.c (Ffloat):
8048         * floatfns.c (Flogb):
8049         * floatfns.c (Fceiling):
8050         * floatfns.c (Ffloor):
8051         * floatfns.c (Fround):
8052         * floatfns.c (Ftruncate):
8053         * floatfns.c (Ffceiling):
8054         * floatfns.c (Fffloor):
8055         * floatfns.c (Ffround):
8056         * floatfns.c (Fftruncate):
8057         * fns.c (Fstring_equal):
8058         * fns.c (Fstring_lessp):
8059         * fns.c (concat2):
8060         * fns.c (concat3):
8061         * fns.c (vconcat2):
8062         * fns.c (vconcat3):
8063         * fns.c (Fsubstring):
8064         * fns.c (Fassoc):
8065         * fns.c (Fold_assoc):
8066         * fns.c (assoc_no_quit):
8067         * fns.c (Fassq):
8068         * fns.c (Fold_assq):
8069         * fns.c (assq_no_quit):
8070         * fns.c (Frassoc):
8071         * fns.c (Fold_rassoc):
8072         * fns.c (Frassq):
8073         * fns.c (Fold_rassq):
8074         * fns.c (rassq_no_quit):
8075         * fns.c (Fremassoc):
8076         * fns.c (remassoc_no_quit):
8077         * fns.c (Fremassq):
8078         * fns.c (remassq_no_quit):
8079         * fns.c (Fremrassoc):
8080         * fns.c (Fremrassq):
8081         * fns.c (remrassq_no_quit):
8082         * fns.c (Fsort):
8083         * fns.c (Fplist_get):
8084         * fns.c (Fplist_put):
8085         * fns.c (Fplist_remprop):
8086         * fns.c (Fplist_member):
8087         * fns.c (Flax_plist_get):
8088         * fns.c (Flax_plist_put):
8089         * fns.c (Flax_plist_remprop):
8090         * fns.c (Flax_plist_member):
8091         * fns.c (Fequal):
8092         * fns.c (Fold_equal):
8093         * fns.c (Frequire):
8094         * fns.c (Fbase64_encode_region):
8095         * fns.c (Fbase64_encode_string):
8096         * fns.c (Fbase64_decode_region):
8097         * frame.c:
8098         * frame.c (frame_matches_frame_spec):
8099         * frame.c (device_matches_device_spec):
8100         * frame.c (next_frame):
8101         * frame.c (previous_frame):
8102         * frame.c (Fnext_frame):
8103         * frame.c (Fprevious_frame):
8104         * frame.c (Fframe_property):
8105         * frame.c (Fset_frame_height):
8106         * frame.c (Fset_frame_size):
8107         * frame.h:
8108         * glyphs.c:
8109         * glyphs.c (if):
8110         * glyphs.c (decode_error_behavior_flag):
8111         * glyphs.c (Fmake_image_instance):
8112         * indent.c (Findent_to):
8113         * intl.c (Fignore_defer_gettext):
8114         * keymap.c (Fkeymapp):
8115         * keymap.c (Flookup_key):
8116         * lread.c:
8117         * lread.c (Fload_internal):
8118         * lread.c (Feval_buffer):
8119         * lread.c (Feval_region):
8120         * macros.c (Fexecute_kbd_macro):
8121         * marker.c (set_marker_internal):
8122         * marker.c (Fset_marker):
8123         * marker.c (set_marker_restricted):
8124         * marker.c (Fcopy_marker):
8125         * marker.c (noseeum_copy_marker):
8126         * menubar.c:
8127         * menubar.c (Fpopup_menu):
8128         * minibuf.c:
8129         * mule-charset.c (Fcharset_name):
8130         * mule-charset.c (Fchar_charset):
8131         * mule-charset.c (Fchar_octet):
8132         * mule-charset.c (Fsplit_char):
8133         * mule-wnnfns.c (Fwnn_open):
8134         * mule-wnnfns.c (Fwnn_dict_comment):
8135         * mule-wnnfns.c (Fwnn_quit_henkan):
8136         * mule-wnnfns.c (Fwnn_word_toroku):
8137         * mule-wnnfns.c (Fwnn_word_sakujo):
8138         * mule-wnnfns.c (Fwnn_word_use):
8139         * mule-wnnfns.c (Fwnn_hindo_set):
8140         * objects.c:
8141         * objects.c (Fmake_color_instance):
8142         * objects.c (Fmake_font_instance):
8143         * print.c (Fwrite_char):
8144         * process.c:
8145         * process.c (mark_process):
8146         * process.c (print_process):
8147         * process.c (get_process_from_usid):
8148         * process.c (Fprocessp):
8149         * process.c (Fprocess_live_p):
8150         * process.c (Fget_process):
8151         * process.c (Fget_buffer_process):
8152         * process.c (get_process):
8153         * process.c (Fprocess_id):
8154         * process.c (Fprocess_name):
8155         * process.c (Fprocess_command):
8156         * process.c (init_process_io_handles):
8157         * process.c (start_process_unwind):
8158         * process.c (Fstart_process_internal):
8159         * process.c (Fopen_multicast_group_internal):
8160         * process.c (Fset_process_window_size):
8161         * process.c (read_process_output):
8162         * process.c (send_process):
8163         * process.c (Fprocess_tty_name):
8164         * process.c (Fset_process_buffer):
8165         * process.c (Fprocess_buffer):
8166         * process.c (Fprocess_mark):
8167         * process.c (set_process_filter):
8168         * process.c (Fset_process_filter):
8169         * process.c (Fprocess_filter):
8170         * process.c (Fprocess_send_region):
8171         * process.c (Fprocess_send_string):
8172         * process.c (exec_sentinel):
8173         * process.c (Fset_process_sentinel):
8174         * process.c (Fprocess_sentinel):
8175         * process.c (status_notify):
8176         * process.c (Fprocess_status):
8177         * process.c (Fprocess_exit_status):
8178         * process.c (process_send_signal):
8179         * process.c (Fprocess_send_eof):
8180         * process.c (deactivate_process):
8181         * process.c (remove_process):
8182         * process.c (Fdelete_process):
8183         * process.c (kill_buffer_processes):
8184         * process.c (Fprocess_kill_without_query):
8185         * process.c (Fprocess_kill_without_query_p):
8186         * rangetab.c:
8187         * rangetab.c (Fget_range_table):
8188         * rangetab.c (Fput_range_table):
8189         * rangetab.c (Fremove_range_table):
8190         * rangetab.c (Fclear_range_table):
8191         * search.c:
8192         * search.c (Fskip_chars_forward):
8193         * search.c (Fskip_chars_backward):
8194         * search.c (Fskip_syntax_forward):
8195         * search.c (Fskip_syntax_backward):
8196         * search.c (search_command):
8197         * search.c (Freplace_match):
8198         * search.c (Fregexp_quote):
8199         * select.c (Fown_selection_internal):
8200         * select.c (Fselection_owner_p):
8201         * select.c (Fselection_exists_p):
8202         * select.c (Fget_selection_internal):
8203         * specifier.c:
8204         * symbols.c:
8205         * symbols.c (Fintern):
8206         * symbols.c (Fintern_soft):
8207         * symbols.c (Funintern):
8208         * symbols.c (Fapropos_internal):
8209         * symbols.c (Fset_default):
8210         * syntax.c:
8211         * syntax.c (Fsyntax_table_p):
8212         * syntax.c (Fcopy_syntax_table):
8213         * syntax.c (Fset_syntax_table):
8214         * syntax.c (Fchar_syntax):
8215         * syntax.c (syntax_match):
8216         * syntax.c (Fmatching_paren):
8217         * syntax.c (Fforward_word):
8218         * syntax.c (scan_lists):
8219         * syntax.c (Fscan_lists):
8220         * syntax.c (Fscan_sexps):
8221         * syntax.c (Fparse_partial_sexp):
8222         * toolbar.c (Fcheck_toolbar_button_syntax):
8223         * tooltalk.doc:
8224         * window.c:
8225         * window.c (Fwindowp):
8226         * window.c (Fwindow_live_p):
8227         * window.c (Fwindow_point):
8228         * window.c (Fdelete_window):
8229         * window.c (Fnext_window):
8230         * window.c (Fprevious_window):
8231         * window.c (Fother_window):
8232         * window.c (window_loop):
8233         * window.c (Fget_lru_window):
8234         * window.c (Fsplit_window):
8235         * window.c (Fenlarge_window):
8236         * window.c (Fenlarge_window_pixels):
8237         * window.c (Fshrink_window):
8238         * window.c (Fshrink_window_pixels):
8239         * window.c (change_window_height):
8240         * window.c (Fwindow_configuration_p):
8241         * window.c (Fcurrent_window_configuration):
8242         * window.h:
8243         * casefiddle.c (casify_object):
8244         * casefiddle.c (Fupcase):
8245         * casefiddle.c (Fdowncase):
8246         * casefiddle.c (Fcapitalize):
8247         * casefiddle.c (Fupcase_initials):
8248         * casefiddle.c (casify_region_internal):
8249         * casefiddle.c (casify_region):
8250         * casefiddle.c (Fupcase_region):
8251         * casefiddle.c (Fdowncase_region):
8252         * casefiddle.c (Fcapitalize_region):
8253         * casefiddle.c (Fupcase_initials_region):
8254         * casefiddle.c (Fupcase_word):
8255         * casefiddle.c (Fdowncase_word):
8256         * casefiddle.c (Fcapitalize_word):
8257         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
8258         Replace 0 with '\0' when working with bytes.
8259         Replace initial "(" with "\(" in docstrings.
8260
8261 2000-11-01  Martin Buchholz  <martin@xemacs.org>
8262
8263         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
8264
8265         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
8266
8267 2000-10-31  Martin Buchholz  <martin@xemacs.org>
8268
8269         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
8270
8271 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
8272
8273         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
8274         correctly.
8275
8276 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
8277
8278         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
8279         (inhibit_auto_save_session): New variable.
8280         (vars_of_fileio): Declare and initialize them.
8281         * fileio.c (Fdo_auto_save): Don't create session file if
8282         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
8283
8284 2000-10-31  Martin Buchholz  <martin@xemacs.org>
8285
8286         * sgiplay.c (play_internal): C++ compilability.
8287         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
8288         * callproc.c (Fold_call_process_internal):
8289         Remove unused vars `env', `first'.
8290         * scrollbar.c (update_scrollbar_instance):
8291         #### unused var `current_window'.
8292         * redisplay-tty.c: Put currently unused vars insert_mode_on,
8293         etc. within #ifdef NOT_YET.
8294         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
8295         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
8296         * specifier.c (specifier_instance):
8297         #### unused var `tag'.
8298         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
8299
8300 2000-10-27  Martin Buchholz  <martin@xemacs.org>
8301
8302         * fns.c (Fbutlast):
8303         * fns.c (list_sort):
8304         * fns.c (Ffillarray):
8305         * fns.c (bytecode_nconc2):
8306         * fns.c (Fnconc):
8307         * fns.c (mapcar1):
8308         * fns.c (Fmapconcat):
8309         Be pedantically 64-bit correct.  For the time when someone will
8310         want to have a list with length > 2**32.
8311
8312         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
8313         Work around MIPSpro compiler bug.
8314
8315         * process-unix.c (unix_kill_child_process): Add snarky comment.
8316         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
8317
8318         * config.h.in: Oops, _getpt ==> _getpty
8319
8320 2000-10-26  Martin Buchholz  <martin@xemacs.org>
8321
8322         * config.h.in:
8323         * regex.c:
8324         Use void*, not char*, as return type of alloca().
8325
8326         * alloc.c (free_marker): Side effect inside assert expression!
8327
8328 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
8329
8330         * mule-charset.c (Fset_charset_ccl_program): To check
8331         if the given ccl program is valid, use setup_ccl_program()
8332         instead of CHECK_VECTOR().
8333         (Fmake_charset): Likewise.
8334
8335 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
8336
8337         * faces.c (get_extent_fragment_face_cache_index):
8338         Fix cachel.merged_faces memory leak.
8339
8340 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
8341
8342         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
8343         Reset MSB of octets obtained by DECODE_SJIS
8344         because of the incompatibility with Emacs.
8345         (ccl_driver)<CCL_ENCODE_SJIS>:
8346         Set MSB of octets before passing them to
8347         ENCODE_SJIS because of the incompatibility
8348         with Emacs.
8349
8350 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
8351
8352         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
8353         (DECLARE_LRECORD): Undo the last change.
8354         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
8355
8356 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
8357
8358         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
8359         the implementation to lrecord_implementations_table.
8360
8361 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
8362
8363         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
8364         initial value of `lrecord_type_##c_name' and
8365         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
8366         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
8367         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
8368         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
8369         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
8370
8371 2000-10-17  Martin Buchholz  <martin@xemacs.org>
8372
8373         * miscplay.c (sndcnv8S_2mono):
8374         (sndcnv2monounsigned):
8375         (sndcnvULaw_2linear):
8376         (sndcnv16swap):
8377         Remove implementation-defined behavior.
8378
8379 2000-10-12  Martin Buchholz  <martin@xemacs.org>
8380
8381         * input-method-xlib.c: Warning suppression.
8382
8383 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
8384
8385         * mule-ccl.c: Sync up with Emacs 21.0.90.
8386         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
8387         Do nothing.
8388         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
8389         Likewise.
8390         (ccl_driver[WriteMultibyteChar2]): Bug fix.
8391         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
8392         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
8393         leading char belongs to official 2-dimensional charset.
8394         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
8395         write the given character as is.  Otherwise,
8396         if it is a multibyte char, convert it by
8397         non_ascii_set_charptr_emchar, then write it.
8398         (CCL_WRITE_STRING): Likewise.
8399         (ccl_get_compiled_code): New function.
8400         (setup_ccl_program): When ccl_prog is invalid,
8401         return -1.
8402         (Fregister_code_conversion_map): New function.
8403         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
8404
8405         * mule-ccl.h: Sync up with Emacs 21.0.90.
8406         (Fregister_ccl_program): export it.
8407
8408         * redisplay-msw.c (separate_textual_runs):
8409         If ccl program is not valid, don't do ccl conversion.
8410
8411         * redisplay-x.c (separate_textual_runs): Ditto.
8412
8413         * file-coding.c (Fmake_coding_system):
8414         When type is ccl and value is vector, register it
8415         with a proper symbol.  And checks whether the
8416         given ccl program is valid.
8417         (mule_decode): When calling ccl_driver, if src indicates
8418         NULL pointer, set an empty string instead.
8419         (mule_encode): Likewise.
8420
8421 2000-10-11  Martin Buchholz  <martin@xemacs.org>
8422
8423         The following large batch of changes gets us back to a state of
8424         C++ compilability.  Extbyte is now a char, which means that
8425         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
8426
8427         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
8428
8429         * sound.c (Fplay_sound): Type correctness.
8430
8431         * select-x.c (hack_motif_clipboard_selection): Type correctness.
8432         (x_get_window_property): Type correctness.
8433         (receive_incremental_selection): unsigned char ==> Extbyte
8434         (selection_data_to_lisp_data): unsigned char ==> Extbyte
8435         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
8436         (Fx_store_cutbuffer_internal): Type correctness.
8437
8438         * process-unix.c (try_to_initialize_subtty): Type correctness.
8439
8440         * objects-x.c (x_print_color_instance): Type correctness.
8441         (x_print_font_instance): Type correctness.
8442         (x_list_fonts): SExtbyte ==> Extbyte.
8443         (valid_x_font_name_p): SExtbyte ==> Extbyte.
8444         (x_find_charset_font): SExtbyte ==> Extbyte.
8445         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
8446         (truename_via_XListFonts): SExtbyte ==> Extbyte.
8447         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
8448         Use bufbyte_strcmp.
8449
8450         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
8451         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
8452         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
8453         (BYTE_C0_P): Use bit ops for char-signedness safety.
8454         (BYTE_C1_P): Use bit ops for char-signedness safety.
8455         (CHARSET_BY_LEADING_BYTE):
8456         (CHARSET_BY_ATTRIBUTES):
8457         Always use inline function.
8458         Use type_checking_assert.
8459         Hide chlook.
8460
8461         * mule-charset.c (non_ascii_charptr_copy_char):
8462         Modify to work with both ASCII and non-ASCII characters.
8463         Improve docs and variable names.
8464         Replace over-clever fall-through switch with a simple loop.
8465         (Lstream_get_emchar_1):
8466         Replace over-clever fall-through switch with a simple loop.
8467
8468         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
8469         Warning suppression.
8470
8471         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
8472         the return value of Lstream_getc, which could be EOF as well.
8473
8474         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
8475
8476         * lisp.h: Make Extbyte a char, not unsigned char, so that external
8477         APIs can be used on Extbytes without casts.  Risky!
8478         (SExtbyte): Remove.
8479         (UExtbyte): Remove.
8480
8481         * input-method-xlib.c (XIM_init_device):
8482         Use Xlib.h instead of IntrinsicP.h.
8483         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
8484         which will break in X11R7.
8485         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
8486         to call XRegisterIMInstantiateCallback with correct types.
8487
8488         * gui-x.c (button_item_to_widget_value): Type correctness.
8489
8490         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
8491
8492         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
8493         (xbm_instantiate_1): Type correctness.
8494         (BUILD_GLYPH_INST):  Type correctness.
8495
8496         * fileio.c (Fsubstitute_in_file_name): Type correctness.
8497
8498         * file-coding.c:
8499         (decode_coding_sjis):
8500         (decode_coding_big5):
8501         (decode_coding_ucs4):
8502         (decode_coding_utf8):
8503         (decode_coding_iso2022):
8504         (decode_coding_no_conversion):
8505         Make all decoding functions take an Extbyte * arg.
8506         (encode_coding_sjis):
8507         (encode_coding_big5):
8508         (encode_coding_ucs4):
8509         (encode_coding_utf8):
8510         (encode_coding_iso2022):
8511         (encode_coding_no_conversion):
8512         Make all encoding functions take a Bufbyte * arg.
8513         Use size_t instead of unsigned int for memory sizes.
8514         Only cast to unsigned char whenever dereferencing Extbyte *.
8515
8516         * doc.c (unparesseuxify_doc_string): Type correctness.
8517
8518         * console-x.c (split_up_display_spec):
8519         Rewrite without using details of internal string representation.
8520         (x_semi_canonicalize_device_connection): Type correctness.
8521
8522         * config.h.in:
8523         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
8524         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
8525         (HAVE_XFREE386): Removed.
8526
8527         * buffer.h (DEC_CHARPTR): `const' correctness.
8528         (bufbyte_strcmp): New.
8529         (bufbyte_memcmp): New.
8530
8531         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
8532
8533         * buffer.h (XCHAR_OR_CHAR_INT):
8534         Always use inline function.
8535         Remove redundant type checking assert() - XINT will abort quite nicely.
8536
8537 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
8538
8539         * search.c (Freplace_match): Set newtext to an empty string.
8540
8541 2000-10-10  Martin Buchholz  <martin@xemacs.org>
8542
8543         * s/decosf1-3.h: Remove #include of stropts.h
8544         * s/ptx.h: Remove #include of stropts.h
8545         * s/usg5-4.h: Remove #include of stropts.h
8546         * sysproc.h:
8547         * config.h.in:
8548         Use stropts.h, not sys/stropts.h.
8549         Use strtio.h, not sys/strtio.h.
8550
8551 2000-10-04  Martin Buchholz <martin@xemacs.org>
8552
8553         * XEmacs 21.2.36 is released.
8554
8555 2000-09-21  Andy Piper  <andy@xemacs.org>
8556
8557         * glyphs-x.c (x_redisplay_widget): make sure non-structural
8558         changes still involve copying the widget tree.
8559         (update_widget_face): make sure a change is register in the widget
8560         tree. Call update_tab_widget_face appropriately.
8561         (update_tab_widget_face): ditto.
8562         (x_tab_control_redisplay): make sure non-structural changes still
8563         involve copying the widget tree.
8564
8565 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
8566
8567         * lread.c (locate_file): Check the path element is non-nil.
8568
8569 2000-10-02  Martin Buchholz  <martin@xemacs.org>
8570
8571         * lisp.h: Warning suppression for SCO compilers.
8572
8573         * redisplay-tty.c (reset_tty_modes): Fix crash.
8574         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
8575
8576 2000-09-27  Martin Buchholz  <martin@xemacs.org>
8577
8578         Big signal/process handling overhaul.  Bugs fixed:
8579         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
8580         M-x comint-kill-subjob should work for both values nil and t of
8581         process-connection-type. It was broken on most platforms.
8582         Testing on Irix and Cygwin still needed.  Other plaforms tested.
8583         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
8584         * process-unix.c: Signal/Process handling overhaul.
8585         (pty_name): make 64 bytes, as `expect' does, for paranoia.
8586         (allocate_pty): Use all available modern methods of allocating
8587         ptys, falling back to old style BSD allocation as a last resort.
8588         Use allegedly more secure Unix98 pty allocation by default.
8589         (allocate_pty_the_old_fashioned_way): New. the last resort.
8590         (unix_create_process): Push ptem, ldterm, ttcompat where
8591         available.  Autoconfiscate.
8592         (try_to_initialize_subtty): New.
8593         (unix_kill_child_process): Proper signal handling for ptys on most
8594         platforms, using special knowledge of AIX, BSD, etc...
8595         (unix_create_process): Always disconnect_controlling_terminal() for
8596         subprocesses, whether using ptys or not.
8597         * process.h: Remove old getpt-dependent PTY code.
8598         * process.c (Fprocess_send_signal): New, obvious generic function.
8599         (decode_signal): New.
8600         (Finterrupt_process):
8601         (Fkill_process):
8602         (Fquit_process):
8603         (Fstop_process):
8604         (Fcontinue_process):
8605         (Fsignal_process): Use decode_signal.
8606         (process_send_signal):
8607         Many docstring corrections.
8608         Allow any signal to be sent to a process object.
8609         * config.h.in: Add symbols for big signal/process overhaul.
8610         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
8611         * sysproc.h: Include process-related headers, where available:
8612         sys/stropts.h sys/strtio.h pty.h libutil.h
8613         * s/irix4-0.h:
8614         * s/irix5-0.h:
8615         * s/cygwin32.h:
8616         * s/gnu.h:
8617         * s/linux.h:
8618         * s/hpux.h:
8619         * s/aix3-1.h:
8620         Remove old S&M pty stuff.
8621         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
8622         * systty.h: Simplify cpp hackery, improve comments.
8623         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
8624
8625         * editfns.c (Fformat_time_string):
8626         Be a little more paranoid with the return value of ctime.
8627
8628         * fileio.c (check_executable):
8629         (check_writable):
8630         Use symbolic constants X_OK, W_OK.
8631
8632         * console-x.c (split_up_display_spec): Fix a warning.
8633
8634 2000-10-02  Martin Buchholz  <martin@xemacs.org>
8635
8636         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
8637         * ntproc.c (sys_spawnve): make_string ==> build_string
8638         Small clarity improvements.
8639
8640 2000-09-30  Martin Buchholz  <martin@xemacs.org>
8641
8642         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
8643
8644         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
8645
8646         * config.h.in (HAVE_STRCASECMP): Remove.
8647
8648 2000-09-29  Martin Buchholz  <martin@xemacs.org>
8649
8650         * redisplay-output.c (redisplay_output_pixmap):
8651         Cleaner and possibly more 64-bit correct code.
8652
8653 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
8654
8655         * dumper.c (pdump_load_finish): move restoration of
8656         `noninteractive1' to emacs.c (main_1).
8657         * emacs.c (main_1): protect LISP-visible command-line flags
8658         from pdump_load().
8659
8660 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
8661
8662         * Makefile.in.in (versionclean):  Use EXE_TARGET and
8663         DUMP_TARGET instead of literal program names.
8664
8665 2000-09-20  Martin Buchholz  <martin@xemacs.org>
8666
8667         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
8668
8669 2000-09-19  Martin Buchholz  <martin@xemacs.org>
8670
8671         * *: Spelling mega-patch
8672
8673 2000-09-19  Martin Buchholz  <martin@xemacs.org>
8674
8675         * fns.c (bad_bad_turtle):
8676         Delete "Eek!" comment, since we fixed the bug to which it refers.
8677
8678 2000-09-16  Martin Buchholz  <martin@xemacs.org>
8679
8680         * alloca.c: Replace REGISTER with register.
8681
8682 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
8683
8684         * file-coding.c (ucs_to_char): Use countof.
8685
8686 2000-09-16  Martin Buchholz  <martin@xemacs.org>
8687
8688         * file-coding.c: (ucs_to_char):
8689         (complex_vars_of_file_coding):
8690         Use countof instead of sizeof.
8691         Use CHECK_NATNUM instead of CHECK_INT.
8692
8693         * sysdep.c (strcasecmp): Remove.
8694         * device-x.c (ascii_strcasecmp): New.
8695         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
8696         Avoid using non-standard non-portable strcasecmp.
8697
8698 2000-09-16  Martin Buchholz  <martin@xemacs.org>
8699
8700         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
8701         * font-lock.c: remove reference to emacsfns.h.
8702         * search.c: small doc improvement.
8703         * event-Xt.c: correct file names in comments.
8704         * console-x.h Correct file names in comments.
8705         * frame.c: Correct file names in comments.
8706         * event-stream.c: remove Energize from comments.
8707
8708 2000-09-15  Martin Buchholz  <martin@xemacs.org>
8709
8710         * symeval.h (DEFERROR_STANDARD):
8711         (DEFERROR):
8712         (DEFSYMBOL):
8713         (DEFSYMBOL_NO_DUMP):
8714         (DEFSYMBOL_MULTIWORD_PREDICATE):
8715         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
8716         (DEFKEYWORD):
8717         The construct &##name is not sensible C.
8718         Fixes compilation errors with Unixware native compiler.
8719
8720 2000-09-14  Martin Buchholz  <martin@xemacs.org>
8721
8722         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
8723         (next_frame_internal): Removed.  We now just have next_frame.
8724         (next_frame):
8725         Write a simpler and cleaner one-pass algorithm.
8726         Remove called_from_delete_device arg and #ifdefed-out code.
8727         (previous_frame):
8728         Renamed from prev_frame.  Update callers.
8729         Cleaned up to have an analogous implementation to next_frame.
8730         (other_visible_frames_internal): Remove the
8731         called_from_delete_device bogus arg, and hence, remove this
8732         function.  Just use other_visible_frames().
8733
8734         * window.c (Fnext_window):
8735         Prettify docstring.
8736         Since next_frame() is guaranteed to return a frame, remove check
8737         for nil inserted in previous patch.
8738         (Fprevious_window):
8739         Prettify docstring.
8740         Make code look more like Fnext_window.
8741         (window_loop):
8742         Respect the `console' arg when iterating through windows.
8743         Fixes bug: (get-buffer-window buffer t device) not respecting
8744         the `device' arg.
8745         This function needs more work, as others have pointed out.
8746
8747         * frame.h: Rename prev_frame to previous_frame.
8748         device_matches_console_spec no longer takes a `frame' arg.
8749
8750         * s/gnu.h:
8751         * s/linux.h:
8752         * s/hpux.h:
8753         Use EMACS_BLOCK_SIGNAL instead of sigblock.
8754         From "Golubev I. N." <gin@mo.msk.ru>.
8755
8756         * make-src-depend: Fix typo.
8757
8758 2000-09-13  Martin Buchholz  <martin@xemacs.org>
8759
8760         * window.c (Fnext_window):
8761         next_frame() might return nil, not a frame.
8762         Fixes this crash:
8763         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
8764
8765         * frame.c (next_frame_internal):
8766         We've passed a frame if we've passed its device.
8767         Fixes this crash:
8768         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
8769 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
8770
8771 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
8772
8773         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
8774         Allow option to suppress accelerators in menu/dialog items.
8775         (populate_or_checksum_helper): Pass dialog title through above.
8776
8777 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
8778
8779         * event-msw.c (mswindows_key_to_emacs_keysym):
8780         Add "pause" key, fix "menu" key.
8781
8782 2000-09-09  Martin Buchholz  <martin@xemacs.org>
8783
8784         * eval.c (reinit_vars_of_eval):
8785         Increase max_lisp_eval_depth to 1000,
8786         required for thai-xtis.el to byte-compile under some circumstances.
8787
8788 2000-09-04  Martin Buchholz  <martin@xemacs.org>
8789
8790         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
8791         From Kenichi Handa.
8792
8793 2000-09-01  Martin Buchholz  <martin@xemacs.org>
8794
8795         * make-src-depend: Make the generated Makefiles smaller.
8796
8797         * s/hpux.h (SETUP_SLAVE_PTY):
8798         Provide a %d in the format string for the errno argument.
8799
8800         * editfns.c (Ftemp_directory):
8801         Warning fix.
8802         Avoid buffer overrun on very long file name.
8803
8804         * input-method-xlib.c (XIM_init_device):
8805         6th parameter of XRegisterIMInstantiateCallback has different
8806         pointer types on different OSes, so simply cast to (void *).
8807
8808         * unexhp9k800.c: Warning fixes.  Fiddly changes.
8809
8810         * sysdll.c (dll_open):
8811         shl_load will hang hard if passed a NULL filename.
8812         Simply return NULL for compatibility with dlopen.
8813         * sysdll.c: Conform to XEmacs coding standards.
8814
8815         * sysdep.c (get_pty_max_bytes):
8816         Support pty input lines longer than 512 bytes on HP-UX 10.20.
8817
8818 2000-08-31  Martin Buchholz  <martin@xemacs.org>
8819
8820         * tooltalk.c: Add #include <syssignal.h>
8821
8822 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
8823
8824         * s/hpux.h: Don't use undefined function sigunblock().
8825
8826 2000-08-31  Martin Buchholz  <martin@xemacs.org>
8827
8828         * config.h.in: Add HAVE_BALLOON_HELP.
8829         * emacs.c: Use HAVE_BALLOON_HELP.
8830         * Makefile.in.in (x_objs):
8831         Make Balloon Help conditional on finding shape.h.
8832
8833 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
8834
8835         * syntax.c (regex_emacs_buffer_p): New variable.
8836         * syntax.h (regex_emacs_buffer_p): extern.
8837         * search.c (looking_at_1):
8838         (string_match_1):
8839         (fast_string_match):
8840         (search_buffer): Set regex_emacs_buffer_p.
8841         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
8842         when before_dot, at_dot, after_dot.
8843
8844 2000-08-23  Andy Piper  <andy@xemacs.org>
8845
8846         * gui-x.c (popup_selection_callback): Only set action_occurred
8847         when we really have an image instance.
8848         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
8849
8850 2000-08-23  Andy Piper  <andy@xemacs.org>
8851
8852         * gui-msw.c (mswindows_handle_gui_wm_command): set
8853         action_occurred.
8854         * gui-x.c (popup_selection_callback): ditto.
8855
8856         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
8857         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
8858         (struct Lisp_Image_Instance): add action_occurred flag.
8859
8860         * glyphs.c (redisplay_subwindow): use action_occurred flag.
8861         (image_instance_changed): ditto.
8862         (reset_frame_subwindow_instance_cache): only unmap windows - do
8863         not remove them from the cache also.
8864
8865         * glyphs-widget.c (tab_control_update): better debug.
8866         (progress_gauge_update): ditto.
8867         (layout_update): ditto.
8868         (layout_instantiate): ditto.
8869         (tab_control_order_only_changed): cope with null pending items.
8870
8871         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
8872         debug. Force selection of an item when an action occurred. Cope
8873         with null pending_items.
8874         (mswindows_progress_gauge_redisplay): better debug.
8875         * glyphs-x.c (x_tab_control_redisplay): ditto.
8876
8877         * redisplay.c (redisplay_frame): reset the frame cache if the
8878         frame is garbaged.
8879
8880         * window.c (Fset_window_configuration): potentially re-enable
8881         frame cache reset.
8882         (window_unmap_subwindows): need to finalize instances here since
8883         it is only used in mark_window_as_deleted.
8884
8885 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
8886
8887         * nas.c (SndOpenDataForReading):
8888         nas.c (WaveOpenDataForReading):
8889         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
8890         Somehow escaped from the 2000-08-14 patch.
8891
8892 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
8893
8894         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
8895         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
8896
8897 2000-08-21  Andy Piper  <andy@xemacs.org>
8898
8899         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
8900         window if it is not already displayed.
8901
8902         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
8903         it is not already displayed.
8904
8905         * window.c (Fset_window_configuration): don't reset the frame
8906         cache.
8907
8908         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
8909         instances from the frame cache if we are actually finalizing them.
8910         (reset_frame_subwindow_instance_cache): reset frame cache only
8911         after unmapping everything.
8912         (map_subwindow): set displayed flag after mapping.
8913
8914 2000-08-21  Martin Buchholz  <martin@xemacs.org>
8915
8916         * data.c (indirect_function):
8917         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
8918
8919         * eval.c (function_argcount):
8920         Use original function when signaling errors.
8921
8922 2000-08-18  Andy Piper  <andy@xemacs.org>
8923
8924         * frame.c (delete_frame_internal): use new
8925         free_frame_subwindow_instances name.
8926
8927         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
8928         (add_tab_item): make return type correct.
8929         (mswindows_tab_control_instantiate): assert index of tab.
8930         (mswindows_tab_control_redisplay): Re-code to use
8931         gui_item_equal_sans_selected and gui_item_list_find_selected.
8932
8933         * glyphs-widget.c (tab_control_update): Correct comment.
8934
8935         * window.c (window_unmap_subwindows): use new
8936         unmap_subwindow_instance_cache_mapper.
8937         (window_unmap_subwindows_cache_mapper): deleted.
8938         (Fset_window_configuration): comparisons should now be with
8939         EQ. Preserve the subwindow instance cache across configuration
8940         changes.
8941         (allocate_window): ditto.
8942         (make_dummy_parent): ditto.
8943
8944         * glyphs.c (free_frame_subwindow_instances): rename from
8945         free_frame_subwindow_instance_cache. finalize all instances rather
8946         than just those in the display cache.
8947         (finalize_all_subwindow_instances): walk windows unmapping and
8948         finalizing subwindows.
8949         (unmap_subwindow_instance_cache_mapper): moved from
8950         window.c. Allow finalization as well as unmapping.
8951
8952         * gui.c (gui_item_list_find_selected): new function.
8953
8954         * gui.h (gui_item_list_find_selected): declare.
8955
8956         * glyphs-x.c (x_tab_control_redisplay): pick tab
8957         explicitly. Re-code to use gui_item_equal_sans_selected and
8958         gui_item_list_find_selected.
8959
8960         * glyphs-x.h: add lwlib-utils.h
8961
8962         * buffer.c (Frecord_buffer): undo previous change.
8963
8964 2000-08-09  Vin Shelton  <acs@xemacs.org>
8965
8966         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
8967         possible.  Create temporary files more securely.  The patch was
8968         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
8969         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
8970         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
8971         for details.
8972
8973 2000-08-07  Ben Wing  <ben@xemacs.org>
8974
8975         * getloadavg.c: remove duplicate (and windows-breaking)
8976         includes of fcntl.h and sys/file.h.
8977
8978         * nt.c: remove duplicate getloadavg() definition.
8979
8980         * sysdll.h (Qdll_filename_encoding): add missing stand-in
8981         encodings.
8982
8983 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
8984
8985         * eval.c (function_argcount): If function needs to be autoloaded
8986         actually use the loaded definition.
8987         GCPRO function.
8988
8989 2000-08-05  Ben Wing  <ben@xemacs.org>
8990
8991         * getloadavg.c: add prototype for getloadavg().  remove
8992         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
8993         of the code).  remove duplicate header includes.
8994
8995         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
8996
8997         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
8998         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
8999         useful load average.
9000
9001         * alloc.c (reinit_alloc_once_early): removed references to
9002         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
9003         the lisp vars are the only things referencing the malloc_sbrk_*
9004         vars, and they were already if 0'd out.  these vars only exist
9005         in the older malloc.c, which is basically unused, and they're
9006         only for informational purposes.
9007
9008         * m\*.h: removed useless VIRT_ADDR_VARIES.
9009
9010         * m\powerpc.h: removed stray NO_ARG_ARRAY.
9011
9012 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9013
9014         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
9015         color if the image is a mono pixmap.
9016
9017 2000-07-30  Ben Wing  <ben@xemacs.org>
9018
9019         * Makefile.in.in (release):
9020         Remove stray @.
9021
9022         * buffer.c (directory_is_current_directory):
9023         * dired-msw.c (mswindows_get_files):
9024         * dired.c:
9025         * dired.c (Fdirectory_files):
9026         * dired.c (file_name_completion_stat):
9027         * dired.c (Ffile_attributes):
9028         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
9029         preprocessor tricks, to avoid problems on some machines
9030         (e.g. SCO).
9031
9032         * callproc.c (egetenv): GC docs.
9033
9034         * console-msw.h:
9035         * console-msw.h (struct mswindows_dialog_id):
9036         * lrecord.h (lrecord_type):
9037         New object for use with MSW dialogs.
9038
9039         * console.h (struct console_methods):
9040         New enable/disable frame methods, for proper modal dialogs.
9041
9042         * device-msw.c (msprinter_default_printer): Fix to follow
9043         proper Mule conventions.
9044
9045         * device-msw.c:
9046         * device-msw.c (signal_open_printer_error):
9047         * device-msw.c (msprinter_init_device):
9048         * device-msw.c (ensure_not_printing):
9049         * device-msw.c (plist_get_margin):
9050         * device-msw.c (Fmsprinter_select_settings):
9051         * device-msw.c (finalize_devmode):
9052         * device-msw.c (Fmsprinter_settings_despecialize):
9053         * device-msw.c (signal_enum_priner_error):
9054         * extents.c (decode_extent):
9055         * extents.c (decode_map_extents_flags):
9056         * extents.c (decode_extent_at_flag):
9057         * extents.c (Fextent_at):
9058         * extents.c (Fextents_at):
9059         * extents.c (symbol_to_glyph_layout):
9060         [[[[2]]]] Use structured errors.
9061
9062         * dialog-msw.c:
9063         * dialog-msw.c (mswindows_is_dialog_msg):
9064         * dialog-msw.c (mark_mswindows_dialog_id):
9065         * dialog-msw.c (dialog_proc):
9066         * dialog-msw.c (handle_question_dialog_box):
9067         * dialog-msw.c (syms_of_dialog_mswindows):
9068         Define new object to clean up marking; use it as a dialog identifier.
9069         Call new delete-dialog-box-hook.
9070
9071         * dialog-x.c (dbox_selection_callback):
9072         * dialog-x.c (dbox_descriptor_to_widget_value):
9073         * dialog-x.c (x_make_dialog_box_internal):
9074         Call new delete-dialog-box-hook.
9075         Return an id.
9076
9077         * dialog.c:
9078         * dialog.c (syms_of_dialog):
9079         * dialog.c (vars_of_dialog):
9080         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
9081
9082         * eval.c:
9083         * eval.c (signal_call_debugger):
9084         when noninteractive, output stack traces on the console instead
9085         of in a (never-seen) buffer.
9086
9087         * eval.c (signal_type_error):
9088         * eval.c (invalid_argument_2):
9089         * lisp.h:
9090         new funs for use w/structured errors.
9091
9092         * event-Xt.c:
9093         * event-Xt.c (x_to_emacs_keysym):
9094         * event-Xt.c (describe_event):
9095         * event-Xt.c (emacs_Xt_event_handler):
9096         * event-Xt.c (vars_of_event_Xt):
9097         * event-msw.c:
9098         * event-msw.c (mswindows_wnd_proc):
9099         * event-msw.c (vars_of_event_mswindows):
9100         rename {x,mswindows}-debug-events to debug-{}-events for
9101         consistency with other debug-foo variables.
9102
9103         * event-stream.c:
9104         document next-event more clearly.
9105
9106         * fileio.c (Ffile_name_directory):
9107         * fileio.c (Ffile_name_nondirectory):
9108         * fileio.c (Funhandled_file_name_directory):
9109         * fileio.c (file_name_as_directory):
9110         * fileio.c (Ffile_name_as_directory):
9111         * fileio.c (directory_file_name):
9112         * fileio.c (Fdirectory_file_name):
9113         * fileio.c (Fmake_temp_name):
9114         * fileio.c (Ffile_truename):
9115         * fileio.c (Fsubstitute_in_file_name):
9116         * fileio.c (expand_and_dir_to_file):
9117         * fileio.c (barf_or_query_if_file_exists):
9118         * fileio.c (check_executable):
9119         * fileio.c (Ffile_exists_p):
9120         * fileio.c (Ffile_writable_p):
9121         * fileio.c (Ffile_directory_p):
9122         * fileio.c (Ffile_regular_p):
9123         * fileio.c (Ffile_modes):
9124         * fileio.c (Ffile_newer_than_file_p):
9125         * fileio.c (Fverify_visited_file_modtime):
9126         * fileio.c (Fset_visited_file_modtime):
9127         * fileio.c (auto_save_1):
9128         (1). (2).
9129         fix up gcpro's.
9130
9131         * frame-msw.c:
9132         * frame-msw.c (mswindows_init_frame_1):
9133         * frame-msw.c (mswindows_enable_frame):
9134         * frame-msw.c (error_frame_unsizable):
9135         * frame-msw.c (msprinter_init_frame_1):
9136         * frame-msw.c (msprinter_init_frame_3):
9137         * frame-msw.c (console_type_create_frame_mswindows):
9138         (2).
9139         implement new enable/disable frame methods.
9140
9141         * frame-x.c:
9142         * frame-x.c (x_enable_frame):
9143         * frame-x.c (console_type_create_frame_x):
9144         implement new enable/disable frame methods.
9145
9146         * frame.c:
9147         * frame.c (Fdisable_frame):
9148         * frame.c (syms_of_frame):
9149         * frame.h (struct frame):
9150         implement new enable/disable frame methods/functions.
9151
9152         * general-slots.h:
9153         add initial-focus.
9154
9155         * glyphs-msw.c (mswindows_widget_instantiate):
9156         comment that initial-focus should be implemented.
9157
9158         * glyphs-widget.c:
9159         * glyphs-widget.c (check_valid_instantiator):
9160         * glyphs-widget.c (check_valid_orientation):
9161         * glyphs-widget.c (check_valid_tab_orientation):
9162         * glyphs-widget.c (check_valid_justification):
9163         * glyphs-widget.c (check_valid_border):
9164         * glyphs-widget.c (check_valid_callback):
9165         * glyphs-widget.c (check_valid_int_or_function):
9166         * glyphs-widget.c (check_valid_string_or_vector):
9167         * glyphs-widget.c (check_valid_item_list_1):
9168         * glyphs-widget.c (widget_validate):
9169         * glyphs-widget.c (combo_box_validate):
9170         * glyphs-widget.c (widget_instantiate):
9171         * glyphs-widget.c (syms_of_glyphs_widget):
9172         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
9173         * glyphs-widget.c (image_instantiator_combo_box):
9174         * glyphs-widget.c (image_instantiator_scrollbar):
9175         * glyphs-widget.c (image_instantiator_tab_control):
9176         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
9177         (2).
9178         support (unimplemented) keyword initial-focus.
9179         reindent long macros.
9180
9181         * glyphs-x.c (x_redisplay_widget):
9182         * glyphs-x.c (x_button_instantiate):
9183         * glyphs-x.c (x_button_redisplay):
9184         * glyphs-x.c (x_progress_gauge_instantiate):
9185         * glyphs-x.c (x_edit_field_instantiate):
9186         * glyphs-x.c (x_combo_box_instantiate):
9187         * glyphs-x.c (x_tab_control_instantiate):
9188         * glyphs-x.c (x_label_instantiate):
9189         * gui-x.c:
9190         * gui-x.c (button_item_to_widget_value):
9191         * gui-x.c (gui_items_to_widget_values_1):
9192         * gui-x.c (gui_item_children_to_widget_values):
9193         * gui-x.c (gui_items_to_widget_values):
9194         * gui-x.h:
9195         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9196         add new flag to gui-parsing routines to indicate whether
9197         accelerator specs should be supported.
9198
9199         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
9200
9201         * glyphs.h (struct Lisp_Image_Instance):
9202         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
9203         add initial-focus flag.
9204
9205         * gui.c:
9206         * gui.c (syms_of_gui):
9207         * gui.c (vars_of_gui):
9208         clean up menu-no-selection-hook.
9209
9210         * gui.h:
9211         support delete-dialog-box-hook.
9212
9213         * lread.c (Fload_internal):
9214         * lread.c (locate_file_in_directory_mapper):
9215         (1).
9216
9217         * lrecord.h:
9218         * lrecord.h (struct toolbar_button):
9219         * lrecord.h (syms_of_toolbar):
9220         document how to create a new object.
9221
9222         * menubar-msw.c (mswindows_char_is_accelerator):
9223         may be called on frames w/o menus.
9224
9225         * menubar.c (vars_of_menubar):
9226         clean up :filter docs.
9227
9228         * nt.c (readdir):
9229         * ntproc.c:
9230         (1).
9231
9232         * process-nt.c:
9233         * process-nt.c (validate_signal_number):
9234         * process-nt.c (signal_cannot_launch):
9235         * process-nt.c (nt_create_process):
9236         * process-nt.c (nt_send_process):
9237         * process-nt.c (nt_kill_child_process):
9238         * process-nt.c (nt_open_network_stream):
9239         * process-nt.c (syms_of_process_nt):
9240         (2).
9241         delete quote-handling.  call new lisp code that does it better.
9242
9243         * process-unix.c (connect_to_file_descriptor):
9244         * process-unix.c (allocate_pty):
9245         * process-unix.c (unix_send_process):
9246         * process-unix.c (unix_kill_child_process):
9247         * process-unix.c (unix_open_network_stream):
9248         * process-unix.c (unix_open_multicast_group):
9249         (1). (2).
9250
9251         * process.c:
9252         * process.c (Fstart_process_internal):
9253         (2).  need to canonicalize process path even if absolute.
9254
9255         * select-msw.c (symbol_to_ms_cf):
9256         * select-msw.c (ms_cf_to_symbol):
9257         * select-msw.c (cf_is_autofreed):
9258         * select-msw.c (mswindows_destroy_selection):
9259         * select.c:
9260         * select.c (syms_of_select):
9261         * select.h:
9262         support dibv5, fix bugs. (from Mike Alexander)
9263
9264         * select.c (Fget_selection_internal):
9265         * select.c (select_convert_out):
9266
9267         * sysdep.c:
9268         * sysdep.c (xemacs_stat):
9269         renamed.
9270
9271         * sysdep.c (mkdir):
9272         * sysdep.c (rmdir):
9273         but keep original stat() here because we provide encapsulation
9274         around these funs.
9275
9276         * sysfile.h:
9277         * sysfile.h (fstat):
9278         remove stat garbage.
9279
9280         * syswindows.h:
9281         fix X/MSW conflict.
9282         don't include tchar.h.  it's inappropriate because it makes
9283         compile-time distinctions when we want runtime distinctions.
9284         (we provide our own tchar replacements)
9285
9286         * toolbar.c:
9287         use default object printer for toolbar-button.
9288
9289         * unexcw.c:
9290         make sure we don't encapsulate.
9291
9292         * window.c (vars_of_window):
9293         emphasize that temp-buffer-show-hook is obsolete.
9294
9295 2000-08-05  Martin Buchholz  <martin@xemacs.org>
9296
9297         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
9298         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
9299
9300         * events.c (Fevent_timestamp_lessp):
9301         Not 64-bit clean.  Use EMACS_INT, not int.
9302
9303 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
9304
9305         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
9306         unsigned int and changed the last enum to
9307         lrecord_type_last_built_in_type.
9308         (lrecord_implementations_table): changed prototype to know how
9309         long the array is supposed to be.
9310         (lrecord_type_count): new unsigned int to keep track of the
9311         current number of lisp lrecord types.
9312         (DEFINE_EXTERNAL_LRECORD):
9313         (DECLARE_EXTERNAL_LRECORD): Added these two for external
9314         dynamic-modules to declare new lisp types. They are the same
9315         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
9316         int for each new type, and increment lrecord_type_count by 1.
9317
9318         * alloc.c (lrecord_implementations_table): Changed to reference
9319         lrecord_type_last_built_in_type for the size of the array.
9320         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
9321
9322 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
9323
9324         * glyphs.h (check_valid_item_list): Renamed from
9325         check_valid_item_list_1.
9326
9327 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
9328
9329         * select.c (Qselect_coerce): New.
9330         * select.c (Vselection_coercion_alist): New.
9331         * select.c (syms_of_select): Declare.
9332         * select.c (get-selection-internal): Use it.
9333         Use the new select-coerce functionality.
9334
9335         * select.c (select_coerce): New.
9336         * select.h (select_coerce): Declare.
9337         New function to coerce one type of data into another.
9338
9339 2000-08-03  Martin Buchholz  <martin@xemacs.org>
9340
9341         * callproc.c (Fcall_process_internal):
9342         (Fcall_process_internal):
9343         * process-unix.c (unix_create_process):
9344         Save and restore the value of errno, so that error messages are accurate.
9345
9346 2000-08-01  Martin Buchholz  <martin@xemacs.org>
9347
9348         * elhash.c (print_hash_table):
9349         Fix printing of hash tables to also use `key-and-value' instead of `t'.
9350         Prettify docstrings and indentation.
9351
9352 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
9353
9354         * window.c (Fwindow_pixel_edges): Subtract frame border and
9355         gutter size.
9356
9357 2000-07-31  Andy Piper  <andy@xemacs.org>
9358
9359         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
9360         will acknowledge the change.
9361
9362         * glyphs.h: declare tab_control_order_only_changed.
9363
9364         * glyphs-x.c (x_tab_control_redisplay): use
9365         tab_control_order_only_changed.
9366
9367         * glyphs-widget.c (tab_control_order_only_changed): new function.
9368
9369         * glyphs-msw.c (mswindows_tab_control_redisplay): use
9370         tab_control_order_only_changed.
9371
9372         * gui.c (gui_item_equal_sans_selected): new function.
9373         (gui_item_equal): use it.
9374
9375         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
9376         :properties in favor of :items..
9377
9378         * glyphs-widget.c (check_valid_item_list): rename from
9379         check_valid_item_list_1.
9380         (check_valid_item_list_1): renamed.
9381         (combo_box_validate): deprecate :properties in favor of :items.
9382         (widget_instantiate): ditto.
9383         (tab_control_update): ditto.
9384         (image_instantiator_combo_box): ditto.
9385         (image_instantiator_tree_view): ditto.
9386         (image_instantiator_tab_control): ditto.
9387         (layout_post_instantiate): remove dead code.
9388
9389         * print.c (debug_print_no_newline): only write to debugger if in
9390         WIN32_NATIVE.
9391
9392         * elhash.c (Fmake_hash_table): update doc string.
9393
9394         * event-msw.c (mswindows_wnd_proc): don't allow processing of
9395         messages whilst in GC. This at least stops XEmacs crashing but has
9396         the potential for wierd behaviour.
9397
9398 2000-07-31  Martin Buchholz  <martin@xemacs.org>
9399
9400         * config.h.in:
9401         Make existence of s&m files optional.
9402
9403         * s/bsd386.h: Remove HAVE_GETLOADAVG.
9404         * s/freebsd.h: Remove HAVE_GETLOADAVG.
9405         * s/gnu.h: Remove HAVE_GETLOADAVG.
9406         * s/netbsd.h: Remove HAVE_GETLOADAVG.
9407         * s/sol2.h: Remove HAVE_GETLOADAVG.
9408         * lisp.h: Remove getloadavg() declaration.
9409         * fns.c:
9410         Include <sys/loadavg.h> if available.
9411         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
9412         * config.h.in:  Group together getloadavg()-related macros.
9413         Use only configure-time tests to detect getloadavg().
9414
9415 2000-07-30  Martin Buchholz  <martin@xemacs.org>
9416
9417         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
9418
9419 2000-07-25  Andy Piper  <andy@xemacs.org>
9420
9421         * syswindows.h: add tchar.h for native builds.
9422
9423         * frame.c (syms_of_frame): remove set-glyph-image.
9424
9425         * general-slots.h: add Qset_glyph_image.
9426
9427         * glyphs-widget.c (layout_update): add domain arg to
9428         set-glyph-image.
9429         (syms_of_glyphs_widget): remove set-glyph-image.
9430
9431 2000-07-23  Ben Wing  <ben@xemacs.org>
9432
9433         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
9434         Vpopup_frame_list.
9435
9436 2000-07-22  Andy Piper  <andy@xemacs.org>
9437
9438         * symsinit.h: add syms_of_win32().
9439
9440         * gui-msw.c (syms_of_gui_mswindows): remove
9441         Fmswindows_shell_execute.
9442         (Fmswindows_shell_execute): moved to win32.c.
9443
9444         * emacs.c (main_1): add syms_of_win32 ().
9445
9446         * win32.c (init_potentially_nonexistent_functions): rewrite in
9447         compiler-friendly terms.
9448         (Fmswindows_shell_execute): move here from gui-msw.c.
9449         (syms_of_win32): new.
9450
9451         * device-msw.c (Fmswindows_printer_list): clean up args to
9452         EnumPrinters.
9453         Don't include tchar under cygwin or mingw.
9454         (msprinter_default_printer): make cygwin-friendly.
9455
9456 2000-07-21  Andy Piper  <andy@xemacs.org>
9457
9458         * glyphs-widget.c (image_instantiator_tree_view): use tab
9459         control's update function.
9460         (layout_property): new function. Retrieve items.
9461
9462         * glyphs-msw.c (mswindows_tree_view_redisplay): new
9463         function. Re-populate the tree view from the pending items.
9464
9465         * glyphs.c (instantiate_image_instantiator): Make sure the domain
9466         is designated the parent if the domain is an image instance. This
9467         is needed so that dirtiness can be cascade up the hierarchy and
9468         thus for layout children to be redisplayed correctly.
9469         (allocate_image_instance): rename glyph -> parent.
9470
9471         * redisplay.h: change redisplay_output_layout signature.
9472
9473         * redisplay-msw.c (mswindows_output_display_block): use domain
9474         arg.
9475
9476         * redisplay-x.c (x_output_display_block): use domain arg.
9477
9478 2000-07-10  Andy Piper  <andy@xemacs.org>
9479
9480         * window.c (Fset_window_configuration): add comment.
9481
9482         * redisplay-output.c (compare_runes):
9483         (redisplay_output_subwindow): redisplay rather than update subwindow.
9484         (redisplay_output_layout): ditto.
9485
9486         * redisplay-msw.c (mswindows_frame_output_end):
9487         (mswindows_frame_output_end): make defer window pos optional.
9488
9489         * lisp.h: add Flast.
9490
9491         * glyphs.h (struct image_instantiator_methods): add dest_mask top
9492         normalize method. Change update method to be for changed
9493         instantiators. Add redisplay method. Change signature of layout
9494         method.
9495         (struct Lisp_Image_Instance): add instantiator.
9496         (IMAGE_INSTANCE_INSTANTIATOR): new.
9497         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
9498         (XIMAGE_INSTANCE_INSTANTIATOR): new.
9499         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
9500
9501         * glyphs.c:
9502         (find_instantiator_differences): new function.
9503         (Fset_instantiator_property): new convenience function.
9504         (check_image_instance_structure): strictly check for vector
9505         instantiators.
9506         (normalize_image_instantiator): make non-static.
9507         (instantiate_image_instantiator): pass on dest_mask and use new
9508         signatures for image_instance_layout and friends.
9509         (mark_image_instance): mark the instantiator. Mark the subwindow
9510         face not the widget face.
9511         (image_instance_equal): add instantiator.
9512         (image_instance_hash): ditto.
9513         (allocate_image_instance): ditto.
9514         (Fset_image_instance_property): removed.
9515         (Fimage_instance_file_name): ditto.
9516         (Fcolorize_image_instance): ditto.
9517         (image_instance_layout): add offsets to be set.
9518         (update_image_instance): new function. update an image instance
9519         from its changed instantiator.
9520         (inherit_normalize): add dest_mask.
9521         (xbm_normalize): ditto.
9522         (xface_normalize): ditto.
9523         (xpm_normalize): ditto.
9524         (text_update): set_property -> update.
9525         (image_instantiate): use the glyph identity as a hash key, not the
9526         instantiator.
9527         (glyph_width): use new image_instance_layout signature.
9528         (glyph_ascent): ditto.
9529         (glyph_descent): ditto.
9530         (glyph_height): ditto.
9531         (glyph_query_geometry): ressurrect.
9532         (glyph_layout): ditto.
9533         (redisplay_subwindow): update -> redisplay.
9534         (syms_of_glyphs): add Fset_instantiator_property.
9535         (image_instantiator_format_create): set_property -> update.
9536
9537         * glyphs-x.c:
9538         (autodetect_normalize): add dest_maks to signature.
9539         (x_redisplay_subwindow): update -> redisplay.
9540         (x_redisplay_widget): ditto.
9541         (x_button_redisplay): ditto.
9542         (x_progress_gauge_redisplay): ditto.
9543         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
9544         stacking order.
9545         (console_type_create_glyphs_x): update -> redisplay.
9546         (image_instantiator_format_create_glyphs_x): ditto.
9547
9548         * glyphs-widget.c:
9549         (check_valid_instantiator): disallow glyphs in the instantiator,
9550         they must now be vectors.
9551         (check_valid_instantiator_list): ditto.
9552         (glyph_instantiator_to_glyph): use internal symbol rather than
9553         intern.
9554         (widget_update): renamed from widget_set_property. Call cascaded
9555         update methods.
9556         (redisplay_widget): renamed from update_widget.
9557         (widget_layout): image_instance_layout now takes position as well
9558         as size.
9559         (widget_normalize): ditto.
9560         (widget_instantiate): ditto.
9561         (tab_control_query_geometry) ditto.:
9562         (tab_control_update): renamed from tab_control_set_property.
9563         (progress_gauge_update): set_property -> update.
9564         (layout_normalize): rewrite so that child instantiators are
9565         normalized also.
9566         (layout_update): new function. Create glyphs from the normalized
9567         children and cope with any other layout keywords. We do not
9568         instantiate children here that will be take care of by
9569         redisplay_output_layout.
9570         (layout_instantiate): call layout_update and not much else.
9571         (layout_post_instantiate): not sure whether this is needed
9572         anymore.
9573         (layout_query_geometry): query glyph geometry rather than
9574         image_instance geometry.
9575         (layout_layout): set offsets from pass in parameters. Use glyph
9576         geometry and layout functions rather than image instance ones.
9577         (native_layout_layout): ditto.
9578         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
9579         (image_instantiator_widget): set_property -> update.
9580         (image_instantiator_buttons): ditto.
9581         (image_instantiator_progress_guage): ditto.
9582         (image_instantiator_tab_control): ditto.
9583         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
9584         (image_instantiator_layout): add update method.
9585
9586         * glyphs-msw.c (bmp_normalize):
9587         (mswindows_resource_normalize): add dest_mask so that it can be
9588         proprogated by layout_normalize.
9589         (begin_defer_window_pos): make optional because it may not be the
9590         right thing to do and it introduces differences with X.
9591         (mswindows_unmap_subwindow): ditto.
9592         (mswindows_map_subwindow): ditto.
9593         (mswindows_redisplay_subwindow): renamed from
9594         mswindows_update_subwindow.
9595         (mswindows_redisplay_widget): ditto.
9596         (mswindows_button_redisplay): renamed from
9597         mswindows_button_update. Update is now what the instantiation
9598         function does for a changed instantiator.
9599         (mswindows_progress_gauge_instantiate): set the progress value
9600         here if appropriate.
9601         (mswindows_tab_control_redisplay): cope with re-ordering of the
9602         members of the tab widget by simply selecting the new top
9603         widget. This makes things appear ok if you click on a tab.
9604         (mswindows_combo_box_instantiate): image_instance_layout now takes
9605         position as well as size.
9606         (mswindows_progress_gauge_redisplay): renamed from
9607         mswindows_progress_gauge_update.
9608         (console_type_create_glyphs_mswindows): fix update -> redisplay.
9609         (image_instantiator_format_create_glyphs_mswindows): ditto.
9610
9611         * glyphs-eimage.c (jpeg_normalize):
9612         (gif_normalize):
9613         (png_normalize):
9614         (tiff_normalize): add dest_mask so that it can be proprogated by
9615         layout_normalize.
9616
9617         * elhash.c:
9618         (print_hash_table):
9619         (hash_table_weakness_validate):
9620         (decode_hash_table_weakness):
9621         (Fhash_table_weakness):
9622         (Fhash_table_type):
9623         (syms_of_elhash): use Ben's naming scheme for hashtable types..
9624
9625         * console.h (struct console_methods): move update_* to
9626         redisplay_*.
9627
9628 2000-07-20  Ben Wing  <ben@xemacs.org>
9629
9630         * *.[ch] (XSETOBJ): remove unused middle argument.
9631         lisp-disunion.h: correct wrap_object() to one argument.
9632
9633 2000-07-15  Ben Wing  <ben@xemacs.org>
9634
9635         * s/cygwin32.h:
9636         * s/cygwin32.h (CYGWIN_CONV_PATH):
9637         Add missing logb prototype for v1.1.
9638         Use post-b20 names and alias to pre-b20 names when pre-b20.
9639
9640         * s/windowsnt.h: [5].
9641
9642 2000-07-15  Ben Wing  <ben@xemacs.org>
9643
9644         * Makefile.in.in (x_objs):
9645         * Makefile.in.in (sheap_objs):
9646         * Makefile.in.in (objs):
9647         added win32.o, cosmetic cleanups.
9648
9649         * alloc.c (Fmake_byte_code):
9650         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
9651         etc. macros which declare their own args now.
9652
9653         * alloc.c (syms_of_alloc):
9654         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
9655
9656         * buffer.c:
9657         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
9658
9659         * buffer.c (Fget_file_buffer):
9660         Fixed GCPRO problem.
9661
9662         * buffer.c (get_truename_buffer):
9663         Fixed comment about GC checking.
9664
9665         * buffer.c (syms_of_buffer):
9666         Undeclared those dedicated frame funs.
9667         [2].
9668
9669         * buffer.h:
9670         Define convenience macros for internal/external conversions.
9671         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
9672         and Qenvironment_variable_encoding for cleaner code.
9673
9674         * bufslots.h:
9675         Remove dedicated-frame; in lisp.
9676
9677         * bytecode.c (funcall_compiled_function):
9678         [1].
9679
9680         * bytecode.c (syms_of_bytecode):
9681         [2].
9682
9683         * console-msw.c:
9684         * console-msw.c (mswindows_show_console): Rewrote.
9685
9686         * console-msw.c (Fmswindows_debugging_output): New.
9687         Sends to OutputDebugString (special MSWin debugger interface).
9688
9689         * console-msw.c (Fmswindows_message_box):
9690         Fixed stupid bugs so it works when called from kill-emacs.
9691
9692         * console-msw.c (syms_of_console_mswindows):
9693         Declare Fmswindows_debugging_output.
9694
9695         * console-msw.h:
9696         New MSWin prototypes.
9697
9698         * console-msw.h (struct mswindows_frame):
9699         New entry last-click-mods for improved button-modifier support.
9700
9701         * console-msw.h (FRAME_MSWINDOWS_POPUP):
9702         New struct entry `popup' with corresponding accessor.
9703
9704         * console-x.c:
9705         * console-x.c (split_up_display_spec):
9706         * console-x.c (get_display_arg_connection):
9707         * console-x.c (x_semi_canonicalize_console_connection):
9708         * console-x.c (x_canonicalize_device_connection):
9709         [[[6]]]: Change char to more specific type.
9710         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
9711
9712         * console-x.c (x_semi_canonicalize_console_connection):
9713         * console-x.c (x_canonicalize_device_connection):
9714         [[[9]]]: Fix up error signalling to use new structured error system.
9715
9716         * console-x.h:
9717         [[[4]]]: Define codesys aliases:
9718         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
9719         Qx_color_name_encoding, Qx_display_name_encoding.
9720
9721         * console.h (struct console_methods):
9722         New method make_dialog_box_internal supersedes older
9723         popup_dialog_box method.
9724
9725         * data.c:
9726         Define many new errors, part of new structured errors.
9727
9728         * data.c (init_errors_once_early):
9729         * data.c (syms_of_data):
9730         [2].
9731
9732         * device-msw.c (mswindows_init_device):
9733         [[[5]]]: Cleanup to support NT 3.51.
9734
9735         * device-msw.c (decode_devmode): Cleanup.
9736
9737         * device-msw.c (mswindows_handle_print_setup_dialog_box):
9738         * device-msw.c (mswindows_handle_print_dialog_box):
9739         * device-msw.c (mswindows_handle_page_setup_dialog_box):
9740         * device-msw.c (syms_of_device_mswindows):
9741         Delete the dialog box primitives recently introduced by Kirill and
9742         instead interface to general dialog box interface.
9743
9744         * device-x.c:
9745         * device-x.c (compute_x_app_name):
9746         * device-x.c (x_init_device):
9747         * device-x.c (Fx_valid_keysym_name_p):
9748         * device-x.c (Fx_set_font_path):
9749         [6].
9750         [7].
9751
9752         * device.h (wrap_device): New.
9753         First of its kind; meant to replace XSETDEVICE.
9754
9755         * dialog-msw.c: Many file-dialog symbols.
9756
9757         * dialog-msw.c (mswindows_register_popup_frame): New.
9758         * dialog-msw.c (mswindows_is_dialog_msg): New.
9759         For supporting kbd traversal in dialog boxes.
9760
9761         * dialog-msw.c (dialog_proc):
9762         Support hitting ESC in dialogs.
9763
9764         * dialog-msw.c (struct):
9765         Common dialog box errors.
9766
9767         * dialog-msw.c (handle_file_dialog_box): New.
9768         Add file dialog code.
9769
9770         * dialog-msw.c (handle_question_dialog_box):
9771         Redo existing code to support new question dialog syntax.
9772
9773         * dialog-msw.c (console_type_create_dialog_mswindows):
9774         We support new dialog console method.
9775
9776         * dialog-msw.c (syms_of_dialog_mswindows):
9777         * dialog-msw.c (vars_of_dialog_mswindows):
9778         New file dialog symbols, vars.
9779
9780         * dialog-x.c:
9781         * dialog-x.c (maybe_run_dbox_text_callback):
9782         * dialog-x.c (dbox_descriptor_to_widget_value):
9783         * dialog-x.c (x_make_dialog_box_internal):
9784         * dialog-x.c (console_type_create_dialog_x):
9785         Mule-ize entire file.
9786         Redo to support question dialog syntax.
9787         [6].
9788
9789         * dialog.c:
9790         * dialog.c (Fmake_dialog_box_internal):
9791         * dialog.c (syms_of_dialog):
9792         Kill old popup-dialog-box, replace with new primitive.
9793         Just call device method or signal error.
9794
9795         * eldap.c (Fldap_open):
9796         * eldap.c (Fldap_search_basic):
9797         * eldap.c (Fldap_add):
9798         * eldap.c (Fldap_modify):
9799         [1].
9800         [7].
9801
9802         * emacs.c:
9803         * emacs.c (make_arg_list_1):
9804         * emacs.c (make_arg_list):
9805         Mule-ize call to dll_init().
9806         [6].
9807         [8].
9808
9809         * emacs.c (make_argc_argv):
9810         * emacs.c (free_argc_argv):
9811         * emacs.c (init_cmdargs):
9812         * emacs.c (main_1):
9813         * emacs.c (Fkill_emacs):
9814         * emacs.c (Fdump_emacs):
9815         Update comments about what can be used in syms_* etc.
9816         Call init_win32() when necessary.
9817         Fix up MS Win dialog box in kill-buffer to actually work right.
9818         [7].
9819
9820         * eval.c:
9821         * eval.c (For):
9822         * eval.c (Fand):
9823         * eval.c (Fprogn):
9824         * eval.c (Fprog1):
9825         * eval.c (Fprog2):
9826         * eval.c (FletX):
9827         * eval.c (Flet):
9828         * eval.c (condition_case_3):
9829         * eval.c (Feval):
9830         * eval.c (function_argcount):
9831         * eval.c (funcall_lambda):
9832         [1].
9833
9834         * eval.c (type_error): New.
9835         * eval.c (maybe_type_error): New.
9836         * eval.c (continuable_type_error): New.
9837         * eval.c (maybe_continuable_type_error): New.
9838         * eval.c (type_error_with_frob): New.
9839         * eval.c (maybe_type_error_with_frob): New.
9840         * eval.c (continuable_type_error_with_frob): New.
9841         * eval.c (maybe_continuable_type_error_with_frob): New.
9842         New functions for use with structured errors.
9843
9844         * event-Xt.c:
9845         * event-Xt.c (x_event_to_emacs_event):
9846         Buttons are now modifiers too.
9847
9848         * event-Xt.c (emacs_Xt_current_event_timestamp):
9849         Implement new event method.
9850         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
9851
9852         * event-msw.c:
9853         * event-msw.c (ntpipe_shove_writer): [5].
9854         * event-msw.c (mswindows_enqueue_mouse_button_event):
9855         * event-msw.c (mswindows_drain_windows_queue):
9856         * event-msw.c (mswindows_wnd_proc): [7].
9857         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
9858         * event-msw.c (mswindows_modifier_state):
9859         Throughout: support new button modifiers.
9860
9861         * event-msw.c (emacs_mswindows_current_event_timestamp):
9862         Implement new event method.
9863         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
9864
9865         * event-stream.c:
9866         * event-stream.c (event_stream_current_event_timestamp): New.
9867         * event-stream.c (maybe_kbd_translate): New functionality.
9868         * event-stream.c (vars_of_event_stream):
9869         Document new kbd-translate-table functionality.
9870
9871         * event-stream.c (Fcurrent_event_timestamp): New.
9872         New primitive for use in fabricated events.
9873         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
9874
9875         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
9876
9877         * events.c:
9878         * events.c (Fmake_event):
9879         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
9880         [1].
9881         [9].
9882
9883         * events.c (format_event_object): fix gcc warnings.
9884
9885         * events.c (Fevent_timestamp): Document new primitives.
9886
9887         * events.c (TIMESTAMP_HALFSPACE): New.
9888
9889         * events.c (Fevent_timestamp_lessp): New.  New primitive for
9890         comparing timestamps correctly (half-space algorithm).
9891
9892         * events.c (Fevent_modifier_bits): Doc fix.
9893
9894         * events.c (Fevent_modifiers): Major doc addition.
9895         * events.c (event_x_y_pixel_internal): Typo fix.
9896         * events.c (syms_of_events): Declare new primitives.
9897
9898         * events.h:
9899         Update long comment for button modifiers, timestamps.
9900
9901         * events.h (struct event_stream):
9902         New current_event_timestamp method.
9903
9904         * extents.c:
9905         * extents.c (extent_in_region_p):
9906         * extents.c (decode_extent):
9907         * extents.c (Fset_extent_parent):
9908         * extents.c (decode_map_extents_flags):
9909         Fix gcc warnings.
9910         [9].
9911
9912         * extents.c (struct extent_at_arg):
9913         * extents.c (decode_extent_at_flag):
9914         * extents.c (extent_at_mapper):
9915         * extents.c (extent_at_bytind):
9916         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
9917         * extents.c (Fextents_at): New primitive. [9].
9918         * extents.c (symbol_to_glyph_layout): [9].
9919         Support new primitive `extents-at'.
9920
9921
9922         * extents.c (get_text_property_bytind):
9923         extent_at_bytind has another arg.
9924         [9].
9925
9926         * extents.c (syms_of_extents): New primitive.
9927
9928         * file-coding.c (Fmake_coding_system): [1].
9929         * file-coding.c (subsidiary_coding_system): fix gcc warning
9930         * file-coding.c (syms_of_file_coding): [2].
9931
9932         * fileio.c (Fexpand_file_name):
9933         * fileio.c (Fsysnetunam):
9934         * fileio.c (Ffile_exists_p):
9935         * fileio.c (Ffile_executable_p):
9936         * fileio.c (Fverify_visited_file_modtime):
9937         Clean up GCPROing.
9938
9939         * fileio.c (syms_of_fileio): [2].
9940
9941         * filelock.c (lock_file_1):
9942         * filelock.c (current_lock_owner):
9943         * filelock.c (lock_if_free):
9944         * filelock.c (lock_file):
9945         * filelock.c (unlock_file):
9946         Clean up GCPROing.
9947
9948         * fns.c (concat): Fix gcc warning.
9949
9950         * fns.c (Fmember):
9951         * fns.c (Fold_member):
9952         * fns.c (Fmemq):
9953         * fns.c (Fold_memq):
9954         * fns.c (memq_no_quit):
9955         * fns.c (Fassoc):
9956         * fns.c (Fold_assoc):
9957         * fns.c (Fassq):
9958         * fns.c (Fold_assq):
9959         * fns.c (assq_no_quit):
9960         * fns.c (Frassoc):
9961         * fns.c (Fold_rassoc):
9962         * fns.c (Frassq):
9963         * fns.c (Fold_rassq):
9964         * fns.c (rassq_no_quit):
9965         * fns.c (Fdelete):
9966         * fns.c (Fold_delete):
9967         * fns.c (Fdelq):
9968         * fns.c (Fold_delq):
9969         * fns.c (delq_no_quit):
9970         * fns.c (Fremassoc):
9971         * fns.c (Fremassq):
9972         * fns.c (remassq_no_quit):
9973         * fns.c (Fremrassoc):
9974         * fns.c (Fremrassq):
9975         * fns.c (remrassq_no_quit):
9976         * fns.c (Freverse):
9977         * fns.c (mapcar1):
9978         [1].
9979
9980         * frame-msw.c (mswindows_init_frame_1):
9981         * frame-msw.c (mswindows_delete_frame):
9982         Register popups with dialog code so keyboard traversing works.
9983
9984         * frame-tty.c (tty_raise_frame_no_select): [1].
9985
9986         * frame-x.c:
9987         * frame-x.c (x_set_frame_text_value):
9988         * frame-x.c (x_set_frame_properties):
9989         * frame-x.c (x_create_widgets):
9990         [7].
9991
9992         * frame.c:
9993         * frame.c (Fmouse_pixel_position): Minor doc fixes.
9994
9995         * frame.h (wrap_frame): New.
9996         Macro like wrap_device.
9997
9998         * general.c:
9999         * general.c (SYMBOL):
10000         * general.c (syms_of_general):
10001         Major reorg.  This is now just a wrapper and symbols themselves
10002         are listed in general-slots.h.
10003
10004         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
10005         * glyphs-msw.c (mswindows_resource_instantiate): [5].
10006
10007         * glyphs-msw.c (mswindows_native_layout_instantiate):
10008         Add DS_CONTROL so keyboard traversal will work.
10009
10010         * glyphs-widget.c:
10011         * glyphs-widget.c (syms_of_glyphs_widget):
10012         Move some symbols to general-slots.h.
10013
10014         * glyphs-x.c:
10015         * glyphs-x.c (xbm_instantiate_1):
10016         * glyphs-x.c (x_xbm_instantiate):
10017         * glyphs-x.c (x_xface_instantiate):
10018         * glyphs-x.c (autodetect_instantiate):
10019         * glyphs-x.c (cursor_font_instantiate):
10020         * glyphs-x.c (x_update_widget):
10021         * glyphs-x.c (x_widget_instantiate):
10022         * glyphs.c (bitmap_to_lisp_data):
10023         * glyphs.c (pixmap_to_lisp_data):
10024         [7].
10025
10026         * glyphs.c (syms_of_glyphs):
10027         [2].
10028
10029         * gui-x.c:
10030         * gui-x.c (print_widget_value):
10031         * gui-x.c (menu_separator_style_and_to_external):
10032         * gui-x.c (add_accel_and_to_external):
10033         * gui-x.c (button_item_to_widget_value):
10034         * gui-x.c (gui_items_to_widget_values_1):
10035         * gui-x.c (gui_items_to_widget_values):
10036         * gui-x.c (syms_of_gui_x):
10037         * gui-x.c (vars_of_gui_x):
10038         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
10039         [9].
10040
10041         * gui-x.h:
10042         Muleize, prototype changes matching gui-x.c.
10043
10044         * gui.c:
10045         * gui.c (separator_string_p):
10046         * gui.c (gui_item_add_keyval_pair):
10047         * gui.c (make_gui_item_from_keywords_internal):
10048         * gui.c (signal_too_long_error):
10049         * gui.c (parse_gui_item_tree_item):
10050         * gui.c (syms_of_gui):
10051         * gui.c (vars_of_gui):
10052         * gui.h:
10053         menu-no-selection-hook moved here (used by MSWin).
10054         Move some symbols to general-slots.h.
10055         [6].
10056         [9].
10057
10058         * insdel.c (get_buffer_pos_char):
10059         * insdel.c (get_buffer_range_char):
10060         Add GC comments.
10061
10062         * keymap.c (keymap_lookup_directly):
10063         * keymap.c (keymap_store):
10064         * keymap.c (ensure_meta_prefix_char_keymapp):
10065         * keymap.c (describe_map):
10066         * keymap.h:
10067         Support new button modifiers.
10068
10069         * lisp-disunion.h (wrap_object):
10070         * lisp-disunion.h (XSETOBJ):
10071         Rename make_obj to wrap_object.
10072
10073         * lisp-union.h:
10074         * lisp-union.h (make_int):
10075         * lisp-union.h (make_char):
10076         Support wrap_object.
10077
10078         * lisp.h:
10079         * lisp.h (LIST_LOOP):
10080         * lisp.h (EXTERNAL_LIST_LOOP):
10081         * lisp.h (LIST_LOOP_2):
10082         * lisp.h (EXTERNAL_LIST_LOOP_1):
10083         * lisp.h (EXTERNAL_LIST_LOOP_2):
10084         * lisp.h (EXTERNAL_LIST_LOOP_3):
10085         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
10086         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
10087         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
10088         * lisp.h (EXTERNAL_ALIST_LOOP_5):
10089         * lisp.h (EXTERNAL_ALIST_LOOP_6):
10090         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
10091         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
10092         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
10093         * lisp.h (struct Lisp_Symbol):
10094         * lisp.h (maybe_continuable_error_with_frob):
10095         Fix up section comments.
10096         Add new types for char to indicate usage.
10097         Delete symbols auto-generated from general-slots.h.
10098         Add prototypes for structured error functions.
10099         Add long comments describing looping macros and change interface
10100         so that lvalues are automatically declared.
10101         Add NO_DECLARE macro in case callers want to declare lvalues
10102         themselves.
10103
10104         * lread.c (read_syntax_error):
10105         * lread.c (continuable_read_syntax_error):
10106         * lread.c (read_structure):
10107         * lread.c (sequence_reader):
10108         * lread.c (read_list_conser):
10109         * lread.c (read_compiled_function):
10110         Rename syntax_error and continuable_syntax_error to avoid clash
10111         with same-named structured error functions.
10112
10113         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
10114         * menubar-msw.c (populate_menu_add_item):
10115         * menubar-msw.c (populate_or_checksum_helper):
10116         [5].
10117         [9].
10118
10119         * menubar-x.c:
10120         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10121         Mule-ize whole file.
10122
10123         * menubar.c (Fnormalize_menu_item_name): Add optimization.
10124
10125         * mule-charset.c (Fmake_charset):
10126         * mule-wnnfns.c (Fwnn_set_param):
10127         [1].
10128
10129         * ntproc.c (create_child):
10130         * ntproc.c (Fwin32_set_current_locale):
10131         Add comments portending doom.
10132
10133         * objects-msw.c:
10134         * objects-msw.c (old_font_enum_callback_2):
10135         * objects-msw.c (font_enum_callback_1):
10136         * objects-msw.c (mswindows_enumerate_fonts):
10137         [5].
10138
10139         * objects-x.c:
10140         * objects-x.c (allocate_nearest_color):
10141         * objects-x.c (x_parse_nearest_color):
10142         * objects-x.c (x_initialize_color_instance):
10143         * objects-x.c (x_print_color_instance):
10144         * objects-x.c (x_finalize_color_instance):
10145         * objects-x.c (x_valid_color_name_p):
10146         * objects-x.c (x_initialize_font_instance):
10147         * objects-x.c (x_print_font_instance):
10148         * objects-x.c (valid_x_font_name_p):
10149         * objects-x.c (truename_via_FONT_prop):
10150         * objects-x.c (truename_via_random_props):
10151         * objects-x.c (truename_via_XListFonts):
10152         * objects-x.c (x_font_truename):
10153         * objects-x.c (x_font_instance_truename):
10154         * objects-x.c (x_font_instance_properties):
10155         * objects-x.c (x_list_fonts):
10156         * objects-x.c (x_find_charset_font):
10157         Mule-ize entire file.
10158         [7].
10159
10160         * objects-x.h:
10161         Mule-verify.
10162
10163         * print.c:
10164         * print.c (std_handle_out_external):
10165         * print.c (debug_print_no_newline):
10166         * print.c (syms_of_print):
10167         Output to all debugger kinds in debug-print.
10168         Fix console-output code under MSWin to actually work.
10169
10170         * process-nt.c (send_signal):
10171         * process-nt.c (nt_create_process):
10172         Use newer Unicode macros.
10173
10174         * process-unix.c (unix_create_process):
10175         * process-unix.c (unix_canonicalize_host_name):
10176         * process-unix.c (unix_open_network_stream):
10177         [7].
10178
10179         * scrollbar-x.c:
10180         Mule-verify.
10181
10182         * search.c (syms_of_search):
10183         [2].
10184
10185         * select-msw.c (mswindows_destroy_selection):
10186         Use LIST_LOOP_2.
10187
10188         * select-x.c (symbol_to_x_atom):
10189         [7].
10190
10191         * select.c (syms_of_select):
10192         [2].
10193
10194         * sound.c (Fplay_sound_file):
10195         [7].
10196
10197         * specifier.c:
10198         * specifier.c (decode_specifier_type):
10199         * specifier.c (Fvalid_specifier_locale_type_p):
10200         * specifier.c (check_valid_locale_or_locale_type):
10201         * specifier.c (decode_locale):
10202         * specifier.c (decode_locale_type):
10203         * specifier.c (decode_locale_list):
10204         * specifier.c (check_valid_domain):
10205         * specifier.c (decode_specifier_tag_set):
10206         * specifier.c (Fcanonicalize_tag_set):
10207         * specifier.c (Fdefine_specifier_tag):
10208         * specifier.c (Fspecifier_tag_predicate):
10209         * specifier.c (check_valid_inst_list):
10210         * specifier.c (check_valid_spec_list):
10211         * specifier.c (decode_how_to_add_specification):
10212         * specifier.c (check_modifiable_specifier):
10213         * specifier.c (specifier_add_spec):
10214         * specifier.c (boolean_validate):
10215         * specifier.c (display_table_validate):
10216         [9].
10217
10218         * specifier.c (syms_of_specifier):
10219         Move some symbols to general-slots.h.
10220         [2].
10221
10222         * symbols.c:
10223         * symbols.c (Fmapatoms):
10224         * symbols.c (Fapropos_internal):
10225         Add GCPROs.
10226
10227         * symbols.c (set_default_buffer_slot_variable):
10228         * symbols.c (set_default_console_slot_variable):
10229         [1].
10230
10231         * symbols.c (defsymbol_massage_name_1):
10232         * symbols.c (defkeyword_massage_name):
10233         * symbols.c (deferror_1):
10234         * symbols.c (deferror):
10235         * symbols.c (deferror_massage_name_and_message):
10236         * symeval.h:
10237         * symeval.h (DEFSYMBOL):
10238         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
10239
10240         * symbols.c (syms_of_symbols):
10241         [2].
10242
10243         * symsinit.h:
10244         * symsinit.h (init_win32): New.
10245         Also new is syms_of_dialog_mswindows.
10246
10247         * syswindows.h:
10248         Add new Unicode macros, missing Cygwin wide-char functions,
10249         convenience conversion macros for Qmswindows_tstr, macros for
10250         encapsulating required MSWin <-> Cygwin filename conversions,
10251         prototype for dynamically-extracted (not in NT 3.51) functions.
10252
10253         * toolbar-x.c:
10254         Mule-verify.
10255
10256         * tooltalk.c (Fadd_tooltalk_message_arg):
10257         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
10258         * tooltalk.c (Fadd_tooltalk_pattern_arg):
10259         [7].
10260
10261         * tooltalk.c (syms_of_tooltalk):
10262         [2].
10263
10264         * unexnt.c:
10265         * unexnt.c (unexec):
10266         Fix up headers, declaration of unexec() to be more standard.
10267
10268 2000-07-20  Martin Buchholz  <martin@xemacs.org>
10269
10270         * offix.h: Revert change to guard macros - they're used in offix.c!
10271
10272 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10273
10274         * lisp.h: Defsubred Fdelete.
10275
10276         * console-msw.h:  (msprinter_default_printer): Added.
10277
10278         * console-msw.c (msprinter_canonicalize_console_connection):
10279         (msprinter_canonicalize_device_connection): Added.
10280
10281         * device-msw.c (msprinter_default_printer):
10282         (Fmswingows_get_default_printer):
10283         (signal_enum_priner_error):
10284         (Fmswingows_printer_list): Added.
10285
10286 2000-07-19  Martin Buchholz <martin@xemacs.org>
10287
10288         * XEmacs 21.2.35 is released.
10289
10290 2000-07-19  Martin Buchholz  <martin@xemacs.org>
10291
10292         * select-x.c (x_handle_selection_request):
10293         Text selected in xemacs and pasted into xterm failed to appear.
10294         Spelling fixes and cosmetic changes.
10295
10296 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10297
10298         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
10299         XEmacs frame (fix for doubling chars in dialog boxes).
10300
10301 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
10302
10303         * select.c (select_convert_in, select_convert_out):
10304         Don't call intern() every time.
10305
10306         * select.c (Qselect_convert_in, Qselect_convert_out): New.
10307         * select.c (vars_of_select): Initialise them.
10308
10309 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
10310
10311         * select.c (selection-coercible-types): New.
10312
10313         * select.c (own-selection-internal):
10314         * select.c (get-selection-internal):
10315         MULE bug fix - these should default to COMPOUND_TEXT and not
10316         STRING for MULE. I think.
10317
10318         * select.c (select_convert_out): Use selection-coercible-types
10319         to find types that we can attempt to perform coercions on.
10320
10321 2000-07-18  Martin Buchholz  <martin@xemacs.org>
10322
10323         * mule-wnnfns.c:
10324         * mule-canna.c:
10325         Add coding: cookie to identify encoding.
10326
10327         * mule-canna.c (CANNA_mode_keys): make static.
10328         Use proper prototypes, even for functions of no arguments.
10329         Remove external prototype for Fding().
10330
10331         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
10332
10333         * select.c (syms_of_select): Add missing DEFSUBR.
10334
10335 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
10336
10337         * select.c (get_selection_internal, own_selection_internal):
10338         Make the type default to STRING, rather than placing a nil type
10339         into Vselection_alist.
10340
10341 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
10342
10343         * gpmevent.c (tty_selection_exists_p):
10344         * gpmevent.c (tty_own_selection):
10345         Updated parameter lists.
10346
10347 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
10348
10349         * select.h (selection-alist): Removed declaration.
10350
10351         * select.h (get_local_selection):
10352         * select.c (get_local_selection):
10353         Made static.
10354
10355         * select.h (convert_selection): Removed declaration.
10356         * select.c (convert_selection): Removed.
10357         This function belongs in Lisp.
10358
10359         * select.h (select_convert_in): Declare.
10360         * select.h (select_convert_out): Declare.
10361         * select.c (select_convert_in): New.
10362         * select.c (select_convert_out): New.
10363         New conversion functions for other files to call.
10364
10365         * select.h (select_notify_buffer_kill): Declare.
10366         * select.c (select_notify_buffer_kill): New.
10367         New functions that get called from kill-buffer.
10368
10369         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
10370         X-specific lisp code.
10371
10372         * select.h: Declare some of the lisp-visible functions for
10373         external use.
10374
10375         * select.c (clean_local_selection_data): Removed. This was
10376         a disgusting function, and previously should have been in
10377         select-x.c in any case. The functionality is now provided
10378         in select-convert-from-integer (select.el).
10379
10380         * select.c (available-selection-types): Fixed stupidity where
10381         INTEGER and ATOM got added twice. Also add STRING when we see an
10382         extent.
10383
10384         * select.c (get-selection-internal): Removed symbol stripping. No
10385         longer causes conversion when data comes from the internal cache.
10386
10387         * select.c (syms_of_select): Added new functions.
10388
10389         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
10390         error checking - previously this called abort!
10391
10392         * select-x.c (x_own_selection): Changed comment.
10393
10394         * select-x.c (x_handle_selection_request): Use select_convert_out.
10395         Don't mess with selection-alist; it's an internal variable of select.c.
10396
10397         * select-x.c (x_get_foreign_selection): Use select_convert_in.
10398
10399         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
10400         rather than messing with selection-alist.
10401
10402         * select-msw.c (mswindows_get_foreign_selection):
10403         Use TO_INTERNAL_FORMAT rather than hacking.
10404
10405 2000-07-14  Martin Buchholz  <martin@xemacs.org>
10406
10407         * process-unix.c (unix_open_multicast_group):
10408         (unix_open_multicast_group): Remove useless casts.
10409
10410 2000-07-13  Martin Buchholz  <martin@xemacs.org>
10411
10412         * sound.c (Fplay_sound): Fix `unused variable' warning.
10413
10414         * emacs.c (main): Use correct type for _environ on SCO5.
10415
10416 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
10417
10418         * console.h (own_selection_method):
10419         * console.h (selection_exists_p_method):
10420         * console.h (available_selection_types_method): New.
10421         * console.h (register_selection_data_type_method): New.
10422         * console.h (selection_data_type_name): New.
10423
10424         * console-msw.h (mswindows_destroy_selection): Declare it.  New
10425         function & alist to track GlobalAlloc()'d handles that need
10426         releasing when the clipboard data gets replaced or emptied.
10427
10428         * event-msw.c (mswindows_wnd_proc): Call it.
10429
10430         * lisp.h, general.c (Qappend): New symbol representing a
10431         `how-to-add' mode.
10432
10433         * select.c (own-selection-internal):
10434         * select.c (selection-exists-p):
10435         * select.c (available-selection-types): New.
10436         * select.c (register-selection-data-type): New.
10437         * select.c (selection-data-type-name): New.  New functions to deal
10438         with device-specific selection data formats.
10439         * select.c (selection-converter-out-alist): Renamed.
10440         * select.c (selection-converter-in-alist): New.
10441         * select.c (selection-appender-alist): New.  Added new alists.
10442         * select.c (syms_of_select, vars_of_select): Added new symbols &
10443         variables.
10444         * select.c (get_local_selection): Split.
10445         * select.c: Removed spurious type checking - selections may now be
10446         of any type, not just strings.
10447         * select.c (own-selection-internal):
10448
10449         * select.h, select.c (convert_selection): New. Created
10450         convert_selection() function based on get_local_selection().
10451         * select.h, select.c (QCF_*): New symbols representing mswindows
10452         clipboard formats.
10453         * select.h, select.c (Qreplace_all, Qreplace_existing): New
10454         symbols representing `how-to-add' modes.
10455
10456         * select-msw.c (x_sym_p): New.
10457         * select-msw.c (symbol_to_ms_cf): New.
10458         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
10459         symbols & clipboard formats. Can also handle string names.
10460         * select-msw.c (mswindows_own_selection):
10461         * select-msw.c (mswindows_selection_exists_p):
10462         Added `data-type' parameter. Use it.
10463         * select-msw.c (mswindows_available_selection_types): New.
10464         * select-msw.c (mswindows_register_selection_data_type): New.
10465         * select-msw.c (mswindows_selection_data_type_name): New.
10466         * select-msw.c (mswindows_own_selection):
10467         * select-msw.c (mswindows_get_foreign_selection):
10468         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
10469         * select-msw.c (console_create_select_mswindows): Added new methods.
10470         * select-msw.c (mswindows_destroy_selection): New.
10471         * select-msw.c (Vhandle_alist): New list.
10472         * select-msw.c (mswindows_own_selection):
10473
10474         * select-x.c (x_own_selection):
10475         * select-x.c (x_selection_exists_p):
10476         * select-x.c: Added some comments about maybe using new
10477         functionality.
10478         * select-x.c (x_own_selection):
10479
10480         * specifier.c: Remove definition of Qappend (now in general.c)
10481         * specifier.c (syms_of_specifier): Remove Qappend.
10482
10483 2000-07-12  Martin Buchholz  <martin@xemacs.org>
10484
10485         * config.h.in: Add socklen_t.
10486
10487         * s/decosf4-0.h: No special compiler flags needed or desired.
10488         In particular, undefine _BSD for DEC OSF 4.0.
10489
10490 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10491
10492         * redisplay-msw.c (msprinter_frame_output_end): Added.
10493         (console_type_create_redisplay_mswindows): Referred the above.
10494
10495         * frame.c (setup_frame_without_minibuffer): Do not create a
10496         default minibuffer frame on a printer device.
10497
10498         * frame-msw.c (apply_dc_geometry): Added.
10499         (msprinter_start_page):
10500         (msprinter_init_frame_3):
10501         (msprinter_eject_page): Use it.
10502
10503         * console-msw.h (struct msprinter_frame): Added pix_left and top,
10504         and removed residual duplex and orientation properties.
10505
10506 2000-07-11  Martin Buchholz  <martin@xemacs.org>
10507
10508         * eval.c (function_argcount): Work around a DEC CC compiler bug.
10509
10510         * unexalpha.c: Remove system prototypes from C sources!
10511
10512 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
10513
10514         * eval.c: Remove references to M-x edit-options in DEFUNs for
10515         `defvar' and `defconst'.
10516
10517 2000-07-09  Martin Buchholz  <martin@xemacs.org>
10518
10519         * config.h.in: Remove SMART_INCLUDE hackery.
10520
10521         PostgreSQL hacking:
10522         * config.h.in: Don't use SMART_INCLUDE.
10523
10524         * postgresql.h: Include libpq-fe.h here.  Fix typo.
10525         * inline.c: Simply #include "postgresql.h"
10526         * postgresql.c:
10527         - Don't use SMART_INCLUDE
10528         - Use simply "const".
10529         - Use standard doc string conventions.
10530         - Use correct type for result of PQstatus.
10531
10532 2000-07-09  Martin Buchholz  <martin@xemacs.org>
10533
10534         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
10535
10536         C++ compilation changes.
10537         * config.h.in (EXTERN_C): Define.
10538         * config.h.in (not): This is also a C++ keyword.
10539         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
10540         * cm.c: Use EXTERN_C.
10541         * redisplay-tty.c: Use EXTERN_C.
10542         * sysdep.c: Use EXTERN_C.  Remove Gould support.
10543
10544 2000-07-09  Martin Buchholz  <martin@xemacs.org>
10545
10546         * general.c: Remove duplicate definition for Qfunction.
10547
10548 2000-07-08  Ben Wing  <ben@xemacs.org>
10549
10550         * device-msw.c (msprinter_init_device):
10551         * device-msw.c (sync_printer_with_devmode):
10552         * device-msw.c (handle_devmode_changes):
10553         * device-msw.c (print_dialog_worker):
10554         * device-msw.c (Fmsprinter_apply_settings):
10555         * device-msw.c (hash_devmode):
10556         * device-msw.c (Fmsprinter_settings_despecialize):
10557         use Qmswindows_tstr, not Qctext.
10558
10559         * vm-limit.c (check_memory_limits):
10560         avoid infinite loop printing warning messages.
10561
10562 2000-07-05  Craig Lanning  <lanning@scra.org>
10563
10564         * Makefile.in.in: Add support for including the Windows resources
10565         when building with the cygwin and mingw targets.
10566
10567         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
10568         not set or not correct.
10569         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
10570         (init_initial_directory): Don't try to use $PWD on the
10571         WIN32_NATIVE target.
10572
10573         * s\cygwin32.h:
10574         [[Add -mwindows to eliminate console window.]] not required --ben
10575         (HAVE_NATIVE_SOUND): removed; now handled by configure.
10576         (MAIL_USE_POP): removed; now handled by configure.
10577
10578         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
10579         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
10580         (HAVE_NATIVE_SOUND): removed; now handled by configure.
10581         (MAIL_USE_POP): removed; now handled by configure.
10582         (ENCAPSULATE_STAT): from Dan Holmsand, added.
10583         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
10584         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
10585         constant string.
10586         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
10587         up from <winsock.h> via systime.h.
10588         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
10589         (getpagesize): from Dan Holmsand, added.
10590         Added #endif which was left dangling by Ben's mega patch; added
10591         comment to help prevent this in the future.
10592
10593         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
10594
10595 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10596
10597         * console-msw.h (struct mswindows_device): Removed unnecessary
10598         cached device geometry values.
10599         Added update_tick and an accessor macro.
10600         (Lisp_Devmode): Added lrecord declaration.
10601         (struct msprinter_device): Contain devmode as a Lisp object.
10602         Added mswindows_get_selected_frame_hwnd();
10603
10604         * console.h (struct console_methods): Indentation nitpicking.
10605
10606         * device-msw.c (mswindows_init_device): Do not initialize geometry
10607         cache. Initialize update tick.
10608         (mswindows_device_system_metrics): Ask the device for its geometry.
10609         (global_free_2_maybe):
10610         (devmode_to_hglobal):
10611         (handle_printer_changes):
10612         (ensure_not_printing):
10613         (print_dialog_worker):
10614         (Fmsprinter_print_setup_dialog):
10615         (Fmsprinter_print_dialog):
10616         (plist_get_margin):
10617         (plist_set_margin):
10618         (Fmsprinter_page_setup_dialog): Added functions.
10619         (sync_printer_with_devmode):
10620         (handle_devmode_changes):
10621         (Fmsprinter_get_settings):
10622         (Fmsprinter_select_settings):
10623         (Fmsprinter_apply_settings):
10624         (allocate_devmode):
10625         (Fmsprinter_settings_copy):
10626         (Fmsprinter_settings_despecialize):
10627         (print_devmode):
10628         (finalize_devmode):
10629         (equal_devmode):
10630         (hash_devmode): Added functions
10631         (syms_of_device_mswindows): Init devmode lrecord class.
10632
10633         * device.h: Added an exfun for find-device.
10634
10635         * event-msw.c (mswindows_wnd_proc): Do not update the cached
10636         geometry; although, recreate the device compatible DC.
10637
10638         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
10639         (msprinter_init_frame_3):
10640         (msprinter_frame_property):
10641         (msprinter_internal_frame_property_p):
10642         (msprinter_frame_properties):
10643         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
10644         print job properties (will move to device settings).
10645
10646         * lisp.h: Added symbols.
10647
10648         * general.c (syms_of_general): Declared them.
10649
10650         * hash.c (string_hash): Added.
10651
10652         * lrecord.h (lrecord_type): Added devmode lrecord type.
10653
10654 2000-07-02  Mike Sperber <mike@xemacs.org>
10655
10656         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
10657         FreeBSD 4.0.
10658
10659 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
10660
10661         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
10662         integer.
10663
10664 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
10665
10666         * data.c (Fstring_to_number): Don't recognize floating point if
10667         base is not 10.
10668
10669 2000-06-22  Martin Buchholz  <martin@xemacs.org>
10670
10671         * glyphs-widget.c (tab_control_query_geometry):
10672         (widget_query_geometry):
10673         (button_query_geometry):
10674         * glyphs.c (text_query_geometry):
10675         Enforce type correctness.
10676
10677 2000-06-18  Martin Buchholz  <martin@xemacs.org>
10678
10679         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
10680         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
10681
10682 2000-06-17  Martin Buchholz  <martin@xemacs.org>
10683
10684         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
10685         conflicts with gcc's fixincluded version of FOO.h.
10686
10687         * glyphs.h (image_instance_geometry): Remove trailing `,'
10688
10689 2000-06-08  Mike Alexander  <mta@arbortext.com>
10690
10691         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
10692         (shove_thread): Don't write the same output twice
10693         (make_ntpipe_output_stream): Increase priority of shove thread
10694         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
10695         chance to run
10696         (ntpipe_shove_closer): Don't delete the pipe until we're done with
10697         it.
10698
10699 2000-06-12  Ben Wing  <ben@xemacs.org>
10700
10701         * s\mingw32.h (sigset):
10702         * s\windowsnt.h (sigset):
10703         rename msw_ to mswindows_ for consistency with general convention.
10704
10705 2000-06-12  Ben Wing  <ben@xemacs.org>
10706
10707         * console-msw.c:
10708         * console-msw.c (mswindows_get_console_hwnd):
10709         * console-msw.c (mswindows_ensure_console_allocated):
10710         * console-msw.c (mswindows_hide_console):
10711         * console-msw.c (mswindows_show_console):
10712         * console-msw.c (mswindows_ensure_console_buffered):
10713         * console-msw.c (mswindows_output_console_string):
10714         * console-msw.c (mswindows_windows9x_p):
10715         * console-msw.h:
10716         * device-msw.c (mswindows_get_workspace_coords):
10717         * device-msw.c (mswindows_device_system_metrics):
10718         * dialog-msw.c (mswindows_popup_dialog_box):
10719         * event-msw.c (mswindows_wnd_proc):
10720         * frame-msw.c (mswindows_size_frame_internal):
10721         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
10722         * menubar-msw.c (displayable_menu_item):
10723         * menubar-msw.c (mswindows_char_is_accelerator):
10724         * nt.c:
10725         * nt.c (mswindows_sigset):
10726         * nt.c (mswindows_sigrelse):
10727         * nt.c (mswindows_sigpause):
10728         * nt.c (mswindows_raise):
10729         * nt.c (timer_proc):
10730         * ntproc.c:
10731         * ntproc.c (find_child_console):
10732         * ntproc.c (sys_kill):
10733         * print.c:
10734         * print.c (std_handle_out_external):
10735         * process-nt.c (find_child_console):
10736         * process-nt.c (send_signal_the_95_way):
10737         * process-nt.c (ensure_console_window_exists):
10738         * process-nt.c (nt_create_process):
10739         * syssignal.h:
10740         rename msw_ to mswindows_ for consistency with general convention.
10741
10742         * emacs.c:
10743         * dumper.c:
10744         include nt.h, not syswindows.h.
10745
10746         * nt.c (mswindows_fstat):
10747         * nt.c (mswindows_stat):
10748         prefix mswindows_ instead of attempting to directly override the
10749         library functions.  fix declarations.
10750
10751         * nt.h:
10752         include syswindows.h.  move some sysdep.h stuff here.
10753
10754         * ntheap.h:
10755         include syswindows.h, not <windows.h>.
10756
10757         * ntplay.c:
10758         clean up headers.
10759
10760         * sysdep.c:
10761         clean up headers.
10762
10763         * sysdep.c (sys_fstat):
10764         * sysdep.c (sys_stat):
10765         call mswindows versions when appropriate.
10766
10767         * sysdep.h:
10768         move mswin decls to nt.h.
10769
10770         * syswindows.h:
10771         add long comment describing appropriate use of the various windows
10772         headers.
10773
10774 2000-06-11  Ben Wing  <ben@xemacs.org>
10775
10776         * device-x.c: Correct doc string for sixth arg of x-get-resource.
10777
10778 2000-06-10  Ben Wing  <ben@xemacs.org>
10779
10780         * Makefile.in.in (release):
10781         Correction to make sure xemacs.exe always dumped when correct.
10782
10783         * alloca.c:
10784         * balloon_help.c:
10785         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
10786
10787         * buffer.c (set_buffer_internal):
10788         [[[[2]]]]: Remove HAVE_FEP code.
10789
10790         * buffer.c (init_initial_directory):
10791         [3].
10792
10793         * bytecode.c:
10794         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
10795         individual files.
10796
10797         * callproc.c:
10798         * callproc.c (call_process_cleanup):
10799         * callproc.c (Fold_call_process_internal):
10800         * callproc.c (child_setup):
10801         * callproc.c (getenv_internal):
10802         * callproc.c (init_callproc):
10803         * callproc.c (vars_of_callproc):
10804         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
10805         __CYGWIN32__ -> CYGWIN.
10806         DOS_NT -> WIN32_NATIVE.
10807         Remove MSDOS support/references, converting to WIN32_NATIVE
10808           where correct.
10809         __MINGW32__ -> MINGW.
10810         Fix windows.h includes.
10811         Remove bogus HAVE_NTGUI.
10812
10813         * config.h.in:
10814         [2].
10815
10816         * console-msw.c:
10817         mswindows_message_outputted added for use in allowing startup
10818         errors on the console to be seen.
10819
10820         * console-msw.c (msw_ensure_console_allocated):
10821         * console-msw.c (msw_output_console_string):
10822         * console-msw.c (DHEADER):
10823         * console-msw.c (DOPAQUE_DATA):
10824         * console-msw.c (DEVENT):
10825         * console-msw.c (DCONS):
10826         * console-msw.c (DCONSCDR):
10827         * console-msw.c (DSTRING):
10828         * console-msw.c (DVECTOR):
10829         * console-msw.c (DSYMBOL):
10830         * console-msw.c (DSYMNAME):
10831         Fix warnings.
10832
10833         * console-stream.c (stream_init_console):
10834         Fix text/binary problems.
10835
10836         * device-msw.c:
10837         * device-msw.c (mswindows_finish_init_device):
10838         * device-msw.c (mswindows_delete_device):
10839         [1].
10840
10841         * device.c (handle_asynch_device_change):
10842         [3].
10843
10844         * dgif_lib.c:
10845         * dgif_lib.c (DGifOpenFileName):
10846         * dgif_lib.c (DGifOpenFileHandle):
10847         * dgif_lib.c (DGifGetLine):
10848         * dgif_lib.c (DGifGetPixel):
10849         Added config.h/lisp.h, fix up includes.
10850         [1].
10851
10852         * dired-msw.c:
10853         [4].
10854
10855         * dired.c:
10856         * dired.c (file_name_completion):
10857         * dired.c (Ffile_attributes):
10858         * dired.c (syms_of_dired):
10859         [1].
10860
10861         * dumper.c:
10862         * dumper.c (pdump_file_unmap):
10863         * dumper.c (pdump_load):
10864         [1].
10865
10866         * editfns.c:
10867         * editfns.c (Ftemp_directory):
10868         * editfns.c (user_login_name):
10869         * editfns.c (Fuser_real_login_name):
10870         * editfns.c (get_home_directory):
10871         [1].
10872
10873         * elhash.c (finish_marking_weak_hash_tables):
10874         [[[[5]]]]: Fix GCC warnings.
10875
10876         * emacs.c:
10877         * emacs.c (mswindows_handle_hardware_exceptions):
10878         * emacs.c (make_arg_list_1):
10879         * emacs.c (main_1):
10880         * emacs.c (Fkill_emacs):
10881         * emacs.c (Fdump_emacs):
10882         [1].
10883         Fix problems with nested crashes, add long comment.
10884
10885         * event-Xt.c (init_event_Xt_late):
10886         [1].
10887
10888         * event-msw.c:
10889         * event-msw.c (mswindows_dde_callback):
10890         * event-msw.c (mswindows_handle_sticky_modifiers):
10891         * event-msw.c (mswindows_wnd_proc):
10892         [1].
10893         [5].
10894
10895         * events.c (character_to_event):
10896         [1].
10897
10898         * fileio.c:
10899         * fileio.c (Ffile_name_directory):
10900         * fileio.c (Ffile_name_nondirectory):
10901         * fileio.c (directory_file_name):
10902         * fileio.c (Fexpand_file_name):
10903         * fileio.c (Fsubstitute_in_file_name):
10904         * fileio.c (Ffile_name_absolute_p):
10905         * fileio.c (check_executable):
10906         * fileio.c (Ffile_readable_p):
10907         * fileio.c (Ffile_accessible_directory_p):
10908         * fileio.c (Ffile_modes):
10909         * fileio.c (Funix_sync):
10910         * fileio.c (vars_of_fileio):
10911         [1]. [4].
10912
10913         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
10914
10915         Expand getdefdir defn.
10916         Fix bogus rename() comment.
10917
10918         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
10919         to use standard XEmacs include files, e.g. sysfile.h, rather
10920         than system-specific includes.
10921
10922         * fns.c:
10923         * fns.c (Fsubseq):
10924         [5]. [6].
10925
10926         * frame.c (vars_of_frame):
10927         [1].
10928
10929         * getloadavg.c:
10930         * getloadavg.c (getloadavg):
10931         [1]. [6].
10932         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
10933         (We don't use it elsewhere in the code; just add a comment.)
10934
10935         * gif_io.c:
10936         [6].
10937         Add config.h.
10938
10939         * glyphs-msw.c:
10940         * glyphs-msw.c (mswindows_resource_instantiate):
10941         [1].
10942
10943         * glyphs-x.c (x_native_layout_instantiate):
10944         [5].
10945
10946         * gui-msw.c (Fmswindows_shell_execute):
10947         [1].
10948
10949         * insdel.c:
10950         [4].
10951
10952         * lisp.h:
10953         [4]. [5].
10954
10955         * lread.c (locate_file_in_directory_mapper):
10956         [1].
10957
10958         * lstream.c:
10959         [4].
10960
10961         * mem-limits.h:
10962         * mem-limits.h (get_lim_data):
10963         [1].
10964
10965         * menubar-msw.c:
10966         [4].
10967
10968         * ndir.h:
10969         [1].
10970
10971         * nt.c:
10972         * nt.c (getwd):
10973         * nt.c (closedir):
10974         * nt.c (rva_to_section):
10975         * nt.c (mswindows_executable_type):
10976         [1]. [6].
10977         Fix closedir() defn.
10978
10979         * nt.h:
10980         [[[[8]]]]: *_OK defs moved to sysfile.h.
10981
10982         * ntproc.c:
10983         [6]. [7].
10984
10985         * objects-x.c:
10986         [4].
10987
10988         * print.c:
10989         * print.c (std_handle_out_external):
10990         [1]. [4].
10991
10992         * process-nt.c:
10993         * process-nt.c (nt_create_process):
10994         [6].
10995         try to fix process quoting somewhat.
10996
10997         * process-unix.c (unix_create_process):
10998         [1].
10999
11000         * process.c:
11001         * process.c (vars_of_process):
11002         Add Vnull_device.
11003
11004         * process.h:
11005         [1].
11006
11007         * realpath.c:
11008         * realpath.c (xrealpath):
11009         [1].
11010
11011         * redisplay-tty.c (init_tty_for_redisplay):
11012         [3].
11013
11014         * redisplay.c:
11015         [4]. [6].
11016
11017         * scrollbar-msw.c:
11018         [4].
11019
11020         * sheap.c:
11021         * sheap.c (more_static_core):
11022         * sheap.c (report_sheap_usage):
11023         [5]. [6].
11024
11025         * signal.c:
11026         * signal.c (alarm_signal):
11027         [1]. [6].
11028
11029         * sound.c:
11030         [6].
11031
11032         * strftime.c:
11033         * strftime.c (zone_name):
11034         [1]. [5].
11035
11036         * symsinit.h (init_sunpro):
11037         [1].
11038
11039         * syscommctrl.h:
11040         commctrl.h not in Cygwin b20.1.
11041
11042         * sysdep.c:
11043         * sysdep.c (endif):
11044         * sysdep.c (sys_subshell):
11045         * sysdep.c (init_baud_rate):
11046         * sysdep.c (emacs_get_tty):
11047         * sysdep.c (emacs_set_tty):
11048         * sysdep.c (tty_init_sys_modes_on_device):
11049         * sysdep.c (init_system_name):
11050         * sysdep.c (sys_open):
11051         * sysdep.c (interruptible_open):
11052         * sysdep.c (sys_fopen):
11053         * sysdep.c (sys_mkdir):
11054         * sysdep.c (sys_rename):
11055         * sysdep.c (get_process_times_1):
11056         [1]. [6].
11057
11058         * sysdep.h:
11059         [1].
11060
11061         * sysdir.h:
11062         * sysdir.h (DIRENTRY_NONEMPTY):
11063         [1]. [6].
11064
11065         * sysdll.c (dll_init):
11066         * sysdll.h:
11067         [1].
11068
11069         * sysfile.h:
11070         [1]. [6]. [8].
11071         added text/binary defs.
11072
11073         * sysfloat.h:
11074         [1].
11075
11076         * sysproc.h:
11077         * sysproc.h (EDESTADDRREQ):
11078         * sysproc.h (poll_fds_for_input):
11079         [1]. [6].
11080
11081         * syspwd.h:
11082         [6].
11083
11084         * syssignal.h:
11085         [1].
11086
11087         * systime.h:
11088         [1]. [6].
11089
11090         * systty.h:
11091         [1].
11092
11093         * syswindows.h:
11094         [1].
11095         Always define WIN32_LEAN_AND_MEAN.
11096
11097         * unexcw.c (unexec):
11098         [5].
11099
11100         * unexec.c:
11101         * unexec.c (copy_text_and_data):
11102         * unexec.c (adjust_lnnoptrs):
11103         [1].
11104
11105         * unexnt.c:
11106         * unexnt.c (_start):
11107         [1].
11108
11109 2000-06-07  Ben Wing  <ben@xemacs.org>
11110
11111         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
11112         was used only as a model.  We've long since extracted any useful
11113         logic or code out of this. (I just did an exhaustive search.)
11114
11115         * s\msdos.h: Removed.
11116
11117         * s\windows95.h: Removed.
11118
11119 2000-06-10  Ben Wing  <ben@xemacs.org>
11120
11121         * s\cygwin32.h:
11122         [1]. [5].
11123         Don't use extern with fun defs.
11124
11125         * s\mingw32.h:
11126         [1]. [7].
11127         Remove nt\inc include.
11128         Remove getdisk, getdefdir. (The former is unused, the latter
11129         expanded in fileio.h.)
11130
11131         * s\windowsnt.h:
11132         * s\windowsnt.h (WIN32_NATIVE):
11133         * s\windowsnt.h (HAVE_STRCASECMP):
11134         [1]. [7].
11135         Add long comment about preprocessor changes.
11136         Remove getdisk, getdefdir. (The former is unused, the latter
11137         expanded in fileio.h.)
11138
11139 2000-06-10  Ben Wing  <ben@xemacs.org>
11140
11141         * m\arm.h:
11142         * m\delta.h:
11143         * m\intel386.h:
11144         * m\sequent.h:
11145         * m\template.h:
11146         * m\windowsnt.h:
11147         [1].
11148         Remove bogus/unused NO_SOCK_SIGIO.
11149
11150 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
11151
11152         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
11153         not an Emchar.
11154
11155 2000-06-04  Mike Sperber <mike@xemacs.org>
11156
11157         * casetab.c (set_case_table): For `set-standard-case-table',
11158         actually deposit the new case tables where the rest of XEmacs can
11159         see them.
11160
11161 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
11162
11163         * data.c (Faset): Don't cast XCHAR() to unsigned char.
11164
11165 2000-06-05  Ben Wing  <ben@xemacs.org>
11166
11167         * callproc.c (child_setup): Don't do close_load_descs() under
11168         MS Windows.  Put in a comment explaining why.
11169
11170 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
11171
11172         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
11173         Toolkit shell" which breaks `kill-compilation' on Windows NT
11174         native, retaining STDERR handling improvements.
11175
11176 2000-06-01  Andreas Jaeger  <aj@suse.de>
11177
11178         * s/s390.h: Support for S390, based on a patch by Martin
11179         Schwidefsky <schwidefsky@de.ibm.com>.
11180
11181 2000-05-30  Andy Piper  <andy@xemacs.org>
11182
11183         * window.c (allocate_window):
11184         (make_dummy_parent):
11185         (Fset_window_configuration): use new hashtable type.
11186
11187         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
11188         (struct image_instantiator_methods):
11189         (struct Lisp_Image_Instance): make instance geometry signed.
11190
11191         * glyphs.c (instantiate_image_instantiator):
11192         (image_instance_query_geometry):
11193         (image_instance_layout):
11194         (image_instance_layout):
11195         (query_string_geometry):
11196         (text_query_geometry):
11197         (image_instantiate):
11198         (image_instantiate):
11199         (cache_subwindow_instance_in_frame_maybe):
11200         (subwindow_query_geometry): make instance geometry signed.
11201
11202         * glyphs-widget.c (widget_query_geometry):
11203         (widget_layout):
11204         (button_query_geometry):
11205         (tree_view_query_geometry):
11206         (tab_control_query_geometry):
11207         (layout_query_geometry):
11208         (layout_layout):
11209         (native_layout_layout): make instance geometry signed.
11210
11211 2000-05-29  Olivier Galibert  <galibert@pobox.com>
11212
11213         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
11214         constant.
11215
11216         * general.c (syms_of_general): Add Qfull_assoc symbol.
11217
11218         * data.c (finish_marking_weak_lists): Mark full-assoc lists
11219         correctly.
11220         (decode_weak_list_type): Decode full-assoc type.
11221         (encode_weak_list_type): Encode full-assoc type.
11222         (Fmake_weak_list): Update doc string.
11223
11224 2000-05-30  Andy Piper  <andy@xemacs.org>
11225
11226         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
11227
11228         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
11229         (decode_hash_table_weakness): ditto.
11230         (Fhash_table_weakness): ditto.
11231         (Fhash_table_type): ditto.
11232         (finish_marking_weak_hash_tables): ditto.
11233         (hash_table_weakness_validate): ditto.
11234         (syms_of_elhash): ditto.
11235
11236 2000-05-28  Martin Buchholz <martin@xemacs.org>
11237
11238         * XEmacs 21.2.34 is released.
11239
11240 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
11241
11242         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
11243         start cache.
11244         (updating_line_start_cache): Gone.
11245         (regenerate_window): Replace resetting of VERTICAL_CLIP by
11246         generic code to force a minimum of 1 line laid out in the
11247         CMOTION_DISP case.
11248
11249 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
11250
11251         * glyphs.c (instantiate_image_instantiator): Check for initialized
11252         height & width no longer special cases IMAGE_NOTHING.
11253         (nothing_instantiate): Set height and width of instance.
11254
11255 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
11256
11257         * unexelf.c (unexec): Search for ".data" section.
11258         Initialize new_data2_offset from old_data_index.
11259         Remove redundant check for ElfW.
11260
11261 2000-05-23  Andy Piper  <andy@xemacs.org>
11262
11263         * glyphs.c (get_image_instantiator_governing_domain): allow more
11264         specific domains as the governing domain rather than expecting an
11265         exact match. This fixes problems with layouts.
11266
11267 2000-05-22  Andy Piper  <andy@xemacs.org>
11268
11269         * redisplay-output.c (compare_runes): check for non-images
11270
11271         * glyphs.c (set_glyph_dirty_p): ditto.
11272         (update_glyph_cachel_data): ditto.
11273
11274         * glyphs-widget.c (layout_post_instantiate): ditto.
11275         (layout_post_instantiate): ditto.
11276
11277         * event-msw.c (mswindows_wnd_proc): warning removal.
11278
11279 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
11280
11281         * s\mingw32.h: Added #undef for CLASH_DETECTION.
11282
11283         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
11284
11285         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
11286
11287         * nt.c (rva_to_section): mingw32 needs rva_to_section.
11288         (mswindows_executable_type): mingw32 now has enough headers for
11289         this to work.
11290
11291 2000-05-20  Andy Piper  <andy@xemacs.org>
11292
11293         * console-msw.c (mswindows_output_last_error): ; -> ,
11294
11295 2000-05-12  Andy Piper  <andy@xemacs.org>
11296
11297         * console-msw.c (FROB): compare ints with ints.
11298
11299 2000-05-11  Andy Piper  <andy@xemacs.org>
11300
11301         * glyphs-x.c (x_finalize_image_instance): make minimal build
11302         happy.
11303
11304 2000-05-20  Ben Wing  <ben@xemacs.org>
11305
11306         * event-Xt.c:
11307         * event-Xt.c (vars_of_event_Xt):
11308         move modifier-keys-are-sticky to event-stream.c.
11309
11310         * event-msw.c:
11311         * event-msw.c (mswindows_enqueue_mouse_button_event):
11312         * event-msw.c (key_needs_default_processing_p):
11313         * event-msw.c (XEMSW_LCONTROL):
11314         * event-msw.c (mswindows_handle_sticky_modifiers):
11315         * event-msw.c (FROB):
11316         * event-msw.c (clear_sticky_modifiers):
11317         * event-msw.c (output_modifier_keyboard_state):
11318         * event-msw.c (output_alt_keyboard_state):
11319         * event-msw.c (mswindows_wnd_proc):
11320         * event-msw.c (mswindows_modifier_state):
11321         * event-msw.c (emacs_mswindows_handle_magic_event):
11322         implement sticky modifiers.
11323
11324         * event-stream.c:
11325         * event-stream.c (vars_of_event_stream):
11326         move modifier-keys-are-sticky here.
11327
11328         * lisp.h:
11329         add CHECK_FUNCTION.
11330
11331         * rangetab.c:
11332         implement map-range-table.
11333
11334
11335 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
11336
11337         * redisplay-tty.c (reset_tty_modes):
11338         (tty_redisplay_shutdown): Adjust argument type to
11339         tty_frame_output_end.
11340
11341 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
11342
11343         * eval.c (Fbacktrace): Don't output a line with only right
11344         parenthesis.
11345
11346 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
11347
11348         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
11349         (Fpq_reset_poll): Ditto.
11350
11351 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
11352
11353         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
11354
11355 2000-05-16  Ben Wing  <ben@xemacs.org>
11356
11357         * buffer.c:
11358         * buffer.c (dfc_convert_to/from_internal_format):
11359         * buffer.c (reinit_vars_of_buffer):
11360         Fix conversion functions to allow reentrancy.
11361
11362         * console-msw.c:
11363         * console-msw.c (mswindows_output_last_error):
11364         New fun, generally useful -- output a human-readable
11365         version of GetLastError() on the console.
11366
11367         * console-msw.h:
11368         * console-msw.h (struct mswindows_frame):
11369         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
11370
11371         * console-stream.c (stream_output_begin):
11372         * console-stream.c (stream_output_end):
11373         * console-stream.c (stream_output_vertical_divider):
11374         * console-stream.c (stream_clear_region):
11375         * console-stream.c (stream_flash):
11376         * console-stream.c (console_type_create_stream):
11377         Delete blank stream methods, not needed.
11378
11379         * console.h (struct console_methods):
11380         Split begin/end methods into window and frame.
11381
11382         * event-msw.c:
11383         * event-msw.c (mswindows_handle_paint):
11384         * event-msw.c (output_alt_keyboard_state):
11385         * event-msw.c (mswindows_wnd_proc):
11386         * event-msw.c (vars_of_event_mswindows):
11387         Comment about problems with ignored-expose.
11388         Define mswindows-debug-events; not really implemented.
11389
11390         * frame-msw.c (mswindows_init_frame_1):
11391         random cleanups.
11392
11393         * glyphs-msw.c:
11394         * glyphs-msw.c (begin_defer_window_pos):
11395         * glyphs-msw.c (mswindows_unmap_subwindow):
11396         * glyphs-msw.c (mswindows_map_subwindow):
11397         * glyphs-msw.c (mswindows_resize_subwindow):
11398         Use DeferWindowPos to reduce flashing when mapping/unmapping.
11399
11400         * glyphs.c (make_image_instance_1):
11401         Fix crash.
11402
11403         * gutter.c (Fredisplay_gutter_area):
11404         Use new begin/end methods.
11405
11406         * lisp.h (Dynarr_new2):
11407         New creation fun.
11408
11409         * redisplay-msw.c:
11410         * redisplay-msw.c (mswindows_frame_output_begin):
11411         * redisplay-msw.c (mswindows_frame_output_end):
11412         * redisplay-msw.c (console_type_create_redisplay_mswindows):
11413         New begin/end methods -- handle DeferWindowPos.
11414
11415         * redisplay-output.c (redisplay_move_cursor):
11416         * redisplay-output.c (redraw_cursor_in_window):
11417         * redisplay-output.c (redisplay_update_line):
11418         * redisplay-output.c (redisplay_output_window):
11419         New begin/end methods.
11420
11421         * redisplay-tty.c:
11422         * redisplay-tty.c (tty_frame_output_begin):
11423         * redisplay-tty.c (tty_frame_output_end):
11424         * redisplay-tty.c (console_type_create_redisplay_tty):
11425         New begin/end methods.
11426
11427         * redisplay-x.c:
11428         * redisplay-x.c (x_window_output_begin):
11429         * redisplay-x.c (x_window_output_end):
11430         * redisplay-x.c (console_type_create_redisplay_x):
11431         New begin/end methods.
11432
11433         * redisplay.c (redisplay_frame):
11434         * redisplay.c (Fredisplay_echo_area):
11435         New begin/end methods.
11436         use MAYBE_DEVMETH for clear_frame; it may not exist.
11437
11438         * window.h (WINDOW_XFRAME):
11439         WINDOW_XFOO macros -- get locale and decode struct pointer.
11440
11441
11442 2000-05-12  Ben Wing  <ben@xemacs.org>
11443
11444         * emacs.c:
11445         * emacs.c (ensure_no_quitting_from_now_on):
11446         * emacs.c (fatal_error_signal):
11447         * emacs.c (mswindows_handle_hardware_exceptions):
11448         * emacs.c (main):
11449         * emacs.c (Fkill_emacs):
11450         * emacs.c (shut_down_emacs):
11451         * emacs.c (assert_failed):
11452         various improvements in fatal error handling.
11453
11454         * eval.c:
11455         move preparing_for_armageddon to emacs.c.
11456
11457         * lisp.h:
11458         declare fatal_error_in_progress.
11459
11460         * print.c:
11461         * print.c (std_handle_out_external):
11462         * print.c (std_handle_out_va):
11463         * print.c (stderr_out):
11464         * print.c (stdout_out):
11465         use console under mswin when no standard output.
11466         don't do code conversion during fatal error.
11467
11468         * scrollbar.c (Fscrollbar_page_up):
11469         * scrollbar.c (Fscrollbar_page_down):
11470         fix missing else.  reindent.
11471
11472 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
11473
11474         Emergency fix.
11475
11476         * glyphs.h (GLYPH_CACHEL_DESCENT):
11477         (GLYPH_CACHEL_DESCENT):
11478         (GLYPH_CACHEL_DESCENT):
11479         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
11480         used in case these are inline functions.
11481         Use more absurd values to error check.
11482
11483         include window.h for error check functions.
11484
11485 2000-05-11  Ben Wing  <ben@xemacs.org>
11486
11487         * cmdloop.c (Freally_early_error_handler):
11488         Display message box under windows; otherwise, message will disappear
11489         before it can be viewed.
11490
11491         * console-msw.c:
11492         * console-msw.c (Fmswindows_message_box):
11493         * console-msw.c (FROB):
11494         * console-msw.c (syms_of_console_mswindows):
11495         Define new fun `mswindows-message-box'.
11496         #### I will merge this into `popup-dialog-box'; just give me
11497         a bit of time.
11498
11499         * general.c:
11500         * general.c (syms_of_general):
11501         Some new symbols used in `mswindows-message-box'.
11502
11503         * glyphs.c:
11504         * glyphs.c (Fset_image_instance_property):
11505         put warning in this fun.
11506
11507         * glyphs.h:
11508         * glyphs.h (GLYPH_CACHEL_WIDTH):
11509         * glyphs.h (GLYPH_CACHEL_ASCENT):
11510         * glyphs.h (GLYPH_CACHEL):
11511         * glyphs.h (GLYPH_CACHEL_GLYPH):
11512         define error-checking versions to try to catch a bug i've seen --
11513         redisplay gets in an infinite loop because the glyph width of the
11514         continuation glyph is 65535.
11515
11516         * lisp.h:
11517         Extern message-box stuff.
11518
11519         * window.c (allocate_window):
11520         * window.c (make_dummy_parent):
11521         * window.c (Fset_window_configuration):
11522         Use EQUAL not EQ for subwindow caches to make them work a bit
11523         better. (Something is still very broken.)
11524
11525
11526 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
11527
11528         * glyphs.c (image_instantiate): Suppress gcc warnings.
11529         (Fmake_image_instance): Fix doc string.
11530         * specifier.c (Fmake_specifier): Ditto.
11531
11532 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
11533
11534         * paths.h.in (PATH_LOCK): Removed.
11535         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
11536         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
11537
11538 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
11539
11540         * fns.c (Ffeaturep): Update e-mail address in doc-string.
11541         Document (featurep '(and xemacs 21.02)).
11542
11543 2000-05-09  Ben Wing  <ben@xemacs.org>
11544
11545         * buffer.c (complex_vars_of_buffer):
11546         update modeline-format doc.
11547
11548         * device.h:
11549         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
11550
11551         * emacs.c:
11552         timeline of all released versions of Emacs, for use in creating
11553         authorship comments and in synching up.
11554
11555         * glyphs-widget.c (image_instantiator_buttons):
11556         * glyphs-widget.c (image_instantiator_edit_fields):
11557         * glyphs-widget.c (image_instantiator_combo_box):
11558         * glyphs-widget.c (image_instantiator_scrollbar):
11559         * glyphs-widget.c (image_instantiator_progress_guage):
11560         * glyphs-widget.c (image_instantiator_tree_view):
11561         * glyphs-widget.c (image_instantiator_tab_control):
11562         * glyphs-widget.c (image_instantiator_labels):
11563         * glyphs-widget.c (image_instantiator_layout):
11564         * glyphs-widget.c (image_instantiator_native_layout):
11565         rename decode_domain method to governing_domain.
11566
11567         * glyphs.c:
11568         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
11569         * glyphs.c (add_entry_to_device_ii_format_list):
11570         make sure we don't put an entry more than once into the list.
11571         * glyphs.c (check_instance_cache_mapper):
11572         *************************************************************
11573         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
11574         HAVE BEEN GETTING.
11575         *************************************************************
11576         * glyphs.c (get_image_instantiator_governing_domain):
11577         clean up, expand on new concept of governing domain.
11578         * glyphs.c (instantiate_image_instantiator):
11579         * glyphs.c (allocate_image_instance):
11580         use governing_domain instead of cache_domain in naming.
11581         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
11582         * glyphs.c (make_image_instance_1):
11583         * glyphs.c (Fmake_image_instance):
11584         allow for any domain (not just device), and process the
11585         governing domain correctly.  very big doc fix.
11586         * glyphs.c (Fimage_instance_domain):
11587         new primitive, to retrieve the governing domain of an image instance.
11588         * glyphs.c (image_instantiate):
11589         use new governing_domain stuff.  this fixes a crash you could get
11590         by instantiating certain widget glyphs in frame locales. (should
11591         signal an error instead of crashing.)
11592         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
11593         * glyphs.c (Fglyphp): clean up doc.
11594         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
11595         * glyphs.c (syms_of_glyphs):
11596         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
11597         * glyphs.c (image_instantiator_format_create): add some comments about
11598         bogus code.
11599         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
11600         for current-display-table. (Apparently Hrjove implemented in 1998 a
11601         design I wrote up in 1996, but didn't update the doc string.)
11602
11603         * glyphs.h: clean up a doc string.
11604         * glyphs.h (governing_domain):
11605         * glyphs.h (struct image_instantiator_methods):
11606         changes for governing_domain stuff.
11607
11608         * gutter.c:
11609         * gutter.c (Fgutter_specifier_p):
11610         * gutter.c (Fgutter_size_specifier_p):
11611         * gutter.c (Fgutter_visible_specifier_p):
11612         * objects.c:
11613         * objects.c (Fcolor_specifier_p):
11614         * objects.c (Ffont_specifier_p):
11615         * objects.c (Fface_boolean_specifier_p):
11616         doc strings moved to make-*-specifier.
11617
11618         * redisplay.c (add_disp_table_entry_runes_1):
11619         * redisplay.c (generate_fstring_runes):
11620         * redisplay.c (screen):
11621         add random comments and doc strings.
11622
11623         * specifier.c:
11624         * specifier.c (Fmake_specifier):
11625         major overhaul of this doc string.
11626
11627         * specifier.c (Fvalid_specifier_domain_p):
11628         comment about the bogosity of image instances being domains.
11629         * specifier.c (decode_domain):
11630         now non-static, used in glyphs.c.
11631         * specifier.c (specifier_instance):
11632         comment about the bogosity of image instances being domains.
11633         * specifier.c (Fgeneric_specifier_p):
11634         move doc string to make-generic-specifier.
11635         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
11636         rebackslashify.
11637
11638         * specifier.h:
11639         * specifier.h (DOMAIN_FRAME):
11640         * specifier.h (DOMAIN_LIVE_P):
11641         * specifier.h (DOMAIN_XDEVICE):
11642         rebackslashify.
11643         add comments about problems with these macros.
11644         prototype for decode_domain.
11645
11646         * toolbar.c:
11647         * toolbar.c (Ftoolbar_specifier_p):
11648         move doc string to `make-toolbar-specifier'.
11649
11650         * window.c (window_unmap_subwindows_cache_mapper):
11651         *************************************************************
11652         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
11653         HAVE BEEN GETTING.
11654         *************************************************************
11655
11656 2000-05-09  Andy Piper  <andy@xemacs.org>
11657
11658         * glyphs.h: declare reset_frame_subwindow_instance_cache.
11659
11660         * window.c (Fset_window_configuration): reset the frame subwindow
11661         cache and re-initialize the window subwindow caches.
11662
11663         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
11664
11665 2000-05-09  Ben Wing  <ben@xemacs.org>
11666
11667         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
11668         DWORD.
11669
11670 2000-04-26  Mike Woolley  <mike@bulsara.com>
11671
11672         * ntheap.c: Changed recreate_heap to limit the amount reserved
11673         for the heap to that which is actually available. Also now
11674         displays a message box (with some dignostics) in the event that
11675         it still can't start.
11676
11677 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
11678
11679         * callproc.c (Fold_call_process_internal): GCPRO path
11680
11681 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
11682
11683         Patch by Bill Perry.
11684
11685         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
11686         back data instead of #ifdef.
11687         (Fscrollbar_page_down): ditto.
11688
11689 2000-05-07  Ben Wing  <ben@xemacs.org>
11690
11691         * buffer.h:
11692         Kludge for defining Qmswindows_tstr.
11693
11694         * nt.c:
11695         * nt.c (open_input_file):
11696         * nt.c (open_output_file):
11697         * nt.c (rva_to_section):
11698         * nt.c (mswindows_executable_type):
11699         Move all memory-mapped-file routines here (some were in unexnt.c,
11700         which is bad because they are used by process-nt.c, and unexnt
11701         won't be around when portable dumping).  Synched the above routines
11702         with FSF 20.6.
11703
11704         * nt.h:
11705         Removed ifdef'd out bogus code.
11706         Fixed some prototypes.
11707
11708         * nt.h (file_data):
11709         * nt.h (OFFSET_TO_RVA):
11710         * nt.h (RVA_TO_OFFSET):
11711         * nt.h (RVA_TO_PTR):
11712         Moved the memory-mapped-file structures, macros and prototypes
11713         here, to parallel nt.c.  ntheap.h should really be removed
11714         entirely, and it's a non-portable-dumper specific file.
11715
11716         * ntheap.h (round_to_next):
11717         Moved the memory-mapped-file structures, macros and prototypes
11718         to nt.h.
11719
11720         * ntproc.c (compare_env):
11721         Moved rva_to_section and mswindows_executable_type to nt.c.
11722         Moved compare_env to process-nt.c.
11723         ntproc.c will die, one day.
11724
11725         * ntproc.c (sys_spawnve):
11726         Account for win32_ -> mswindows_.
11727
11728         * process-nt.c:
11729         * process-nt.c (struct nt_process_data):
11730         * process-nt.c (ensure_console_window_exists):
11731         * process-nt.c (compare_env):
11732         * process-nt.c (nt_create_process):
11733         * process-nt.c (nt_kill_process_by_pid):
11734         * process-nt.c (syms_of_process_nt):
11735         * process-nt.c (vars_of_process_nt):
11736         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
11737         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
11738         changes).  Eliminate our old `nt-quote-process-args' mechanism.
11739         Synch up nt_create_process with FSF 20.6 sys_spawnve.
11740         Move compare_env here from ntproc.c.
11741
11742         * process.c (Fprocess_send_region):
11743         Takes an optional fourth argument, BUFFER, which should fix some
11744         problems with call-process.
11745
11746         * syscommctrl.h:
11747         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
11748
11749         * syswindows.h:
11750         Move ICC_BAR_CLASSES to syscommctrl.h.
11751         Add preliminary macros for MSWindows/Mule.  More to come.
11752
11753         * unexnt.c:
11754         * unexnt.c (unexec):
11755         open_output_file moved to nt.c.
11756
11757
11758 2000-05-05  Andy Piper  <andy@xemacs.org>
11759
11760         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
11761         instance from the frame cache also since GC may catch up too late
11762         to make frame deletion sane.
11763
11764 2000-05-04  Andy Piper  <andy@xemacs.org>
11765
11766         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
11767         (x_finalize_image_instance): ungcpro on deletion.
11768
11769         * glyphs.c (image_instantiator_format_create): give pointers a
11770         query geometry method so that the geometry is at least set.
11771
11772         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
11773         initialize layouts if using widgets.
11774
11775 2000-05-03  Andy Piper  <andy@xemacs.org>
11776
11777         * nt.c: remove bogus reference to sysmmsystem.h
11778
11779         * gui-x.c (popup_selection_callback): fix no selection abort.
11780
11781 2000-05-02  Andy Piper  <andy@xemacs.org>
11782
11783         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
11784         (mswindows_widget_instantiate): ditto.
11785
11786         * glyphs-widget.c (initialize_widget_image_instance): initialize
11787         children correctly.
11788         (widget_instantiate): cope with children and items in the same
11789         instance.
11790
11791         * glyphs.c (mark_image_instance): cope with children as a first
11792         class member.
11793         (image_instance_equal): ditto.
11794         (image_instance_hash): ditto.
11795         (image_instance_changed): ditto.
11796
11797 2000-04-30  Andy Piper  <andy@xemacs.org>
11798
11799         * glyphs.c (subwindow_query_geometry): new function. Return some
11800         defaults.
11801         (subwindow_instantiate): don't assign dimensions if none have been
11802         given.
11803         (image_instantiator_format_create): add subwindow_query_geometry.
11804         (print_image_instance): cope with layouts as widgets.
11805
11806 2000-04-29  Andy Piper  <andy@xemacs.org>
11807
11808         * frame.c (delete_frame_internal): call
11809         free_frame_subwindow_instance_cache so that all subwindows are
11810         finalized before their parent.
11811         (mark_frame): remove subwindow_cachels.
11812         (Fmake_frame): remove subwindow_cachel manipulation.
11813         (allocate_frame_core): subwindow_instance_cache is a weak list.
11814         (delete_frame_internal): set subwindow_instance_cache to nil.
11815
11816         * glyphs-msw.c (mswindows_finalize_image_instance): make double
11817         finalization safe.
11818         (mswindows_finalize_image_instance): use the device
11819         not the domain as the domain may have died already.
11820
11821         * glyphs-x.c (x_finalize_image_instance): ditto.
11822         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
11823         HEIGHT.
11824
11825         * redisplay-output.c (redisplay_unmap_subwindows): update for
11826         subwindow instance cache as a weak list.
11827         (redisplay_unmap_subwindows_maybe): ditto.
11828         (redisplay_unmap_subwindows_except_us): ditto.
11829
11830         * glyphs.c (unmap_subwindow): error checking will check the domain
11831         so don't deal with it here. Don't use cachels anymore.
11832         (map_subwindow): ditto.
11833         (update_subwindow_cachel_data): remove old accessor names.
11834         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
11835         (Fresize_subwindow): don't update cachel.
11836         (mark_subwindow_cachels):
11837         (update_subwindow_cachel_data):
11838         (add_subwindow_cachel):
11839         (get_subwindow_cachel_index):
11840         (update_subwindow_cachel):
11841         (reset_subwindow_cachels):
11842         (mark_subwindow_cachels_as_not_updated): deleted.
11843         (cache_subwindow_instance_in_frame_maybe): new function. Add a
11844         subwindow instance to the frame cache.
11845         (find_matching_subwindow): update for subwindow instance cache as
11846         a weak list.
11847         (update_widget_instances): ditto.
11848         (image_instance_type_to_mask):inlined.
11849         (free_frame_subwindow_instance_cache): new function. finalize all
11850         subwindows that are instantiated.
11851
11852         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
11853         of cachel information.
11854         (IMAGE_INSTANCE_DISPLAY_X):
11855         (IMAGE_INSTANCE_DISPLAY_Y):
11856         (IMAGE_INSTANCE_DISPLAY_WIDTH):
11857         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
11858         (XIMAGE_INSTANCE_DISPLAY_X):
11859         (XIMAGE_INSTANCE_DISPLAY_Y):
11860         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
11861         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
11862         remove subwindow_cachel structure and function references.
11863         (image_instance_type_to_mask): inline from glyphs.c
11864
11865         * redisplay.c (redisplay_frame): remove subwindow_cachel
11866         references.
11867
11868         * frame.h (struct frame): remove subwindow_cachels.
11869         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
11870
11871         * frameslots.h: add subwindow_instance_cache.
11872
11873         * window.c (replace_window): check subwindow cache of replacement.
11874         (window_unmap_subwindows_cache_mapper):
11875         (window_unmap_subwindows): new functions. Unmap all subwindows
11876         cached on this window.
11877         (mark_window_as_deleted): unmap all subwindows.
11878
11879 2000-04-27  Andy Piper  <andy@xemacs.org>
11880
11881         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
11882
11883         * glyphs-widget.c (widget_layout): return something.
11884         (layout_layout): return something. Fail if not initialized.
11885         (layout_query_geometry): ditto.
11886         (image_instantiator_native_layout): new function. Initialized the
11887         native layout type.
11888         (widget_instantiate): don't do layout stuff here.
11889
11890         * glyphs.c (instantiate_image_instantiator): reorded calling or
11891         instantiate and post_instantiate with layout in between.
11892         (image_instance_layout): be more selective about deciding whether
11893         the layout has been done or not.
11894
11895         * glyphs.h (struct image_instantiator_methods): return a value
11896         from layout_method.
11897
11898 2000-04-26  Andy Piper  <andy@xemacs.org>
11899
11900         * glyphs.c (allocate_image_instance): make initial width and
11901         height unspecified. Set initialized to 0.
11902
11903         * syscommctrl.h new file. Encapsulates commctrl.h.
11904
11905         * syswindows.h new file. Encapsulates windows.h.
11906
11907         * ntplay.c: use new syswindows.h and syscommctrl.h header.
11908         * nt.c: ditto.
11909         * console-msw.h: ditto.
11910
11911         * redisplay-tty.c (tty_output_display_block): remove layout references.
11912
11913         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
11914         window handle rather than just the frame.
11915
11916         * glyphs.c (mark_image_instance): remove layout references.
11917         (print_image_instance): ditto.
11918         (image_instance_equal): ditto.
11919         (image_instance_hash): ditto.
11920         (decode_image_instance_type): ditto.
11921         (encode_image_instance_type): ditto.
11922         (image_instantiate): ditto.
11923         (allocate_glyph): ditto.
11924         (Fimage_instance_height): ditto.
11925         (Fimage_instance_width): ditto.
11926         (update_subwindow): ditto.
11927
11928         * redisplay-x.c (x_output_display_block): recode for layouts as
11929         widgets.
11930
11931         * redisplay-output.c (redisplay_output_layout): recode for layouts
11932         as widgets.
11933         (compare_runes): remove layout references.
11934
11935         * redisplay-msw.c (mswindows_output_display_block): recode for
11936         layouts as widgets.
11937
11938         * glyphs-widget.c (image_instantiator_layout): remove
11939         layout_possible_dest_types.
11940         (layout_possible_dest_types): deleted.
11941
11942         * glyphs.h (image_instance_type): remove layout references.
11943         (struct Lisp_Image_Instance): ditto. Add initialized flag.
11944         (IMAGE_INSTANCE_INITIALIZED): new accessor.
11945         (XIMAGE_INSTANCE_INITIALIZED): ditto.
11946
11947 2000-04-25  Andy Piper  <andy@xemacs.org>
11948
11949         * glyphs-widget.c (image_instantiator_buttons):
11950         (image_instantiator_edit_fields):
11951         (image_instantiator_combo_box):
11952         (image_instantiator_scrollbar):
11953         (image_instantiator_progress_guage):
11954         (image_instantiator_tree_view):
11955         (image_instantiator_tab_control):
11956         (image_instantiator_labels):
11957         (image_instantiator_layout): call default post_instantiate method.
11958         (widget_post_instantiate): new function. Simply lays out the
11959         widgets.
11960
11961         * glyphs.h (struct image_instantiator_methods): add
11962         post_instantiate method.
11963
11964         * glyphs.c (instantiate_image_instantiator): add post_instantiate
11965         method calls.
11966
11967 2000-04-23  Andy Piper  <andy@xemacs.org>
11968
11969         * glyphs.h (struct image_instantiator_methods): add
11970         decode_domain_method.
11971         (struct Lisp_Image_Instance): remove subwindow frame - it can be
11972         derived from the domain.
11973         (IMAGE_INSTANCE_FRAME): new accessor.
11974         (XIMAGE_INSTANCE_FRAME): ditto.
11975
11976         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
11977         instead of _SUBWINDOW_FRAME.
11978         (finalize_image_instance): ditto.
11979         (Fimage_instance_foreground): ditto.
11980         (Fimage_instance_background): ditto.
11981         (image_instantiate): ditto.
11982         (update_subwindow_cachel): ditto.
11983         (update_subwindow): ditto.
11984         (unmap_subwindow): ditto.
11985         (map_subwindow): ditto
11986         (subwindow_instantiate): ditto.
11987         * glyphs-msw.c (mswindows_update_widget): ditto.
11988         (mswindows_progress_gauge_instantiate): ditto.
11989         (mswindows_tab_control_update): ditto.
11990         * glyphs-x.c (x_update_widget): ditto.
11991         (x_widget_instantiate): ditto.
11992         (x_tab_control_instantiate): ditto.
11993         (x_tab_control_update): ditto.
11994         * event-msw.c (mswindows_wnd_proc): ditto
11995
11996         * glyphs-widget.c (image_instantiator_layout): use
11997         subwindow_decode_domain.
11998         (image_instantiator_buttons): ditto.
11999         (image_instantiator_edit_fields): ditto.
12000         (image_instantiator_combo_box): ditto.
12001         (image_instantiator_scrollbar): ditto.
12002         (image_instantiator_progress_guage): ditto.
12003         (image_instantiator_tree_view): ditto.
12004         (image_instantiator_tab_control): ditto.
12005         (image_instantiator_labels): ditto.
12006         (image_instantiator_layout): ditto.
12007
12008         * glyphs.c: add instance error checking to many functions.
12009         (instantiate_image_instantiator): decode device from cache_domain.
12010         (image_instantiate): partially rewrite by using
12011         decode_image_instantiator_domain to determine what domain the
12012         instance needs to be cached in.
12013         (decode_image_instantiator_domain): new function. Determine what
12014         domain the image needs to be cached in.
12015         (check_window_subwindow_cache): new error checking function.
12016         (check_instance_cache_mapper): ditto.
12017         (check_image_instance_structure): ditto.
12018         (subwindow_decode_domain): new function. Encodes a window as a
12019         subwindow's cache domain.
12020         (image_instantiator_format_create): use it for text and
12021         subwindows.
12022
12023 2000-04-21  Andy Piper  <andy@xemacs.org>
12024
12025         * glyphs.c (image_instance_device): new function.
12026         (image_instance_frame): new function.
12027         (image_instance_window): new function.
12028         (image_instance_live_p): new function.
12029
12030         * window.c (mark_window_as_deleted): reset the subwindow_instance_
12031         cache to nil.
12032
12033         * glyphs.h (struct Lisp_Image_Instance): device->domain.
12034         (IMAGE_INSTANCE_DOMAIN): new accessor.
12035         (XIMAGE_INSTANCE_DOMAIN): ditto.
12036
12037         * glyphs-x.c (x_finalize_image_instance): device->domain.
12038
12039         * glyphs-msw.c (init_image_instance_geometry): device->domain.
12040         (mswindows_finalize_image_instance): ditto.
12041
12042         * glyphs-eimage.c (jpeg_instantiate): device->domain.
12043         (gif_instantiate): ditto.
12044         (png_instantiate): ditto.
12045         (tiff_instantiate): ditto.
12046
12047         * glyphs.c (instantiate_image_instantiator): use domain rather
12048         than device.
12049         (mark_image_instance): device -> domain.
12050         (print_image_instance): ditto.
12051         (finalize_image_instance): ditto.
12052         (image_instance_equal): ditto.
12053         (allocate_image_instance): ditto.
12054         (Fcolorize_image_instance): ditto.
12055         (query_string_geometry): ditto.
12056         (image_instantiate): ditto
12057         (query_string_font): ditto.
12058         (image_instantiate): ditto.
12059         (update_subwindow): ditto.
12060         (unmap_subwindow): ditto.
12061         (map_subwindow): ditto.
12062         (subwindow_instantiate): ditto.
12063
12064         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
12065         (DOMAIN_FRAME): ditto.
12066         (DOMAIN_WINDOW): ditto.
12067         (DOMAIN_LIVE_P): ditto.
12068         (XDOMAIN_DEVICE): ditto.
12069         (XDOMAIN_FRAME): ditto.
12070         (XDOMAIN_WINDOW): ditto.
12071
12072         * specifier.c (Fvalid_specifier_domain_p): add image instances as
12073         a valid specifier domain.
12074
12075 2000-04-19  Andy Piper  <andy@xemacs.org>
12076
12077         * glyphs-widget.c (syms_of_glyphs_widget): remove
12078         widget-callback-current-channel.
12079         (vars_of_glyphs_widget): ditto.
12080         * glyphs.h: ditto
12081
12082         * gui.c (get_gui_callback): revert to previous behaviour.
12083
12084 2000-04-18  Andy Piper  <andy@xemacs.org>
12085
12086         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
12087         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
12088         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
12089
12090         * glyphs.c (image_instance_equal): add margin_width.
12091         (image_instance_hash): ditto.
12092
12093         * glyphs-widget.c (widget_instantiate): deal with margin-width.
12094         (layout_query_geometry): ditto.
12095         (layout_layout): ditto.
12096         (syms_of_glyphs_widget): add margin-width.
12097         (image_instantiator_layout): allow margin-width.
12098
12099         * glyphs.c (update_widget_instances): make a normal function.
12100         (syms_of_glyphs): remove Qupdate_widget_instances.
12101         * glyphs.h: ditto.
12102
12103         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
12104         so that we don't corrupt ideas about the last event or
12105         command. Remove widget-callback-current-channel fiddling.
12106         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
12107
12108 2000-05-01  Martin Buchholz <martin@xemacs.org>
12109
12110         * XEmacs 21.2.33 is released.
12111
12112 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
12113
12114         * make-src-depend: Allow dots in header file name.
12115
12116 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
12117
12118         * mule-charset.h (struct charset_lookup): Add
12119         next_allocated_1_byte_leading_byte and
12120         next_allocated_2_byte_leading_byte.
12121         * mule-charset.c: Move above two variables so that those values
12122         will be dumped.
12123
12124 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
12125
12126         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
12127         when string length is zero.
12128         (find_charsets_in_emchar_string): Ditto.
12129
12130 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
12131
12132         * lisp.h: extern Qdialog and Qmenubar.
12133
12134         * gui-x.c: added events.h.
12135                 also fixed typo which made the file uncompilable.
12136
12137         * general.c: Added Qmenubar and Qdialog
12138
12139 2000-04-28  Ben Wing  <ben@xemacs.org>
12140
12141         * frame-msw.c (mswindows_init_frame_1):
12142         * frame-msw.c (mswindows_mark_frame):
12143         * event-msw.c (mswindows_enqueue_dispatch_event):
12144         * console-msw.h:
12145         * console-msw.h (struct mswindows_frame):
12146         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
12147         there are now three hash tables for callbacks.
12148         mswindows_enqueue_dispatch_event is no longer static.
12149
12150         * dialog-x.c (maybe_run_dbox_text_callback):
12151         * dialog-x.c (dbox_descriptor_to_widget_value):
12152         switch to new cons3 form for callbacks.
12153
12154         * glyphs-msw.c (mswindows_register_gui_item):
12155         * glyphs-msw.c (mswindows_widget_instantiate):
12156         * glyphs-msw.c (add_tree_item):
12157         * glyphs-msw.c (add_tab_item):
12158         new image instance parameter, so it can be passed to callback-ex.
12159         respect :callback-ex as well as :callback.
12160
12161         * glyphs-widget.c (VALID_GUI_KEYWORDS):
12162         add :callback-ex.
12163
12164         * glyphs.c (print_image_instance):
12165         prettify, e.g. now prints widget type.
12166
12167         * gui-x.h:
12168         certain funs have new image instance parameter.
12169
12170         * gui.c:
12171         * gui.c (get_gui_callback):
12172         * gui.c (gui_item_add_keyval_pair):
12173         * gui.c (gui_item_init):
12174         * gui.c (gui_add_item_keywords_to_plist):
12175         * gui.c (mark_gui_item):
12176         * gui.c (gui_item_hash):
12177         * gui.c (gui_item_equal):
12178         * gui.c (copy_gui_item):
12179         * gui.c (syms_of_gui):
12180         recognize callback-ex in a number of places.
12181         also, fix the annoying "can't get out of yes-no dialog" bug.
12182
12183         * gui.h:
12184         * gui.h (struct Lisp_Gui_Item):
12185         recognize callback-ex in a number of places.
12186
12187         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
12188         new parameter in button_item_to_widget_value.
12189
12190         * glyphs-x.c (x_update_widget):
12191         * glyphs-x.c (x_button_instantiate):
12192         * glyphs-x.c (x_button_update):
12193         * glyphs-x.c (x_progress_gauge_instantiate):
12194         * glyphs-x.c (x_edit_field_instantiate):
12195         * glyphs-x.c (x_combo_box_instantiate):
12196         * glyphs-x.c (x_tab_control_instantiate):
12197         * glyphs-x.c (x_label_instantiate):
12198         new image instance parameter in various places.
12199
12200         * event-Xt.c:
12201         * event-Xt.c (enqueue_Xt_dispatch_event):
12202         this fun gets exported.
12203
12204         * gui-msw.c:
12205         * gui-msw.c (mswindows_handle_gui_wm_command):
12206         handle both :callback and :callback-ex, and generate our own
12207         event because it's one of the callback-ex arguments.
12208
12209         * gui-x.c:
12210         * gui-x.c (popup_selection_callback):
12211         handle both :callback and :callback-ex, and generate our own
12212         event because it's one of the callback-ex arguments.
12213         * gui-x.c (button_item_to_widget_value):
12214         * gui-x.c (gui_items_to_widget_values_1):
12215         * gui-x.c (gui_item_children_to_widget_values):
12216         * gui-x.c (gui_items_to_widget_values):
12217         new image instance parameter in various places.
12218
12219         * fns.c (Freplace_list):
12220         fix small typo in doc string.
12221
12222         * lisp.h:
12223         declare enqueue_Xt_dispatch_event.
12224
12225 2000-04-28  Ben Wing  <ben@xemacs.org>
12226
12227         * buffer.c:
12228         * buffer.c (Frecord_buffer):
12229         * buffer.c (syms_of_buffer):
12230         delete record-buffer-hook.
12231
12232         * fns.c:
12233         * fns.c (Freplace_list):
12234         * fns.c (syms_of_fns):
12235         new primitive replace-list.
12236
12237         * frameslots.h:
12238         slot for old buffer-alist.
12239
12240         * lisp.h:
12241         exfun replace-list.
12242
12243         * redisplay.c:
12244         * redisplay.c (redisplay_frame):
12245         * redisplay.c (syms_of_redisplay):
12246         * redisplay.c (vars_of_redisplay):
12247         new hook buffer-list-changed-hook.
12248         call it.
12249
12250 2000-04-27  Ben Wing  <ben@xemacs.org>
12251
12252         * extents.h: extern in_modeline_generation.
12253
12254         * redisplay.c (generate_formatted_string_db): set
12255         in_modeline_generation.
12256
12257         * extents.c (extent_changed_for_redisplay): don't mark redisplay
12258         flags if in modeline generation.  otherwise frame-modified-tick
12259         is ticked far too often.
12260         Declare in_modeline_generation.
12261
12262 2000-04-26  Ben Wing  <ben@xemacs.org>
12263
12264         * emacs.c (vars_of_emacs): document quick-build "error-checking"
12265         option.
12266         (vars_of_emacs): add quick-build as an error-checking option.
12267         A bit kludgy, but there doesn't seem much point in creating
12268         a real var for this.
12269
12270         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
12271
12272 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12273
12274         * redisplay.h (struct display_line): Add a new variable,
12275         line_continuation.
12276
12277         * redisplay.c (create_text_block): Set dl->line_continuation if
12278         the line continues.
12279         (create_string_text_block): Ditto.
12280         (regenerate_window_incrementally): Use line_continuation instead
12281         of searching continuation glyph.
12282         (add_margin_runes): Call add_glyph_rune.
12283         (add_glyph_rune): Handle margin glyph.
12284
12285 2000-04-20  Martin Buchholz  <martin@xemacs.org>
12286
12287         * filelock.c (fill_in_lock_file_name):
12288         ANSIfy.
12289         Check for IS_ANY_SEP instead of '/'.
12290         (lock_file_1):
12291         Avoid generating gratuitous garbage.  Call user_login_name() directly.
12292         Never check errno without first seeing that system call failed.
12293         (unlock_file): Add GCPRO.
12294         (Flock_buffer): Fix docstring.
12295         (Ffile_locked_p): Fix docstring.  Add GCPRO.
12296
12297 2000-04-19  Martin Buchholz  <martin@xemacs.org>
12298
12299         * sysdep.c (get_pty_max_bytes):
12300         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
12301         strings longer than 252 bytes.
12302
12303         * md5.c: Unconditionally include ANSI header <limits.h>
12304
12305         * glyphs-x.c (convert_EImage_to_XImage):
12306         * lisp-union.h (union Lisp_Object):
12307         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
12308
12309 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
12310
12311         * filelock.c (current_lock_owner): Remove unused variable o, p.
12312
12313 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
12314
12315         * callint.c: Remove multiply defined symbol Qlet
12316         (syms_of_callint): ditto.
12317
12318 2000-04-14  Andy Piper  <andy@xemacs.org>
12319
12320         * general.c (syms_of_general): add last-command, this-command, let
12321         and funcall.
12322
12323         * lisp.h: declare various symbols.
12324
12325         * glyphs.h: declare Qwidget_callback_current_channel;
12326
12327         * glyphs-widget.c (syms_of_glyphs_widget): add
12328         Qgui_callback_current_channel.
12329         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
12330
12331         * gui-msw.c (mswindows_handle_gui_wm_command): bind
12332         widget-callback-current-channel when invoking the interactive
12333         arg. Also bind last-command and next-command when invoking the
12334         widget updates.
12335         * gui-x.c (popup_selection_callback): ditto.
12336
12337         * gui.c (get_gui_callback): massage args so that we are always
12338         calling eval. This allows us to add our own variable bindings
12339         outside.
12340
12341         * glyphs-x.c (x_button_instantiate): use
12342         gui_items_to_widget_values since this is GC safe.
12343         (x_progress_gauge_instantiate): ditto.
12344         (x_edit_field_instantiate): ditto.
12345         (x_label_instantiate): ditto.
12346
12347         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
12348         (emacs_Xt_event_widget_focus_out): new function
12349         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
12350         focus.
12351         (emacs_Xt_event_add_widget_actions): new function. add focus
12352         functions as actions.
12353         (init_event_Xt_late): use it.
12354
12355 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
12356
12357         * event-stream.c (Fdispatch_event): Doc fix.
12358
12359 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
12360
12361         * postgresql.c: Remove all references to PQsetenv*.
12362
12363         * postgresql.h: Remove references to PGsetenvHandler object.
12364         * lrecord.h (lrecord_type): Ditto.
12365
12366 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12367
12368         * glyphs-msw.h (struct mswindows_image_instance_data): Added
12369         real_heigh and real_width members, and accessor macros for these.
12370
12371         * glyphs-msw.c (init_image_instance_geometry): New function.
12372         (init_image_instance_from_dibitmap): Use it.
12373         (mswindows_resource_instantiate): Use it.
12374         (init_image_instance_from_xbm_inline): Use it.
12375         (mswindows_initialize_image_instance_mask): Use real bitmap
12376         geometry.
12377         (mswindows_create_resized_bitmap): Ditto.
12378         (mswindows_create_resized_mask): Ditto.
12379
12380         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
12381         and bitmap to their surface size.
12382
12383 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
12384
12385         * process-unix.c (unix_send_process): Guard against process MIA
12386         after Faccept_process_output.
12387
12388 2000-04-11  Ben Wing  <ben@xemacs.org>
12389
12390         * eval.c (unbind_to_hairy): fix brokenness introduced by
12391         nanosecond speed improvements.
12392
12393 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
12394
12395         * sunplay.c (init_device): To play sounds correctly, the device
12396         apparently needs to be initialized at least once by XEmacs.  Make
12397         it so.
12398
12399 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12400
12401         * redisplay.c (add_margin_runes): Add text image glyph
12402           handling.
12403
12404 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
12405
12406         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
12407         gcc is newer than 2.5.
12408
12409 2000-04-06  Colin Rafferty  <colin@xemacs.org>
12410
12411         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
12412
12413         * fns.c (size_bit_vector):
12414         * alloc.c (size_vector):
12415         (make_vector_internal):
12416         (make_bit_vector_internal):
12417         (sweep_bit_vectors_1):
12418         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
12419
12420 2000-04-06  Andy Piper  <andy@xemacs.org>
12421
12422         * gmalloc.c (malloc): undo previous change.
12423         (malloc): ditto.
12424         (free): ditto.
12425         (realloc): ditto.
12426
12427 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
12428
12429         * line-number.c (buffer_line_number): Revert to former version.
12430
12431 2000-04-06  Andy Piper  <andy@xemacs.org>
12432
12433         * gmalloc.c (malloc): add error checking.
12434         (malloc): ditto.
12435         (free): ditto.
12436         (realloc): ditto.
12437
12438         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
12439         button_item_to_widget_value arg.
12440
12441         * glyphs-x.c (x_button_instantiate): add extra
12442         button_item_to_widget_value arg.
12443         (x_progress_gauge_instantiate): ditto.
12444         (x_edit_field_instantiate): ditto.
12445         (x_label_instantiate): ditto.
12446
12447         * gui-x.c (gui_items_to_widget_values_1): add extra
12448         button_item_to_widget_value arg.
12449         (button_item_to_widget_value): add extra menu_item_p arg.
12450
12451         * gui-x.h: change signature of button_item_to_widget_value.
12452
12453         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
12454         button_item_to_widget_value arg.
12455
12456 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
12457
12458         * buffer.h (struct buffer): auto_save_modified should be long.
12459
12460 2000-04-05  Andy Piper  <andy@xemacs.org>
12461
12462         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
12463         type.
12464         (button_query_geometry): give a little more room so that athena
12465         buttons fit.
12466
12467 2000-04-05  Andy Piper  <andy@xemacs.org>
12468
12469         * faces.c (complex_vars_of_faces): The widget face should inherit
12470         the font of the gui-element face.
12471
12472 2000-04-04  Andy Piper  <andy@xemacs.org>
12473
12474         * glyphs-x.c (x_button_update): new function. unconditionally
12475         update a button's state when the instance is dirty.
12476         (image_instantiator_format_create_glyphs_x): add x_button_update.
12477         (x_widget_instantiate): remove old resize cruft.
12478
12479 2000-04-02  Andy Piper  <andy@xemacs.org>
12480
12481         * frame.c (change_frame_size_1): The introduction of gutters means
12482         that we need to allow 0 as a potential frame dimension.
12483
12484 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12485
12486         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
12487         image glyph if allow_cursor.
12488         (add_hscroll_rune): Don't allow cursor to border glyph.
12489         (create_text_block): Ditto.
12490
12491         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
12492         text not in buffer.
12493         (redisplay_output_layout): Call ensure_face_cachel_complete for
12494         text image glyph.
12495
12496
12497 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12498
12499         * redisplay.c (add_glyph_rune): Adding text image as text runes.
12500
12501         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
12502         not in buffer
12503
12504         * redisplay-tty.c (tty_output_display_block): Delete the routine
12505         for text image glyph
12506         * redisplay-x.c (x_output_display_block): ditto
12507         * redisplay-msw.c (mswindows_output_display_block): ditto
12508
12509 2000-02-02  Mike Alexander  <mta@arbortext.com>
12510
12511         Note: Some of these were committed by accident as part of other
12512         patches.
12513
12514         * regex.c (regex_compile): Avoid compiler warnings.
12515
12516         * ntproc.c (sys_spawnve): Avoid compiler warnings.
12517
12518         * nt.h: Declare term_ntproc correctly.
12519
12520         * nt.c: Remove incorrect declaration of get_home_directory which
12521         is declared correctly in lisp.h.
12522
12523         * keymap.c (get_keyelt): Avoid compiler warnings.
12524         (raw_lookup_key_mapper): Avoid compiler warnings.
12525
12526         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
12527
12528         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
12529
12530         * filemode.c (mode_string): Avoid compiler warnings.
12531
12532         * file-coding.c (Fcoding_system_aliasee): Add return statement to
12533         avoid warning.
12534
12535         * events-mod.h: Undef some things that winuser.h defines differently.
12536
12537         * data.c (Faset): Avoid compiler warnings.
12538
12539         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
12540
12541 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
12542
12543         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
12544         Fall through to simple beep on error.
12545         Replace "extern" by real header file.
12546
12547         * linuxplay.c: Use nativesound.h
12548         (play_sound_data): Return error code. Be less verbose on error.
12549
12550         * sunplay.c: Use nativesound.h
12551         (play_sound_data): Return error code. Be less verbose on error.
12552
12553         * ntplay.c: Use nativesound.h
12554         (play_sound_data): Return fake error code
12555
12556         * sgiplay.c: Use nativesound.h
12557         (play_sound_data): Return error code
12558
12559         * hpplay.c: Use nativesound.h, partially implement
12560         new error code. Break compilation until finished.
12561         (play_sound_data): error code.
12562
12563         * nativesound.h (play_sound_file):
12564           (play_sound_data): Prototype in new header.
12565
12566 2000-03-31  Andy Piper  <andy@xemacs.org>
12567
12568         * glyphs-widget.c: (button_query_geometry): new function. Adjust
12569         for toggle and radio buttons.
12570         (image_instantiator_buttons): use it.
12571
12572 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
12573
12574         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
12575         (x_update_horizontal_scrollbar_callback): Return if no mirror was
12576         found. Scrollbar event probably belonged to some old config.
12577
12578 2000-03-31  Andy Piper  <andy@xemacs.org>
12579
12580         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
12581         than 1.
12582         (initialize_widget_image_instance): default layout to
12583         LAYOUT_HORIZONTAL rather than 0.
12584         (widget_instantiate): reverse the item list at the end rather than
12585         every iteration.
12586         (layout_layout): re-code for the border text at the front of the
12587         item list rather than at the end.
12588         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
12589         provided by the user.
12590         (widget_query_geometry): comment.
12591
12592 2000-03-30  Andy Piper  <andy@xemacs.org>
12593
12594         * glyphs-widget.c (image_instantiator_layout): allow standard
12595         widget keywords in layouts.
12596
12597         * gutter.c (output_gutter): cope with nil gutter contents.
12598
12599         * frame.c (Fset_frame_properties): add gutter docs.
12600
12601 2000-03-29  Andy Piper  <andy@xemacs.org>
12602
12603         * toolbar-msw.c (TBSTYLE_FLAT): add.
12604         (mswindows_output_toolbar): minor fiddling.
12605
12606 2000-03-29  Andy Piper  <andy@xemacs.org>
12607
12608         * gutter.c (output_gutter): force gutter size recalculation if
12609         what we are trying to display won't fit.
12610         (update_gutter_geometry): new function. A per-gutter version of
12611         update_frame_gutter_geometry.
12612         (update_frame_gutter_geometry): use it.
12613         (redraw_exposed_gutter): add extra debugging output.
12614
12615 2000-03-28  Mike Alexander  <mta@arbortext.com>
12616
12617         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
12618         (pdump_file_unmap): Implement it on Windows
12619         (pdump_file_get): Save alocated handles for pdump_file_unmap
12620
12621 2000-03-28  Andy Piper  <andy@xemacs.org>
12622
12623         * gui.c (get_gui_callback): treat Quit specially.
12624
12625 2000-03-27  Andy Piper  <andy@xemacs.org>
12626
12627         * glyphs.c (image_instantiate): be careful to check in the same
12628         way we assigned.
12629
12630 2000-03-27  Didier Verna  <didier@xemacs.org>
12631
12632         * config.h.in: define the proper SMART_INCLUDE macro.
12633         handle renaming of `foo_h_path' to `foo_h_file'.
12634
12635         * database.c: ditto.
12636
12637         * emacs.c: ditto.
12638
12639         * linuxplay.c: ditto.
12640
12641         * terminfo.c: ditto.
12642
12643         * tooltalk.h: ditto.
12644
12645 2000-03-27  Andy Piper  <andy@xemacs.org>
12646
12647         * glyphs-msw.c (mswindows_update_widget): make sure the widget
12648         gets updated whenever the face might have changed.
12649
12650 2000-03-26  Mike Alexander  <mta@arbortext.com>
12651
12652         * dumper.c (pdump_resource_free): Fix the comment.
12653
12654 2000-03-21  Olivier Galibert  <galibert@pobox.com>
12655
12656         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
12657
12658 2000-03-22  Mike Alexander  <mta@arbortext.com>
12659
12660         * dumper.c: Include Windows headers on Windows
12661         (pdump_resource_free): Add a body to the function
12662         (pdump_load): exe_name -> exe_path and add some comments.
12663
12664 2000-03-25  Mike Alexander  <mta@arbortext.com>
12665
12666         * gui.c (copy_gui_item_tree): Return a value in all cases
12667
12668 2000-03-21  Didier Verna  <didier@xemacs.org>
12669
12670         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
12671         lwlib/config.h.in.
12672         (SMART_INCLUDE): new macro.
12673         (POSTGRES_INCLUDE): new macro to include postgresql headers from
12674         the proper location.
12675
12676         * postgresql.c: use it.
12677
12678         * inline.c: ditto.
12679
12680 2000-03-24  Andy Piper  <andy@xemacs.org>
12681
12682         * gutter.c (redraw_exposed_gutters): must be "in display" when we
12683         do this.
12684
12685 2000-03-24  Andy Piper  <andy@xemacs.org>
12686
12687         * redisplay-output.c (compare_runes): use image_instance_changed
12688         to detect changes. Do not depend on glyphs_changed, only depend on
12689         dirtiness.
12690          (redisplay_output_layout): add debug messages.
12691         (compare_runes): ditto.
12692
12693         * glyphs.h: declare new functions.
12694         (struct Lisp_Image_Instance): remove percent and associated
12695         accessors.
12696
12697         * gui.h: declare new copying functions.
12698
12699         * gui.c (copy_gui_item_tree): new function.
12700         (copy_gui_item): new function.
12701         (gui_item_id_hash): revert to standard hash.
12702         (gui_item_hash): ditto.
12703         (gui_item_hash_internal): deleted.
12704         (mark_gui_item): mark value.
12705         (gui_item_add_keyval_pair): add value.
12706         (gui_item_init): ditto.
12707         (gui_add_item_keywords_to_plist): ditto.
12708         (gui_item_equal): ditto.
12709         (syms_of_gui): add Q_value.
12710
12711         * glyphs-x.c (x_progress_gauge_update): use pending items and
12712         value for setting the state.
12713         (x_update_widget): don't set items from pending here.
12714
12715         * glyphs-widget.c (update_widget): update items here.
12716         (progress_gauge_set_property): use items for storing value. Put
12717         new value in pending items.
12718
12719         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
12720         items for new value. Convert percent -> value.
12721         (mswindows_tab_control_update): don't update items here.
12722
12723         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
12724         (update_subwindow): ditto.
12725         (image_instance_changed): new function. Compare hash values and
12726         past and present widget items.
12727         (image_instantiate): We more careful about where we instantiate
12728         things.
12729         (image_instantiate): add error checking.
12730
12731         * gutter.c (syms_of_gutter): use -hook.
12732
12733 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
12734
12735         * console-tty.c (Fset_console_tty_input_coding_system): Use
12736         Qkeyboard.
12737         (Fset_console_tty_output_coding_system): Use Qterminal.
12738         (tty_init_console): Use Qkeyboard and Qterminal.
12739
12740 2000-03-21  Ben Wing  <ben@xemacs.org>
12741
12742         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
12743         From Mike Alexander <mta@arbortext.com>.
12744
12745 2000-03-21  Ben Wing  <ben@xemacs.org>
12746
12747         * event-msw.c (mswindows_need_event): Horrible kludge to fix
12748         process brokenness.  Proper implementation to come.
12749         * callproc.c:
12750         Rename call-process-internal to old-call-process-internal.
12751         New impl. in process.el.
12752
12753 2000-03-21  Martin Buchholz  <martin@xemacs.org>
12754
12755         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
12756
12757 2000-03-20  Andy Piper  <andy@xemacs.org>
12758
12759         * glyphs.c (full_list_hash): make hashes of the same elements in
12760         different orders return different values.
12761
12762 2000-03-20  Martin Buchholz <martin@xemacs.org>
12763
12764         * XEmacs 21.2.32 is released.
12765
12766 2000-03-20  Martin Buchholz  <martin@xemacs.org>
12767
12768         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
12769         (DFC_MALLOC_USE_CONVERTED_DATA):
12770         Add aliasing-safe casts to allow use with char* or unsigned char*
12771         lvalues.
12772
12773         * eldap.c (Fldap_open):
12774         (Fldap_search_basic):
12775         (Fldap_add):
12776         (Fldap_modify):
12777         Make C++-compilable.
12778         Make sure GCPRO'ed variables are initialized.
12779         Use temp variables to avoid repeated calls to Flength.
12780
12781 2000-03-16  Martin Buchholz  <martin@xemacs.org>
12782
12783         * sysfile.h:
12784         Make sure PATH_MAX is always defined.
12785         Include limits.h for PATH_MAX.
12786         Deprecate use of MAXPATHLEN.
12787
12788 2000-03-10  Martin Buchholz  <martin@xemacs.org>
12789
12790         * emacs.c: Add reinit_vars_of_fileio.
12791         * symsinit.h: Add reinit_vars_of_fileio.
12792         * fileio.c (reinit_vars_of_fileio): New.
12793         * fileio.c (Fmake_temp_name):
12794         Initialize temp_name random number from microseconds to make
12795         collisions even less likely.  Initialize always at process startup
12796         time.  (make-temp-name) used to return the same file name twice in
12797         a row when PDUMP.
12798         Random stylistic fiddling.
12799         Comment fixes.
12800
12801 2000-03-20  Andy Piper  <andy@xemacs.org>
12802
12803         * glyphs.c (image_instantiate): allow text glyphs to be
12804         instantiated in the minibuffer window.
12805
12806 2000-03-19  Andy Piper  <andy@xemacs.org>
12807
12808         * glyphs.c (image_instance_hash): be careful about which items we
12809         hash on.
12810
12811         * glyphs-widget.c (tab_control_set_property): record into pending
12812         items rather than the actual items.
12813
12814         * glyphs-x.c (x_update_widget): use pending items to update with.
12815
12816         * glyphs-msw.c (mswindows_tab_control_update): use pending items
12817         to update with.
12818
12819         * glyphs.c (mark_image_instance): mark pending items.
12820
12821         * window.c (Fset_window_configuration): record the buffer.
12822         (Fselect_window): totally revert previous change which breaks many
12823         things.
12824
12825 2000-03-18  Andy Piper  <andy@xemacs.org>
12826
12827         * glyphs-msw.c (mswindows_tab_control_update): force selected
12828         item.
12829
12830         * glyphs.c (image_instantiate): don't allow the minibuffer as a
12831         window domain cache, otherwise we get inconsistencies at
12832         startup. There is something fishy at startup which can lead to the
12833         minibuffer being the selected window when the gutter content is
12834         instantiated.
12835
12836         * gui.c (parse_gui_item_tree_list): add probably unnecessary
12837         gcpros.
12838         (parse_gui_item_tree_children): ditto.
12839         (parse_gui_item_tree_item): ditto.
12840
12841         * glyphs.c (Fupdate_widget_instances): return something.
12842
12843 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
12844
12845         * window.c (Fselect_window): Undo 2000-03-17 change.
12846
12847 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
12848
12849         * postgresql.c (Fpq_setenv): Remove this turkey when linking
12850         against v7.0 libraries.  Insta-coredump city until the postgres
12851         folks fix it.
12852
12853 2000-03-17  Andy Piper  <andy@xemacs.org>
12854
12855         * faces.c (complex_vars_of_faces): don't give the widget face an
12856         inherited background pixmap.
12857
12858         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
12859         selected item.
12860
12861         * event-stream.c (Fdispatch_non_command_events): return something.
12862
12863         * gutter.c (output_gutter): use widget face.
12864         (clear_gutter): ditto.
12865
12866         * NEWS: adjust again.
12867
12868         * window.c (Fselect_window): make sure this runs to completion to
12869         avoid oddities with Fset_window_configuration.
12870         (Fcurrent_window_configuration): in general do not save the
12871         minibuffer as the selected window.
12872
12873         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
12874
12875 2000-03-16  Olivier Galibert  <galibert@pobox.com>
12876
12877         * emacs.c (Frunning_temacs_p): Revert previous patch.
12878         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
12879
12880 2000-03-16  Andy Piper  <andy@xemacs.org>
12881
12882         * glyphs-x.c (x_tab_control_update): if no widget values then
12883         return.
12884
12885         * NEWS: update for new features.
12886
12887         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
12888         synthetic event to the native system.
12889         (reinit_vars_of_event_Xt): set force_event_pending to
12890         emacs_Xt_force_event_pending.
12891
12892         * events.h (struct event_stream): add force_event_pending.
12893
12894         * specifier.c (recompute_one_cached_specifier_in_window): add
12895         comment.
12896
12897         * redisplay.c (redisplay_frame): don't call
12898         update_frame_subwindows. Reset subwindow cachels when
12899         subwindows_changed, removing this was an optimization too far.
12900
12901         * redisplay-output.c (compare_runes): reorganize so that we catch
12902         glyph changes when we want them. Set optimize_output when this
12903         would help layouts.
12904         (redisplay_output_layout): remove frame_really_changed, use
12905         optimize_output instead.
12906
12907         * redisplay-msw.c (mswindows_output_display_block): reset
12908         optimize_output after outputting a glyph.
12909         * redisplay-x.c (x_output_display_block): ditto.
12910         * redisplay-tty.c (tty_output_display_block): ditto.
12911
12912         * gutter.c: (specifier_vars_of_gutter): use new spec changed
12913         functions.
12914         (gutter_specs_changed): do specific gutter positions.
12915         (top_gutter_specs_changed): new function. Only update the
12916         specified gutter specs.
12917         (bottom_gutter_specs_changed): ditto.
12918         (left_gutter_specs_changed): ditto.
12919         (right_gutter_specs_changed): ditto.
12920
12921         * gui.c (gui_item_hash_internal): new function, does a real hash.
12922         (gui_item_id_hash): use it.
12923         (gui_item_hash): hash the eval'ed gui_item.
12924
12925         * gui-x.c (popup_selection_callback): send an eval event to call
12926         Fupdate_widget_instances.
12927
12928         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
12929         to call Fupdate_widget_instances.
12930
12931         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
12932         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
12933
12934         * glyphs.c: (update_frame_subwindows): deleted.
12935         (Fupdate_widget_instances): new function for updating the dirty
12936         state of widgets that might have changed.
12937         (syms_of_glyphs): add Qupdate_widget_instances.
12938         (full_list_hash): hash a list completely.
12939         (image_instance_hash): use it for items and properties.
12940
12941         * frame-msw.c (mswindows_size_frame_internal): remove unused
12942         variable.
12943
12944         * faces.h (struct face_cachel): fix comment.
12945
12946         * event-stream.c (Fdispatch_non_command_events): new
12947         function. Process non-command events, forcing an event cycle
12948         beforehand.
12949         (syms_of_event_stream): declare.
12950         (event_stream_force_event_pending): new function. Force an event
12951         on the native event queue so that an event cycle will occur next
12952         time we check.
12953
12954         * event-msw.c:
12955         (struct ntpipe_shove_stream):
12956         (mswindows_enqueue_dispatch_event):
12957         (mswindows_dequeue_dispatch_event):
12958         (mswindows_cancel_dispatch_event):
12959         (mswindows_pump_outstanding_events):
12960         (mswindows_drain_windows_queue):
12961         (mswindows_handle_paint):
12962         (mswindows_wnd_proc):
12963         (mswindows_key_to_emacs_keysym):
12964         (get_process_input_waitable):
12965         (emacs_mswindows_delete_stream_pair): re-indent file.
12966         (mswindows_need_event): do not process further fds if the windows
12967         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
12968         fixes the 100% cpu problem.
12969         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
12970
12971 2000-03-15  Olivier Galibert  <galibert@pobox.com>
12972
12973         * alloc.h: New.
12974         * dumper.h: New.
12975         * dumper.c: New.
12976
12977         * emacs.c: Moved dump file searching to dumper.c.
12978         (Frunning_temacs_p): Fixed.
12979
12980         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
12981         last_lrecord_type_index_assigned.
12982
12983 2000-02-20  Olivier Galibert  <galibert@pobox.com>
12984
12985         * symsinit.h: Added reinit parameter to init_console_stream
12986         declaration.
12987
12988         * lisp.h: Added file parameter to pdump_load declaration.
12989
12990         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
12991         support.  Added dump file searching.
12992
12993         * config.h.in: Added EMACS_PROGNAME.
12994
12995         * console-stream.c (init_console_stream): Fix reinitialisation
12996         when running from temacs.
12997
12998         * alloc.c (pdump): Add id support.
12999         (pdump_load): Add file parameter and signature/id support.
13000
13001         * Makefile.in.in: Add full pdump support.
13002
13003 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
13004
13005         * postgresql.c: Update documentation to reflect latest code
13006         status.
13007         (print_result): Show tuple counts in printed representation when
13008         appropriate.
13009         (Fpq_put_nbytes): MULE-ize.
13010         (Fpq_get_line_async): Ditto.
13011
13012 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
13013
13014         * postgresql.c (Fpq_lo_import): Fix return value.
13015         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
13016
13017 2000-03-13  Ben Wing  <ben@xemacs.org>
13018
13019         * alloc.c (pdump_load):
13020         Fix compile warning under mswin.
13021
13022 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
13023
13024         * postgresql.c: Mule-ization, bug fixes.
13025         Use PG_CODING to encapsulate coding system name changes.
13026         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
13027         (pg-coding-system): Create.
13028
13029         (Fpq_conn_defaults): Mule-ize.
13030         (Fpq_connectdb): Mule-ize & bug fix.
13031         (Fpq_connect_start): Mule-ize.
13032         (Fpq_set_client_encoding): Mule-ize.
13033         (Fpq_finish): Document `DEAD' connection status.
13034         (Fpq_clear): Ditto.
13035         (Fpq_pgconn): Mule-ize.
13036         (Fpq_exec): Mule-ize & bug fix.
13037         (Fpq_send_query): Ditto.
13038         (Fpq_get_result): Ditto.
13039         (Fpq_res_status): Mule-ize.
13040         (Fpq_result_error_message): Mule-ize.
13041         (Fpq_ntuples): fix comments.
13042         (Fpq_fname): Mule-ize.
13043         (Fpq_fnumber): Mule-ize.
13044         (Fpq_ftype): fix comments.
13045         (Fpq_get_value): Mule-ize.
13046         (Fpq_cmd_status): Ditto.
13047         (Fpq_cmd_tuples): Ditto.
13048         (Fpq_oid_value): Ditto.
13049         (Fpq_notifies): Ditto.
13050         (Fpq_lo_import): Ditto.
13051         (Fpq_lo_export): Ditto.
13052         (Fpq_get_line): Ditto.
13053         (Fpq_put_line): Mule-ize and bug fix.
13054         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
13055
13056 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
13057
13058         * postgresql.c (vars_of_postgresql): Mule-ize.
13059         (Fpq_conn_defaults): Ditto.
13060
13061 2000-03-12  Ben Wing  <ben@xemacs.org>
13062
13063         * alloc.c (Fmake_byte_code):
13064         * alloc.c (debug_string_purity_print):
13065         * alloc.c (pdump_backtrace):
13066         * alloc.c (pdump_get_indirect_count):
13067         * alloc.c (pdump_register_sub):
13068         * alloc.c (pdump_register_object):
13069         * alloc.c (pdump_register_struct):
13070         * alloc.c (pdump_dump_data):
13071         * alloc.c (pdump_reloc_one):
13072         Minor cleanups.
13073
13074         * console-msw.c:
13075         * console-msw.c (GetConsoleHwnd):
13076         * console-msw.c (msw_hide_console):
13077         * console-msw.c (msw_show_console):
13078         * console-msw.c (msw_ensure_console_buffered):
13079         * console-msw.c (msw_output_console_string):
13080         * console-msw.c (console_type_create_mswindows):
13081
13082         a) Added functions to manipulate the console window for use with
13083         shell support.
13084
13085         b) Added support for writing text to the console, which is now
13086         used under Windows when xemacs is not being run non-interactively,
13087         to write text that would otherwise be destined for stdout because
13088         under these circumstances, text written to stdout tends to
13089         disappear and not be seen.
13090
13091         * console-msw.h:
13092         * event-Xt.c:
13093         * event-Xt.c (x_event_to_emacs_event):
13094         * event-Xt.c (describe_event_window):
13095         * events-mod.h (XEMACS_MOD_CONTROL):
13096         * events.c:
13097         * events.c (Fmake_event):
13098         * events.c (character_to_event):
13099         * events.c (event_to_character):
13100         * events.c (format_event_object):
13101         * events.c (Fevent_modifiers):
13102         * events.h:
13103         * events.h (struct key_data):
13104         * events.h (struct button_data):
13105         * events.h (struct misc_user_data):
13106         * frame-x.c (Fcde_start_drag_internal):
13107         * frame-x.c (Foffix_start_drag_internal):
13108         * gpmevent.c (Freceive_gpm_event):
13109         * keymap.c:
13110         * keymap.c (bucky_sym_to_bucky_bit):
13111         * keymap.c (control_meta_superify):
13112         * keymap.c (make_key_description):
13113         * keymap.c (keymap_lookup_directly):
13114         * keymap.c (create_bucky_submap):
13115         * keymap.c (keymap_store):
13116         * keymap.c (define_key_check_and_coerce_keysym):
13117         * keymap.c (define_key_parser):
13118         * keymap.c (define_key_alternate_name):
13119         * keymap.c (Fdefine_key):
13120         * keymap.c (raw_lookup_key_mapper):
13121         * keymap.c (struct map_keymap_unsorted_closure):
13122         * keymap.c (map_keymap_unsorted_mapper):
13123         * keymap.c (map_keymap_sort_predicate):
13124         * keymap.c (map_keymap_sorted):
13125         * keymap.c (accessible_keymaps_mapper_1):
13126         * keymap.c (where_is_recursive_mapper):
13127         * keymap.c (describe_map_mapper):
13128         * keymap.c (describe_map_sort_predicate):
13129         * keymap.c (describe_map):
13130         * keymap.c (complex_vars_of_keymap):
13131         And a number of other files, the key modifier preprocessor
13132         constants that xemacs uses have names that conflict with constants
13133         defined under MS Windows for other purposes, so they were renamed
13134         to begin with the prefix XEMACS_. The variables that hold such
13135         modifiers were changed to consistently be of type int to fix
13136         various compile warnings.
13137
13138         * console.c (complex_vars_of_console):
13139         * device.c:
13140         * device-msw.c:
13141         * device-msw.c (mswindows_finish_init_device):
13142         * device-msw.c (msw_get_workspace_coords):
13143         * device-msw.c (mswindows_device_system_metrics):
13144         and various other files, added support for a new
13145         device property called offset-workspace which returns the position
13146         of the upper left corner of the workspace area and goes along with
13147         the existing size-workspace property.
13148
13149         * dialog-msw.c:
13150         * dialog-msw.c (push_bufbyte_string_as_unicode):
13151         * dialog-msw.c (mswindows_popup_dialog_box):
13152         Added support for XEmacs-style accelerator specifications in
13153         button text.  Note: I didn't add support for this under X Windows,
13154         and somebody needs to do this.
13155
13156         * dialog.c:
13157         * dialog.c (Fpopup_dialog_box):
13158         Documented the support for accelerators that was just mentioned.
13159
13160         editfns.c (get_home_directory): Changed behavior under Windows
13161         when HOME not defined; former behavior was irretrievably broken.
13162
13163         * emacs.c:
13164         * emacs.c (main_1):
13165         * emacs.c (main):
13166         * minibuf.c (clear_echo_area_internal):
13167         * minibuf.c (echo_area_append):
13168         * print.c:
13169         * print.c (std_handle_out_external):
13170         * print.c (std_handle_out_va):
13171         * print.c (fatal):
13172         * print.c (write_string_to_stdio_stream):
13173         * print.c (output_string):
13174         * print.c (debug_print):
13175         * print.c (debug_backtrace):
13176         * print.c (debug_short_backtrace):
13177         Cleaned up the code that prints text to stdout so that this can be
13178         changed to output into a console window instead under MS Windows,
13179         as described above.
13180
13181         * eval.c:
13182         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
13183         * eval.c (internal_catch):
13184         * eval.c (unwind_to_catch):
13185         * eval.c (throw_or_bomb_out):
13186         * eval.c (condition_case_1):
13187         * eval.c (signal_1):
13188         * eval.c (check_error_state_sanity):
13189         * eval.c (call_with_suspended_errors_1):
13190         * eval.c (call_with_suspended_errors):
13191         * eval.c (reinit_vars_of_eval):
13192         Added code to catch throw loops and check for a pesky bug that may
13193         be gone now.
13194
13195         * event-msw.c:
13196         * event-msw.c (key_needs_default_processing_p):
13197         * event-msw.c (mswindows_wnd_proc):
13198         * event-msw.c (mswindows_modifier_state):
13199         * event-msw.c (emacs_mswindows_quit_p):
13200         * event-msw.c (vars_of_event_mswindows):
13201         a) Added support for using the alt key to select menu items as is
13202         standard under MS Windows.  This is controlled using the variable
13203         menu-accelerator-enabled, just like under X Windows.  There is an
13204         option on the options menu to turn this support on.  I really
13205         think that it should be on by default under Windows, but I'm not
13206         going to make this change yet.
13207
13208         b)  Added support for dynamic display size changes under Windows.
13209
13210         * event-stream.c:
13211         * event-stream.c (maybe_echo_keys):
13212         * event-stream.c (Fnext_event):
13213         * event-stream.c (command_builder_find_leaf):
13214         * event-stream.c (lookup_command_event):
13215         * event-stream.c (execute_command_event):
13216         * event-stream.c (pre_command_hook):
13217         * event-stream.c (post_command_hook):
13218         * event-stream.c (syms_of_event_stream):
13219         * event-stream.c (vars_of_event_stream):
13220         * event-stream.c (complex_vars_of_event_stream):
13221         * events.h (struct command_builder):
13222
13223         a) Tried to clean up a little bit the horribly written x-specific
13224         accelerator code that crept into this file.  I moved this code
13225         into menubar-x.c where it belongs. I also needed to move the
13226         command builder structure into the file events.h because it is
13227         accessed directly by this accelerator code.  What I didn't do, but
13228         which should be done at some point, is to properly abstract this
13229         code using device methods instead of the kludgy way that it
13230         currently hooks into the event code.
13231
13232         b) Added the lisp variables this-command-properties and
13233         last-command- properties, which should be used to synchronize two
13234         adjacent commands in preference to playing games with the variable
13235         this-command, which is typically what happens.
13236
13237         c) Added some slightly nasty code to hook into the lisp support
13238         for shifted- motion-key selection.  This is actually necessary for
13239         somewhat complicated reasons, which are described in
13240         simple.el. (NB: I think the proper thing would be to have the code
13241         that calls the pre and post command hooks also call out to generic
13242         lisp functions in simple.el, where all built-in stuff could be
13243         added.  I will think about this more.)
13244
13245         * event-unixoid.c (poll_fds_for_input):
13246         * lread.c (readchar):
13247         * redisplay-tty.c (tty_clear_frame):
13248         * redisplay-x.c (x_get_gc):
13249         * signal.c (interrupt_signal):
13250         And a whole bunch of other files: fixed up places that printed
13251         directly to stderr to instead call the function stderr_out so that
13252         the changes I made under Windows work correctly.
13253
13254         * filemode.c (mode_string):
13255         Warning fixes.
13256
13257         * frame-msw.c:
13258         * frame-msw.c (mswindows_size_frame_internal):
13259         Fixed the computation of frame size and position to keep the frame
13260         within the workspace area, rather than within the physical
13261         dimensions of the screen, so that the frame doesn't overlap window
13262         manager decorations, such as the start menu and toolbar, typically
13263         at the bottom of the screen.
13264
13265         * frame.c (vars_of_frame):
13266         Changed the default frame title format under MS Windows to consist
13267         of buffername-XEmacs, which is standard under MS Windows.  I think
13268         it might be a good idea to change this everywhere because I think
13269         it is superior to the current frame title format, but this is the
13270         kind of change that is likely to cause some people to get annoyed,
13271         so I'm not making it.
13272
13273         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
13274
13275         * gui-msw.c (mswindows_handle_gui_wm_command):
13276         Fixed compile warnings.
13277
13278         * gui-x.c:
13279         * gui-x.c (strdup_and_add_accel):
13280         * gui-x.c (button_item_to_widget_value):
13281         * gui-x.h:
13282         Added code to automatically put an accelerator onto the beginning
13283         of menu items that don't have one as is now the standard, and is
13284         described more later.  Also fixed things so that the menu item
13285         name can be an evaluated expression, again a new standard.
13286
13287         * gui.c:
13288         * gui.c (gui_item_add_keyval_pair):
13289         * gui.c (make_gui_item_from_keywords_internal):
13290         * gui.c (gui_add_item_keywords_to_plist):
13291         * gui.c (gui_item_accelerator):
13292         * gui.c (gui_name_accelerator):
13293         * gui.c (gui_item_included_p):
13294         * gui.c (gui_item_display_flush_left):
13295         * gui.c (gui_item_display_flush_right):
13296         * gui.c (parse_gui_item_tree_item):
13297         * gui.c (parse_gui_item_tree_children):
13298         * gui.c (parse_gui_item_tree_list):
13299         Mule-ized.  Cleanup.  GCPRO addition.
13300
13301         * line-number.c (buffer_line_number):
13302         * lisp.h:
13303         * lisp.h (EMACS_INT_MAX):
13304         Added the manifest constant EMACS_INT_MIN corresponding to the
13305         existing constant EMACS_INT_MAX.  This is partially to fix compile
13306         warnings under Windows, and partly for cleanliness.
13307
13308         * menubar-msw.c:
13309         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
13310         * menubar-msw.c (msw_translate_menu_or_dialog_item):
13311         * menubar-msw.c (displayable_menu_item):
13312         * menubar-msw.c (populate_menu_add_item):
13313         * menubar-msw.c (populate_or_checksum_helper):
13314         * menubar-msw.c (populate_menu):
13315         * menubar-msw.c (update_frame_menubar_maybe):
13316         * menubar-msw.c (prune_menubar):
13317         * menubar-msw.c (msw_char_is_accelerator):
13318         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
13319         * menubar-msw.c (mswindows_handle_wm_command):
13320         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
13321         * menubar-msw.c (mswindows_handle_wm_initmenu):
13322         * menubar-msw.c (mswindows_update_frame_menubars):
13323         * menubar-msw.c (mswindows_free_frame_menubars):
13324         * menubar-msw.c (mswindows_popup_menu):
13325         Fixed a bug in handling accelerators where an extra character
13326         would be displayed in the menu item.  Also generalized the
13327         function displayable_menu_item because it is now used by the
13328         dialog box code as well.  And finally, added code in the functions
13329         that create the menubar to extract a list of accelerators for the
13330         top level menubar, which is used in the event code to determine
13331         whether a particular alt-key combination should be used to invoke
13332         a menu item, or should be passed through to access the standard
13333         XEmacs keymap binding for this key combination.
13334
13335         Much needed GCPROing.
13336
13337         * menubar-x.c:
13338         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
13339         * menubar-x.c (menu_item_descriptor_to_widget_value):
13340         * menubar-x.c (restore_in_menu_callback):
13341         * menubar-x.c (x_popup_menu):
13342         * menubar-x.c (menu_move_up):
13343         * menubar-x.c (menu_move_down):
13344         * menubar-x.c (menu_move_left):
13345         * menubar-x.c (menu_move_right):
13346         * menubar-x.c (menu_select_item):
13347         * menubar-x.c (command_builder_operate_menu_accelerator):
13348         * menubar-x.c (menu_accelerator_junk_on_error):
13349         * menubar-x.c (command_builder_find_menu_accelerator):
13350         * menubar-x.c (Faccelerate_menu):
13351         * menubar.h:
13352         Moved a whole bunch of code here that was previously in
13353         event-stream.c as described above.  There is also code connected
13354         to the new standard of adding an accelerator to the beginning of
13355         menu items that don't have one as described above and below.
13356
13357         * menubar.c:
13358         * menubar.c (menu_parse_submenu_keywords):
13359         * menubar.c (Fmenu_find_real_submenu):
13360         * menubar.c (Fnormalize_menu_item_name):
13361         * menubar.c (syms_of_menubar):
13362         * menubar.c (vars_of_menubar):
13363         * menubar.c (complex_vars_of_menubar):
13364
13365         a) Cleaned up a bunch of documentation and improved it.
13366
13367         b) XEmacs now automatically adds an accelerator onto the beginning
13368         of any menu items that don't have one.  I did this because there
13369         will inevitably be some menu items on the main menubar that don't
13370         have accelerators on them because the package that adds that
13371         particular menu item hasn't yet been fixed up to have accelerators
13372         in them and it looked rather strange to have some items with and
13373         some items without accelerators, especially since even in items
13374         without accelerators, you can, at least under windows, still
13375         access the item through an accelerator corresponding to the first
13376         character in the item's name.  If people don't like this behavior,
13377         I can add a variable to turn it off optionally, but I'm not sure
13378         this is a good idea because we really do need to have accelerators
13379         on all of the menu items, and if a package doesn't like the
13380         accelerators being put on the first character, then it should put
13381         the accelerators where they belong.
13382
13383         c) I made a behavior change, which is that the descriptor that
13384         specifies the text of the menu item, which formerly was just a
13385         string, can now also be an evaluated expression.  This makes this
13386         descriptor parallel with all of the others, which could also be
13387         evaluated expressions.  This also obviates the need for the
13388         keyword :label, which was previously listed in the documentation
13389         as unimplemented, and which was for the same purpose.
13390
13391         d) GCPROing.
13392
13393         * ntproc.c:
13394         * ntproc.c (new_child):
13395         * ntproc.c (sys_spawnve):
13396         * ntproc.c (find_child_console):
13397         * ntproc.c (sys_kill):
13398         Fixed compile warnings.  By the way, this file should really go
13399         away entirely, and this will happen as soon as Kirill makes his
13400         final round of process cleanups, which affect the function
13401         call-process.
13402
13403         * process-nt.c:
13404         * process-nt.c (struct nt_process_data):
13405         * process-nt.c (find_process_from_pid):
13406         * process-nt.c (send_signal_the_nt_way):
13407         * process-nt.c (enable_child_signals):
13408         * process-nt.c (find_child_console):
13409         * process-nt.c (send_signal_the_95_way):
13410         * process-nt.c (nt_finalize_process_data):
13411         * process-nt.c (ensure_console_window_exists):
13412         * process-nt.c (nt_create_process):
13413         * process-nt.c (nt_kill_child_process):
13414         * process-nt.c (nt_kill_process_by_pid):
13415         * process-nt.c (nt_open_network_stream):
13416         * process-nt.c (vars_of_process_nt):
13417         Copied over code from Emacs 20.5 to correctly send signals to sub-
13418         processes under Windows 95.  Also added code to automatically
13419         create and hide console window when a sub-process is created under
13420         Windows 95, which obviates the need for the separate runemacs.exe
13421         executable, and finally implemented some variables that were
13422         implemented in Emacs 20.5, but previously not in XEmacs.  These
13423         include mswindows- start-process-share-console and
13424         mswindows-start-process-inherit-error-mode. (Both of these only
13425         apply to Windows 95.)
13426
13427         * regex.c (regex_compile): Fixed a compile warning.
13428
13429         * select-msw.c:
13430         * select-msw.c (mswindows_own_selection):
13431         * select-msw.c (mswindows_get_foreign_selection):
13432         * select-msw.c (mswindows_disown_selection):
13433         * select-msw.c (console_type_create_select_mswindows):
13434         * select-msw.c (syms_of_select_mswindows):
13435         Cleaned up the file and implemented the device method
13436         selection_exists_p, which had accidentally been left out.  Also
13437         removed four lisp functions that were remnants from before the
13438         time when the selection code was properly device abstracted.
13439         These functions are no longer needed because there are generic
13440         equivalents, and because they were added recently and don't exist
13441         in FSF Emacs, I don't think there's any problem with just deleting
13442         them.
13443
13444         * sysdep.c:
13445         * sysdep.c (sys_subshell):
13446         Fixed a compile warning, although in this case there's probably
13447         something wrong with this code, and it ought to be looked into
13448         more thoroughly by somebody who understands it.
13449
13450         * window.c:
13451         * window.c (Fwindow_text_area_height):
13452         * window.c (Fwindow_width):
13453         * window.c (Fwindow_full_width):
13454         * window.c (Fwindow_pixel_width):
13455         * window.c (debug_print_window):
13456         * window.c (syms_of_window):
13457         Added functions window-text-area-height and window-full-width,
13458         which are functions for returning various width and height
13459         characteristics of a window. (One of these functions is necessary
13460         for making the file dialog box work correctly, and the other one
13461         was added for completeness.)  Also added a table to the
13462         documentation for window-height which describes the entire scheme
13463         for accessing width and height characteristics of a window.
13464
13465 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13466
13467         * nt.c (fstat): Added a comment for another problem with
13468         non-encapsulated [f]stat(), reported by Adrian Aichner
13469         <aichner@ecf.teradyne.com>.
13470
13471 2000-03-11  Andy Piper  <andy@xemacs.org>
13472
13473         * window.c (make_dummy_parent): initialize subwindow instance
13474         cache.
13475         (Fset_window_configuration): zero extent_modiff.
13476
13477 2000-03-10  Andy Piper  <andy@xemacs.org>
13478
13479         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
13480         more changes can be triggered.
13481         (Fredisplay_frame): ditto.
13482         (Fredraw_device): ditto.
13483         (Fredisplay_device): ditto.
13484         (redisplay_frame): make non-static.
13485         (redisplay_frame): call update_frame_gutter_geometry outside of
13486         display proper.
13487
13488         * gutter.h: declare update_frame_gutter_geometry.
13489
13490         * redisplay.h: declare redisplay_frame.
13491
13492         * gutter.c (update_frame_gutter_geometry): move geometry changes
13493         in update_frame_gutters here. Geometry changes can only occur
13494         outside of redisplay.
13495         (update_frame_gutters): remove geometry change code.
13496         (Fredisplay_gutter_area): make sure that we are in display when we
13497         update and that we have flushed any size changes.
13498
13499 2000-03-11  Andy Piper  <andy@xemacs.org>
13500
13501         * alloc.c (pdump_dump_data): remove i & count shadows.
13502
13503 2000-02-27  Mike Alexander  <mta@arbortext.com>
13504
13505         * sysdep.h: Declare pdump_read_file
13506
13507         * sysdep.c (pdump_read_file): New function
13508
13509         * alloc.c (pdump_load): Call pdump_read_file to get the portable
13510         dump data
13511
13512 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
13513
13514         * lrecord.h: add `lrecord_type_pgsetenv'.
13515
13516 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
13517
13518         * symsinit.h: declare (vars|syms)_of* functions.
13519         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
13520
13521 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
13522
13523         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
13524
13525         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
13526         GCCs.
13527
13528         * emacs.c (main_1): Call postgres initialization code.
13529
13530         * postgresql.h: New file.  PostgreSQL RDBMS support.
13531         * postgresql.c: New file.
13532
13533 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
13534
13535         * redisplay-output.c (redisplay_output_display_block): Disable
13536         redundant code.
13537
13538 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
13539
13540         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
13541         (Fcanna_henkan_next): Ditto.
13542         (Fcanna_bunsetu_henkou): Ditto.
13543         (Fcanna_henkan_kakutei): Ditto.
13544         (Fcanna_henkan_end): Ditto.
13545         (Fcanna_henkan_quit): Ditto.
13546         (Fcanna_henkan_next): Set retun value correctly.
13547         (c2mu): Use unsigned char instead of signed char.
13548
13549 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
13550
13551         * emacs.c (main_1): Always call syms_of_gui.
13552         * inline.c: include gui.h
13553
13554 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
13555
13556         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
13557         converted to Lisp_Object.
13558         (Qtop_bottom): New variable.
13559         (syms_of_redisplay): Initialize it.
13560         * redisplay.h (Vvisible_bell): Ditto.
13561         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
13562         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
13563         only flash top and bottom.
13564
13565 2000-03-08  Andy Piper  <andy@xemacs.org>
13566
13567         * buffer.c (Frename_buffer): record new buffer name the right way.
13568
13569 2000-03-08  Andy Piper  <andy@xemacs.org>
13570
13571         * glyphs.c (update_subwindow): increase hash depth so that widget
13572         items get picked up properly.
13573
13574         * redisplay-output.c (compare_runes): increase hash depth so that
13575         widget items get picked up properly.
13576
13577 2000-03-08  Andy Piper  <andy@xemacs.org>
13578
13579         * gutter.c (output_gutter): add some debug.
13580
13581         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
13582         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
13583         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
13584
13585         * redisplay-output.c (compare_runes): use display_hash to
13586         determine if glyphs really are not the same.
13587
13588         * glyphs.c (update_subwindow): check display_hash to see if
13589         anything really needs to be updated. If not then do
13590         nothing. Record the display_hash after updating.
13591         (image_instance_equal): compare the image_instance face also.
13592
13593 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
13594
13595         * redisplay.h: Fix comment style.
13596
13597 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13598
13599         * consle-msw.h (struct mswindows_frame):
13600         Added new member paint_pending to indicate whether a WM_PAINT
13601         magic event has been queued for this frame.
13602
13603         * event-msw.c (mswindows_drain_windows_queue):
13604         Don't queue a WM_PAINT magic event if one is already queued.
13605         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
13606
13607         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
13608
13609 2000-03-07  Didier Verna  <didier@xemacs.org>
13610
13611         * dired.c: #include `regex.h' after `sysfile.h'.
13612
13613 2000-03-06  Martin Buchholz  <martin@xemacs.org>
13614
13615         * sound.c (init_nas_sound): Fix compiler warning.
13616
13617         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
13618         (FREE_STRUCT_P):
13619         (MARK_STRUCT_AS_FREE):
13620         (MARK_STRUCT_AS_NOT_FREE):
13621         Make `gcc -fstrict-aliasing' work properly.
13622
13623 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13624
13625         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
13626         (mswindows_delete_device): Call CoUnnitialize().
13627
13628         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
13629
13630 2000-02-25    <CraigL@DyCon.com>
13631
13632         * process-nt.c: MinGW now has <shellapi.h>, but still needs
13633         <errno.h>.
13634
13635         * sysdep.c: This extern declaration for environ prevents MinGW
13636         from finding the variable in CRTDLL.DLL.
13637
13638         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
13639         windows headers.
13640         (SHGFI_EXETYPE): ..
13641         (WM_MOUSEWHEEL): ..
13642         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
13643         definitions.
13644         (MMRESULT): Removed, now defined in cygwin's windows headers.
13645         (TIMECAPS): ..
13646         (uid_t,gid_t,pid_t,ssize_t): ..
13647         (_timeb): Removed, MinGW defines both _timeb and timeb.
13648         (HAVE_H_ERRNO): Added.
13649         (HAVE_TZNAME): Added, configure is not detecting this.
13650
13651 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
13652
13653         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
13654         * syntax.c (syntax_match): Use it.
13655
13656         * cmds.c: Import auto-fill-chars from FSF Emacs.
13657         (Vauto_fill_chars): New variables.
13658         (internal_self_insert): Check Vauto_fill_chars.
13659         (vars_of_cmds):
13660         Declare auto-fill-chars as a Lisp variable and initialize it.
13661
13662 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13663
13664         * fileio.c (Fmake_symbolic_link):
13665         (Ffile_symlink_p):
13666         Run handlers even if local machine doesn't have symlinks.
13667
13668 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13669
13670         * event-msw.c (mswindows_drain_windows_queue):
13671         Don't generate paint magic events for non-XEmacs frames.
13672
13673 2000-03-05  Andy Piper  <andy@xemacs.org>
13674
13675         * redisplay.c (redisplay_frame): generate_displayable_area and
13676         friends assumes that we are not in GC, we therefore have to make
13677         sure that this doesn't happen.
13678
13679         * gutter.c (calculate_gutter_size): generate_displayable_area
13680         assumes that we are not in GC, we therefore have to make sure that
13681         this doesn't happen.
13682
13683 2000-03-05  Martin Buchholz  <martin@xemacs.org>
13684
13685         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
13686
13687 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
13688
13689         * redisplay.c (regenerate_window): Make sure we set a sane value
13690         for end_pos even if we jump out of the loop.
13691         (regenerate_window): Answer Ben's question :-).
13692         (start_end_of_last_line): Add may_error argument.
13693         (start_of_last_line):
13694         (end_of_last_line): Pass may_error = 0.
13695         (end_of_last_line_may_error): New function.
13696         (pixel_to_glyph_translation): Use it, so we don't crash in
13697         event_to_glyph.
13698
13699 2000-03-04  Andy Piper  <andy@xemacs.org>
13700
13701         * window.h (struct window): add gutter_extent_modiff.
13702
13703         * window.c (allocate_window): zero out gutter_extent_modiff.
13704
13705         * redisplay.h: declare sync_display_line_structs.
13706
13707         * redisplay.c (add_glyph_rune): add a better comment.
13708
13709         * redisplay-output.c (sync_display_line_structs): made non-static.
13710         (compare_runes): remove unneccesary glyph cachel access.
13711
13712         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
13713
13714         * gutter.c (output_gutter): don't output the gutter if extent
13715         changes only involve extents in buffers. use 4 sets of display
13716         lines.
13717         (gutter_extent_signal_changed_region_maybe): new function. Mark
13718         extents in gutters as changed.
13719         (update_frame_gutters): use 4 sets of display lines.
13720         (reset_gutter_display_lines): ditto.
13721         (free_frame_gutters): ditto.
13722         (redraw_exposed_gutter): force output of gutters.
13723
13724         * frame.h (struct frame): add 4 sets of gutter display lines.
13725
13726         * extents.c: (extent_changed_for_redisplay): signal changes to
13727         extents in strings in the gutter as well as extents in buffers.
13728
13729 2000-03-02  Andy Piper  <andy@xemacs.org>
13730
13731         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
13732
13733         * frame.c (Fmake_frame): make sure the gutters get initialized
13734         after the frame is visible.
13735         (set_frame_selected_window): re-arrange compilation macros a
13736         little.
13737         (change_frame_size_1): mark gutters changed.
13738
13739         * device.c (Fset_device_class): mark gutters changed.
13740
13741 2000-03-01  Andy Piper  <andy@xemacs.org>
13742
13743         * window.c (window_top_frame_gutter_height): deleted.
13744         (window_bottom_frame_gutter_height): ditto.
13745         (window_left_frame_gutter_height): ditto.
13746         (window_right_frame_gutter_height): ditto.
13747         (window_top_gutter_height): don't use them.
13748         (window_bottom_gutter_height): ditto.
13749         (window_left_gutter_width): ditto.
13750         (window_right_gutter_width): ditto.
13751         (Fsplit_window): ditto.
13752         (Fwindow_pixel_edges): don't use border dimensions here.
13753
13754         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
13755         (update_scrollbar_instance): ditto.
13756
13757         * redisplay.c (generate_modeline): don't take gutters into account.
13758         (generate_modeline): ditto.
13759         (redisplay_frame): small gutter display optimization.
13760
13761         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
13762
13763         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
13764         gutters into account.
13765
13766         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
13767         for window position and type.
13768
13769         * gutter.c (get_gutter_coords): fix for frame gutters.
13770         (update_frame_gutters): update frame geometry if the gutters have
13771         changed.
13772         (init_frame_gutters): record current gutter geometries.
13773
13774         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
13775         var.
13776         (mswindows_widget_instantiate): ditto.
13777
13778         * frame.h (struct frame): add current_gutter_bounds.
13779
13780         * frame.c (change_frame_size_1): position window and minibuffer
13781         appropriately taking into account the frame gutters.
13782
13783         * frame-x.c: (x_initialize_frame_size): take into account the
13784         frame gutters.
13785
13786 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
13787
13788         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
13789
13790 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
13791
13792         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
13793
13794 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
13795
13796         * file-coding.c (reset_decoding_stream): Clear previous
13797         detection state when autodetect.
13798
13799 2000-02-29  Didier Verna  <didier@xemacs.org>
13800
13801         * extents.c (set_extent_glyph_1): don't require extents to be
13802         attached.
13803
13804 2000-02-27  Andy Piper  <andy@xemacs.org>
13805
13806         * gutter.c (Fset_default_gutter_position): don't default left and
13807         right gutter visibility to t.
13808         (Fset_default_gutter_position): run
13809         default-gutter-position-changed-hook.
13810         (syms_of_gutter): add default-gutter-position-changed-hook.
13811
13812 2000-02-26  Andy Piper  <andy@xemacs.org>
13813
13814         * specifier.c (Fmake_specifier): add gutter references.
13815
13816         * gutter.h (RAW_WINDOW_GUTTER): new macro.
13817
13818         * lisp.h: declare Fvalid_plist_p.
13819
13820         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
13821         as changed.
13822         (default_gutter_visible_p_changed_in_window): invalidate gutter as
13823         well as its visibility so that it gets reconstructed.
13824         (construct_window_gutter_spec): new function. Construct a string
13825         to be displayed in the gutter from a plist of strings. Take care
13826         to only use elements that are declared as visible.
13827         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
13828         WINDOW_GUTTER.
13829         (gutter_validate): allow plists of strings in the specifier.
13830         (gutter_specs_changed): construct the real_gutter from the gutter
13831         specs using construct_window_gutter_spec.
13832         (gutter_visible_validate): gutter-visible is a new specifier type.
13833         (Fgutter_visible_specifier_p): new function for the new specifier.
13834         (syms_of_gutter): declare gutter-visible and
13835         Fgutter_visible_specifier_p.
13836         (specifier_type_create_gutter): intitalize new gutter-visible
13837         specifier.
13838         (reinit_specifier_type_create_gutter): ditto.
13839         (specifier_vars_of_gutter): use new specifier type for gutter
13840         visibility.
13841         (init_frame_gutters): construct real_gutter correctly.
13842         (Fgutter_specifier_p): beef up documentation.
13843         (Fgutter_size_specifier_p): ditto.
13844
13845         * winslots.h: add real_gutter slots.
13846
13847 2000-02-25  Andy Piper  <andy@xemacs.org>
13848
13849         * device-msw.c: Be kind to older cygwin versions. From Raymond
13850         Toy <toy@rtp.ericsson.se>.
13851
13852         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
13853         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
13854
13855 2000-02-25  Martin Buchholz  <martin@xemacs.org>
13856
13857         * elhash.c (MARK_OBJ): Practice macro hygiene.
13858
13859 2000-02-24  Martin Buchholz  <martin@xemacs.org>
13860
13861         * miscplay.c: s/__inline__/inline/g;
13862         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
13863         (get_device_compdc): INLINE ==> static inline
13864         * *.[ch]: Change INLINE to INLINE_HEADER globally.
13865         find -name '*.h' | \
13866         xargs global-replace \
13867         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
13868
13869 2000-02-25  Andy Piper  <andy@xemacs.org>
13870
13871         * window.c (window_top_frame_gutter_height): new function.
13872         (window_top_window_gutter_height): ditto.
13873         (window_top_gutter_height): use them.
13874         (window_bottom_frame_gutter_height): new function.
13875         (window_bottom_window_gutter_height): ditto.
13876         (window_bottom_gutter_height): use them.
13877         (window_left_window_gutter_width): new function.
13878         (window_left_frame_gutter_width): ditto.
13879         (window_left_gutter_width): use them.
13880         (window_right_window_gutter_width): new function.
13881         (window_right_frame_gutter_width): ditto.
13882         (window_right_gutter_width): use them.
13883         (window_pixel_height): new function. calulate window pixel height
13884         with frame gutter involvement.
13885         (Fsplit_window): calculate new sizes taking frame gutters into
13886         account.
13887         (window_char_height_to_pixel_height): don't include frame gutters.
13888         (window_char_height): use window_pixel_height.
13889         (window_pixheight): rename from window_pixel_height.
13890         (change_window_height): use it.
13891         (window_pixel_height_to_char_height): don't include frame gutters.
13892         (window_char_width_to_pixel_width): ditto.
13893
13894 2000-02-25  Andy Piper  <andy@xemacs.org>
13895
13896         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
13897         if it is.
13898
13899 2000-02-24  Martin Buchholz  <martin@xemacs.org>
13900
13901         * alloc.c (staticpro):
13902         (staticpro_nodump):
13903         (dumpstruct):
13904         (dumpopaque):
13905         (pdump_wire):
13906         (pdump_wire_list):
13907         (compact_string_chars):
13908         (pdump_dump_wired):
13909         Convert:  if (foo) abort();  ==>  assert (! foo);
13910
13911         * eldap.c (Fldap_search_basic):
13912         (Fldap_add):
13913         (Fldap_modify):
13914         (Fldap_delete):
13915         Fix compiler warnings, and possible crashes if (random) return
13916         value were to be used.
13917
13918 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13919
13920         * device-msw.c: Workaround ResetDC failure.
13921
13922         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
13923         applying a devmode.
13924
13925         * redisplay-msw.c (get_frame_dc): Added start_page_p.
13926         (mswindows_text_width): Do not start printer page.
13927
13928         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
13929
13930         * glyphs-msw.c: Added image methods to msprinter console and
13931         msprinter-specific image instantiation.
13932
13933 2000-02-20  Mike Alexander  <mta@arbortext.com>
13934
13935         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
13936         to avoid crashes when selection-sets-clipboard is on
13937         (mswindows_own_selection): ditto
13938
13939 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13940
13941         * glyphs-msw.c:
13942         * redisplay-msw.c (get_frame_dc):
13943         (get_frame_compdc):
13944         * console-msw.h:
13945         * device-msw.c (mswindows_init_device):
13946         (mswindows_delete_device):
13947         (msprinter_init_device):
13948         (msprinter_delete_device):
13949         * frame-msw.c (mswindows_init_frame_1):
13950         (mswindows_delete_frame):
13951         (msprinter_init_frame_3):
13952         (msprinter_delete_frame): Move compatible DC to device object from
13953         frame object, for both mswindows and msprinter. Only one at a time
13954         is needed, it is a real waste to have one per frame!
13955
13956 2000-02-23  Andy Piper  <andy@xemacs.org>
13957
13958         * glyphs.c: add dynamic width and height elements.
13959         (image_instance_equal): ditto.
13960
13961         * glyphs-widget.c (widget_query_geometry): calculate width and
13962         height dynamically if required.
13963         (initialize_widget_image_instance): initialize dynamic dimensions.
13964         (widget_instantiate): pick-up dynamic dimensions.
13965
13966         * glyphs.h (struct Lisp_Image_Instance): add width and height for
13967         dynamic determination. Add appropriate macros.
13968
13969         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
13970         dimensions safe.
13971         (WINDOW_GUTTER_SIZE): ditto.
13972         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
13973
13974         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
13975         inline.
13976         (get_frame_dc): ditto.
13977
13978         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
13979         here.
13980
13981 2000-02-23  Martin Buchholz <martin@xemacs.org>
13982
13983         * XEmacs 21.2.31 is released.
13984
13985 2000-02-22  Ben Wing <ben@xemacs.org>
13986
13987         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
13988
13989 2000-02-22  Andy Piper  <andy@xemacs.org>
13990
13991         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
13992
13993 2000-02-21  Mike Sperber <mike@xemacs.org>
13994
13995         * .dbxrc:
13996         * .gdbinit:
13997         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
13998         variables.
13999
14000 2000-02-21  Mike Sperber <mike@xemacs.org>
14001
14002         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
14003
14004 2000-02-21  Martin Buchholz <martin@xemacs.org>
14005
14006         * XEmacs 21.2.30 is released.
14007
14008 2000-02-20  Martin Buchholz  <martin@xemacs.org>
14009
14010         Performance hacking.
14011         * *.c (syms_of_*):
14012         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
14013         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
14014         * emacs.c (main_1):
14015         * lisp.h (DEFUN):
14016         * console.c (DEFVAR_CONSOLE_LOCAL_1):
14017         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
14018         * symeval.h (DEFVAR_SYMVAL_FWD):
14019         * symbols.c (guts_of_unbound_marker):
14020         Make all c_readonly objects also lisp_readonly and marked for life.
14021         * lrecord.h (struct lrecord_implementation):
14022         Document flags better.
14023         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
14024         * lrecord.h (DECLARE_LRECORD):
14025         * lrecord.h (XSETRECORD):
14026         * lrecord.h (RECORDP):
14027         * lrecord.h (RECORD_TYPEP):
14028         * lrecord.h (RECORD_MARKER): New.
14029         * lrecord.h (error_check_*):
14030         * lrecord.h (CONCHECK_NONRECORD):
14031         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
14032         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
14033         * lrecord.h (set_lheader_implementation):
14034         * lrecord.h (enum lrecord_type): New.
14035         * symeval.h (SYMBOL_VALUE_MAGIC_P):
14036         * alloc.c (disksave_object_finalization_1):
14037         * alloc.c (mark_object):
14038         * alloc.c (lrecord_type_index):
14039         * alloc.c (tick_lcrecord_stats):
14040         * alloc.c (Fgarbage_collect):
14041         * alloc.c (init_alloc_once_early):
14042         * alloc.c (pdump_load):
14043         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
14044         * alloc.c (lrecord_type_index): Delete.
14045         Make lisp object type indexes be constant.
14046           Makes (byte-compile) 5% faster.
14047         Put all marker functions into their own array.
14048           Makes (garbage-collect) 5% faster.
14049         Optimize SYMBOL_VALUE_MAGIC_P.
14050           Makes (byte-compile) 2-3% faster.
14051         * config.h.in (gc_checking_assert): New.
14052         * alloc.c: Use gc_checking_assert().
14053         * .dbxrc: Make compatible with new object type implementation.
14054         * .gdbinit: Make compatible with new object type implementation.
14055         * alloc.c: Delete all symbols defined only for debugging, such as
14056         Lisp_Type_Vector and lrecord_charset.
14057
14058 2000-02-21  Andy Piper  <andy@xemacs.org>
14059
14060         * gui-msw.c (Fmswindows_shell_execute): fix file location
14061         problems.
14062
14063         * buffer.c (Fkill_buffer): remove buffer from alist buffer
14064         unshowing so that set_window_buffer doesn't undo
14065         kill_buffer_hook's hard work.
14066
14067         * glyphs-widget.c (tab_control_query_geometry): don't count the
14068         first item when calculating geometry.
14069
14070         * glyphs.c (map_subwindow): remove redundant code.
14071         (update_frame_subwindows): be more circumspect about when to
14072         update subwindows.
14073
14074         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
14075         when items haven't changed. Update faces if faces have changed as
14076         well as just the widget face.
14077         (x_tab_control_update): Update faces if faces have changed as well
14078         as just the widget face.
14079
14080 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14081
14082         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
14083         registration.
14084         (build_syscolor_string): Use mswindows_color_to_string to try to
14085         get a named color.
14086         (mswindows_device_system_metrics): Reverse the foreground and
14087         background colors so that they match the documentation.
14088
14089         * objects-msw.c: (mswindows_X_color_map): tweak some values so
14090         they match the default Windows palette.
14091         (mswindows_color_to_string): New function.
14092
14093 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14094
14095         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
14096
14097 2000-02-18  Olivier Galibert  <galibert@pobox.com>
14098
14099         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
14100         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
14101
14102         * symbols.c (init_symbols_once_early): Removed obsolete
14103         DATA_SEG_BITS related kludge.
14104         (defvar_magic): Ditto.
14105
14106         * malloc.c: Removed obsolete DATA_SEG_BITS
14107         * ralloc.c: Ditto.
14108         * mem-limits.h: Ditto.
14109
14110         * Makefile.in.in: Removed obsolete HAVE_SHM
14111         * emacs.c: Ditto.
14112
14113 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14114
14115         *  device-msw.c (mswindows_delete_device): Free DDE string
14116         handles.
14117
14118 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14119
14120         * keymap.c (get_keyelt):
14121         * unexnt.c (unexec):
14122         * vm-limit.c (memory_warnings):
14123         * ntheap.c (recreate_heap):
14124         * ntheap.h (UNINIT_PTR):
14125         * select-msw.c (Fmswindows_get_clipboard):
14126         (Fmswindows_set_clipboard):
14127         * objects-msw.h (MSWINDOWS_BAD_HFONT):
14128         * objects-msw.c:
14129         * menubar-msw.c (displayable_menu_item):
14130         * glyphs-msw.c:
14131         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
14132         * sysdep.c (sys_subshell):
14133         * process-nt.c (nt_create_process):
14134         * nt.c (normalize_filename):
14135         (dostounix_filename):
14136         (unixtodos_filename):
14137         * ntproc.c (win32_executable_type):
14138         * ntplay.c (play_sound_data_1):
14139         (play_sound_file):
14140         * editfns.c (get_home_directory):
14141         * event-msw.c (struct winsock_stream):
14142         (mswindows_dde_callback):
14143         * device-msw.c (msprinter_init_device):
14144         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
14145
14146         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
14147         mswindows_clear_toolbar were swapped!
14148
14149         * objects-msw.c:(colormap_t):
14150         (fontmap_t):
14151         * emacs.c (struct standard_args): Fixed const jumble.
14152
14153         * glyphs-widget.c (update_widget): Fixed comparison notation.
14154
14155         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
14156
14157         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
14158         __declspec(noreturn) syntax.
14159
14160 2000-02-19  Martin Buchholz  <martin@xemacs.org>
14161
14162         * eldap.c (Fldap_open):
14163         (Fldap_search_basic):
14164         (Fldap_add):
14165         (Fldap_modify):
14166         Use new coding system conversion macros.
14167
14168 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14169
14170         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
14171
14172 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
14173
14174         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
14175         (Fldap_add, Fldap_modify, Fldap_delete): New functions
14176
14177         * eldap.c (Qadd, Qreplace): New constant symbols
14178         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
14179         interruptions by XEmacs signals
14180         Remove unnecessary calls to slow_down_interrupts and
14181         speed_up_interrupts
14182         (Fldap_search_basic): Renamed from Fldap_search_internal
14183         Added new optional parameter VERBOSE that triggers the
14184         display of progress messages
14185         Remove unnecessary calls to slow_down_interrupts and
14186         speed_up_interrupts
14187         LDAP result code analysis rewritten
14188         (Fldap_add, Fldap_modify, Fldap_delete): New functions
14189         (syms_of_eldap): Define the new symbols and functions
14190
14191
14192 2000-02-17  Martin Buchholz  <martin@xemacs.org>
14193
14194         * realpath.c: Determine PATH_MAX maximally portably.
14195
14196         * insdel.c (bytecount_to_charcount): Optimize.
14197         The function used to be optimized for entirely ASCII sequences.
14198         Now it is optimized for successive characters from the same
14199         charset.  This also wins big for _mostly_ ASCII sequences.
14200
14201         * fileio.c (Ffile_truename): convert return from realpath() using
14202         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
14203         - Rewrite GCPROing slightly.
14204
14205         * sysdep.c (sys_open): Do filename conversion, like all other
14206         sys_* functions.  Fixes bug:
14207         (let ((file-name-coding-system 'iso-8859-2))
14208            (write-region x y latin2-name))
14209         ==> writes filename using internal encoding.
14210
14211 2000-02-18  Martin Buchholz  <martin@xemacs.org>
14212
14213         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
14214         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
14215         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
14216         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
14217         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
14218         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
14219         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
14220         (CONST_IF_NOT_DEBUG): Delete.
14221         * alloc.c (this_one_is_unmarkable): Delete.
14222         (mark_object): Don't check for this_one_is_unmarkable. Use the
14223         c_readonly flag instead.
14224         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
14225
14226 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14227
14228         * event-msw.c (mswindows_drain_windows_queue):
14229         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
14230         away redundant repaint events.
14231
14232 2000-02-17  Andy Piper  <andy@xemacs.org>
14233
14234         * redisplay.h: declare mark_redisplay_structs.
14235
14236         * redisplay.c (redisplay_window):
14237         (redisplay_frame): don't check subwindows_state_changed.
14238         (mark_redisplay): mark gutters here.
14239
14240         * glyphs.c: (instantiate_image_instantiator): always layout if we
14241         haven't done so already.
14242         (allocate_image_instance): don't mark as dirty.
14243         (update_subwindow): bind inhibit_quit.
14244
14245         * gutter.c (mark_gutters): new function.
14246
14247         * glyphs-x.c (x_update_widget): Always resize to get round a
14248         widget bug.
14249
14250         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
14251         breaking absolutely everything.
14252
14253         * gutter.h: declare mark_gutters.
14254
14255 2000-02-16  Martin Buchholz <martin@xemacs.org>
14256
14257         * XEmacs 21.2.29 is released.
14258
14259 2000-02-15  Olivier Galibert  <galibert@pobox.com>
14260
14261         * fns.c (size_bit_vector): Fix computation of the size.
14262
14263 2000-02-15  Martin Buchholz  <martin@xemacs.org>
14264
14265         * *.[ch]: Change CONST to const globally.
14266         find -name '*.[ch]' | \
14267         xargs global-replace \
14268         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
14269         - Remove vestigial references to CONST_IS_LOSING
14270
14271 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14272
14273         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
14274         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
14275         events instead of dispatching them directly.
14276         (mswindows_handle_paint): New function to do repainting.
14277         (mswindows_wnd_proc):
14278         (emacs_mswindows_handle_magic_event): Call above function.
14279
14280 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14281
14282         * objects-msw.c (mswindows_create_font_variant): Return the new
14283         font handle.
14284         (initialize_font_instance): Get font metrics from the underlined
14285         variant of the font to cope with the case where the underlined
14286         font has a bigger descent.
14287
14288 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
14289
14290         * gui.c (gui_item_accelerator): Return the first underlined
14291         character in item name.
14292
14293 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14294
14295         * lisp.h: Added Qprinter.
14296
14297         * general.c (syms_of_general): Initialized it.
14298
14299         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
14300         (get_frame_dc):
14301         (get_frame_compdc): Made inline.
14302
14303         * console.h (struct console_methods): Added eject_page method.
14304
14305         * frame.h: Added FRAME_DISPLAY_P and friends.
14306         Aligned backslahes in many macros in more readable fashion.
14307         Added page_number to struct frame, and an accessor macro
14308         for it.
14309
14310         * defice.h: Added DEVICE_DISPLAY_P and friends.
14311
14312         * device.c (Fdevice_printer_p): Used these.
14313
14314         * frame.c (allocate_frame_core): Initialize page number.
14315         (Fprint_job_page_number):
14316         (Fprint_job_eject_page): Implemented.
14317
14318         * frame-msw.c (msprinter_eject_page): Added method.
14319         (msprinter_start_page): Added.
14320
14321         * window.c (Fwindow_truncated_p): Fixed docstring.
14322         (Fwindow_last_line_visible_height): Implemented.
14323
14324 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14325
14326         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
14327
14328 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14329
14330         * syntax.c (scan_words): Always advance at least one character.
14331
14332 2000-02-13  Andy Piper  <andy@xemacs.org>
14333
14334         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
14335         to make sure the glyph is in the cachels.
14336
14337         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
14338         global image instance flag.
14339         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
14340         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
14341
14342         * glyphs.c (allocate_image_instance): set dirty bits correctly.
14343         (Fset_image_instance_property): mark layout as changed.
14344         (invalidate_glyph_geometry_maybe): mark layout as changed.
14345         (glyph_width): use new NEEDS_LAYOUT macro.
14346         (glyph_ascent): ditto.
14347         (glyph_descent): ditto.
14348         (glyph_height): ditto.
14349         (image_instance_layout): mark layout as clean after laying out.
14350         (update_subwindow): don't mark layout as clean here.
14351
14352         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
14353         should no longer be needed.
14354
14355         * glyphs-x.c (x_update_widget): sanitize asserts.
14356         (x_finalize_image_instance): sanitize assignment to widgets.
14357
14358         * glyphs-widget.c (widget_instantiate): don't need to clear the
14359         layout flag here.
14360
14361 2000-02-13  Martin Buchholz  <martin@xemacs.org>
14362
14363         * sysdep.c (getcwd): Use standard prototype.
14364         * sysdep.h (getcwd): Use standard prototype.
14365
14366         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
14367         (sequence, start, end).
14368         Remove redundant type checking.
14369         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
14370         view of `caller-protects') to avoid a crash where the real fix was
14371         found elsewhere.
14372
14373 2000-02-12  Martin Buchholz  <martin@xemacs.org>
14374
14375         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
14376
14377         * s/sol2.h: Remove feature macro initialization.
14378
14379         * alloc.c (alloc_lcrecord): Add more type checking assertions.
14380         (vector_hash): New.  Code from internal_hash.
14381         * lrecord.h:
14382         Fix up allocation subsystem comments.
14383
14384         * config.h.in: Add __EXTENSIONS__ for Solaris.
14385
14386         * systime.h (EMACS_GETTIMEOFDAY): New.
14387         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
14388         Remove Solaris-specific code.
14389         Use void* for the (ignored) second arg for gettimeofday().
14390
14391         * elhash.c (hash_table_hash): Implement it, finally.
14392         * elhash.c:  Use hashcode_t.
14393
14394         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
14395         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
14396
14397         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
14398         * fns.c (size_bit_vector):
14399         * alloc.c (size_vector):
14400         (make_vector_internal):
14401         (make_bit_vector_internal):
14402         (sweep_bit_vectors_1):
14403         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
14404
14405 2000-02-10  Martin Buchholz  <martin@xemacs.org>
14406
14407         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
14408         Include strings.h to avoid warnings for bzero and strcasecmp.
14409
14410 2000-02-10  Olivier Galibert  <galibert@pobox.com>
14411
14412         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
14413         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
14414
14415         * fns.c (size_bit_vector): New.  Declare bit vectors as a
14416         sequence.
14417
14418 2000-02-10  Olivier Galibert  <galibert@pobox.com>
14419
14420         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
14421         use a value field instead.
14422         (symbol_value_forward_forward): Use value field.
14423         (DEFVAR_SYMVAL_FWD): Use value field.
14424         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
14425         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
14426         (DEFVAR_CONST_INT): Ditto.
14427         (DEFVAR_BOOL): Ditto.
14428         (DEFVAR_CONST_BOOL): Ditto.
14429         (DEFVAR_INT_MAGIC): Ditto.
14430         (DEFVAR_BOOL_MAGIC): Ditto.
14431
14432         * symbols.c (guts_of_unbound_marker): Use value field.
14433         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
14434         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
14435
14436         * lisp.h: Declare dumpopaque and noninteractive1.
14437
14438         * alloc.c (dumpopaque): Added.
14439         (pdump_dump_opaquevec): Added.
14440         (pdump): Call pdump_dump_opaquevec to dump opaque data.
14441         (pdump_load): Reload opaque data.  Sync noninteractive1 with
14442         noninteractive.
14443
14444 2000-02-10  Andy Piper  <andy@xemacs.org>
14445
14446         * glyphs.c (image_instance_layout): if the size changes, mark it
14447         as such.
14448
14449         * redisplay-output.c (redisplay_output_layout): Update the
14450         subwindow here.
14451         (redisplay_output_subwindow): ditto.
14452
14453         * glyphs.c (update_subwindow): make sure we reset flags for
14454         layouts as well as everything else.
14455
14456         * glyphs-widget.c (layout_layout): don't need to set the instances
14457         dimensions here.
14458
14459 2000-02-09  Martin Buchholz  <martin@xemacs.org>
14460
14461         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
14462         not HAVE_DLOPEN, which is a lower-level thing.
14463
14464         * .cvsignore: Ignore gmon.out
14465
14466 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
14467
14468         * .cvsignore: Ignore portable dumper xemacs.dmp file
14469
14470 2000-02-09  Andy Piper  <andy@xemacs.org>
14471
14472         * redisplay-output.c (redisplay_output_layout): be more clever
14473         about when we output based on the changed flags.
14474
14475         * glyphs.h (struct image_instantiator_methods): add update_method.
14476         (struct Lisp_Image_Instance): add changed flags. Declare new
14477         macros for manipulating them.
14478
14479         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
14480         (image_instance_parent_glyph): find an image_instance's parent
14481         glyph or image_instance.
14482         (image_instance_layout): mark the size as changed.
14483         (set_image_instance_dirty_p): new function. mark an image
14484         instance, plus all of its parents, as dirty.
14485         (Fset_image_instance_property): use it.
14486         (Fglyph_animated_timeout_handler): use it.
14487         (update_subwindow): call update_widget and device methods for
14488         update_subwindow. Mark all changed flags as clean.
14489         (Fresize_subwindow): mark size as changed.
14490
14491         * glyphs-x.c (x_finalize_image_instance): try and detect gc
14492         failures.
14493         (x_update_subwindow): only resize subwindows here.
14494         (x_update_widget): new function. Update all changed properties of
14495         a widget.
14496         (x_resize_subwindow): deleted.
14497         (x_widget_set_property): deleted.
14498         (x_progress_gauge_set_property): deleted.
14499         (x_progress_gauge_update): new function. Implement recorded
14500         changes.
14501         (x_tab_control_update): ditto.
14502         (x_tab_control_set_property): deleted.
14503         (console_type_create_glyphs_x): declare new functions.
14504         (image_instantiator_format_create_glyphs_x): ditto.
14505
14506         * glyphs-widget.c (widget_set_property): mark text changed.
14507         (update_widget): new function. Update properties of a widget.
14508         (widget_instantiate): for layouts make sure we set their
14509         children's parent correctly.
14510         (tab_control_set_property): new function. Record changes that will
14511         take place under redisplay's control.
14512         (progress_gauge_set_property): ditto.
14513         (image_instantiator_progress_guage): declare new functions.
14514         (image_instantiator_tab_control): ditto.
14515
14516         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
14517         now.
14518         (mswindows_update_widget): new function. Update all properties on
14519         a widget that have changed.
14520         (mswindows_button_update): new function. Update a button's set
14521         state.
14522         (mswindows_tab_control_update): new function. Update the items in
14523         a tab.
14524         (mswindows_tab_control_set_property): deleted.
14525         (mswindows_progress_gauge_update): new function. Update the
14526         progress gauge's progress.
14527         (mswindows_widget_set_property): deleted. This is all done
14528         asynchronously now.
14529         (mswindows_progress_gauge_set_property): ditto.
14530         (console_type_create_glyphs_mswindows): declare new methods.
14531         (image_instantiator_format_create_glyphs_mswindows): ditto.
14532
14533         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
14534         (msprinter_set_frame_properties): ditto.
14535
14536         * console.h (struct console_methods): Add update_widget_method.
14537
14538 2000-02-09  Andy Piper  <andy@xemacs.org>
14539
14540         * gui-msw.c (Fmswindows_shell_execute): Make
14541         mswindows-shell-execute industrial strength.
14542
14543 2000-02-08  Martin Buchholz  <martin@xemacs.org>
14544
14545         * lrecord.h: Make macro argument `props' match member function `plist'.
14546         * fns.c (Fget):
14547         * fns.c (Fput):
14548         * fns.c (Fremprop):
14549         * fns.c (Fobject_plist):
14550         * alloc.c:
14551         * symbols.c:
14552         Object property list frobbing cleanup.
14553         - Allow any lisp object (compared with `eq'), not just symbols, as
14554           keys in object plists.
14555         - Move symbol plist frobbing into symbols.c, where it belongs.
14556         - Move string plist frobbing into alloc.c, where it belongs.
14557         - Everything's an lrecord now, so no need to test for symbolp, etc.
14558         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
14559
14560         * extents.c: Reorder code to remove declarations.
14561
14562         * frame.h (store_in_alist): Remove useless declaration.
14563
14564 2000-02-07  Martin Buchholz  <martin@xemacs.org>
14565
14566         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
14567         * config.h.in: Add HAVE_XCONVERTCASE.
14568
14569 2000-02-07  Andy Piper  <andy@xemacs.org>
14570
14571         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
14572         it breaks many things.
14573
14574 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
14575
14576         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
14577         actually can start a common comment type.
14578         * src/syntax.h (SYNTAX_END_P): ditto for end.
14579
14580 2000-02-07  Martin Buchholz <martin@xemacs.org>
14581
14582         * XEmacs 21.2.28 is released.
14583
14584 2000-02-06  Martin Buchholz  <martin@xemacs.org>
14585
14586         * event-Xt.c (x_keysym_to_character): New.
14587         (maybe_define_x_key_as_self_inserting_character): New.
14588         (x_has_keysym): New.
14589         Auto-define all keys on the keyboard as self-insert-key.
14590
14591 2000-02-02  Martin Buchholz  <martin@xemacs.org>
14592
14593         * menubar.c (vars_of_menubar): A small code simplification.
14594
14595         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
14596
14597         * ExternalShell.c:
14598         * ExternalClient.c:
14599         * EmacsShell-sub.c:
14600         * EmacsManager.c:
14601         * EmacsFrame.c:
14602         Use consistent style for specifying X resources.
14603
14604         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
14605         This makes (dontusethis-set-symbol-value-handler) actually usable.
14606
14607         * lrecord.h (lrecord_decription_type):
14608         * alloc.c (pdump_register_sub):
14609         (pdump_dump_data):
14610         (pdump_reloc_one):
14611         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
14612         Comply with XEmacs coding style.
14613         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
14614         args, and XD_LISP_OBJECT_ARRAY with 3 args.
14615
14616         * keymap.c (Faccessible_keymaps):
14617         Make (accessible-keymaps map "\C-h") do the Right Thing.
14618         Make (accessible-keymaps map []) do the Right Thing.
14619         Make (accessible-keymaps map "") do the Right Thing.
14620         (check_keymap_definition_loop): New function.
14621         (keymap_store_internal): Keep luser from shooting self in foot,
14622           via (define-key ctl-x-4-map "p" global-map).
14623         Remove fullness slot from struct Lisp_Keymap, since hash tables
14624         are now reliable.
14625         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
14626
14627 2000-01-30  Martin Buchholz  <martin@xemacs.org>
14628
14629         * redisplay.c (init_redisplay): Fix small memory leak.
14630         * elhash.h:
14631         * elhash.c (pdump_reorganize_hash_table):
14632         Rename from reorganize_hash_table. Change prototype.
14633         Reuse the original memory for hentries.  Save 100k.
14634         * alloc.c (PDUMP_READ): new macro.
14635         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
14636         * alloc.c: No need to #ifndef before #undef.
14637
14638         * print.c: Allow debug_print() to print readably by modifying
14639         debug_print_readably.  Use consistent variable names.
14640
14641         * .dbxrc: Try to get things to work even if stopped in a function
14642         without source available by explicitly specifying source files.
14643 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14644
14645         * unexnt.c (_start): Removed bogus code which caused loading heap
14646         from differrent executable file.
14647         Removed bogus assignment to _fmode, which caused inconsistencies.
14648
14649 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14650
14651         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
14652         Have spawnve encapsulation regard DONT_ENCAPSULATE.
14653         Do not preliminary `#define signal sigset'.
14654
14655         * systime.h: Do not prototype environ on windows nt and cygwin,
14656         this conflicts with system header.
14657
14658         * syssignal.h: Use correct define for WINDOWSNT
14659
14660         * sysdep.h: Do not prototype environ on windows nt, this conflicts
14661         with system header.
14662
14663         * sysdep.c (near start of file): Fixed commentary and rearranged
14664         ifdefs in readable order.
14665         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
14666         (start_of_text):
14667         (end_of_text):
14668         (end_of_data): Do not compile in if using PDUMP.
14669
14670         * symsinit.h: Prototyped vars_of_nt().
14671
14672         * ntproc.c (windows9x_p): Added, instead of os_subtype.
14673         (find_child_console): Use it.
14674         (sys_kill): Use it.
14675
14676         * ntheap.h: Do not extern os_subtype.
14677
14678         * ntheap.c (cache_system_info): Do not cache unneeded:
14679         nt_major_version, nt_minor_version and os_subtype.
14680         (recreate_heap): Do not compile in when PDUMPing.
14681
14682         * nt.c (geteuid and friends): Use the new varibale
14683         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
14684         (init_user_info): Removed the above mentioned hackery.
14685         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
14686         stat has been fixed in the C runtime.
14687         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
14688
14689         * file-coding.c (struct file_coding_dump): Do not define
14690         ucs_to_mule_table in the struct if not MULE.
14691         (struct struct lrecord_description fcd_description_1): Do not dump
14692         the above.
14693
14694         * emacs.c (main_1): Call vars_of_nt().
14695         (right before Fdump_emacs_data): Don't need lastfile if using both
14696         portabe dumper and system malloc.
14697
14698         * alloc.c (Fmemory_limit): Conditionalized out.
14699         (pdump): Use OPEN_BINARY for the portable dump file.
14700         (pdump_load): Ditto.
14701
14702 2000-02-02  Mike Alexander  <mta@arbortext.com>
14703
14704         * nt.c (convert_time): Set tm_isdst before calling mktime and
14705         avoid calling it at all if the compiler supports 64 bit integers.
14706         Also initialize utc_base_ft before using it.
14707
14708 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
14709
14710         * frame.c (change_frame_size_1): Take f->internal_border_width
14711         into consideration when calculating the width of the frame.
14712
14713 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14714
14715         * window.c (frame_min_height):
14716         (frame_size_valid_p):
14717         (frame_pixsize_valid_p): Added.
14718         (check_frame_size): Generalized.
14719
14720         * window.h: Prototyped the above.
14721
14722         * lisp.h:
14723         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
14724         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
14725         Deleted Vwin32_* and Vbinary_process_* unused variables.
14726
14727         * device-msw.c (msprinter_init_device): Do not get printer font
14728         list; Added DEVMODE functions.
14729
14730         * frame-msw.c: Added lots of printer code.
14731
14732         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
14733         general.c.
14734
14735         * console-msw.h: Added more msprinter device private slots.
14736
14737 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14738
14739         * event-msw.c (key_needs_default_processing_p): Added.
14740         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
14741
14742 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14743
14744         * glyphs.c (image_instance_layout): Mark image instance as clean
14745         after layout.
14746         (glyph_dirty_p): Removed redundant function.
14747         (invalidate_glyph_geometry_maybe): Added.
14748         (update_glyph_cachel_data): Call it.
14749
14750         * glyphs.h: Prototyped it.
14751
14752         * redisplay.c (add_glyph_rune): Call it.
14753         (redisplay_window): Reset glyphs cachels when frame faces have
14754         changed, thus forcing recomputation of built-in border glyphs.
14755
14756 2000-01-30  Martin Buchholz  <martin@xemacs.org>
14757
14758         * Makefile.in.in: Make portable dumper and purify play well together.
14759         Add imperfect, but better than nothing, support for pdump.
14760         Remove xemacs.dmp when temacs is re-generated.
14761         Don't ignore errors when dumping xemacs.
14762
14763         * symbols.c (maybe_call_magic_handler): Remove one magic number.
14764
14765 2000-01-28  Andy Piper  <andy@xemacs.org>
14766
14767         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
14768         (setup_normal_frame): ditto.
14769         (setup_frame_without_minibuffer): ditto.
14770         (setup_minibuffer_frame): ditto.
14771         (delete_frame_internal): ditto.
14772         (Fmake_frame_invisible): ditto.
14773         (Ficonify_frame): ditto.
14774
14775         * window.h: change Fset_window_buffer signature.
14776
14777         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
14778         (Fset_window_buffer): allow recording of buffer if the window is
14779         the selected window.
14780         (window_loop): Use new Fset_window signature.
14781
14782 2000-01-23  Daniel Pittman  <daniel@danann.net>
14783
14784         * config.h.in: Added template for `HAVE_ATHENA_3D'
14785
14786 2000-01-29  Andy Piper  <andy@xemacs.org>
14787
14788         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
14789
14790         * gutter.c (output_gutter): Don't output if the window isn't live.
14791
14792 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14793
14794         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
14795         of 01/12/00: Moved SetFocus back here where it belongs.
14796
14797 2000-01-23  Andy Piper  <andy@xemacs.org>
14798
14799         * s/cygwin32.h: declare printer things.
14800
14801 2000-01-26  Andy Piper  <andy@xemacs.org>
14802
14803         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
14804         Alexander.
14805
14806 2000-01-24  Andy Piper  <andy@xemacs.org>
14807
14808         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
14809         (mswindows_button_instantiate): Make sure glyph is a pixmap.
14810
14811         * glyphs-widget.c (widget_instantiate): Avoid shadows.
14812
14813         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
14814
14815         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
14816
14817         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
14818         (mswindows_output_display_block): Avoid local shadows.
14819
14820         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
14821         (mswindows_enqueue_mouse_button_event): ditto.
14822         (mswindows_handle_gui_wm_command): remove declaration.
14823
14824         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
14825         warnings.
14826
14827         * console-msw.h: Avoid shadows.
14828         (mswindows_get_toolbar_button_text):
14829         (emacs_mswindows_create_stream_pair):
14830         (emacs_mswindows_delete_stream_pair):
14831         (mswindows_handle_toolbar_wm_command): declare.
14832
14833         * device-msw.c (build_syscolor_string): Avoid shadows.
14834
14835 2000-01-23  Andy Piper  <andy@xemacs.org>
14836
14837         * glyphs-widget.c (widget_instantiate): reverse the items for
14838         layouts so that children are in the expected order.
14839
14840 2000-01-28  Martin Buchholz  <martin@xemacs.org>
14841
14842         * ralloc.c: safe_bcopy ==> memmove
14843         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
14844         * s/msdos.h: Remove BCOPY macros.
14845         * insdel.c (gap_right): Remove BCOPY conditional code.
14846         * insdel.c (gap_left): Remove BCOPY conditional code.
14847         XEmacs demands a working ANSI C compiler - hence memmove.
14848
14849         * regex.c (regex_compile): Remove accidental use of trigraphs.
14850
14851 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14852
14853         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
14854         event timestamp.
14855
14856 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14857
14858         * event-msw.c (mswindows_drain_windows_queue): Added the
14859         parameter.
14860         (mswindows_need_event): Commented the call to
14861         mswindows_drain_windows_queue().
14862         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
14863         only.
14864
14865         * console-msw.h: Moved a few function prototypes here from
14866         event-msw.c.
14867
14868         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
14869         parameter from unsigned short to unsigned long.
14870         (Fmswindows_shell_execute): Added return value.
14871
14872 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
14873
14874         * sysdep.c (init_system_name):
14875           process-unix.c (unix_canonicalized_host_name):
14876         Don't call freeaddrinfo() if getaddrinfo() fails.
14877
14878         * process-unix.c (unix_open_unix_network_stream):
14879         Moved the code to get a port # into address loop.
14880
14881 2000-01-27  Martin Buchholz  <martin@xemacs.org>
14882
14883         * buffer.c (reinit_vars_of_buffer):
14884         The right place to initialize conversion_in_dynarr and
14885         conversion_out_dynarr.
14886
14887         * alloc.c (pdump): Use the real open() till sys_open() is functional.
14888
14889         * process-unix.c (unix_canonicalize_host_name): Muleize.
14890         (unix_open_network_stream): Muleize.
14891
14892         * buffer.h: Fix up prototypes for ralloc.c functions.
14893
14894 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
14895         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
14896         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
14897                 instead of gethostbyname()
14898         * process-unix.c: In unix_canonicalize_host_name() and
14899                 unix_open_network_stream(), add code to use getaddrinfo()
14900                 instead of gethostbyname().
14901
14902 2000-01-27  Daniel Pittman <daniel@danann.net>
14903
14904         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
14905         libs when built with flat Athena.
14906
14907 2000-01-27  Martin Buchholz  <martin@xemacs.org>
14908
14909         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
14910         Use coding standards for function prototypes.
14911
14912 2000-01-25  Martin Buchholz  <martin@xemacs.org>
14913
14914         * dialog-msw.c (push_lisp_string_as_unicode):
14915         * doc.c (unparesseuxify_doc_string):
14916         * dired.c (Fuser_name_completion_1):
14917         * dired.c (Fuser_name_all_completions):
14918         * dired.c (free_user_cache):
14919         * dired.c (user_name_completion):
14920         * console-x.c (get_display_arg_connection):
14921         * minibuf.c (clear_echo_area_internal):
14922         * minibuf.c (echo_area_append):
14923         * eldap.c (Fldap_open):
14924         * eldap.c (Fldap_search_internal):
14925         * frame-x.c (x_set_frame_text_value):
14926         * frame-x.c (x_set_frame_properties):
14927         * frame-x.c (x_create_widgets):
14928         * redisplay-tty.c (term_get_fkeys_1):
14929         * objects-x.c (x_parse_nearest_color):
14930         * objects-x.c (x_valid_color_name_p):
14931         * objects-x.c (x_initialize_font_instance):
14932         * objects-x.c (x_list_fonts):
14933         * objects-x.c (x_find_charset_font):
14934         * tooltalk.c (Fadd_tooltalk_message_arg):
14935         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
14936         * tooltalk.c (Fadd_tooltalk_pattern_arg):
14937         * process-unix.c (unix_create_process):
14938         * ntproc.c (sys_spawnve):
14939         * sound.c (Fplay_sound_file):
14940         * sound.c (Fplay_sound):
14941         * buffer.c (init_initial_directory):
14942         * buffer.c (init_buffer):
14943         * editfns.c (init_editfns):
14944         * editfns.c (Ftemp_directory):
14945         * editfns.c (Fuser_full_name):
14946         * editfns.c (uncache_home_directory):
14947         * editfns.c (get_home_directory):
14948         * editfns.c (Fuser_home_directory):
14949         * editfns.c (Fformat_time_string):
14950         * editfns.c (Fcurrent_time_string):
14951         * gui-x.c (button_item_to_widget_value):
14952         * database.c (Fopen_database):
14953         * event-Xt.c (x_to_emacs_keysym):
14954         * event-Xt.c (x_event_to_emacs_event):
14955         * event-Xt.c (describe_event_window):
14956         * event-msw.c (mswindows_wnd_proc):
14957         * glyphs-eimage.c (jpeg_instantiate):
14958         * glyphs-eimage.c (gif_instantiate):
14959         * glyphs-eimage.c (png_instantiate):
14960         * glyphs-eimage.c (tiff_instantiate):
14961         * glyphs-x.c (xbm_instantiate_1):
14962         * glyphs-x.c (x_xbm_instantiate):
14963         * glyphs-x.c (x_xface_instantiate):
14964         * glyphs-x.c (autodetect_instantiate):
14965         * glyphs-x.c (cursor_font_instantiate):
14966         * glyphs-x.c (x_widget_instantiate):
14967         * glyphs-x.c (x_widget_set_property):
14968         * glyphs-x.c (x_widget_property):
14969         * glyphs-x.c (BUILD_GLYPH_INST):
14970         * print.c (write_string_to_stdio_stream):
14971         * print.c (output_string):
14972         * print.c (Falternate_debugging_output):
14973         * print.c (Fexternal_debugging_output):
14974         * glyphs-msw.c (extract_xpm_color_names):
14975         * glyphs-msw.c (mswindows_xpm_instantiate):
14976         * glyphs-msw.c (bmp_instantiate):
14977         * glyphs-msw.c (resource_name_to_resource):
14978         * glyphs-msw.c (mswindows_resource_instantiate):
14979         * glyphs-msw.c (xbm_instantiate_1):
14980         * glyphs-msw.c (mswindows_xbm_instantiate):
14981         * glyphs-msw.c (mswindows_xface_instantiate):
14982         * glyphs-msw.c (mswindows_widget_instantiate):
14983         * glyphs-msw.c (add_tree_item):
14984         * glyphs-msw.c (add_tab_item):
14985         * glyphs-msw.c (mswindows_combo_box_instantiate):
14986         * glyphs-msw.c (mswindows_widget_property):
14987         * glyphs-msw.c (mswindows_combo_box_property):
14988         * glyphs-msw.c (mswindows_widget_set_property):
14989         * console.c (stuff_buffered_input):
14990         * objects-msw.c (mswindows_initialize_color_instance):
14991         * objects-msw.c (mswindows_valid_color_name_p):
14992         * objects-msw.c (mswindows_list_fonts):
14993         * objects-msw.c (mswindows_font_instance_truename):
14994         * bytecode.c (optimize_compiled_function):
14995         * select-x.c (symbol_to_x_atom):
14996         * select-x.c (x_atom_to_symbol):
14997         * select-x.c (hack_motif_clipboard_selection):
14998         * select-x.c (selection_data_to_lisp_data):
14999         * select-x.c (lisp_data_to_selection_data):
15000         * select-x.c (Fx_get_cutbuffer_internal):
15001         * select-x.c (Fx_store_cutbuffer_internal):
15002         * buffer.h (TO_EXTERNAL_FORMAT): New function.
15003         * buffer.h (TO_INTERNAL_FORMAT): New function.
15004         * emacs.c (make_arg_list_1):
15005         * emacs.c (make_argc_argv):
15006         * emacs.c (main_1):
15007         * emacs.c (Fdump_emacs):
15008         * emacs.c (split_string_by_emchar_1):
15009         * file-coding.h:
15010         * lisp.h:
15011         * lstream.h:
15012         * symsinit.h:
15013         * device-x.c (x_init_device):
15014         * device-x.c (Fx_valid_keysym_name_p):
15015         * device-x.c (Fx_get_font_path):
15016         * device-x.c (Fx_set_font_path):
15017         * glyphs.c (bitmap_to_lisp_data):
15018         * glyphs.c (pixmap_to_lisp_data):
15019         * alloc.c (make_ext_string): Use coding system arguments.  Update
15020         all callers.
15021         * alloc.c (build_string):
15022         * callproc.c (child_setup):
15023         * callproc.c (init_callproc):
15024         * fileio.c (lisp_strerror):
15025         * fileio.c (directory_file_name):
15026         * fileio.c (Fexpand_file_name):
15027         * fileio.c (Ffile_truename):
15028         * fileio.c (Fsysnetunam):
15029         * fileio.c (Fdo_auto_save):
15030         * sysdep.c (sys_readdir):
15031         * tests.c: New file.  Allow adding C tests.
15032         Replace GET_* macros with a more comprehensible and flexible
15033         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
15034         Modify all calls.
15035         Any coding system can be used to do format conversion.
15036         Eliminate enum external_data_format.
15037         Eliminate convert_to_external_format.
15038         Eliminate convert_to_internal_format.
15039         Make sure file-name, keyboard, terminal, and ctext are always
15040         defined as coding systems or aliases.  Make
15041         file-name-coding-system, terminal-coding-system, and
15042         keyboard-coding-system magical variables that are equivalent to
15043         defining the corresponding coding system aliases.
15044
15045         * file-coding.c (Fcoding_system_canonical_name_p): New function.
15046         * file-coding.c (Fcoding_system_alias_p): New function.
15047         * file-coding.c (Fcoding_system_aliasee): New function.
15048         * file-coding.c (append_suffix_to_symbol): New function.
15049         * file-coding.c (dangling_coding_system_alias_p): New function.
15050         * file-coding.c (Ffind_coding_system):
15051         * file-coding.c (Fcopy_coding_system):
15052         * file-coding.c (encode_coding_no_conversion):
15053         * file-coding.c (syms_of_file_coding):
15054         * file-coding.c (vars_of_file_coding):
15055         Rewrite coding system alias code.
15056         Allow nested aliases, like symbolic links.
15057         Allow redefinition of coding system aliases.
15058         Prevent existence of dangling coding system aliases.
15059
15060         * dired.c (Fuser_name_completion_1):
15061         * dired.c (Fuser_name_all_completions):
15062         A crash would happen if user did QUIT in the middle of building
15063         user_name_cache.  Remove redundant code in mainline and unwind_protect.
15064
15065         * lisp.h:
15066         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
15067
15068         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
15069         an unsigned char *.  Update all callers.
15070
15071 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15072
15073         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
15074
15075 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15076
15077         * elhash.c (hentry_description): Use more portable definition.
15078         (resize_hash_table): Initialize new hentries using
15079         xnew_array_and_zero, thereby simplifying the code.
15080
15081         * mule-charset.c (make_charset): Make sure entire object is
15082         initialized, to avoid Purify warnings.
15083
15084         * alloc.c (resize_string): Fix unlikely crash with big strings.
15085
15086 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15087
15088         * realpath.c (xrealpath):
15089         Don't call getwd().
15090
15091 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15092
15093         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
15094
15095 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
15096
15097         * unexelfsgi.c (unexec): Change the way we decide which segment
15098         should be extended.
15099
15100         Assumption that .bss section should be outside the PT_LOADable
15101         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
15102         it's present) is inside the 'data' segment. This would fail the
15103         test which was used to find a segment to grow and cover new
15104         heap. Instead of this assumption, I created another one - on IRIX
15105         the segment to grow should start below .bss and it's address
15106         should extent above the end of .bss. Once this segment is
15107         identified, it's grown to accommodate the new heap and new
15108         zero-length .bss section is added at the end of .data2.
15109
15110 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15111
15112         * eval.c (Feval): Wrong number of arguments should use original
15113         function, not the indirect_function version of it.
15114
15115 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
15116
15117         * glyphs-x.c (x_button_instantiate): Don't add image if
15118         it is not a pixmap.
15119         (x_locate_pixmap_file): Call Fexpand_file_name when file name
15120         is relative.
15121
15122 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
15123
15124         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
15125         declaration.
15126         (DEFVAR_INT_MAGIC): Ditto.
15127         (DEFVAR_BOOL_MAGIC): Ditto.
15128         * glyphs.h: Reindent backslash.
15129
15130 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15131
15132         * glyphs-widget.c (layout_query_geometry):
15133         (layout_layout): Use correct types for gheight, gwidth.
15134
15135 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15136
15137         * EmacsManager.c (QueryGeometry): Purified.
15138
15139 2000-01-23  Martin Buchholz  <martin@xemacs.org>
15140
15141         * alloc.c (make_float): Make sure entire object is initialized, to
15142         avoid Purify warnings.
15143         (pdump_register_sub): Remove useless assignment.
15144         (pdump): Use xmalloc, not malloc.
15145         (pdump_load): Use xmalloc, not malloc.
15146
15147 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15148
15149         * callproc.c:
15150         * dired-msw.c:
15151         * fileio.c:
15152         * process-nt.c:
15153         * redisplay-msw.c:
15154         * sysdep.c: Removed redundant #include <windows.h>
15155
15156 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15157
15158         * frame.c (delete_frame_internal): Do not delete device when its
15159         implementation so declares.
15160         (delete_frame_internal): Set device selected frame to nil when
15161         last frame goes away.
15162
15163         * device-msw.c (msprinter_device_system_metrics): Implemented.
15164         (mswindows_device_system_metrics): Added 'device-dpi property.
15165
15166         * device.c: (Fdevice_printer_p): Added.
15167         Added 'offset-workspace device metric.
15168
15169         * console.h (device_metrics): Declared DM_offset_workspace.
15170
15171 2000-01-23  Martin Buchholz  <martin@xemacs.org>
15172
15173         * fileio.c (Ffile_truename): Remove pointless and confusing
15174         initialization of elen.
15175
15176         * glyphs-widget.c: Compiler warning fixes.
15177
15178 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
15179
15180         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
15181         instead of a Lisp_Object as argument to make it consistent with
15182         the other LIVE_P macros.
15183         (CHECK_LIVE_PROCESS): New macro.
15184
15185         * process.c: Declare Qprocess_live_p.
15186         (Fprocess_live_p): New function.
15187         (create_process): Use PROCESS_LIVE_P.
15188         (read_process_output): Ditto.
15189         (set_process_filter): Ditto.
15190         (Fdelete_process): Ditto.
15191         (kill_buffer_processes): Ditto
15192         (process_send_signal): Use CHECK_LIVE_PROCESS.
15193         (Fprocess_input_coding_system): Check whether process is still
15194         alive (fix PR#1061).
15195         (Fprocess_output_coding_system): Ditto.
15196         (Fprocess_coding_system): Ditto.
15197         (Fset_process_input_coding_system): Ditto.
15198         (Fset_process_output_coding_system): Ditto.
15199
15200 2000-01-23  Andy Piper  <andy@xemacs.org>
15201
15202         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
15203         layout and widget.
15204
15205         * glyphs.c (mark_image_instance): take into account changed
15206         image_instance format.
15207         (image_instance_equal): ditto.
15208         (image_instance_hash): ditto.
15209
15210         * glyphs-widget.c (widget_instantiate): Incorporate layout
15211         instantiation here. Delay layout of the layout until later.
15212         (layout_instantiate): deleted.
15213         (layout_query_geometry): new function. get the geometry of a
15214         layout.
15215         (layout_layout): layout a layout dynamically.
15216         (image_instantiator_widget): New function - splitting up
15217         image_instantiator_format_create_glyphs_widget for netwinder
15218         compilation.
15219         (image_instantiator_buttons):
15220         (image_instantiator_edit_fields):
15221         (image_instantiator_combo_box):
15222         (image_instantiator_scrollbar):
15223         (image_instantiator_progress_guage):
15224         (image_instantiator_tree_view):
15225         (image_instantiator_tab_control):
15226         (image_instantiator_labels):
15227         (image_instantiator_layout): ditto.
15228         (image_instantiator_format_create_glyphs_widget): Call preceding
15229         functions.
15230
15231 2000-01-22  Martin Buchholz  <martin@xemacs.org>
15232
15233         * process.c (Fset_process_coding_system):
15234         * device-x.c (Fx_keysym_hash_table):
15235         Docstring fixes.
15236
15237         * lstream.c (Lstream_write): Return documented value, not 0.
15238
15239         * fileio.c (directory_file_name):
15240         (Fsubstitute_in_file_name):
15241         (Fsubstitute_insert_file_contents_internal):
15242         (Fwrite_region_internal):
15243         * emacs.c:
15244         * sysdep.c:
15245         * getloadavg.c:
15246         * systty.h:
15247         Remove vestigial APOLLO-conditional code.
15248
15249 2000-01-21  Martin Buchholz  <martin@xemacs.org>
15250
15251         * getpagesize.h: Add guard macros.
15252         * libsst.h: Add guard macros.
15253         * libst.h: Add guard macros.
15254         * line-number.h: Add guard macros.
15255         * ndir.h: Add guard macros.
15256         * sysfloat.h: Add guard macros.
15257         * sysfile.h: Add guard macros.
15258         * sysproc.h: Add guard macros.
15259         * syswait.h: Add guard macros.
15260         * xintrinsic.h: Add guard macros.
15261         * xintrinsicp.h: Add guard macros.
15262         * xmmanager.h: Add guard macros.
15263         * xmmanagerp.h: Add guard macros.
15264         * xmprimitive.h: Add guard macros.
15265         * xmu.h: Add guard macros.
15266         * gpmevent.h: Add copyright statement. Add guard macros.
15267         * miscplay.h: Add guard macros.
15268         * *.h: Use consistent C-standards-approved guard macro names.
15269
15270         * opaque.c (make_opaque): Switch parameter order.
15271         * opaque.h (make_opaque): Switch parameter order.
15272         Update all callers.
15273         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
15274
15275         * config.h.in (type_checking_assert): Added.
15276         (bufpos_checking_assert): Added.
15277
15278 2000-01-21  Martin Buchholz  <martin@xemacs.org>
15279
15280         * alloc.c: Harmless pdump changes.
15281         - Use countof().
15282         - spell alignment correctly.
15283         * sysdep.c: Use countof()
15284
15285 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15286
15287         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
15288         initially_selected_for_input() console method, default to 0.
15289         (semi_canonicalize_console_connection): Try to delegate to
15290         canonicalize_console_connection if no such console method.
15291         (canonicalize_console_connection): Vice versa.
15292         (print_console): Do not print nil connection.
15293
15294         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
15295         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
15296         (XDEVIMPF_FRAMELESS_OK): Added.
15297         (CONSOLE_INHERITS_METHOD): Added.
15298
15299         * console-msw.c (mswindows_canonicalize_console_connection):
15300         Added.
15301         (mswindows_canonicalize_device_connection): Added.
15302
15303         * console-msw.h (struct msprinter_device): Added this struct and
15304         accessor macros.
15305         (mswindows_device): Made fontlist a lisp object.
15306
15307         * device.c (semi_canonicalize_device_connection):  Try to delegate
15308         to canonicalize_device_connection if no such console method.
15309         (canonicalize_device_connection): Vice versa.
15310         (print_device): Do not print nil connection.
15311
15312         * device-msw.c (mswindows_init_device): Call InitCommonControls
15313         when have widgets.
15314         (mswindows_delete_device): Removed fontlist deallocation.
15315         (mswindows_mark_device): Added.
15316
15317         * events.c (event_equal): Added abort() at unreached code.
15318         (event_hash): Ditto.
15319
15320         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
15321         fallback tags of Windows devices.
15322
15323         * general.c (syms_of_general): Initialized Qmsprinter.
15324
15325         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
15326         of fallback tags of Windows devices.
15327
15328         * lisp.h: Declared Qmsprinter.
15329
15330         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
15331         of strings.
15332         (mswindows_list_fonts): Ditto.
15333         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
15334         that it can be used by both mswindows and msprinter devices.
15335         (initialize_font_instance): Added.
15336         (mswindows_initialize_font_instance): Use it.
15337         (msprinter_initialize_font_instance): Added.
15338
15339         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
15340         and implementation flags check.
15341         (redisplay_without_hooks): Changed the call to the above.
15342         (Fredraw_device): Ditto.
15343         (Fredisplay_device): Ditto.
15344
15345         * redisplay-msw.c (get_frame_dc): Implemented.
15346         (get_frame_compdc): Implemented.
15347         (many functions): Use the two functions above to get device
15348         contexts, ether for a window or a printer.
15349
15350 2000-01-21  Olivier Galibert  <galibert@pobox.com>
15351
15352         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
15353         initialization here.
15354         (init_symbols_once_early): Call it.
15355         * emacs.c (main_1): Call it.
15356         * symsinit.h: Declare it.
15357
15358 2000-01-19  Olivier Galibert  <galibert@pobox.com>
15359
15360         * alloc.c: Use a lrecord_header * in the backtrace instead of a
15361         Lisp_Object.
15362         (pdump_backtrace): Ditto.
15363         (pdump_register_object): Ditto.  Cleanup use of the pointers.
15364         (pdump_get_entry): Abort if trying to register a null pointer.
15365         (pdump_dump_data): Cleanup types when relocating.
15366         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
15367         (pdump_dump_rtables): Remove bad casts.
15368         (pdump_load): Cleanup relocation w.r.t union type.  Use a
15369         Lisp_Object instead of a EMACS_INT for the hashtable
15370         reorganization.
15371
15372 2000-01-20  Martin Buchholz  <martin@xemacs.org>
15373
15374         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
15375
15376         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
15377
15378         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
15379
15380         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
15381
15382 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15383
15384         * faces.h (FACE_STRIKETHRU_P): Added.
15385
15386         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
15387         of font variants.
15388
15389         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
15390         (mswindows_set_dc_font): New function, aware of font variants,
15391         separated from mswindows_update_dc.
15392
15393         * objects-msw.h (struct mswindows_font_instance_data): Added
15394         definition.
15395
15396         * objects-msw.c (mswindows_finalize_font_instance): Delete all
15397         cached fonts and the data structure.
15398         (mswindows_initialize_font_instance): Added creation of font data
15399         structure.
15400         (mswindows_print_font_instance): Print at least something.
15401         (mswindows_create_font_variant): Implemented.
15402         (mswindows_get_hfont): Implemented.
15403
15404 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
15405
15406         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
15407         prototyping problem with msvc.
15408
15409         * emacs.c (main_1): added syms_of_gui_mswindows() call
15410
15411         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
15412         syms_of_gui_mswindows() function
15413
15414         * symsinit.h: added the prototype for syms_of_gui_mswindows()
15415
15416 2000-01-18  Martin Buchholz <martin@xemacs.org>
15417
15418         * XEmacs 21.2.27 is released.
15419
15420 2000-01-18  Martin Buchholz  <martin@xemacs.org>
15421
15422         * glyphs-eimage.c (struct tiff_error_struct):
15423         (tiff_error_func):
15424         (tiff_warning_func):
15425         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
15426
15427         * unexmips.c:
15428         * unexhp9k3.c:
15429         * unexfreebsd.c:
15430         * unexec.c: Remove vestigial Lucid C code.
15431         * unexalpha.c:
15432         * unexaix.c:
15433         * termcap.c:
15434         * libsst.c: Ansify.
15435         Remove declarations of errno and strerror().
15436
15437         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
15438
15439         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
15440
15441 2000-01-16  Martin Buchholz  <martin@xemacs.org>
15442
15443         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
15444         Optimize.
15445
15446 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15447
15448         * md5.c:
15449         * file-coding.c:
15450         * file-coding.h:
15451         Change enum eol_type to eol_type_t.
15452
15453 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15454
15455         * gui.c (get_gui_callback): Check cons before accessing car.
15456
15457 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15458
15459         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
15460         (XSETSPECIFIER_TYPE): Ditto.
15461
15462 2000-01-17  Didier Verna  <didier@xemacs.org>
15463
15464         * redisplay.c (generate_fstring_runes): compute string size in
15465         characters, not bytes.
15466
15467 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
15468
15469         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
15470
15471 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
15472
15473         * print.c (print_error_message): Call print_prepare().
15474
15475 2000-01-14  Martin Buchholz  <martin@xemacs.org>
15476
15477         * .dbxrc: Renamed from dbxrc.
15478
15479         * events.c (event_to_character):
15480         Use `assert (foo)' instead of `if (!foo) abort()'
15481
15482         * .gdbinit (xtype): Add documentation.
15483         * .gdbinit (check-temacs): New function.
15484         * .gdbinit (check-xemacs): New function.
15485         * dbxrc (check-xemacs): New function.
15486         * dbxrc (check-xemacs): New function.
15487
15488 2000-01-14  Andy Piper  <andy@xemacs.org>
15489
15490         * glyphs-widget.c (widget_query_geometry): Make sure that we
15491         calculate default dimensions correctly.
15492
15493 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15494
15495         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
15496
15497         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
15498         pdump_wire'd variable.
15499
15500         * emacs.c: (main_1): Conditionalized calls to
15501         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
15502
15503 2000-01-13  Martin Buchholz  <martin@xemacs.org>
15504
15505         * window.c (Fset_window_configuration):
15506         * sysdep.c (_start):
15507         * input-method-motif.c (res):
15508         * event-Xt.c (Xt_process_to_emacs_event):
15509         Simple compiler warning fixes.
15510
15511         * bytecode.c (funcall_compiled_function): Use the original
15512         function symbol on the backtrace list in preference to the
15513         compiled_function object in error messages.
15514
15515 2000-01-13  Andy Piper  <andy@xemacs.org>
15516
15517         * glyphs-x.c (update_widget_face): Make sure we update the widget
15518         background as well as foreground.
15519
15520 2000-01-13  Andy Piper  <andy@xemacs.org>
15521
15522         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
15523         fields to subwindow.
15524         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
15525         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
15526         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
15527         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
15528
15529         * glyphs-widget.c (check_valid_tab_orientation): new function.
15530         (initialize_widget_image_instance): zero orientation and
15531         justification.
15532         (widget_instantiate): pick up orientation.
15533         (tab_control_query_geometry): return appropriate values for
15534         vertical tabs.
15535
15536         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
15537         appropriate creation flags for left, right and bottom tabs.
15538
15539         * s/cygwin32.h: add tab definitions.
15540
15541 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15542
15543         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
15544         frame upon hiding a subwindow.
15545         (mswindows_button_instantiate): Changed the push button style to
15546         BS_PUSHBUTTON.
15547         (mswindows_button_instantiate): Removed button BS_NOTIFY
15548         style.
15549         (mswindows_button_instantiate): Removed redundant check for
15550         a disabled gui item.
15551         (mswindows_button_instantiate): Made use of WS_TABSTOP
15552         consistent: "operable" controls (edit, button, tree, scroll) have
15553         this style, "display-only" ones (static, progress gauge) do
15554         not. This style is currently ignored by XEmacs though. Also,
15555         removed the WS_EX_CONTROLPARENT style - it is not for children,
15556         it is for their parents!
15557         (mswindows_edit_field_instantiate): Ditto.
15558         (mswindows_progress_gauge_instantiate): Ditto.
15559         (mswindows_tree_view_instantiate): Ditto.
15560         (mswindows_tab_control_instantiate): Ditto.
15561         (mswindows_scrollbar_instantiate): Ditto.
15562         (mswindows_combo_box_instantiate): Ditto.
15563         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
15564         style to the "clip" window.
15565         (mswindows_button_instantiate): Removed compilation warning by
15566         equally typing terms of the ?: operator.
15567
15568 2000-01-12  Didier Verna  <didier@xemacs.org>
15569
15570         * redisplay.c (generate_fstring_runes): new parameter holding the
15571         last modeline-format extent.
15572         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
15573         extent, fill the glyph block with it.
15574         (generate_fstring_runes): handle these parameters.
15575         (generate_formatted_string_db): ditto.
15576
15577         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
15578         glyphs'extents in the modeline.
15579
15580 1999-01-11  Mike Woolley  <mike@bulsara.com>
15581
15582         * ntheap.c: Reduced the reserved heap space from 1Gb down to
15583         256Mb, as a workaround for the non-starting problem many people
15584         have experienced.
15585
15586 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15587
15588         * console-tty.c (Fset_console_tty_output_coding_system):
15589         Force redrawing tty frame.
15590
15591 2000-01-10  Didier Verna  <didier@xemacs.org>
15592
15593         * redisplay.c (generate_fstring_runes): fix size computation bug.
15594
15595 2000-01-09  William M. Perry <wmperry@aventail.com>
15596
15597         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
15598
15599 2000-01-09  Andy Piper  <andy@xemacs.org>
15600
15601         * glyphs-msw.c: index -> i to avoid shadows.
15602         (xbm_create_bitmap_from_data): make static.
15603         (check_valid_string_or_int): deleted.
15604         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
15605
15606         * glyphs-x.c (x_update_subwindow): remove unused args.
15607
15608         * glyphs.c (glyph_image_instance): return the thing. Don't set the
15609         back pointer - this is done in allocate_image_instance.
15610         (query_string_font): return Qnil to make the compiler happy.
15611         (unmap_subwindow): set to ~0 to make the compiler happy.
15612         (glyph_query_geometry): comment out until used.
15613         (glyph_layout): ditto.
15614
15615 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
15616
15617         * insdel.c (signal_after_change): Remove extraneous unbind_to().