update.
[chise/xemacs-chise.git.1] / src / ChangeLog
1 2003-03-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2
3         * mule-charset.c: Include <chise.h> when `CHISE' is defined.
4         (load_char_decoding_entry_maybe): Use libchise when `CHISE' is
5         defined.
6
7         * config.h.in (CHISE): New macro.
8
9 2003-03-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
10
11         * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
12         of `ucs'.
13         (Qmap_ucs): New variable.
14         (syms_of_mule_charset): Add new symbol `=ucs'.
15         (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
16
17         * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
18         (simplify_char_spec): Likewise.
19
20         * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
21
22         * char-ucs.h (Qmap_ucs): New extern variable.
23
24 2003-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
25
26         * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
27         (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
28         don't define it when UTF2000 is not defined.
29         (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
30         `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
31         when UTF2000 is not defined.
32         (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
33         rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
34
35 2003-03-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
36
37         * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
38
39         * mule-charset.c (Vcharset_ucs_gb): Deleted.
40         (Qucs_gb): Deleted.
41         (syms_of_mule_charset): Delete `ucs-gb'.
42         (complex_vars_of_mule_charset): Likewise.
43
44 2003-03-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
45
46         * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
47
48         * mule-charset.c (Vcharset_ucs_cns): Deleted.
49         (Qucs_cns): Deleted.
50         (syms_of_mule_charset): Delete `ucs-cns'.
51         (complex_vars_of_mule_charset): Likewise.
52
53 2003-03-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
54
55         * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
56
57         * mule-charset.c (Vcharset_ucs_jis): Deleted.
58         (Qucs_jis): Deleted.
59         (syms_of_mule_charset): Delete `ucs-jis'.
60         (complex_vars_of_mule_charset): Likewise.
61
62 2003-03-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
63
64         * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
65
66         * mule-charset.c (Vcharset_ucs_ks): Deleted.
67         (Qucs_ks): Deleted.
68         (syms_of_mule_charset): Delete `ucs-ks'.
69         (complex_vars_of_mule_charset): Likewise.
70
71 2003-03-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
72
73         * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
74         (Qideograph_daikanwa_2): Deleted.
75         (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
76         (complex_vars_of_mule_charset): Likewise.
77
78         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
79         (LEADING_BYTE_DAIKANWA_1): Deleted.
80         (LEADING_BYTE_DAIKANWA_2): Deleted.
81         (MIN_CHAR_DAIKANWA): Deleted.
82         (MAX_CHAR_DAIKANWA): Deleted.
83
84 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
85
86         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
87         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
88         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
89
90         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
91         (Vcharset_ideograph_daikanwa): Deleted.
92         (Qideograph_hanziku_{1..12}): Deleted.
93         (Qideograph_daikanwa): Deleted.
94         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
95         Vcharset_ideograph_daikanwa.
96         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
97         `ideograph-hanziku-{1..12}'.
98         (complex_vars_of_mule_charset): Likewise.
99
100 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
101
102         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
103
104         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
105         (Qideograph_gt_pj_{1..11}): Deleted.
106         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
107         (complex_vars_of_mule_charset): Likewise.
108
109 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
110
111         * mule-charset.c (Vcharset_ucs_big5): Deleted.
112         (Vcharset_ideograph_gt): Deleted.
113         (Qucs_big5): Deleted.
114         (Qideograph_gt): Deleted.
115         (syms_of_mule_charset): Delete symbol `ucs-big5' and
116         `ideograph-gt'.
117         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
118         and `ideograph-gt'.
119
120         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
121         (LEADING_BYTE_GT): Deleted.
122         (MIN_CHAR_GT): Deleted.
123         (MAX_CHAR_GT): Deleted.
124
125 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
126
127         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
128
129 2003-01-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
130
131         * chartab.c (save_uint8_byte_table): Add new argument `filter'.
132         (save_uint16_byte_table): Likewise.
133         (save_byte_table): Likewise; convert values by it.
134         (Fput_char_attribute): Don't use `char-refs-simplify-char-specs'
135         for `ideographic-structure'.
136         (Fsave_char_attribute_table): Use `char-refs-simplify-char-specs'
137         as the filter for `ideographic-structure'.
138
139 2003-01-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
140
141         * chartab.c (put_char_composition): New function.
142         (Fput_char_attribute): Use `put_char_composition'; use
143         `Fchar_refs_simplify_char_specs' for `ideographic-structure'.
144
145         * fns.c (simplify_char_spec): New function.
146         (char_ref_simplify_spec): New function.
147         (Fchar_refs_simplify_char_specs): New function.
148         (syms_of_fns): Add new builtin function
149         `char-refs-simplify-char-specs'.
150
151 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
152
153         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
154         (Qideograph_cbeta): Deleted.
155         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
156         (complex_vars_of_mule_charset): Likewise.
157
158         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
159         (MIN_CHAR_CBETA): Comment out.
160         (MAX_CHAR_CBETA): Likewise.
161
162 2002-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
163
164         * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
165         `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
166         CHISE client feature.
167
168 2002-12-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
169
170         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
171
172 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
173
174         * mule-charset.c (charset_lookup_description_1): Use
175         `NUM_LEADING_BYTES' in UTF-2000.
176
177 2002-12-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
178
179         * char-ucs.h (GC_CHARSETP): Deleted.
180
181 2002-12-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
182
183         * char-ucs.h (MAX_CHAR_GT): Updated.
184
185 2002-12-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
186
187         * text-coding.c: Sync with XEmacs 21.4.10.
188
189 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
190
191         * mule-charset.c (Vcharset_china3_jef): Deleted.
192         (Qchina3_jef): Deleted.
193         (syms_of_mule_charset): Don't define `china3-jef'.
194         (complex_vars_of_mule_charset): Likewise.
195
196         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
197         (MIN_CHAR_CHINA3_JEF): Comment out.
198         (MAX_CHAR_CHINA3_JEF): Comment out.
199
200 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
201
202         * mule-charset.c (Vcharset_ucs_gb): New variable.
203         (Qucs_gb): New variable.
204         (syms_of_mule_charset): Add new symbol `ucs-gb'.
205         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
206
207         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
208
209 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
210
211         * mule-charset.c (charset_code_point): if a coded-charset has a
212         final-byte, don't inherit the builtin range of the mother CCS.
213
214 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
215
216         * mule-charset.c (charset_code_point): Fix problem about
217         inheritance.
218
219 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
220
221         * mule-charset.c (decode_builtin_char): Reorganized.
222
223 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
224
225         * text-coding.c (char_encode_as_entity_reference): Modify for
226         `charset_code_point'.
227         (char_encode_shift_jis): Likewise.
228         (char_encode_big5): Likewise.
229         (char_encode_utf8): Likewise.
230         (char_encode_iso2022): Likewise.
231
232         * mule-charset.c (charset_code_point): Add new argument
233         `defined_only'.
234         (Fencode_char): Add new optional argument `defined_only'.
235
236         * chartab.c (put_char_table): Modify for `charset_code_point'.
237
238         * char-ucs.h (charset_code_point): Add new argument
239         `defined_only'.
240         (encode_char_1): Modify for `charset_code_point'.
241
242 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
243
244         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
245         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
246
247 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
248
249         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
250         (Qjis_x0208): Likewise.
251         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
252         XCHARSET_FINAL(charset).
253         (charset_code_point): Modify condition for final-byte based
254         builtin-chars.
255         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
256         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
257         in UTF-2000; specify `=jis-x0208' as the mother of
258         `japanese-jisx0208-1978', `japanese-jisx0208' and
259         `japanese-jisx0208-1990' in UTF-2000.
260
261 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
262
263         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
264
265 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
266
267         * text-coding.c (decode_coding_utf16): Support UTF-16.
268         (char_encode_utf16): Fixed.
269
270 2002-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
271
272         * text-coding.c (Qutf16): New variable in MULE.
273         (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
274         (Fcoding_system_type): Add `utf-16' in MULE.
275         (struct detection_state): Add a structure for utf16 in MULE.
276         (detect_coding_type): Setup st->utf16.mask in MULE.
277         (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
278         MULE.
279         (reset_encoding_stream): Use `char_encode_utf16' and
280         `char_finish_utf16' for `CODESYS_UTF16' in MULE.
281         (detect_coding_utf16): New function [incomplete].
282         (decode_coding_utf16): New function [support only UCS-2].
283         (char_encode_utf16): New function.
284         (char_finish_utf16): New function.
285         (syms_of_file_coding): Add new symbol `utf-16'; setup
286         `coding_category_symbol[CODING_CATEGORY_UTF16]'.
287
288         * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
289         UTF-2000.
290         (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
291         (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
292
293 2002-10-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
294
295         * chartab.c (put_char_table): When a charset is specified as a
296         range in UTF-2000, don't support builtin characters.
297
298 2002-09-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
299
300         * mule-charset.c (decode_defined_char): Don't refer external
301         database if Qunbound or Qnil are found.
302         (Fsave_charset_mapping_table): Don't define it if
303         HAVE_CHISE_CLIENT is not defined.
304         (Freset_charset_mapping_table): New function.
305         (load_char_decoding_entry_maybe): Store Qnil if a character is not
306         found in external database.
307         (syms_of_mule_charset): Don't define `save-charset-mapping-table'
308         if HAVE_CHISE_CLIENT is not defined; add new builtin function
309         `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
310
311 2002-09-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
312
313         * text-coding.c (decode_coding_utf8): Check CCS is specified or
314         not.
315
316 2002-08-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
317
318         * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
319         Q_lowercase, Q_uppercase in UTF-2000.
320
321         * chartab.c (get_char_table): Add special code for the standard
322         case table to use character attribute `->downcase' and
323         `->uppercase' for case operations in UTF-2000.
324
325         * casetab.c (Qflippedcase): New variable in UTF-2000.
326         (Q_lowercase): Likewise.
327         (Q_uppercase): Likewise.
328         (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
329         and `->uppercase' in UTF-2000.
330         (complex_vars_of_casetab): Assign attribute name `downcase' to
331         downcase and CANON table of Vstandard_case_table in UTF-2000;
332         assign attribute name `flippedcase' to upcase and EQV table of
333         Vstandard_case_table in UTF-2000.
334
335 2002-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
336
337         * text-coding.c (decode_add_er_char): Support isolated-chars.
338         (char_encode_as_entity_reference): Likewise.
339
340 2002-08-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
341
342         * emacs.c (Vutf_2000_lisp_directory): New variable.
343         (Vconfigure_utf_2000_lisp_directory): Likewise.
344         (complex_vars_of_emacs): Add new variable
345         `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
346
347 2002-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
348
349         * char-ucs.h (DECODE_CHAR): Delete special code for
350         `chinese-big5-1' and `chinese-big5-2'.
351
352         * mule-charset.c (Qbig5_1): New variable in UTF-2000.
353         (Qbig5_2): Likewise.
354         (decode_defined_char): Support CONVERSION_BIG5_1 and
355         CONVERSION_BIG5_2.
356         (decode_builtin_char): Likewise.
357         (charset_code_point): Likewise.
358         (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
359         'conversion in UTF-2000.
360         (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
361         (complex_vars_of_mule_charset): Define `chinese-big5-1' and
362         `chinese-big5-2' as children of `chinese-big5'.
363
364         * char-ucs.h (CONVERSION_BIG5_1): New macro.
365         (CONVERSION_BIG5_2): New macro.
366
367 2002-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
368
369         * text-coding.c (char_encode_big5): Support entity-reference.
370
371 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
372
373         * text-coding.c (char_encode_as_entity_reference): New function.
374         (char_encode_utf8): Use `char_encode_as_entity_reference'.
375
376 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
377
378         * text-coding.c (decode_coding_big5): Support entity-reference
379         decoding feature.
380
381 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
382
383         * text-coding.c (allocate_coding_system): Initialize initial
384         charsets for CODESYS_UTF8.
385         (Fmake_coding_system): Accept charset-g0, charset-g1 and
386         charset-g2 for CODESYS_UTF8.
387         (decode_coding_utf8): Use charset-g0.
388         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
389         to force variants to map to UCS.
390
391 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
392
393         * text-coding.c (Qutf_8_mcs): New variable.
394         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
395         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
396         instead of `utf-8' in UTF-2000.
397
398 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
399
400         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
401         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
402         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
403         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
404         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
405         CONVERSION_96x96x96x96 are introduced.
406         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
407         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
408         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
409
410         * char-ucs.h (CONVERSION_94): New macro.
411         (CONVERSION_96): New macro.
412         (CONVERSION_94x94): New macro.
413         (CONVERSION_96x96): New macro.
414         (CONVERSION_94x94x94): New macro.
415         (CONVERSION_96x96x96): New macro.
416         (CONVERSION_94x94x94x60): New macro.
417         (CONVERSION_94x94x94x94): New macro.
418         (CONVERSION_96x96x96x96): New macro.
419
420 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
421
422         * chartab.c (Vcharacter_variant_table): Deleted.
423         (Fchar_variants): Use character-attribute `->ucs-variants' instead
424         of `Vcharacter_variant_table'.
425         (Fput_char_attribute): Likewise.
426         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
427         (complex_vars_of_chartab): Likewise.
428
429 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
430
431         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
432
433         * fns.c (Qideographic_structure): New variable.
434         (Qkeyword_char): New variable.
435         (ids_format_unit): New function.
436         (Fideographic_structure_to_ids): New function.
437         (syms_of_fns): Add new symbols `ideographic-structure' and
438         `:char'; add new builtin function `ideographic-structure-to-ids'.
439
440         * data.c (Fchar_ref_p): New function.
441         (syms_of_data): Add new builtin function `char-ref-p'.
442
443         * chartab.h: Add an EXFUN for `Ffind_char'.
444
445 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
446
447         * text-coding.c (Vcharacter_composition_table): Deleted.
448         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
449         in every UTF-2000.
450
451         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
452         UTF-2000.
453         (Vcharacter_composition_table): Deleted.
454         (Fget_composite_char): Use the implementation for external-DB
455         support in every UTF-2000.
456         (Fput_char_attribute): Likewise.
457         (char_attribute_system_db_file): Don't define if external-DB
458         feature is not available.
459         (Fsave_char_attribute_table): Likewise.
460         (Fmount_char_attribute_table): Likewise.
461         (Fclose_char_attribute_table): Likewise.
462         (Freset_char_attribute_table): Likewise.
463         (Fload_char_attribute_table): Likewise.
464         (syms_of_chartab): Don't define `save-char-attribute-table',
465         `mount-char-attribute-table', `reset-char-attribute-table',
466         `close-char-attribute-table' and `load-char-attribute-table' if
467         external-DB feature is not available.
468         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
469
470 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
471
472         * text-coding.c (Qcomposition): Add extern if external-DB feature
473         is supported.
474         (Vcharacter_composition_table): Don't add extern if external-DB
475         feature is supported.
476         (COMPOSE_ADD_CHAR): Modify for new data-representation of
477         character composition rule if external-DB feature is supported.
478
479         * chartab.c (Vcharacter_composition_table): Don't define if
480         external-DB feature is supported.
481         (Qcomposition): New variable.
482         (Fget_composite_char): New implementation for external-DB support.
483         (Fput_char_attribute): Use `composition' property of each
484         character instead of `Vcharacter_composition_table' to store
485         character-composition rules if external-DB feature is supported.
486         (syms_of_chartab): Add new symbol `composition'.
487         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
488         external-DB feature is supported.
489
490 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
491
492         * chartab.c (Vchar_db_stingy_mode): New variable.
493         (load_char_attribute_maybe): Close database if
494         Vchar_db_stingy_mode is not NIL.
495         (Fload_char_attribute_table_map_function): Use
496         `get_char_id_table_0' instead of `get_char_id_table'.
497         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
498
499         * chartab.h (get_char_id_table_0): New inline function.
500         (get_char_id_table): Use `get_char_id_table_0'.
501
502 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
503
504         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
505         and `COMPOSE_ADD_CHAR'.
506         (decode_coding_iso2022): Use `decode_flush_er_chars'.
507
508 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
509
510         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
511         instead of `DECODE_ADD_UCS_CHAR'.
512         (COMPOSE_ADD_CHAR): Likewise.
513
514 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
515
516         * text-coding.c (decode_flush_er_chars): New inline function.
517         (decode_add_er_char): New function.
518         (decode_coding_utf8): Use `decode_flush_er_chars' and
519         `decode_add_er_char'.
520
521 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
522
523         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
524         done before `decode_output_utf8_partial_char'.
525
526         * mule-charset.c (complex_vars_of_mule_charset): Specify
527         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
528         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
529
530 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
531
532         * mule-charset.c (decode_defined_char): New function; search
533         mother.
534         (decode_builtin_char): Don't search mother if
535         XCHARSET_MAX_CODE(charset) == 0.
536         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
537         == 0 even if code >= XCHARSET_MAX_CODE(charset).
538         (Fdecode_char): Use `decode_defined_char' instead of
539         `DECODE_DEFINED_CHAR'.
540         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
541         mother of `Vcharset_ucs_jis'.
542
543         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
544         instead of `DECODE_DEFINED_CHAR'.
545
546         * char-ucs.h (decode_defined_char): Renamed from
547         `DECODE_DEFINED_CHAR'; changed to normal function.
548         (DECODE_CHAR): Use `decode_defined_char' instead of
549         `DECODE_DEFINED_CHAR'.
550
551         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
552
553 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
554
555         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
556
557         * text-coding.c (Vcoded_charset_entity_reference_alist): New
558         variable.
559         (Quse_entity_reference): New variable.
560         (Qd): New variable.
561         (Qx): New variable.
562         (QX): New variable.
563         (coding_system_description): Add description for
564         `ccs_priority_list'.
565         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
566         (allocate_coding_system): Initialize `ccs_priority_list' in
567         UTF-2000.
568         (Fmake_coding_system): Add description about
569         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
570         (codesys).
571         (Fcoding_system_property): Accept `disable-composition' and
572         `use-entity-reference' in UTF-2000.
573         (struct decoding_stream): Add new member `er_counter' and `er_buf'
574         in UTF-2000.
575         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
576         (decode_coding_utf8): Decode entity-reference if
577         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
578         (char_encode_utf8): Encode non-Unicode characters as
579         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
580         (str->codesys).
581         (syms_of_file_coding): Add new symbols `use-entity-reference',
582         `d', `x', `X'.
583         (vars_of_file_coding): Add new variable
584         `coded-charset-entity-reference-alist'.
585         (complex_vars_of_file_coding): Declare `disable-composition' and
586         `use-entity-reference' to be coding-system-properties in UTF-2000.
587
588         * file-coding.h (struct Lisp_Coding_System): Add new member
589         `use_entity_reference' and `ccs_priority_list'.
590         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
591         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
592         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
593
594 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
595
596         * chartab.c (save_uint8_byte_table): Don't clear the table.
597         (save_uint16_byte_table): Likewise.
598         (save_byte_table): Likewise.
599         (Fmount_char_attribute_table): New function.
600         (syms_of_chartab): Add new builtin function
601         `mount-char-attribute-table'.
602
603 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
604
605         * mule-charset.c (Fsave_charset_mapping_table): Open database as
606         "w+" mode.
607         (load_char_decoding_entry_maybe): Open database as read-only mode.
608
609         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
610         open database as "w+" mode.
611         (load_char_attribute_maybe): Open database as read-only mode.
612         (Fload_char_attribute_table): Likewise.
613
614 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
615
616         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
617         (char_table_description): Delete member `db_file'.
618         (Fmake_char_table): Don't refer `ct->db_file'.
619         (Fcopy_char_table): Likewise.
620         (Fsave_char_attribute_table): Likewise.
621         (Fclose_char_attribute_table): Likewise.
622         (Freset_char_attribute_table): Likewise.
623         (load_char_attribute_maybe): Likewise.
624         (Fload_char_attribute_table): Likewise.
625
626         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
627
628 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
629
630         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
631         (Fsave_char_attribute_table): Don't check `ct->db_file' if
632         `ct->db' is living.
633         (load_char_attribute_maybe): Likewise.
634         (Fload_char_attribute_table): Likewise.
635
636 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
637
638         * chartab.c (Fclose_char_attribute_table): Set Qnil on
639         `ct->db_file' unconditionally.
640
641 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
642
643         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
644         UTF-2000.
645         (char_table_description): Add description for `db_file' and `db'
646         in UTF-2000.
647         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
648         UTF-2000.
649         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
650         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
651         (Fclose_char_attribute_table): New function.
652         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
653         (load_char_attribute_maybe): Change interface; use `cit->db_file'
654         and `cit->db'.
655         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
656         (syms_of_chartab): Add new builtin function
657         `Fclose_char_attribute_table'.
658
659 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
660
661         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
662         `db' in UTF-2000.
663         (load_char_attribute_maybe): Change interface.
664         (get_char_id_table): Modify for `load_char_attribute_maybe'.
665
666 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
667
668         * database.h: Add an EXFUN for `Fdatabase_live_p'.
669
670 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
671
672         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
673         instead of `DECODE_CHAR' for mother; don't use special code for
674         chinese-big5 to use code space of chinese-big5-1 and
675         chinese-big5-2.
676         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
677         `MAX_CHAR_BIG5_CDP' for chinese-big5.
678
679         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
680         (MAX_CHAR_BIG5_CDP): Revival.
681
682 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
683
684         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
685         the XLFD registry-encoding name of `chinese-big5'.
686
687 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
688
689         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
690         (Qchinese_big5_cdp): Deleted.
691         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
692         (complex_vars_of_mule_charset): Delete coded-charset
693         `chinese-big5-cdp'.
694
695         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
696         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
697         `CHARSET_ID_OFFSET - n' for private CCS.
698         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
699         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
700         of `MIN_LEADING_BYTE'.
701         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
702         `(CHARSET_ID_OFFSET - 97)'.
703         (MIN_CHAR_BIG5_CDP): Deleted.
704         (MAX_CHAR_BIG5_CDP): Deleted.
705
706 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
707
708         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
709
710 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
711
712         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
713         (vars_of_mule): Add new variable `utf-2000-version' [moved from
714         chartab.c].
715
716         * chartab.c (Vutf_2000_version): Moved to mule.c.
717         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
718
719 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
720
721         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
722         when HAVE_CHISE_CLIENT is not defined.
723
724         * mule.c (vars_of_mule): Provide feature `chise' when
725         HAVE_CHISE_CLIENT is defined.
726
727 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
728
729         * config.h.in (UTF2000): Add comment.
730         (HAVE_CHISE_CLIENT): New macro.
731
732 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
733
734         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
735         CONSP.
736         (Fput_char_attribute): Likewise.
737         (char_attribute_system_db_file): Encode file-name of attribute.
738         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
739         the initial value.
740
741 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
742
743         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
744         (Fsave_charset_mapping_table): Use
745         `char_attribute_system_db_file'.
746         (load_char_decoding_entry_maybe): Likewise.
747
748         * chartab.h (Qsystem_char_id): New external variable.
749         (char_attribute_system_db_file): New prototype.
750
751         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
752         (char_attribute_system_db_file): New function.
753         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
754         (Freset_char_attribute_table): Likewise.
755         (load_char_attribute_maybe): Likewise.
756         (Fload_char_attribute_table): Likewise.
757         (syms_of_chartab): Add new symbol `system-char-id'.
758
759 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
760
761         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
762         `XCHARSET_GRAPHIC(ccs)'.
763
764 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
765
766         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
767
768 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
769
770         * chartab.c (Q_ucs_variants): New variable.
771         (syms_of_chartab): Add new symbol `->ucs-variants'.
772         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
773         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
774         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
775
776         * mule-charset.c (load_char_decoding_entry_maybe): New function.
777
778         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
779         `HAVE_DATABASE' is defined.
780         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
781         `HAVE_DATABASE' is defined.
782
783 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
784
785         * chartab.c (Fsave_char_attribute_table): Don't clear internal
786         attribute-table.
787         (Freset_char_attribute_table): New function.
788         (syms_of_chartab): Add new builtin function
789         `reset-char-attribute-table'.
790
791 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
792
793         * chartab.c (load_char_attribute_maybe): Don't make directories.
794
795 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
796
797         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
798
799         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
800         for decoding-table.
801
802 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
803
804         * mule-charset.c (Fsave_charset_mapping_table): Use
805         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
806
807         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
808         instead of `XCHARSET_CHARS'.
809
810 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
811
812         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
813         (XCHARSET_BYTE_SIZE): Likewise.
814
815         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
816         mule-charset.c].
817         (XCHARSET_BYTE_SIZE): Likewise.
818
819 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
820
821         * chartab.c (Fput_char_attribute): Use exec-directory instead of
822         data-directory to store database.
823         (Fsave_char_attribute_table): Likewise.
824         (load_char_attribute_maybe): Likewise.
825         (Fload_char_attribute_table): Likewise.
826
827 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
828
829         * mule-charset.c (Fsave_charset_mapping_table): New function.
830         (syms_of_mule_charset): Add new builtin function
831         `save-charset-mapping-table'.
832
833 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
834
835         * char-ucs.h (decoding_table_check_elements): Delete prototype.
836         (get_ccs_octet_table): New inline function.
837         (put_ccs_octet_table): Likewise.
838         (decoding_table_put_char): Use `get_ccs_octet_table' and
839         `put_ccs_octet_table'.
840         (decoding_table_remove_char): Use `decoding_table_put_char'.
841         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
842
843         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
844         into encoding_table.
845         (make_charset): Use Qunbound instead Qnil as initial value of
846         decoding_table.
847
848 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
849
850         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
851         element is Qunloaded.
852         (map_over_uint16_byte_table): Likewise.
853         (map_over_byte_table): Likewise.
854         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
855         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
856         database support, load encoding-table of the specified
857         coded-charset if it is not loaded yet.
858         (save_uint8_byte_table): New function of UTF-2000 with external
859         database support.
860         (save_uint16_byte_table): Likewise.
861         (save_byte_table): Likewise.
862         (Fput_char_attribute): Don't store value into external database
863         even if the external database feature is supported in UTF-2000;
864         set `attribute' as name of char-table if the external database
865         feature is supported.
866         (Fsave_char_attribute_table): New function in UTF-2000.
867         (syms_of_chartab): Add new builtin function
868         `save-char-attribute-table' in UTF-2000.
869
870 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
871
872         * chartab.c (char_attribute_table_to_put): New variable in
873         UTF-2000.
874         (Qput_char_table_map_function): Likewise.
875         (value_to_put): Likewise.
876         (Fput_char_table_map_function): New function in UTF-2000.
877         (put_char_table): Use `Fmap_char_attribute' for
878         CHARTAB_RANGE_CHARSET in UTF-2000.
879         (Fput_char_attribute): Store symbol instead of string in
880         `XCHAR_TABLE_NAME (table)'.
881         (load_char_attribute_maybe): Likewise.
882         (syms_of_chartab): Add new symbol/function
883         `put-char-table-map-function'.
884
885 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
886
887         * database.h: Add new EXFUN for `Fmap_database'.
888
889         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
890         (syms_of_database): Likewise.
891
892         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
893         UTF-2000.
894         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
895         (XCHAR_TABLE_UNLOADED): Likewise.
896
897         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
898         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
899         HAVE_DATABASE is defined.
900         (char_attribute_table_to_load): New variable of UTF-2000 with
901         external database support.
902         (Qload_char_attribute_table_map_function): Likewise.
903         (Fload_char_attribute_table_map_function): New function of
904         UTF-2000 with external database support.
905         (Fload_char_attribute_table): New function of UTF-2000.
906         (Fmap_char_attribute): Call Fload_char_attribute_table if
907         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
908         (syms_of_chartab): Add new symbol and function
909         `load-char-attribute-table-map-function' in UTF-2000 with external
910         database support; add new function `load-char-attribute-table' in
911         UTF-2000.
912
913 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
914
915         * chartab.h (load_char_attribute_maybe): New prototype for
916         UTF-2000 with DATABASE support.
917         (get_char_id_table): Use `load_char_attribute_maybe' if
918         HAVE_DATABASE is defined.
919
920         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
921         with DATABASE support.
922
923 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
924
925         * chartab.c (Fput_char_attribute): Use S-expression as key of
926         external database.
927
928         * chartab.h (get_char_id_table): Use S-expression as key of
929         external database.
930
931 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
932
933         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
934         if an element is not loaded, load the corresponding attributes
935         from an external database.
936         (map_over_uint16_byte_table): Likewise.
937         (map_over_byte_table): Likewise.
938         (map_char_table): Modify for `map_over_uint8_byte_table',
939         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
940         element is not loaded, load the corresponding attributes from an
941         external database.
942         (Fput_char_attribute): Change initial values to Qunloaded.
943
944         * chartab.h (get_char_id_table): If a character attribute is not
945         loaded and the attribute value is not found in an external
946         database, store Qunbound as the attribute value.
947
948 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
949
950         * chartab.c (BT_UINT8_unloaded): New macro.
951         (UINT8_VALUE_P): Accept Qunloaded.
952         (UINT8_ENCODE): Likewise.
953         (UINT8_DECODE): Likewise.
954         (BT_UINT16_unloaded): New macro.
955         (UINT16_VALUE_P): Accept Qunloaded.
956         (UINT16_ENCODE): Likewise.
957         (UINT16_DECODE): Likewise.
958         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
959         BT_UINT16_unloaded.
960         (mark_char_table): Mark `ct->name' in UTF-2000.
961         (char_table_description): Add `name' in UTF-2000.
962         (Fmake_char_table): Initialize `ct->name'.
963         (Fcopy_char_table): Copy `ct->name'.
964         (Fput_char_attribute): Store value into an external database if
965         HAVE_DATABASE is defined.
966
967         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
968         UTF-2000.
969         (CHAR_TABLE_NAME): New macro in UTF-2000.
970         (XCHAR_TABLE_NAME): New macro in UTF-2000.
971         (get_char_id_table): Try to read an external database if Qunloaded
972         is stored in a table.
973
974         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
975         Qunloaded.
976
977 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
978
979         * database.h: Add EXFUN definitions for Fopen_database,
980         Fput_database, Fget_database and Fclose_database.
981
982         * data.c (Qunloaded): New variable in UTF-2000.
983
984         * lisp.h (Qunloaded): New variable in UTF-2000.
985
986 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
987
988         * mule-charset.c (put_char_ccs_code_point): Modify for
989         `decoding_table_remove_char' and `decoding_table_put_char'.
990         (remove_char_ccs): Modify for `decoding_table_remove_char'.
991
992         * char-ucs.h (decoding_table_remove_char): Change arguments to
993         hide decoding_table vector.
994         (decoding_table_put_char): Likewise.
995
996 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
997
998         * mule-charset.c (decoding_table_remove_char): Moved to
999         char-ucs.h.
1000         (decoding_table_put_char): Likewise.
1001
1002         * char-ucs.h (decoding_table_check_elements): New prototype [moved
1003         from mule-charset.c].
1004         (decoding_table_remove_char): New inline function [moved from
1005         mule-charset.c].
1006         (decoding_table_put_char): Likewise.
1007
1008 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1009
1010         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
1011         extension.
1012
1013 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1014
1015         * mule-charset.c (decode_builtin_char): Support mother charsets.
1016
1017 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1018
1019         * mule-charset.c (Q94x94x60): New variable.
1020         (charset_code_point): Support conversion `94x94x60'.
1021         (Fmake_charset): Likewise.
1022         (syms_of_mule_charset): Add new symbol `94x94x60'.
1023
1024         * char-ucs.h (CONVERSION_94x94x60): New macro.
1025
1026 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1027
1028         * mule-charset.c (charset_code_point): Unify code about
1029         `code-offset'.
1030
1031 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1032
1033         * mule-charset.c (charset_code_point): Merge code about builtin
1034         characters into code about mother charsets; don't use
1035         `range_charset_code_point'.
1036         (range_charset_code_point): Deleted.
1037
1038 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1039
1040         * mule-charset.c (Qcode_offset): New variable.
1041         (Fmake_charset): Use `XUINT' to get value of `min-code' and
1042         `max-code'; accept new property `code-offset'.
1043         (syms_of_mule_charset): Add new symbol `code-offset'.
1044
1045 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1046
1047         * mule-charset.c (range_charset_code_point): Fixed.
1048
1049 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1050
1051         * mule-charset.c (decode_builtin_char): Change semantics of
1052         code-offset of coded-charset.
1053         (charset_code_point): Likewise.
1054         (range_charset_code_point): Likewise.
1055         (complex_vars_of_mule_charset): Modify for the change.
1056
1057 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1058
1059         * mule-charset.c (Fencode_char): Reverse arguments.
1060
1061         * mule-charset.c (charset_code_point): Fixed.
1062
1063 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1064
1065         * mule-charset.c (Vcharset_mojikyo): Deleted.
1066         (Vcharset_mojikyo_2022_1): Deleted.
1067         (Vcharset_mojikyo_pj_{1..21}): Deleted.
1068         (Qmin_code): New variable in UTF-2000.
1069         (Qmax_code): Likewise.
1070         (Qmother): Likewise.
1071         (Qconversion): Likewise.
1072         (Q94x60): Likewise.
1073         (Qmojikyo): Deleted.
1074         (Qmojikyo_2022_1): Deleted.
1075         (Qmojikyo_pj_{1..22}): Deleted.
1076         (mark_charset): Mark `cs->mother'.
1077         (charset_description): Add description for `mother'.
1078         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
1079         new arguments `mother' and `conversion'; use
1080         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
1081         (charset_code_point): Moved from char-ucs.h; support `mother'
1082         charset feature.
1083         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
1084         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
1085         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
1086         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
1087         allow 2 as the value of `graphic' in UTF-2000; add new properties
1088         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
1089         require `final' in UTF-2000; modify for `make_charset'.
1090         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
1091         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
1092         (Fcharset_property): Support `mother', `min-code' and `max-code'.
1093         (Fencode_char): New function.
1094         (syms_of_mule_charset): Add new builtin function `encode-char' in
1095         UTF-2000; add new symbols `min-code', `max-code', `mother',
1096         `conversion' and `94x60'; delete symbols `mojikyo',
1097         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
1098         (complex_vars_of_mule_charset): Modify for `make_charset' change;
1099         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
1100         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
1101
1102         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
1103         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
1104
1105         * char-ucs.h (Vcharset_mojikyo): Deleted.
1106         (Vcharset_mojikyo_2022_1): Deleted.
1107         (LEADING_BYTE_MOJIKYO): Deleted.
1108         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
1109         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
1110         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
1111         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
1112         add new member `mother'; add new member `conversion'.
1113         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
1114         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
1115         (CHARSET_MOTHER): New macro.
1116         (CHARSET_CONVERSION): New macro.
1117         (CONVERSION_IDENTICAL): New macro.
1118         (CONVERSION_94x60): New macro.
1119         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
1120         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
1121         (XCHARSET_MOTHER): New macro.
1122         (XCHARSET_CONVERSION): New macro.
1123         (MIN_CHAR_MOJIKYO): Deleted.
1124         (MAX_CHAR_MOJIKYO): Deleted.
1125         (DECODE_MOJIKYO_2022): Deleted.
1126         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
1127         (charset_code_point): Changed to non-inline function.
1128         (encode_char_1): Use `charset_code_point'.
1129         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
1130
1131 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1132
1133         * lread.c (read_compiled_function): Fix prototype.
1134         (read_vector): Likewise.
1135
1136 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1137
1138         * lrecord.h (struct lrecord_header): Delete `older'.
1139         (set_lheader_implementation): Delete code for `older'.
1140         (set_lheader_older_implementation): Deleted.
1141         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
1142         (OLDER_RECORD_P): Deleted.
1143         (OLDER_RECORD_HEADER_P): Deleted.
1144         (alloc_older_lcrecord): Deleted.
1145         (alloc_older_lcrecord_type): Deleted.
1146
1147         * alloc.c (all_older_lcrecords): Deleted.
1148         (alloc_older_lcrecord): Deleted.
1149         (disksave_object_finalization_1): Delete code for older objects.
1150         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
1151         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
1152
1153 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1154
1155         * mule-charset.c (decoding_table_put_char): Use `make_vector'
1156         instead of `make_older_vector'.
1157         (put_char_ccs_code_point): Likewise.
1158         (mark_charset): Mark `cs->decoding_table'.
1159         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
1160
1161         * lisp.h (make_older_vector): Deleted.
1162         (make_vector_newer): Deleted.
1163
1164         * config.h.in (HAVE_GGC): Deleted.
1165
1166         * alloc.c (make_older_vector): Deleted.
1167         (make_vector_newer_1): Deleted.
1168         (make_vector_newer): Deleted.
1169
1170 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1171
1172         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
1173         (Qideograph_daikanwa_2): New variable.
1174         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
1175         (complex_vars_of_mule_charset): Add new coded-charset
1176         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
1177         `LEADING_BYTE_DAIKANWA'.
1178
1179         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
1180         (LEADING_BYTE_DAIKANWA_1): New macro.
1181         (LEADING_BYTE_DAIKANWA_2): New macro.
1182         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
1183
1184 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1185
1186         * mule-charset.c (complex_vars_of_mule_charset): Change
1187         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
1188         the second revised version.
1189
1190 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1191
1192         * mule-charset.c (Vcharset_ucs_smp): New variable.
1193         (Vcharset_ucs_sip): New variable.
1194         (Qucs_smp): New variable.
1195         (Qucs_sip): New variable.
1196         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
1197         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
1198         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
1199         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
1200         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
1201         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
1202
1203         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
1204         (LEADING_BYTE_UCS_SIP): New macro.
1205         (MIN_CHAR_SMP): New macro.
1206         (MAX_CHAR_SMP): New macro.
1207         (MIN_CHAR_SIP): New macro.
1208         (MAX_CHAR_SIP): New macro.
1209
1210 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
1211
1212         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
1213         utf-2000.
1214
1215 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1216
1217         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
1218         value; don't store value into `encoding_table' of `Lisp_Charset'.
1219         (mark_charset): `encoding_table' was deleted.
1220         (charset_description): Likewise.
1221         (make_charset): Likewise.
1222         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
1223         `put_char_ccs_code_point'.
1224
1225         * chartab.h (Fput_char_attribute): New EXFUN.
1226
1227         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
1228         is unified with normal symbol space.
1229         (Fget_char_attribute): Likewise.
1230         (Fput_char_attribute): Likewise; behavior of
1231         `put_char_ccs_code_point' is changed.
1232
1233         * char-ucs.h: Include "elhash.h".
1234         (Vchar_attribute_hash_table): New external variable.
1235         (struct Lisp_Charset): Delete `encoding_table'.
1236         (CHARSET_ENCODING_TABLE): New implementation; refer
1237         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
1238         `Lisp_Charset'.
1239
1240 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1241
1242         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
1243         (cs) == 0.
1244
1245 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1246
1247         * text-coding.c (char_encode_big5): Prefer charset-g1 than
1248         `chinese-big5'.
1249
1250 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1251
1252         * chartab.c (uint8_byte_table_description): New constant.
1253         (uint8-byte-table): Use `uint8_byte_table_description'.
1254         (uint16_byte_table_description): New constant.
1255         (uint16-byte-table): Use `uint16_byte_table_description'.
1256
1257 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1258
1259         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
1260         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
1261
1262 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1263
1264         * mule-charset.c (Vcharset_ucs_ks): New variable.
1265         (Qucs_ks): New variable.
1266         (syms_of_mule_charset): Add new symbol `ucs-ks'.
1267         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
1268
1269         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
1270
1271 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1272
1273         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
1274         (Fdecode_char): Likewise.
1275
1276         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
1277         chartab.h.
1278         (Fdefine_char): Modify for Fdecode_char.
1279         (Ffind_char): Likewise.
1280
1281         * mule-charset.c (Fdecode_char): Add new optional argument
1282         `defined-only'.
1283         (Fdecode_builtin_char): Modify for `Fdecode_char'.
1284
1285 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1286
1287         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
1288         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
1289         (allocate_coding_system): Initialize initial-charsets of
1290         CODESYS_BIG5 in XEmacs UTF-2000.
1291         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
1292         CODESYS_BIG5 in XEmacs UTF-2000.
1293         (decode_coding_big5): Use initial-charset-g0 and -g1 of
1294         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
1295
1296         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
1297         variables.
1298         (Qideograph_hanziku_{1 .. 12}): Likewise.
1299         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
1300         .. 12}'.
1301         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
1302         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
1303         `ideograph-hanziku-{1 .. 12}'.
1304
1305         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
1306         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
1307         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
1308         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
1309         (DECODE_DEFINED_CHAR): New inline function.
1310         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
1311
1312 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1313
1314         * mule-charset.c (Vcharset_china3_jef): Renamed from
1315         `Vcharset_japanese_jef_china3'.
1316         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
1317         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
1318         `{MIN|MAX}_CHAR_JEF_CHINA3'..
1319         (syms_of_mule_charset): Rename `china3-jef' from
1320         `japanese-jef-china3'.
1321         (complex_vars_of_mule_charset): Likewise; rename
1322         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
1323
1324         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
1325         `LEADING_BYTE_JEF_CHINA3'.
1326         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
1327         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
1328
1329 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1330
1331         * mule-charset.c (encode_builtin_char_1): Comment out special code
1332         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
1333
1334         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
1335         (MAX_CHAR_MOJIKYO_0): Comment out.
1336         (MIN_CHAR_CBETA): Changed to 0x00E20000.
1337         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
1338         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
1339         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
1340
1341 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1342
1343         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
1344         (Qideograph_cbeta): New variable.
1345         (encode_builtin_char_1): Comment out special code for
1346         coded-charset `mojikyo' and `japanese-jef-china3'.
1347         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
1348         (complex_vars_of_mule_charset): Add new coded-charset
1349         `ideograph-cbeta'.
1350
1351         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
1352         (MIN_CHAR_CBETA): New macro.
1353         (MAX_CHAR_CBETA): New macro.
1354
1355 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1356
1357         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
1358         (LEADING_BYTE_JEF_CHINA3): New macro.
1359         (MIN_CHAR_JEF_CHINA3): New macro.
1360         (MAX_CHAR_JEF_CHINA3): Likewise.
1361         (DECODE_CHAR): Fixed.
1362
1363 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1364
1365         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
1366         (Qjapanese_jef_china3): New variable.
1367         (encode_builtin_char_1): Support `japanese-jef-china3'.
1368         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
1369         (complex_vars_of_mule_charset): Add new coded-charset
1370         `japanese-jef-china3'.
1371
1372 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1373
1374         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
1375         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
1376         94^4, 96^3, 96^4, 128^n and 256^n set.
1377         (put_char_table): Use `XCHARSET_CELL_RANGE'.
1378         (map_char_table): Likewise.
1379
1380 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1381
1382         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
1383         UTF-2000.
1384
1385 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1386
1387         * chartab.h (get_char_id_table): New inline function.
1388
1389         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
1390         function.
1391
1392 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1393
1394         * chartab.h (decode_char_table_range): New prototype in XEmacs
1395         UTF-2000.
1396         (put_char_id_table): New inline function in XEmacs UTF-2000.
1397
1398         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
1399         function.
1400         (decode_char_table_range): Delete static declaration in XEmacs
1401         UTF-2000.
1402
1403 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1404
1405         * chartab.c (put_char_id_table): Use `put_char_table'.
1406
1407 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1408
1409         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
1410         (map_over_uint16_byte_table): Likewise.
1411         (map_over_byte_table): Likewise.
1412         (map_char_table): Modify for `map_over_uint8_byte_table',
1413         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
1414         UTF-2000.
1415
1416 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1417
1418         * chartab.c (struct map_char_table_for_charset_arg): New
1419         structure.
1420         (map_char_table_for_charset_fun): New function.
1421         (map_char_table): Use `map_char_table' for encoding_table of
1422         `range->charset'.
1423
1424 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1425
1426         * chartab.c (map_char_table): Check a character is found in
1427         range->charset instead of non default value is defined in
1428         char-table when range is CHARTAB_RANGE_ROW.
1429
1430 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1431
1432         * chartab.c (map_char_id_table): Deleted.
1433         (Fmap_char_attribute): Use `map_char_table' instead of
1434         `map_char_id_table'.
1435
1436 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1437
1438         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
1439         UTF-2000.
1440         (update_syntax_table): Deleted in XEmacs UTF-2000.
1441
1442         * syntax.c (find_defun_start): Use `syntax_table' instead of
1443         `mirror_syntax_table' in XEmacs UTF-2000.
1444         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
1445         UTF-2000.
1446         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
1447         XEmacs UTF-2000.
1448         (Fmatching_paren): Likewise.
1449         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
1450         in XEmacs UTF-2000.
1451         (find_start_of_comment): Likewise.
1452         (find_end_of_comment): Likewise.
1453         (Fforward_comment): Likewise.
1454         (scan_lists): Likewise.
1455         (char_quoted): Likewise.
1456         (Fbackward_prefix_chars): Likewise.
1457         (scan_sexps_forward): Likewise.
1458         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
1459         (update_syntax_table): Likewise.
1460
1461         * search.c (skip_chars): Use `syntax_table' instead of
1462         `mirror_syntax_table' in XEmacs UTF-2000.
1463         (wordify): Likewise.
1464         (Freplace_match): Likewise.
1465
1466         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
1467         `mirror_syntax_table' in XEmacs UTF-2000.
1468         (WORDCHAR_P_UNSAFE): Likewise.
1469         (re_match_2_internal): Likewise.
1470
1471         * font-lock.c (find_context): Use `buf->syntax_table' instead of
1472         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1473
1474         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
1475         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
1476
1477         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
1478         XEmacs UTF-2000.
1479
1480         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
1481         UTF-2000.
1482         (print_char_table): Print `default_value' in XEmacs UTF-2000.
1483         (char_table_description): Delete `mirror_table' in XEmacs
1484         UTF-2000.
1485         (fill_char_table): Don't call `update_syntax_table' in XEmacs
1486         UTF-2000.
1487         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
1488         (Fcopy_char_table): Likewise.
1489         (put_char_table): Don't call `update_syntax_table' in XEmacs
1490         UTF-2000.
1491
1492         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
1493         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1494         (casify_region_internal): Likewise.
1495
1496         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
1497
1498         * buffer.c (common_init_complex_vars_of_buffer): Don't use
1499         `mirror_syntax_table' in XEmacs UTF-2000.
1500
1501         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
1502         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1503         (Fexpand_abbrev): Likewise.
1504
1505 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1506
1507         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
1508
1509 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1510
1511         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
1512         (map_over_uint16_byte_table): Likewise.
1513         (map_over_byte_table): Likewise.
1514         (get_char_id_table): Refer `cit->default_value'.
1515         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1516         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
1517         of character-id ranges.
1518         (mark_char_table): Mark `ct->default_value'.
1519         (char_table_description): Add `default_value'.
1520         (fill_char_table): Use `default_value'.
1521         (decode_char_table_range): Decode `nil' as
1522         `CHARTAB_RANGE_DEFAULT'.
1523         (get_char_id_table): Refer `cit->default_value'.
1524         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1525         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
1526         temporary hack; check value of char-table is bound or not.
1527         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
1528
1529         * chartab.h (struct Lisp_Char_Table): Add new member
1530         `default_value' in XEmacs UTF-2000.
1531         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
1532         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
1533         UTF-2000.
1534
1535 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1536
1537         * chartab.h (Lisp_Char_ID_Table): Deleted.
1538
1539         * chartab.c (char_table_description): Fix typo.
1540         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
1541         `Lisp_Char_ID_Table'.
1542
1543 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1544
1545         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
1546         `CHAR_ID_TABLE_P'.
1547
1548         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
1549         `CHAR_ID_TABLE_P'.
1550
1551         * chartab.h (XCHAR_ID_TABLE): Deleted.
1552         (XSETCHAR_ID_TABLE): Deleted.
1553         (CHAR_ID_TABLE_P): Deleted.
1554
1555         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
1556         `CHAR_ID_TABLE_P'.
1557         (Fget_composite_char): Likewise.
1558         (put_char_table): Likewise.
1559         (add_char_attribute_alist_mapper): Fixed.
1560         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
1561         `CHAR_ID_TABLE_P'.
1562         (Fget_char_attribute): Likewise.
1563         (Fget_char_attribute): Likewise.
1564         (Fmap_char_attribute): Likewise.
1565
1566         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
1567         `CHAR_ID_TABLE_P'.
1568         (encode_char_1): Likewise.
1569
1570 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1571
1572         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
1573         `XCHAR_ID_TABLE'.
1574
1575         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
1576         instead of `XCHAR_ID_TABLE'.
1577         (remove_char_ccs): Likewise.
1578
1579         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
1580         `XCHAR_ID_TABLE'.
1581         (Fget_composite_char): Likewise.
1582         (Fchar_variants): Likewise.
1583         (put_char_table): Likewise.
1584         (add_char_attribute_alist_mapper): Likewise.
1585         (Fchar_attribute_alist): Likewise.
1586         (Fget_char_attribute): Likewise.
1587         (Fput_char_attribute): Likewise.
1588         (Fmap_char_attribute): Likewise.
1589         (Fmap_char_attribute): Likewise.
1590
1591         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
1592         `XCHAR_ID_TABLE'.
1593         (encode_char_1): Likewise.
1594
1595 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1596
1597         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
1598         `Lisp_Char_ID_Table'.
1599         (mark_char_id_table): Deleted.
1600         (print_char_id_table): Likewise.
1601         (char_id_table_equal): Likewise.
1602         (char_id_table_hash): Likewise.
1603         (char_id_table_description): Likewise.
1604         (char_id_table): Likewise.
1605         (make_char_id_table): Use `Fmake_char_table' and
1606         `fill_char_table'.
1607         (get_char_id_table): Use `Lisp_Char_Table' instead of
1608         `Lisp_Char_ID_Table'.
1609         (put_char_id_table): Likewise.
1610         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
1611         `XCHAR_ID_TABLE'.
1612         (Fremove_char_attribute): Likewise.
1613         (syms_of_chartab): Don't define type `char-id-table'.
1614
1615         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
1616         (char_id_table): Likewise.
1617         (GC_CHAR_ID_TABLE_P): Likewise.
1618         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
1619         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
1620         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
1621         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
1622         (get_char_id_table): Use `Lisp_Char_Table' instead of
1623         `Lisp_Char_ID_Table'.
1624         (put_char_id_table_0): Likewise.
1625         (put_char_id_table): Likewise.
1626
1627 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1628
1629         * chartab.h: Lisp_Byte_Table related codes are moved from
1630         chartab.h.
1631
1632         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
1633
1634 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1635
1636         * chartab.h: Don't include "chartab.h".
1637         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
1638         (Lisp_Char_ID_Table): Likewise.
1639         (char_id_table): Likewise.
1640         (XCHAR_ID_TABLE): Likewise.
1641         (XSETCHAR_ID_TABLE): Likewise.
1642         (CHAR_ID_TABLE_P): Likewise.
1643         (GC_CHAR_ID_TABLE_P): Likewise.
1644         (get_char_id_table): Likewise.
1645
1646         * char-ucs.h: Include "chartab.h".
1647         (struct Lisp_Char_ID_Table): Moved to chartab.h.
1648         (Lisp_Char_ID_Table): Likewise.
1649         (char_id_table): Likewise.
1650         (XCHAR_ID_TABLE): Likewise.
1651         (XSETCHAR_ID_TABLE): Likewise.
1652         (CHAR_ID_TABLE_P): Likewise.
1653         (GC_CHAR_ID_TABLE_P): Likewise.
1654         (get_char_id_table): Likewise.
1655
1656 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1657
1658         * chartab.c (copy_uint8_byte_table): New function.
1659         (copy_uint16_byte_table): New function.
1660         (copy_byte_table): New function.
1661         (map_over_uint8_byte_table): Modify to avoid huge numbers of
1662         characters to call.
1663         (map_over_uint16_byte_table): Likewise.
1664         (map_over_byte_table): Likewise.
1665         (get_byte_table): Move prototype to chartab.h.
1666         (put_byte_table): Likewise.
1667         (put_char_id_table_0): Moved to chartab.h.
1668         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
1669         (char_table_entry_equal): Likewise.
1670         (char_table_entry_hash): Likewise.
1671         (char_table_entry_description): Likewise.
1672         (char_table_entry): Likewise.
1673         (make_char_table_entry): Likewise.
1674         (copy_char_table_entry): Likewise.
1675         (get_non_ascii_char_table_value): Likewise.
1676         (map_over_charset_ascii): Likewise.
1677         (map_over_charset_control_1): Likewise.
1678         (map_over_charset_row): Likewise.
1679         (map_over_other_charset): Likewise.
1680         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
1681         (print_char_table): Likewise.
1682         (char_table_equal): Likewise.
1683         (char_table_hash): Likewise.
1684         (char_table_description): Likewise.
1685         (fill_char_table): Likewise.
1686         (Fcopy_char_table): Likewise.
1687         (get_char_table): Likewise.
1688         (Fget_range_char_table): Likewise.
1689         (put_char_table): Likewise.
1690         (map_char_table): Likewise.
1691         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
1692         UTF-2000.
1693
1694 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1695
1696         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
1697         `Vauto_fill_chars' in XEmacs UTF-2000.
1698
1699         * chartab.h (get_byte_table): New prototype [moved from
1700         chartab.c].
1701         (put_byte_table): Likewise [moved from chartab.c].
1702         (put_char_id_table_0): New inline function [moved from chartab.c].
1703         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
1704         (Lisp_Char_Table_Entry): Likewise.
1705         (char_table_entry): Likewise.
1706         (XCHAR_TABLE_ENTRY): Likewise.
1707         (XSETCHAR_TABLE_ENTRY): Likewise.
1708         (CHAR_TABLE_ENTRYP): Likewise.
1709         (CHECK_CHAR_TABLE_ENTRY): Likewise.
1710         (NUM_ASCII_CHARS): Likewise.
1711         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
1712         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
1713
1714 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1715
1716         * chartab.c (get_char_id_table): Change interface.
1717         (put_char_id_table_0): New function.
1718         (put_char_id_table): Change interface; new implementation.
1719         (Fget_composite_char): Modify for interface change of
1720         `get_char_id_table'.
1721         (Fchar_variants): Likewise.
1722         (add_char_attribute_alist_mapper): Likewise.
1723         (Fchar_attribute_alist): Likewise.
1724         (Fget_char_attribute): Likewise.
1725         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
1726         as same as character as the first argument like `put-char-table';
1727         modify for interface change of `put_char_id_table'.
1728         (Fremove_char_attribute): Modify for interface change of
1729         `put_char_id_table'.
1730
1731 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1732
1733         * text-coding.c: Sync up with XEmacs 21.2.41.
1734         (COMPOSE_ADD_CHAR): Modify for interface change of
1735         `get_char_id_table'.
1736
1737         * mule-charset.c (put_char_ccs_code_point): Modify for interface
1738         change of `put_char_id_table'.
1739         (remove_char_ccs): Likewise.
1740
1741         * chartab.h (put_char_id_table): Change interface.
1742
1743         * char-ucs.h (get_char_id_table): Change interface.
1744         (charset_code_point): Modify for interface change of
1745         `get_char_id_table'.
1746         (encode_char_1): Likewise.
1747
1748 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1749
1750         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
1751         argument `ccs'.
1752         (map_over_uint16_byte_table): Likewise.
1753         (map_over_byte_table): Likewise.
1754         (map_char_id_table): Add new argument `range' like
1755         `map_char_table'.
1756         (Fmap_char_attribute): Add new argument `range' like
1757         `Fmap_char_table'.
1758
1759 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1760
1761         * chartab.c (map_over_uint8_byte_table): Change interface of
1762         mapping function to use struct chartab_range instead of Emchar.
1763         (map_over_uint16_byte_table): Likewise.
1764         (map_over_byte_table): Likewise.
1765         (map_char_id_table): Likewise.
1766         (struct slow_map_char_id_table_arg): Deleted.
1767         (slow_map_char_id_table_fun): Deleted.
1768         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
1769         function `slow_map_char_table_fun' instead of struct
1770         `slow_map_char_id_table_arg' and function
1771         `slow_map_char_id_table_fun'.
1772
1773 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1774
1775         * mule-charset.c: Move char-it-table related codes to chartab.c.
1776         (Vutf_2000_version): Moved to chartab.c.
1777         (Fdefine_char): Likewise.
1778         (Ffind_char): Likewise.
1779         (syms_of_mule_charset): Move types `uint8-byte-table',
1780         `uint16-byte-table', `byte-table' and `char-id-table' to
1781         chartab.c; move functions `char_attribute_list,
1782         `find_char_attribute_table, `char_attribute_alist,
1783         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
1784         `map_char_attribute, `define_char, `find_char, `char_variants and
1785         `get_composite_char to chartab.c; move symbols `=>ucs',
1786         `->decomposition', `compat', `isolated', `initial', `medial',
1787         `final', `vertical', `noBreak', `fraction', `super', `sub',
1788         `circle', `square', `wide', `narrow', `small' and `font' to
1789         chartab.c.
1790         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
1791         setting codes for `Vcharacter_composition_table' and
1792         `Vcharacter_variant_table' to chartab.c.
1793         (complex_vars_of_mule_charset): Move setting code for
1794         `Vchar_attribute_hash_table' to chartab.c.
1795
1796         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
1797         (make_char_id_table): New prototype.
1798         (put_char_id_table): Likewise.
1799         (Fget_char_attribute): Likewise.
1800
1801         * chartab.c: Move char-id-table related code from mule-charset.c.
1802         (Vutf_2000_version): Moved from mule-charset.c.
1803
1804         * char-ucs.h (Qucs): New external variable.
1805         (put_char_ccs_code_point): New prototype.
1806         (remove_char_ccs): Likewise.
1807
1808 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1809
1810         * mule-charset.c (Vcharset_ucs_jis): New variable.
1811         (Qucs_jis): Likewise.
1812         (syms_of_mule_charset): Add new symbol `ucs-jis'.
1813         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
1814
1815         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
1816
1817 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1818
1819         * mule-charset.c (map_over_uint8_byte_table): New function.
1820         (map_over_uint16_byte_table): Likewise.
1821         (map_over_byte_table): Likewise.
1822         (map_char_id_table): Likewise.
1823         (slow_map_char_id_table_fun): Likewise.
1824         (Fmap_char_attribute): Likewise.
1825         (syms_of_mule_charset): Add new function `map-char-attribute'.
1826
1827 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1828
1829         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
1830         (syms_of_mule_charset): Add new function `find-char'.
1831
1832 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1833
1834         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
1835         XEmacs UTF-2000.
1836         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
1837         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
1838         XEmacs UTF-2000.
1839         (complex_vars_of_mule_charset): Add new coded-charset
1840         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
1841         `ideograph-gt-pj-*'.
1842
1843         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
1844
1845 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1846
1847         * mule-charset.c (encode_builtin_char_1): Purge codes about
1848         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
1849         {MIN|MAX}_CHAR_HEBREW.
1850         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
1851         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
1852
1853         * char-ucs.h (MIN_CHAR_GREEK): Purged.
1854         (MAX_CHAR_GREEK): Purged.
1855         (MIN_CHAR_CYRILLIC): Purged.
1856         (MAX_CHAR_CYRILLIC): Purged.
1857         (MIN_CHAR_HEBREW): Commented out.
1858         (MAX_CHAR_HEBREW): Likewise.
1859
1860 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1861
1862         * mule-charset.c (Qto_ucs): New variable.
1863         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
1864         (Fdefine_char): Likewise.
1865         (syms_of_mule_charset): Add new symbol `=>ucs'.
1866
1867 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1868
1869         * mule-charset.c (Fdecode_char): Fixed.
1870
1871 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1872
1873         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
1874         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
1875         "tcvn5712-1".
1876
1877 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1878
1879         * mule-charset.c (Vcharset_ucs_big5): New variable.
1880         (Qucs_big5): Likewise.
1881         (syms_of_mule_charset): Add new symbol `ucs-big5'.
1882         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
1883
1884         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
1885
1886 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1887
1888         * mule-charset.c (decode_builtin_char): Check Big5 code range
1889         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
1890
1891 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1892
1893         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
1894         (Qchinese_gb12345): Likewise.
1895         (Fdecode_builtin_char): Fixed.
1896         (syms_of_mule_charset): Add `chinese-gb12345'.
1897         (complex_vars_of_mule_charset): Add coded-charset
1898         `chinese-gb12345'.
1899
1900         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
1901         (LEADING_BYTE_CHINESE_GB12345): New macro.
1902
1903 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1904
1905         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
1906         and `latin-viscii-upper' for `latin-viscii'.
1907
1908 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1909
1910         * mule-charset.c (Fdecode_builtin_char): Comment out
1911         regularization code for ISO-IR GR representation.
1912
1913 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1914
1915         * mule-charset.c (decode_builtin_char): New function; renamed from
1916         `make_builtin_char'; return -1 instead of signal.
1917         (Fdecode_builtin_char): Use `decode_builtin_char'.
1918
1919         * char-ucs.h (decode_builtin_char): New prototype; renamed from
1920         `make_builtin_char'.
1921         (DECODE_CHAR): Use `decode_builtin_char' instead of
1922         `make_builtin_char'; use mapping table of `chinese-big5' for
1923         `chinese-big5-{1,2}'.
1924
1925 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1926
1927         * text-coding.c (char_encode_big5): New function.
1928         (char_finish_big5): Likewise.
1929         (reset_encoding_stream): Use `char_encode_big5' and
1930         `char_finish_big5' for CODESYS_BIG5.
1931         (mule_encode): Don't use `encode_coding_big5'.
1932         (encode_coding_big5): Deleted.
1933
1934 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1935
1936         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
1937         0x81- in XEmacs UTF-2000.
1938         (detect_coding_big5): Likewise.
1939
1940 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1941
1942         * mule-charset.c (Fdefine_char): Don't use a CCS property to
1943         generate character-id if the CCS property does not have
1944         corresponding predefined character.
1945         (make_builtin_char): Return -1 if corresponding predefined
1946         character is not found.
1947         (Fdecode_char): Return nil if corresponding character is not
1948         found.
1949         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
1950         don't map to builtin ucs space.
1951
1952 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1953
1954         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
1955         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
1956
1957 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1958
1959         * mule-charset.c (Vcharset_ideograph_gt): New variable.
1960         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
1961         (Qideograph_gt): Likewise.
1962         (Qideograph_gt_pj_{1..11}): Likewise.
1963         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
1964         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
1965         `ideograph-gt-pj-11'.
1966         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
1967         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
1968         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
1969
1970         * char-ucs.h (LEADING_BYTE_GT): New macro.
1971         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
1972         (MIN_CHAR_GT): Likewise.
1973         (MAX_CHAR_GT): Likewise.
1974
1975 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1976
1977         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
1978         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
1979
1980         * doprnt.c (unsigned_int_converters): Add `c'.
1981         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
1982
1983         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
1984         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
1985         `MIN_CHAR_MOJIKYO'.
1986         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
1987         (MAX_CHAR_MOJIKYO_0): New macro.
1988         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
1989
1990 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1991
1992         * mule-charset.c (Fdefine_char): Delete cemented out code.
1993         (encode_builtin_char_1): Modify for new allocation of builtin
1994         Mojikyo characters.
1995
1996         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
1997
1998 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1999
2000         * mule-charset.c (Vcharset_ucs_cns): New variable.
2001         (Qucs_cns): New variable.
2002         (syms_of_mule_charset): Add new symbol `ucs-cns'.
2003         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
2004
2005 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2006
2007         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
2008
2009 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2010
2011         * search.c (search_buffer): Make `charset_base_code' as
2012         character-id >> 6 to eliminate the corresponding last byte in
2013         UTF-8 representation [I'm not sure it is right thing].
2014         (boyer_moore): Likewise.
2015
2016 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2017
2018         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
2019         representation in MULE.
2020
2021 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2022
2023         * text-coding.c (Fmake_coding_system): Use
2024         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
2025         `EXTERNAL_PROPERTY_LIST_LOOP'.
2026
2027 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2028
2029         * text-coding.c (decode_output_utf8_partial_char): New function.
2030         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
2031
2032 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2033
2034         * text-coding.c (decode_coding_utf8): Output original byte
2035         sequence if it is broken; change order of conditions.
2036
2037         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
2038         of conditions.
2039
2040         * mb-multibyte.h (BYTE_ASCII_P):
2041         Use bit ops for char-signedness safety.
2042         (BYTE_C0_P): Use bit ops for char-signedness safety.
2043         (BYTE_C1_P): Use bit ops for char-signedness safety.
2044
2045         * character.h: (XCHAR_OR_CHAR_INT):
2046         Always use inline function.
2047         Remove redundant type checking assert() - XINT will abort quite
2048         nicely.
2049
2050 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2051
2052         * text-coding.c: (Fencode_shift_jis_char):
2053         (Fencode_big5_char):
2054         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
2055         Replace 0 with '\0' when working with bytes.
2056         Replace initial "(" with "\(" in docstrings.
2057
2058         (Fmake_coding_system):
2059         When type is ccl and value is vector, register it with a proper
2060         symbol.  And checks whether the given ccl program is valid.
2061         (mule_decode): When calling ccl_driver, if src indicates
2062         NULL pointer, set an empty string instead.
2063         (mule_encode): Likewise.
2064
2065         (detect_eol_type):
2066         (detect_coding_sjis):
2067         (decode_coding_sjis):
2068         (detect_coding_big5):
2069         (decode_coding_big5):
2070         (detect_coding_ucs4):
2071         (decode_coding_ucs4):
2072         (detect_coding_utf8):
2073         (decode_coding_utf8):
2074         (detect_coding_iso2022):
2075         (decode_coding_iso2022):
2076         (decode_coding_no_conversion):
2077         (mule_decode):
2078         Make all detecting and decoding functions take an Extbyte * arg.
2079         (text_encode_generic):
2080         (encode_coding_big5):
2081         (encode_coding_no_conversion):
2082         (mule_encode):
2083         Make all encoding functions take a Bufbyte * arg.
2084         Use size_t instead of unsigned int for memory sizes.
2085         Only cast to unsigned char whenever dereferencing Extbyte *.
2086
2087         (struct lrecord_description fcd_description_1): Use countof.
2088         (complex_vars_of_file_coding):
2089         Use countof instead of sizeof.
2090         Use CHECK_NATNUM instead of CHECK_INT.
2091
2092 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2093
2094         * mule-charset.c (Fget_char_attribute): Add new optional argument
2095         `default-value'.
2096         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
2097         (remove_char_ccs): Likewise.
2098
2099 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2100
2101         * text-coding.c (char_encode_shift_jis): New implementation in
2102         UTF-2000.
2103         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
2104         ...)'.
2105
2106         * mule-charset.c (Vcharset_chinese_big5): New variable in
2107         UTF-2000.
2108         (Qchinese_big5): New variable in UTF-2000.
2109         (BIG5_SAME_ROW): New macro in UTF-2000.
2110         (make_builtin_char): Use builtin characters of
2111         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
2112         characters of `Vcharset_chinese_big5'.
2113         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
2114         (complex_vars_of_mule_charset): Add new coded-charset
2115         `chinese-big5' in UTF-2000.
2116
2117         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
2118         (Vcharset_chinese_big5): New external variable declaration.
2119         (Vcharset_japanese_jisx0208_1990): Likewise.
2120
2121 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2122
2123         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
2124         function.
2125         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
2126
2127 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2128
2129         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
2130         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
2131         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
2132         `mojikyo-pj-*'.
2133
2134 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2135
2136         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
2137
2138 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2139
2140         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2141         to 0.17.
2142
2143 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2144
2145         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
2146         for `CHARSET_BY_ATTRIBUTES'.
2147         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2148         `CHARSET_BY_ATTRIBUTES'.
2149
2150         * text-coding.c (struct decoding_stream): Rename member `CH' to
2151         `CPOS'.
2152         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
2153         (decode_coding_sjis): Likewise.
2154         (decode_coding_big5): Likewise.
2155         (decode_coding_ucs4): Likewise.
2156         (decode_coding_utf8): Likewise.
2157         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2158         `CHARSET_BY_ATTRIBUTES'.
2159         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
2160         `str->counter'; decode 3, 4 bytes sets.
2161         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
2162         sets.
2163         (decode_coding_no_conversion): Use `str->cpos' instead of
2164         `str->ch'.
2165
2166         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
2167         (Qmojikyo_2022_1): New variable.
2168         (make_charset): Don't use `CHARSET_TYPE_*'.
2169         (range_charset_code_point): Support coded-charset
2170         `mojikyo-2022-1'.
2171         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
2172         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
2173         `CHARSET_BY_ATTRIBUTES'.
2174         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
2175         `CHARSET_BY_ATTRIBUTES'.
2176         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
2177         (complex_vars_of_mule_charset): Add new coded-charset
2178         `mojikyo-2022-1'.
2179
2180         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
2181         interface; changed to inline function.
2182
2183         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
2184         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
2185         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
2186         (CHARSET_TYPE_94): Deleted.
2187         (CHARSET_TYPE_94X94): Deleted.
2188         (CHARSET_TYPE_96): Deleted.
2189         (CHARSET_TYPE_96X96): Deleted.
2190         (CHARSET_TYPE_128): Deleted.
2191         (CHARSET_TYPE_128X128): Deleted.
2192         (CHARSET_TYPE_256): Deleted.
2193         (CHARSET_TYPE_256X256): Deleted.
2194         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
2195         to inline function.
2196         (DECODE_MOJIKYO_2022): New inline function.
2197         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
2198         `Vcharset_mojikyo_2022_1'.
2199
2200 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2201
2202         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
2203         instead of `EQ'.
2204         (put_byte_table): Likewise.
2205         (char_id_table_equal): Use `get_byte_table' [new implementation].
2206
2207 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2208
2209         * mule-charset.c: Include <limits.h> in UTF-2000.
2210         (BT_UINT8_MIN): New macro in UTF-2000.
2211         (BT_UINT8_MAX): New macro in UTF-2000.
2212         (BT_UINT8_t): New macro in UTF-2000.
2213         (BT_UINT8_nil): New macro in UTF-2000.
2214         (BT_UINT8_unbound): New macro in UTF-2000.
2215         (INT_UINT8_P): New inline function in UTF-2000.
2216         (UINT8_VALUE_P): New inline function in UTF-2000.
2217         (UINT8_ENCODE): New inline function in UTF-2000.
2218         (UINT8_DECODE): New inline function in UTF-2000.
2219         (mark_uint8_byte_table): New function in UTF-2000.
2220         (print_uint8_byte_table): New function in UTF-2000.
2221         (uint8_byte_table_equal): New function in UTF-2000.
2222         (uint8_byte_table_hash): New function in UTF-2000.
2223         (make_uint8_byte_table): New function in UTF-2000.
2224         (uint8_byte_table_same_value_p): New function in UTF-2000.
2225         (BT_UINT16_MIN): New macro in UTF-2000.
2226         (BT_UINT16_MAX): New macro in UTF-2000.
2227         (BT_UINT16_t): New macro in UTF-2000.
2228         (BT_UINT16_nil): New macro in UTF-2000.
2229         (BT_UINT16_unbound): New macro in UTF-2000.
2230         (INT_UINT16_P): New inline function in UTF-2000.
2231         (UINT16_VALUE_P): New inline function in UTF-2000.
2232         (UINT16_ENCODE): New inline function in UTF-2000.
2233         (UINT16_DECODE): New inline function in UTF-2000.
2234         (UINT8_TO_UINT16): New inline function in UTF-2000.
2235         (mark_uint16_byte_table): New function in UTF-2000.
2236         (print_uint16_byte_table): New function in UTF-2000.
2237         (uint16_byte_table_equal): New function in UTF-2000.
2238         (uint16_byte_table_hash): New function in UTF-2000.
2239         (make_uint16_byte_table): New function in UTF-2000.
2240         (uint16_byte_table_same_value_p): New function in UTF-2000.
2241         (print_byte_table): New function in UTF-2000.
2242         (byte-table): Use `print_byte_table' as printer.
2243         (make_byte_table): Delete second argument `older'.
2244         (byte_table_same_value_p): New function in UTF-2000.
2245         (copy_byte_table): Deleted.
2246         (get_byte_table): New function in UTF-2000.
2247         (put_byte_table): New function in UTF-2000.
2248         (print_char_id_table): New function in UTF-2000.
2249         (char-id-table): Use `print_char_id_table' as printer.
2250         (make_char_id_table): Delete second argument `older'.
2251         (get_char_id_table): Use `get_byte_table [new implementation].
2252         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
2253         implementation].
2254         (Ffind_char_attribute_table): New function in UTF-2000.
2255         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2256         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
2257         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
2258         (syms_of_mule_charset): Add new function
2259         `find-char-attribute-table' in UTF-2000.
2260
2261         * lrecord.h (enum lrecord_type): Add
2262         `lrecord_type_uint16_byte_table' and
2263         `lrecord_type_uint8_byte_table'.
2264
2265         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
2266         (Lisp_Uint8_Byte_Table): New type.
2267         (XUINT8_BYTE_TABLE): New macro.
2268         (XSETUINT8_BYTE_TABLE): New macro.
2269         (UINT8_BYTE_TABLE_P): New macro.
2270         (GC_UINT8_BYTE_TABLE_P): New macro.
2271         (struct Lisp_Uint16_Byte_Table): New structure.
2272         (Lisp_Uint16_Byte_Table): New type.
2273         (XUINT16_BYTE_TABLE): New macro.
2274         (XSETUINT16_BYTE_TABLE): New macro.
2275         (UINT16_BYTE_TABLE_P): New macro.
2276         (GC_UINT16_BYTE_TABLE_P): New macro.
2277
2278 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2279
2280         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
2281         (Vcharacter_ideographic_strokes_table): Deleted.
2282         (Vcharacter_total_strokes_table): Deleted.
2283         (Vcharacter_morohashi_daikanwa_table): Deleted.
2284         (Vcharacter_decomposition_table): Deleted.
2285         (Qname): Deleted because it is duplicated.
2286         (Qideographic_radical): Deleted.
2287         (Qideographic_strokes): Deleted.
2288         (Qtotal_strokes): Deleted.
2289         (Qmorohashi_daikanwa): Deleted.
2290         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
2291         `ideographic-radical', `ideographic-strokes', `total-strokes',
2292         `morohashi-daikanwa' and `->decomposition'.
2293         (Fget_char_attribute): Likewise.
2294         (Fput_char_attribute): Likewise; use `make-vector' instead of
2295         `make_older_vector' for `->decomposition' value.
2296         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
2297         `ideograph-daikanwa'.
2298         (syms_of_mule_charset): Delete builtin symbols `name',
2299         `ideographic-radical', `ideographic-strokes', `total-strokes' and
2300         `morohashi-daikanwa'.
2301         (vars_of_mule_charset): Don't setup
2302         `Vcharacter_ideographic_radical_table',
2303         `Vcharacter_ideographic_strokes_table',
2304         `Vcharacter_total_strokes_table',
2305         `Vcharacter_morohashi_daikanwa_table' and
2306         `Vcharacter_decomposition_table'.
2307
2308 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2309
2310         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
2311         `make_older_vector', `make_vector_newer_1' and
2312         `make_vector_newer'.
2313
2314         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
2315         `make_older_vector' and `make_vector_newer'.
2316
2317         * config.h.in (HAVE_GGC): New macro.
2318
2319 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2320
2321         * mule-charset.c (struct char_attribute_list_closure): New
2322         structure in UTF-2000.
2323         (add_char_attribute_to_list_mapper): New function in UTF-2000.
2324         (Fchar_attribute_list): Likewise.
2325         (Fset_charset_mapping_table): Use `make_vector_newer'.
2326         (Fdecode_builtin_char): New function in UTF-2000.
2327         (syms_of_mule_charset): Add new function `char-attribute-list' and
2328         `decode-builtin-char' in UTF-2000.
2329
2330         * lisp.h (make_vector_newer): New prototype.
2331
2332         * alloc.c (make_vector_newer_1): New function.
2333         (make_vector_newer): New function.
2334
2335 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2336
2337         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
2338         50100)'.
2339
2340 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2341
2342         * mule-charset.c (Vchar_attribute_hash_table): New variable.
2343         (Vcharacter_attribute_table): Deleted.
2344         (Vcharacter_name_table): Deleted.
2345         (put_char_attribute): Deleted.
2346         (remove_char_attribute): Deleted.
2347         (struct char_attribute_alist_closure): New structure.
2348         (add_char_attribute_alist_mapper): New function.
2349         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
2350         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
2351         (Fget_char_attribute): Likewise.
2352         (Fput_char_attribute): Likewise.
2353         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
2354         of `remove_char_attribute'.
2355         (Fdefine_char): Return character.
2356         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
2357         and `Vcharacter_name_table'.
2358         (complex_vars_of_mule_charset): Likewise
2359         `Vchar_attribute_hash_table'.
2360
2361 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2362
2363         * character.h (CHARC_CHARSET): New macro.
2364         (CHARC_CHARSET_ID): New macro.
2365         (CHARC_CODE_POINT): New macro.
2366         (CHARC_COLUMNS): New macro.
2367         (CHARC_TO_CHAR): New inline function.
2368         (CHARC_EQ): New inline function.
2369         (CHARC_ASCII_EQ): New inline function.
2370         (CHARC_IS_SPACE): New inline function.
2371         (ASCII_TO_CHARC): New inline function.
2372
2373         * char-ucs.h (encode_char_2): Deleted.
2374         (ENCODE_CHAR): Use `encode_char_1' again.
2375         (breakup_char_1): Likewise.
2376         (CHAR_TO_CHARC): New inline function.
2377
2378         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
2379
2380 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2381
2382         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
2383         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
2384         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
2385         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
2386         (create_string_text_block): Use `CHARC_ASCII_EQ' and
2387         `CHARC_IS_SPACE'.
2388         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
2389
2390         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
2391         `CHARC_CODE_POINT'.
2392         (x_output_display_block): Use `CHARC_CHARSET' and
2393         `CHARC_ASCII_EQ'.
2394
2395         * redisplay-tty.c (tty_output_display_block): Use
2396         `CHARC_ASCII_EQ'.
2397         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
2398
2399         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
2400
2401         * insdel.c (find_charsets_in_charc_string): Use
2402         `CHARC_CHARSET_ID'.
2403         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
2404         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
2405         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
2406         (convert_charc_string_into_malloced_string): Likewise.
2407
2408 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2409
2410         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
2411         instead of <Emchar_dynarr *> for buf; use
2412         `convert_bufbyte_string_into_charc_dynarr' instead of
2413         `convert_bufbyte_string_into_emchar_dynarr'; use
2414         `find_charsets_in_charc_string' instead of
2415         `find_charsets_in_emchar_string'.
2416
2417         * redisplay.h:
2418         - Include "character.h".
2419         (struct rune): New member `cglyph'; delete member `chr'.
2420
2421         * redisplay.c (redisplay_text_width_charc_string): New function;
2422         delete `redisplay_text_width_emchar_string'.
2423         (rtw_charc_dynarr): New variable; renamed from
2424         `rtw_emchar_dynarr'.
2425         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
2426         `rtw_emchar_dynarr'; use
2427         `convert_bufbyte_string_into_charc_dynarr' instead of
2428         `convert_bufbyte_string_into_emchar_dynarr'; use
2429         `redisplay_text_width_charc_string' instead of
2430         `redisplay_text_width_emchar_string'.
2431         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
2432         instead of `rtw_emchar_dynarr'; use
2433         `convert_bufbyte_string_into_charc_dynarr' instead of
2434         `convert_bufbyte_string_into_emchar_dynarr'.
2435         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
2436         `redisplay_text_width_charc_string' instead of
2437         `redisplay_text_width_emchar_string'.
2438         (create_text_block): Modify for <struct rune> change.
2439         (generate_formatted_string_db): Likewise.
2440         (create_string_text_block): Likewise.
2441         (pixel_to_glyph_translation): Likewise.
2442
2443         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
2444         instead of <const Emchar *>.
2445         (x_text_width): Likewise.
2446         (x_output_display_block): Use <Charc_dynarr *> instead
2447         <Emchar_dynarr *>; modify for <structure rune> change.
2448         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
2449         *>.
2450
2451         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
2452         <const Emchar *>; use `charc_string_displayed_columns' instead of
2453         `emchar_string_displayed_columns'.
2454         (tty_output_display_block): Use <Charc_dynarr *> instead of
2455         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
2456         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
2457         (tty_output_charc_dynarr_dynarr): New variable; renamed from
2458         `tty_output_emchar_dynarr_dynarr'.
2459         (tty_output_charc_dynarr): New function; delete
2460         `tty_output_charc_dynarr'.
2461
2462         * redisplay-output.c (compare_runes): Modify for `struct rune'.
2463         (redisplay_output_layout): Use <Charc_dynarr *> instead of
2464         <Emchar_dynarr *> for buf; use
2465         `convert_bufbyte_string_into_charc_dynarr' instead of
2466         `convert_bufbyte_string_into_emchar_dynarr'.
2467
2468         * frame.c (title_string_charc_dynarr): New variable; renamed from
2469         `title_string_emchar_dynarr'.
2470         (generate_title_string): Use `title_string_charc_dynarr' instead
2471         of `title_string_emchar_dynarr'; use
2472         `convert_charc_string_into_malloced_string' instead of
2473         `convert_emchar_string_into_malloced_string'.
2474         (init_frame): Use `title_string_charc_dynarr' instead of
2475         `title_string_emchar_dynarr'.
2476
2477         * console.h:
2478         - Include "character.h".
2479         (struct console_methods): Use <const Charc *> instead of <const
2480         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
2481         <Emchar_dynarr *> in output_string_method.
2482
2483         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
2484         <Emchar_dynarr *>.
2485
2486         * console-stream.c (stream_text_width): Use <const Charc *>
2487         instead of <const Emchar *>.
2488
2489         * character.h (Charc_dynarr): New type.
2490
2491         * char-ucs.h (structure Charc): New structure; define new type
2492         `Charc'.
2493
2494         * char-lb.h (DECODE_CHAR): New inline function.
2495         (encode_char_1): New inline function.
2496         (ENCODE_CHAR): New macro.
2497         (structure Charc): New structure; define new type `Charc'.
2498
2499         * char-1byte.h (Vcharset_control_1): New macro.
2500         (Vcharset_latin_iso8859_1): New macro.
2501         (DECODE_CHAR): New inline function.
2502         (encode_char_1): New inline function.
2503         (ENCODE_CHAR): New macro.
2504         (structure Charc): New structure; define new type `Charc'.
2505
2506         * insdel.c (find_charsets_in_charc_string): New function; delete
2507         `find_charsets_in_emchar_string'.
2508         (charc_string_displayed_columns): New function; delete
2509         `emchar_string_displayed_columns'.
2510         (convert_bufbyte_string_into_charc_dynarr): New function; delete
2511         `convert_bufbyte_string_into_emchar_dynarr'.
2512         (convert_charc_string_into_bufbyte_dynarr): New function; delete
2513         `convert_charc_string_into_bufbyte_dynarr'.
2514         (convert_charc_string_into_malloced_string): New function; delete
2515         `convert_charc_string_into_malloced_string'.
2516
2517         * buffer.h (find_charsets_in_charc_string): New prototype; delete
2518         `find_charsets_in_emchar_string'.
2519         (charc_string_displayed_columns): New prototype; delete
2520         `emchar_string_displayed_columns'.
2521         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
2522         `convert_charc_string_into_bufbyte_dynarr'.
2523         (convert_charc_string_into_malloced_string): New prototype; delete
2524         `convert_charc_string_into_malloced_string'.
2525
2526 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2527
2528         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
2529
2530 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2531
2532         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
2533
2534         * char-ucs.h: Use <short> for <Charset_ID>.
2535
2536         * mule-charset.h, char-1byte.h: Use <unsigned char> for
2537         <Charset_ID>.
2538
2539 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2540
2541         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2542         to 0.16.
2543
2544 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2545
2546         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
2547         variable.
2548         (Qmorohashi_daikanwa): New variable.
2549         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
2550         for `morohashi-daikanwa' attribute.
2551         (Fget_char_attribute): Likewise.
2552         (Fput_char_attribute): Likewise.
2553         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
2554         has the same value of `ideograph-daikanwa'.
2555         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
2556         (vars_of_mule_charset): Setup
2557         `Vcharacter_morohashi_daikanwa_table'.
2558
2559 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2560
2561         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
2562         attributes.
2563         (add_charset_to_list_mapper): Add `key' instead of
2564         `XCHARSET_NAME (value)' to return aliases.
2565
2566 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2567
2568         * mule-charset.c (Vcharacter_ideographic_radical_table): New
2569         variable.
2570         (Vcharacter_ideographic_strokes_table): New variable.
2571         (Qideographic_radical): New variable.
2572         (Qideographic_strokes): New variable.
2573         (Fchar_attribute_alist): Use
2574         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
2575         attribute; use `Vcharacter_ideographic_strokes_table' for
2576         `ideographic-strokes' attribute.
2577         (Fget_char_attribute): Likewise.
2578         (Fput_char_attribute): Likewise.
2579         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
2580         `ideographic-strokes'.
2581         (vars_of_mule_charset): Setup
2582         `Vcharacter_ideographic_radical_table' and
2583         `Vcharacter_ideographic_strokes_table'.
2584
2585 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2586
2587         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
2588         (Qtotal_strokes): New variable.
2589         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
2590         `total-strokes' attribute.
2591         (Fget_char_attribute): Likewise.
2592         (Fput_char_attribute): Likewise.
2593         (syms_of_mule_charset): Add new symbol `total-strokes'.
2594         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
2595
2596 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2597
2598         * mule-charset.c (Vcharacter_decomposition_table): New variable.
2599         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
2600         are found.
2601         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
2602         `->decomposition' attribute.
2603         (Fput_char_attribute): Likewise.
2604         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
2605
2606 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2607
2608         * mule-charset.c (decoding_table_check_elements): New function.
2609         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
2610
2611 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2612
2613         * mule-charset.c (Fset_charset_mapping_table): Use
2614         `put_char_ccs_code_point'.
2615
2616 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2617
2618         * mule-charset.c (decoding_table_put_char): New inline function.
2619         (put_char_ccs_code_point): Use `decoding_table_put_char'.
2620
2621 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2622
2623         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
2624         (XCHARSET_BYTE_SIZE): New macro.
2625         (decoding_table_remove_char): New inline function.
2626         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
2627         `decoding_table_remove_char'.
2628         (remove_char_ccs): Use `decoding_table_remove_char'.
2629         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
2630
2631 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2632
2633         * mule-charset.c (Vcharacter_name_table): New variable.
2634         (Qname): New variable.
2635         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
2636         attribute.
2637         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
2638         `Vcharacter_name_table' for `name' attribute.
2639         (Fremove_char_attribute): Use function `remove_char_ccs'.
2640         (put_char_ccs_code_point): New function.
2641         (remove_char_ccs): New function.
2642         (syms_of_mule_charset): Add new symbol `name'.
2643         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
2644
2645 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2646
2647         * mule-charset.c (make_byte_table): Add new argument `older'.
2648         (make_char_id_table): Likewise.
2649         (copy_char_id_table): Comment out because it is not used.
2650         (put_char_id_table): Modify for `make_byte_table'.
2651         (Fput_char_attribute): Make encoding_table as older object;
2652         inherit older bit of `Vcharacter_composition_table'.
2653         (mark_charset): Don't mark `cs->encoding_table'.
2654         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
2655         normal object; make `Vcharacter_composition_table' as an older
2656         object; delete staticpro for `Vcharacter_composition_table'; make
2657         `Vcharacter_variant_table' as a normal object.
2658
2659         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
2660         (mark_object): Don't check older object in UTF-2000.
2661
2662         * lrecord.h (struct lrecord_header): Add new member `older' in
2663         UTF-2000.
2664         (set_lheader_implementation): Setup `SLI_header->older' in
2665         UTF-2000.
2666         (set_lheader_older_implementation): New macro in UTF-2000.
2667         (OLDER_RECORD_P): New macro in UTF-2000.
2668         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
2669         (alloc_older_lcrecord): New prototype in UTF-2000.
2670         (alloc_older_lcrecord_type): New macro in UTF-2000.
2671
2672 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2673
2674         * mule-charset.c (byte_table_description): Use
2675         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
2676         (char_id_table_description): Delete bogus `, 1'.
2677         (Fget_char_attribute): Refer encoding_table of each coded-charset
2678         to get value of coded-charset attribute of a character.
2679         (Fput_char_attribute): Use `make_older_vector' instead of
2680         `make_vector'; use encoding_table of each coded-charset to store
2681         value of coded-charset attribute of a character.
2682         (Fremove_char_attribute): Use encoding_table of each coded-charset
2683         to store value of coded-charset attribute of a character.
2684         (mark_charset): Mark `cs->encoding_table'; don't mark
2685         `cs->decoding_table'.
2686         (charset_description): Add description of new member
2687         `encoding_table'.
2688         (make_charset): Initialize `encoding_table'.
2689
2690         * char-ucs.h (struct Lisp_Charset): Add new member
2691         `encoding_table'.
2692         (CHARSET_ENCODING_TABLE): New macro.
2693         (XCHARSET_ENCODING_TABLE): New macro.
2694         (charset_code_point): New implementation.
2695         (encode_char_1): Likewise.
2696
2697         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
2698         (disksave_object_finalization_1): Call finalizers of
2699         `all_older_lcrecords' in UTF-2000.
2700         (make_older_vector): New function in UTF-2000.
2701         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
2702         UTF-2000.
2703
2704         * lisp.h (make_older_vector): New prototype in UTF-2000.
2705
2706 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2707
2708         * lrecord.h (enum lrecord_type): Rename
2709         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
2710
2711         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
2712         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
2713         `get_char_code_table'.
2714
2715         * mule-charset.c (mark_char_id_table): Renamed from
2716         `mark_char_code_table'.
2717         (char_id_table_equal): Renamed from `char_code_table_equal'.
2718         (char_id_table_hash): Renamed from `char_code_table_hash'.
2719         (make_char_id_table): Renamed from `make_char_code_table'.
2720         (copy_char_id_table): Renamed from `copy_char_code_table'.
2721         (get_char_id_table): Renamed from `get_char_code_table'.
2722         (put_char_id_table): Renamed from `put_char_code_table'.
2723         (to_char_id): Renamed from `to_char_code'.
2724
2725         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
2726         `Lisp_Char_Code_Table'.
2727         (char_id_table): Renamed from `char_code_table'.
2728         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
2729         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
2730         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
2731         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
2732         (get_char_id_table): Renamed from `get_char_code_table'.
2733
2734 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2735
2736         * lrecord.h (enum lrecord_type): Rename
2737         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
2738
2739         * mule-charset.c (mark_byte_table): Renamed from
2740         `mark_char_byte_table'.
2741         (byte_table_equal): Renamed from `char_byte_table_equal'.
2742         (byte_table_hash): Renamed from `byte_table_hash'.
2743         (make_byte_table): Renamed from `make_byte_table'.
2744         (copy_byte_table): Renamed from `copy_char_byte_table'.
2745
2746         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
2747         `Lisp_Char_Byte_Table'.
2748         (byte_table): Renamed from `char_byte_table'.
2749         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
2750         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
2751         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
2752         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
2753
2754 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2755
2756         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
2757         (dfc_convert_to_internal_format): Likewise.
2758         
2759         * text-coding.c (Fcoding_system_canonical_name_p): New function.
2760         * text-coding.c (Fcoding_system_alias_p): New function.
2761         * text-coding.c (Fcoding_system_aliasee): New function.
2762         * text-coding.c (append_suffix_to_symbol): New function.
2763         * text-coding.c (dangling_coding_system_alias_p): New function.
2764         * text-coding.c (Ffind_coding_system):
2765         * text-coding.c (Fcopy_coding_system):
2766         * text-coding.c (encode_coding_no_conversion):
2767         * text-coding.c (syms_of_file_coding):
2768         * text-coding.c (vars_of_file_coding):
2769         Rewrite coding system alias code.
2770         Allow nested aliases, like symbolic links.
2771         Allow redefinition of coding system aliases.
2772         Prevent existence of dangling coding system aliases.
2773         Eliminate convert_to_external_format.
2774         Eliminate convert_to_internal_format.
2775         
2776         * text-coding.c: Change enum eol_type to eol_type_t.
2777
2778 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2779
2780         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
2781         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2782
2783         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
2784         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2785
2786 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2787
2788         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
2789         `ideograph-daikanwa'.
2790
2791         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
2792         (Vcharset_ucs_bmp): Likewise.
2793         (Vcharset_mojikyo): Add new extern variable definition.
2794         (Vcharset_latin_iso8859_2): Deleted because it is not used.
2795         (Vcharset_latin_iso8859_3): Likewise.
2796         (Vcharset_latin_iso8859_4): Likewise.
2797         (Vcharset_latin_iso8859_9): Likewise.
2798         (Vcharset_latin_viscii_lower): Likewise.
2799         (Vcharset_latin_viscii_upper): Likewise.
2800         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
2801         `mojikyo' code-point is used to decode.
2802         (encode_char_2): New function [to convert `mojikyo' code-point to
2803         Mojikyo font encoding].
2804         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
2805         (breakup_char_1): Likewise.
2806         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
2807
2808 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2809
2810         * text-coding.c (Fmake_coding_system): Add document about
2811         `disable-composition' property.
2812
2813 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2814
2815         * text-coding.c (Qdisable_composition): New variable; delete
2816         `Qcomposite'.
2817         (Fmake_coding_system): Add new property `disable-composite';
2818         delete property `composite'.
2819         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
2820         instead of `!CODING_SYSTEM_COMPOSITE'.
2821         (syms_of_file_coding): Add new symbol `disable-composition';
2822         delete symbol `composite'.
2823
2824         * file-coding.h (struct Lisp_Coding_System): Add
2825         `disable_composition'; delete `enable_composition'.
2826         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2827         `CODING_SYSTEM_COMPOSITE'.
2828         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2829         `XCODING_SYSTEM_COMPOSITE'.
2830
2831 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2832
2833         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2834         to 0.15.
2835
2836 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2837
2838         * text-coding.c (Qcomposite): New variable.
2839         (Fmake_coding_system): Add new property `composite'.
2840         (struct decoding_stream): Add `combined_char_count',
2841         `combined_chars' and `combining_table' in UTF-2000.
2842         (COMPOSE_FLUSH_CHARS): New macro.
2843         (COMPOSE_ADD_CHAR): New macro.
2844         (reset_decoding_stream): Reset `str->combined_char_count' and
2845         `str->combining_table' in UTF-2000.
2846         (decode_coding_iso2022): Modify for character-decomposition.
2847         (syms_of_file_coding): Add new symbol `composite'.
2848
2849 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2850
2851         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
2852         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
2853         of `Vcharacter_composition_table' if `->decomposition' property
2854         has only 1 element.
2855         (Qlatin_tcvn5712): New variable.
2856         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
2857         (complex_vars_of_mule_charset): Add new coded-charset
2858         `latin-tcvn5712'.
2859
2860         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
2861
2862 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2863
2864         * file-coding.h (struct Lisp_Coding_System): Add
2865         `enable_composition'.
2866         (CODING_SYSTEM_COMPOSITE): New macro.
2867         (XCODING_SYSTEM_COMPOSITE): New macro.
2868
2869 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
2870
2871         * mule-canna.c (c2mu): Fix problem with UTF-2000.
2872
2873 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
2874
2875         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
2876         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
2877
2878 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
2879
2880         * mule-charset.c (Vcharset_mojikyo): New variable.
2881         (Fdefine_char): Don't use coded-charset which does not have
2882         non-builtin character range to allocate character-id.
2883         (Qmojikyo): New variable.
2884         (syms_of_mule_charset): Add new symbol `mojikyo'.
2885         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
2886
2887         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
2888         (LEADING_BYTE_MOJIKYO): New macro.
2889         (MIN_CHAR_MOJIKYO): New macro.
2890         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
2891         (MAX_CHAR_MOJIKYO): New macro.
2892
2893 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
2894
2895         * mule-charset.c (remove_char_attribute): Fixed.
2896
2897 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
2898
2899         * mule-charset.c (remove_char_attribute): New function.
2900         (Fremove_char_attribute): New function.
2901         (encode_builtin_char_1): Comment out builtin-support for
2902         greek-iso8859-7 and cyrillic-iso8859-5.
2903         (Fdecode_char): Check `code' is an integer.
2904         (syms_of_mule_charset): Add `remove-char-attribute'.
2905         (MIN_CHAR_GREEK): Deleted.
2906         (MAX_CHAR_GREEK): Likewise.
2907         (MIN_CHAR_CYRILLIC): Likewise.
2908         (MAX_CHAR_CYRILLIC): Likewise.
2909         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
2910         MAX_CHAR_GREEK for `greek-iso8859-7'.
2911
2912         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
2913         (MAX_CHAR_GREEK): Likewise.
2914         (MIN_CHAR_CYRILLIC): Likewise.
2915         (MAX_CHAR_CYRILLIC): Likewise.
2916
2917 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
2918
2919         * mule-charset.c (Fdefine_char): Fix problem when new code-point
2920         format is used without `ucs' property.
2921         (Fdecode_char): Fix problem with GR representation.
2922         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
2923         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
2924
2925 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
2926
2927         * mule-charset.c (make_builtin_char): New function.
2928         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
2929         (Fset_charset_mapping_table): Modify for new representation of
2930         code-point.
2931         (Fdecode_char): New function.
2932         (syms_of_mule_charset): Add new builtin function `decode-char' in
2933         UTF-2000.
2934
2935         * char-ucs.h (make_builtin_char): New prototype.
2936         (DECODE_CHAR): New inline function.
2937         (MAKE_CHAR): Use `DECODE_CHAR'.
2938
2939 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
2940
2941         * text-coding.c (parse_charset_conversion_specs): Use
2942         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
2943         `XCHARSET_TYPE'.
2944         (iso2022_designate): Likewise.
2945
2946         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
2947         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
2948
2949         * mule-charset.c (Vcharset_ucs): New variable.
2950         (print_charset): Change design; use `CHARSET_CHARS' and
2951         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
2952         (make_charset): Change signature to specify `chars' and
2953         `dimension' instead of `type'.
2954         (range_charset_code_point): Modify for 256^n-set.
2955         (encode_builtin_char_1): Encode as `ucs' in default.
2956         (Fmake_charset): Modify for `make_charset'.
2957         (Fmake_reverse_direction_charset): Likewise.
2958         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
2959         UTF-2000.
2960         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
2961         for `make_charset'.
2962
2963         * char-ucs.h (Vcharset_ucs): New variable.
2964         (LEADING_BYTE_UCS): New macro.
2965         (struct Lisp_Charset): Delete `type'; change type of `dimension'
2966         and `chars' to `unsigned short' from `unsigned int'.
2967         (CHARSET_TYPE): Deleted.
2968         (XCHARSET_TYPE): Deleted.
2969
2970 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
2971
2972         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
2973
2974         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
2975         (ENCODE_CHAR): New macro.
2976
2977 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
2978
2979         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2980         to 0.14 (Kawachi-Katakami).
2981
2982 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
2983
2984         * text-coding.c (char_encode_shift_jis): Modify for
2985         `charset_code_point'.
2986         (char_encode_iso2022): Likewise.
2987
2988         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
2989         (integer) instead of list of <Lisp_Object>s (integers) as the
2990         format of code-point of a coded-charset.
2991         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2992         (encode_builtin_char_1): New function; delete
2993         `split_builtin_char'.
2994         (charset_code_point): Return <int> instead of <Lisp_Object>.
2995         (Fsplit_char): Don't use `SPLIT_CHAR'.
2996
2997         * char-ucs.h (encode_builtin_char_1): New prototype; delete
2998         prototype for `split_builtin_char'.
2999         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3000         (charset_code_point): Likewise.
3001         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
3002         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
3003
3004 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
3005
3006         * mule-charset.c (complex_vars_of_mule_charset): Don't define
3007         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
3008
3009 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3010
3011         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
3012
3013         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
3014         (MAX_CHAR_OBS_94x94): Deleted.
3015
3016 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3017
3018         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
3019
3020         * char-ucs.h (MAX_CHAR_BMP): New macro.
3021
3022 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3023
3024         * text-coding.c: Sync with r21-2-24.
3025
3026 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
3027
3028         * file-coding.c: Modify for UTF-2000.
3029
3030 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3031
3032         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3033         to 0.13 (Takaida).
3034
3035 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3036
3037         * mule-charset.c (split_builtin_char): Delete builtin support for
3038         `katakana-jisx0201'.
3039         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
3040         BMP area in builtin representation.
3041
3042         * char-ucs.h (MAKE_CHAR): Delete builtin support for
3043         `Vcharset_katakana_jisx0201'.
3044
3045 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
3046
3047         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
3048         (Qisolated): New variable.
3049         (Qinitial): New variable.
3050         (Qmedial): New variable.
3051         (Qfinal): New variable.
3052         (Qvertical): New variable.
3053         (Qsmall): New variable.
3054         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
3055         `Qvertical' and `Qsmall'.
3056         (Qmojikyo_pj_[1 .. 21]): New variable.
3057         (syms_of_mule_charset): Add new symbols `isolated', `initial',
3058         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
3059         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
3060         .. 21]'.
3061
3062 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
3063
3064         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
3065         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
3066         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
3067
3068 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3069
3070         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
3071         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
3072         BMP.
3073         (Qjapanese_jisx0208_1990): New variable.
3074         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
3075         (complex_vars_of_mule_charset): Add new coded-charset
3076         `japanese-jisx0208-1990'.
3077
3078         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
3079         (MIN_CHAR_JIS_X0208_1990): New macro.
3080         (MAX_CHAR_JIS_X0208_1990): New macro.
3081
3082 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3083
3084         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
3085         coded-charset is not found.
3086
3087 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3088
3089         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
3090         (Fdefine_char): Use `Fmake_char'.
3091
3092 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3093
3094         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
3095         (Vcharset_hiragana_jisx0208): Deleted.
3096         (Vcharset_katakana_jisx0208): Deleted.
3097         (Qideograph_daikanwa): New variable.
3098         (Qhiragana_jisx0208): Deleted.
3099         (Qkatakana_jisx0208): Deleted.
3100         (split_builtin_char): Split `ideograph-daikanwa'.
3101         (Fsplit_char): New implementation for UTF-2000.
3102         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
3103         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
3104         (complex_vars_of_mule_charset): Add new coded-charset
3105         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
3106         `katakana-jisx0208'.
3107
3108         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
3109         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
3110         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
3111         (MIN_CHAR_DAIKANWA): New macro.
3112         (MAX_CHAR_DAIKANWA): New macro.
3113
3114 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3115
3116         * data.c (Fstring_to_number): Don't recognize floating point if
3117         base is not 10.
3118
3119 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3120
3121         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
3122
3123 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3124
3125         * mule-charset.c (Qsquare): New variable.
3126         (to_char_code): Add `Qsquare'.
3127         (syms_of_mule_charset): Add new symbol `square'.
3128
3129 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3130
3131         * mule-charset.c (Qcircle): New variable.
3132         (to_char_code): Add `Qcircle'.
3133         (syms_of_mule_charset): Add new symbol `circle'.
3134
3135 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3136
3137         * mule-charset.c (Qfont): New variable.
3138         (to_char_code): Add `Qfont'.
3139         (syms_of_mule_charset): Add new symbol `font'.
3140
3141 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3142
3143         * mule-charset.c (Qsub): New variable.
3144         (to_char_code): Add `Qsub'.
3145         (syms_of_mule_charset): Add new symbol `sub'.
3146
3147 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3148
3149         * mule-charset.c (Fput_char_attribute): Convert each element of
3150         VALUE to GL position if ATTRIBUTE is a GR-set,
3151
3152 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3153
3154         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
3155         coded-charset is a GR-set.
3156
3157 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3158
3159         * mule-charset.c (Fput_char_attribute): Check each element of
3160         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
3161
3162 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3163
3164         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
3165         UTF-2000.
3166         (Qethiopic_ucs): New variable in UTF-2000.
3167         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
3168         (complex_vars_of_mule_charset): Add new coded-charset
3169         `ethiopic-ucs' in UTF-2000.
3170
3171         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
3172         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3173         9)'.
3174         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3175         10)'.
3176         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
3177
3178 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
3179
3180         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
3181         `ascii'.
3182
3183 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3184
3185         * mule-charset.c (Vcharacter_variant_table): New variable.
3186         (Q_ucs): New variable.
3187         (Fchar_variants): New function.
3188         (Fput_char_attribute): Register `->ucs' value to
3189         `Vcharacter_variant_table'.
3190         (syms_of_mule_charset): Add new function `char-variants' and new
3191         symbol `->ucs'.
3192         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
3193
3194 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3195
3196         * mule-charset.c (get_char_code_table): Allow negative character
3197         code.
3198         (put_char_code_table): Likewise.
3199         (Vcharacter_composition_table): New variable.
3200         (Q_decomposition): New variable.
3201         (Qwide): New variable.
3202         (Qnarrow): New variable.
3203         (Qcompat): New variable.
3204         (QnoBreak): New variable.
3205         (Qsuper): New variable.
3206         (Qfraction): New variable.
3207         (to_char_code): New function.
3208         (Fget_composite_char): New function.
3209         (Fput_char_attribute): Register `->decomposition' value to
3210         `Vcharacter_composition_table'.
3211         (syms_of_mule_charset): Add new function `get-composite-char', new
3212         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
3213         `super' and `fraction'.
3214         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
3215
3216 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3217
3218         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
3219         character; copy the return value.
3220
3221 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3222
3223         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
3224
3225         * mule-charset.c (range_charset_code_point): Must use make_int.
3226         (split_builtin_char): New function.
3227
3228 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3229
3230         * mule-charset.c (char_byte_table): Change name from
3231         "char-code-table" to "char-byte-table".
3232         (mark_char_code_table): New function.
3233         (char_code_table_equal): New function.
3234         (char_code_table_hash): New function.
3235         (char_code_table_description): New constant.
3236         (char_code_table): New type.
3237         (make_char_code_table): New function.
3238         (copy_char_code_table): New function.
3239         (get_char_code_table): Modify for `char_code_table' type.
3240         (put_char_code_table): Likewise.
3241         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
3242         (Kashiwara).
3243
3244         * char-ucs.h (char_code_table): New type.
3245         (XCHAR_CODE_TABLE): New macro.
3246         (XSETCHAR_CODE_TABLE): New macro.
3247         (CHAR_CODE_TABLE_P): New macro.
3248         (GC_CHAR_CODE_TABLE_P): New macro.
3249         (struct Lisp_Char_Code_Table): New structure.
3250
3251 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3252
3253         * mule-charset.c (Fmake_charset): Setup byte_offset for
3254         {94|96}^n-set.
3255
3256 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3257
3258         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
3259         character.
3260
3261 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3262
3263         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
3264         is found.
3265
3266 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3267
3268         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
3269         charset, it is regarded as a charset.
3270         (put_char_attribute): New function in UTF-2000.
3271         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
3272         charset, mapping-table of the charset is modified.
3273         (Fdefine_char): New function in UTF-2000.
3274         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
3275         `Fput_char_attribute'.
3276         (syms_of_mule_charset): Add new function `define-char' and new
3277         symbol `ucs' in UTF-2000.
3278         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
3279
3280 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3281
3282         * mule-charset.c (Fcharset_name): Define `byte_offset' in
3283         non-UTF-2000 configuration.
3284
3285 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3286
3287         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
3288         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
3289
3290         * mule-charset.c (mark_charset): `cs->encoding_table' has been
3291         deleted.
3292         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
3293         (Fset_charset_mapping_table): Likewise.
3294
3295         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
3296         (CHARSET_ENCODING_TABLE): Delete.
3297         (XCHARSET_ENCODING_TABLE): Delete.
3298         (charset_code_point): New interface.
3299
3300 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3301
3302         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
3303         instead of `charset_get_byte1' and `charset_get_byte2'.
3304
3305         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
3306         (charset_get_byte2): Deleted.
3307
3308 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3309
3310         * char-ucs.h (SPLIT_CHAR): New inline function.
3311         (breakup_char_1): Use `SPLIT_CHAR'.
3312
3313         * mule-charset.c (range_charset_code_point): New function.
3314         (charset_code_point): New function.
3315
3316         * char-ucs.h (range_charset_code_point): New interface.
3317         (breakup_char_1): Use `range_charset_code_point'.
3318
3319 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3320
3321         * mule-charset.c (Fmake_charset): Delete unused local variable
3322         `code_offset'.
3323
3324         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
3325         (breakup_char_1): Find a charset and code-point in
3326         `Vcharacter_attribute_table'.
3327
3328 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3329
3330         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3331         to 0.10 (Yao).
3332
3333 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
3334
3335         * mule-charset.c (Vcharacter_attribute_table): New variable.
3336         (Fchar_attribute_alist): New function.
3337         (Fget_char_attribute): New function.
3338         (Fput_char_attribute): New function.
3339         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
3340         too.
3341         (syms_of_mule_charset): Add new function `char-attribute-alist',
3342         `get-char-attribute' and `put-char-attribute'.
3343         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
3344
3345 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
3346
3347         * mule-charset.c (Fmake_charset): Just use
3348         `get_unallocated_leading_byte'.
3349
3350         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
3351         sets; don't use final-byte based number for private sets.
3352
3353 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3354
3355         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
3356         integer.
3357
3358 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3359
3360         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3361         to 0.9.
3362
3363 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3364
3365         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
3366         of `CHAR_LEADING_BYTE' in UTF-2000.
3367
3368         * insdel.c (find_charsets_in_bufbyte_string): Use
3369         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
3370         (find_charsets_in_emchar_string): Likewise.
3371
3372         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
3373         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
3374
3375         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
3376         (CHAR_CHARSET_ID): New macro.
3377
3378 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3379
3380         * chartab.c (get_char_table): Don't use type `Charset_ID' for
3381         charset-id - MIN_LEADING_BYTE.
3382         (put_char_table): Likewise.
3383
3384 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3385
3386         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
3387         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
3388         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
3389         (CHARSET_ID_OFFSET): New macro.
3390         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
3391         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
3392         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
3393         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
3394         4).
3395         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
3396         5).
3397         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
3398         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
3399         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
3400         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
3401         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
3402
3403 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3404
3405         * mule-charset.c (next_allocated_leading_byte): New variable in
3406         UTF-2000.
3407         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
3408         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
3409         (get_unallocated_leading_byte): Simply use
3410         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
3411         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
3412         UTF-2000.
3413
3414         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
3415         (MAX_LEADING_BYTE_PRIVATE): New macro.
3416         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
3417         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
3418
3419 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3420
3421         * mule-charset.c (Fmake_charset): Allocate final-byte based
3422         charset-id for 94-set, 96-set and 94x94-set.
3423
3424 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3425
3426         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
3427         ambiguous `else'.
3428         (Fmake_charset): Likewise.
3429         (complex_vars_of_mule_charset): Modify the font registry of
3430         `ucs-bmp' not to match `Ethiopic-Unicode'.
3431
3432 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3433
3434         * mule-charset.c (complex_vars_of_mule_charset): Add font
3435         registory of `ucs-bmp'.
3436
3437 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3438
3439         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
3440         coded-charsets in `default-coded-charset-priority-list' when
3441         breaking up a character.
3442
3443         * mule-charset.c (Vcharset_latin_viscii): New variable.
3444         (Qlatin_viscii): New variable.
3445         (make_charset): Don't use `decoding_table'.
3446         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
3447         byte_offset.
3448         (Fset_charset_mapping_table): New implementation.
3449         (syms_of_mule_charset): Add new symbol `latin-viscii'.
3450         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
3451         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
3452         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
3453         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
3454         charset `latin_viscii'.
3455
3456         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
3457         (CHARSET_TYPE_94X94): Change to 1 from 2.
3458         (CHARSET_TYPE_96): Change to 2 from 1.
3459         (CHARSET_TYPE_128): New macro.
3460         (CHARSET_TYPE_128X128): Change to 5 from 4.
3461         (CHARSET_TYPE_256): New macro.
3462         (CHARSET_TYPE_256X256): Change to 7 from 5.
3463         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
3464
3465 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3466
3467         * text-coding.c (char_encode_shift_jis): Refer
3468         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
3469         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
3470
3471         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
3472         (char_byte_table_equal): New function in UTF-2000.
3473         (char_byte_table_hash): New function in UTF-2000.
3474         (char_byte_table_description): New constant in UTF-2000.
3475         (char_byte_table): New type in UTF-2000.
3476         (make_char_byte_table): New function in UTF-2000.
3477         (copy_char_byte_table): New function in UTF-2000.
3478         (make_char_code_table): New macro in UTF-2000.
3479         (get_char_code_table): New function in UTF-2000.
3480         (put_char_code_table): New function in UTF-2000.
3481         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3482         (charset_description): Add setting in UTF-2000.
3483         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
3484         `CHARSET_TO_BYTE1_TABLE(cs)'.
3485         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
3486         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
3487         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
3488         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
3489         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
3490         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
3491         `CHARSET_TO_BYTE2_TABLE(cs)'.
3492
3493         * char-ucs.h (char_byte_table): New type.
3494         (XCHAR_BYTE_TABLE): New macro.
3495         (XSETCHAR_BYTE_TABLE): New macro.
3496         (CHAR_BYTE_TABLE_P): New macro.
3497         (GC_CHAR_BYTE_TABLE_P): New macro.
3498         (struct Lisp_Char_Byte_Table): New structure.
3499         (get_char_code_table): New interface.
3500         (Emchar_to_byte_table): Deleted.
3501         (get_byte_from_character_table): Deleted.
3502         (struct Lisp_Charset): Add `encoding_table'; delete
3503         `to_byte1_table' and `to_byte2_table'.
3504         (CHARSET_ENCODING_TABLE): New macro.
3505         (CHARSET_TO_BYTE1_TABLE): Deleted.
3506         (CHARSET_TO_BYTE2_TABLE): Deleted.
3507         (XCHARSET_ENCODING_TABLE): New macro.
3508         (XCHARSET_TO_BYTE1_TABLE): Deleted.
3509         (XCHARSET_TO_BYTE2_TABLE): Deleted.
3510
3511 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3512
3513         * mule-charset.c (syms_of_mule_charset): Delete charset alias
3514         `vietnamese-viscii-*'.
3515
3516 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3517
3518         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
3519         (Qvietnamese_viscii_upper): New variable.
3520         (Fdefine_charset_alias): New function.
3521         (syms_of_mule_charset): Add new function `define-charset-alias'.
3522         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
3523         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
3524         `latin-viscii-*'.
3525
3526 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
3527
3528         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
3529         (MAX_CHAR_OBS_94x94): New macro.
3530         (breakup_char_1): Support obsolete XEmacs-UCS private code space
3531         for 94x94 sets.
3532
3533         * mule-charset.c (put_byte_from_character_table): Change unit size
3534         from 128 to 256.
3535         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
3536         not defined.
3537         (Fmake_reverse_direction_charset): Modify dummy argument of
3538         `make_charset' for non-UTF-2000 environment.
3539
3540 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3541
3542         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
3543
3544         * mule-charset.c (destroy_byte_from_character_table): New macro.
3545         (latin_jisx0201_to_ucs): Deleted.
3546         (latin_iso8859_2_to_ucs): Deleted.
3547         (latin_iso8859_3_to_ucs): Deleted.
3548         (latin_iso8859_4_to_ucs): Deleted.
3549         (latin_iso8859_9_to_ucs): Deleted.
3550         (latin_viscii_lower_to_ucs): Deleted.
3551         (latin_viscii_upper_to_ucs): Deleted.
3552         (mark_charset): Mark `cs->decoding_table'.
3553         (Fcharset_mapping_table): Fix DOC-string.
3554         (Fset_charset_mapping_table): New function.
3555         (syms_of_mule_charset): Add nwe function
3556         `set-charset-mapping-table'.
3557         (complex_vars_of_mule_charset): Don't setup and use
3558         `latin_*_to_ucs'.
3559
3560 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3561
3562         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
3563         charset.
3564
3565 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3566
3567         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
3568         (Vcharset_katakana_jisx0208): New variable.
3569         (Qhiragana_jisx0208): New variable.
3570         (Qkatakana_jisx0208): New variable.
3571         (make_charset): Add new argument `byte_offset'.
3572         (charset_get_byte1): Modify for new coded-charset definition; use
3573         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3574         `XCHARSET_BYTE_OFFSET'.
3575         (Fmake_charset): Modify for `make_charset'.
3576         (Fmake_reverse_direction_charset): Likewise.
3577         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
3578         `katakana-jisx0208'.
3579         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
3580         `.'  in font registry of charset `katakana-jisx0201',
3581         `latin-jisx0201', `vietnamese-viscii-lower' and
3582         `vietnamese-viscii-upper'; modify DOC-string of charset
3583         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
3584         registry of charset `japanese-jisx0208' not to use font for JIS
3585         X0208:1990; add new charset `hiragana-jisx0208' and
3586         `katakana-jisx0208'.
3587
3588         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
3589         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
3590         (struct Lisp_Charset): Add `byte_offset'.
3591         (CHARSET_BYTE_OFFSET): New macro.
3592         (XCHARSET_UCS_MIN): New macro.
3593         (XCHARSET_UCS_MAX): New macro.
3594         (XCHARSET_CODE_OFFSET): New macro.
3595         (XCHARSET_BYTE_OFFSET): New macro.
3596         (MIN_CHAR_HIRAGANA): New macro.
3597         (MAX_CHAR_HIRAGANA): New macro.
3598         (MIN_CHAR_KATAKANA): New macro.
3599         (MAX_CHAR_KATAKANA): New macro.
3600         (MAKE_CHAR): Modify for new coded-charset definition; use
3601         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3602         `XCHARSET_BYTE_OFFSET'.
3603
3604 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3605
3606         * mule-charset.c (CHAR96): Deleted.
3607         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
3608         <Lisp_Object>.
3609         (latin_iso8859_2_to_ucs): Likewise.
3610         (latin_iso8859_3_to_ucs): Likewise.
3611         (latin_iso8859_4_to_ucs): Likewise.
3612         (latin_iso8859_9_to_ucs): Likewise.
3613         (latin_viscii_lower_to_ucs): Likewise.
3614         (latin_viscii_upper_to_ucs): Likewise.
3615         (latin_tcvn5712_to_ucs): Commented out.
3616         (make_charset): Change type of argument `decoding_table' from
3617         <Emchar*> to <Lisp_Object> [vector of characters].
3618         (Fmake_charset): Modify for `make_charset'.
3619         (Fmake_reverse_direction_charset): Likewise.
3620         (Fcharset_mapping_table): New function in UTF-2000.
3621         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
3622         UTF-2000.
3623         (complex_vars_of_mule_charset): Modify for type change of
3624         `*_to_ucs'; modify for `make_charset'.
3625
3626         * char-ucs.h (struct Lisp_Charset): Change type of
3627         `decoding_table' from <Emchar*> to <Lisp_Object>.
3628         (MAKE_CHAR): Modify for new specification of `decoding_table'.
3629
3630 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
3631
3632         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
3633         error with non-UTF-2000-Mule.
3634
3635 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
3636
3637         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
3638         in lisp again].
3639         (Vcharset_chinese_cns11643_4): Likewise.
3640         (Vcharset_chinese_cns11643_5): Likewise.
3641         (Vcharset_chinese_cns11643_6): Likewise.
3642         (Vcharset_chinese_cns11643_7): Likewise.
3643         (Qchinese_cns11643_3): Likewise.
3644         (Qchinese_cns11643_4): Likewise.
3645         (Qchinese_cns11643_5): Likewise.
3646         (Qchinese_cns11643_6): Likewise.
3647         (Qchinese_cns11643_7): Likewise.
3648         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
3649         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3650         and `chinese-cns11643-7' to lisp/mule/chinese.el.
3651         (complex_vars_of_mule_charset): Likewise.
3652
3653 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3654
3655         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
3656         96-set.
3657         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
3658         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
3659
3660 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3661
3662         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
3663         0xFF60.
3664         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
3665         (breakup_char_1): Likewise.
3666
3667         * text-coding.c (char_encode_iso2022): Keep designated charsets if
3668         one of them includes the specified character.
3669
3670 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3671
3672         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
3673
3674 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3675
3676         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
3677
3678 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3679
3680         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
3681         definition for non-UTF-2000 Mule.
3682         (latin_iso8859_3_to_ucs): Likewise.
3683         (latin_iso8859_4_to_ucs): Likewise.
3684         (latin_iso8859_9_to_ucs): Likewise.
3685         (latin_jisx0201_to_ucs): Likewise.
3686         (MIN_CHAR_THAI): Likewise.
3687         (MAX_CHAR_THAI): Likewise.
3688         (MIN_CHAR_GREEK): Likewise.
3689         (MAX_CHAR_GREEK): Likewise.
3690         (MIN_CHAR_HEBREW): Likewise.
3691         (MAX_CHAR_HEBREW): Likewise.
3692         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
3693         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
3694         (MIN_CHAR_CYRILLIC): Likewise.
3695         (MAX_CHAR_CYRILLIC): Likewise.
3696
3697 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3698
3699         * char-ucs.h (breakup_char_1): Use
3700         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
3701         thai-tis620 and katakana-jisx0201 area.
3702
3703 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3704
3705         * char-ucs.h (breakup_char_1): Use
3706         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
3707         area.
3708
3709         * text-coding.c (reset_encoding_stream): Fixed.
3710         (char_encode_ucs4): Delete `& 255'.
3711
3712         * char-ucs.h (breakup_char_1): Use
3713         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
3714
3715 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3716
3717         * file-coding.c (Fmake_coding_system): Don't set up
3718         `codesys->fixed.size'.
3719         (encode_coding_no_conversion): Don't refer
3720         `str->codesys->fixed.size'.
3721
3722 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3723
3724         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
3725         (latin_a_char_to_byte1): Deleted.
3726         (latin_a_char_to_byte2): Deleted.
3727
3728 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3729
3730         * mule-charset.c (make_charset): Add new argument `ucs_min',
3731         `ucs_max' and `code_offset'.
3732         (charset_get_byte1): New implementation [delete specific charset
3733         depended implementations].
3734         (Fmake_charset): Modify for `make_charset'.
3735         (Fmake_reverse_direction_charset): Likewise.
3736         (complex_vars_of_mule_charset): Likewise.
3737
3738         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
3739         `code_offset'.
3740         (CHARSET_UCS_MIN): New macro.
3741         (CHARSET_UCS_MAX): New macro.
3742         (CHARSET_CODE_OFFSET): New macro.
3743         (MAKE_CHAR): Delete charset depended definitions [except
3744         katakana-jisx0201].
3745
3746 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
3747
3748         * char-ucs.h (breakup_char_1): Use
3749         `Vdefault_coded_charset_priority_list' for C0-Controls,
3750         Basic-Latin, C1-Controls and Latin-1-Supplement area.
3751
3752 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3753
3754         * char-ucs.h (charset_get_byte1): New function.
3755         (XCHARSET_GET_BYTE1): Deleted.
3756         (charset_get_byte2): New function.
3757         (XCHARSET_GET_BYTE2): Deleted.
3758         (Vdefault_coded_charset_priority_list): New external variable.
3759         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
3760         `Vdefault_preferred_coded_charset_list'.
3761
3762         * mule-charset.c (charset_get_byte1): New function.
3763         (charset_get_byte2): New function.
3764         (Vdefault_coded_charset_priority_list): New variable.
3765         (vars_of_mule_charset): Add new variable
3766         `default-coded-charset-priority-list'.
3767
3768 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3769
3770         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
3771         (XCHARSET_GET_BYTE2): New inline function.
3772         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
3773         `XCHARSET_GET_BYTE2'.
3774
3775 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3776
3777         * mule-charset.c (make_charset): Initialize
3778         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
3779         NULL if table is not defined.
3780
3781 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3782
3783         * text-coding.c (char_encode_shift_jis): Use
3784         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
3785         `ucs_to_latin_jisx0201'.
3786
3787         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
3788         (ucs_to_latin_iso8859_2): Deleted.
3789         (ucs_to_latin_iso8859_3): Deleted.
3790         (ucs_to_latin_iso8859_4): Deleted.
3791         (ucs_to_latin_iso8859_9): Deleted.
3792         (ucs_to_latin_viscii_lower): Deleted.
3793         (ucs_to_latin_viscii_upper): Deleted.
3794         (ucs_to_latin_tcvn5712): Deleted.
3795         (make_charset): Add new argument `decoding_table'; set up
3796         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
3797         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
3798         `decoding_table' is defined in UTF-2000.
3799         (Fmake_charset): Modify for `make_charset'.
3800         (Fmake_reverse_direction_charset): Likewise.
3801         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
3802         and `GENERATE_96_SET'.
3803
3804         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
3805         (ucs_to_latin_jisx0201): Deleted.
3806         (latin_iso8859_2_to_ucs): Deleted.
3807         (ucs_to_latin_iso8859_2): Deleted.
3808         (latin_iso8859_3_to_ucs): Deleted.
3809         (ucs_to_latin_iso8859_3): Deleted.
3810         (latin_iso8859_4_to_ucs): Deleted.
3811         (ucs_to_latin_iso8859_4): Deleted.
3812         (latin_iso8859_9_to_ucs): Deleted.
3813         (ucs_to_latin_iso8859_9): Deleted.
3814         (latin_viscii_lower_to_ucs): Deleted.
3815         (ucs_to_latin_viscii_lower): Deleted.
3816         (latin_viscii_upper_to_ucs): Deleted.
3817         (ucs_to_latin_viscii_upper): Deleted.
3818         (struct Lisp_Charset): Renamed `encoding_table' to
3819         `to_byte1_table'; add `to_byte2_table'.
3820         (CHARSET_DECODING_TABLE): New macro.
3821         (CHARSET_TO_BYTE1_TABLE): New macro.
3822         (CHARSET_TO_BYTE2_TABLE): New macro.
3823         (XCHARSET_DECODING_TABLE): New macro.
3824         (XCHARSET_TO_BYTE1_TABLE): New macro.
3825         (XCHARSET_TO_BYTE2_TABLE): New macro.
3826         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
3827         tables.
3828         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
3829         don't use `ucs_to_*' tables.
3830
3831 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3832
3833         * text-coding.c (Fmake_coding_system): Don't set up
3834         `codesys->fixed.size'.
3835         (encode_coding_no_conversion): Use `if' instead of `switch'.
3836
3837         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
3838
3839 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3840
3841         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
3842         (Fmake_charset): Modify for `make_charset'.
3843         (Fmake_reverse_direction_charset): Likewise.
3844         (complex_vars_of_mule_charset): Likewise.
3845
3846 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3847
3848         * text-coding.c (char_encode_shift_jis): Use table
3849         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
3850
3851 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3852
3853         * text-coding.c (text_encode_generic): Use `if' instead of
3854         `switch'.
3855         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
3856         decode JIS-Latin.
3857
3858 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3859
3860         * text-coding.c (encode_coding_sjis): Deleted.
3861         (char_encode_shift_jis): New function.
3862         (char_finish_shift_jis): New function.
3863         (reset_encoding_stream): Set up `encode_char' and `finish' for
3864         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
3865         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
3866         (char_encode_utf8): Treat `eol_type'.
3867
3868 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3869
3870         * file-coding.c (decode_coding_iso2022): Use
3871         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
3872
3873 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3874
3875         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3876         to 0.7 (Hirano).
3877
3878 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3879
3880         * char-lb.h (CHAR_COLUMNS): New macro.
3881
3882 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3883
3884         * text-coding.c (char_encode_ucs4): New function.
3885         (char_finish_ucs4): New function.
3886         (encode_coding_ucs4): Deleted.
3887         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
3888         (text_encode_generic): Delete local variable `charset' and `half'.
3889         (ucs_to_mule_table): Deleted.
3890         (mule_to_ucs_table): Deleted.
3891         (Fset_ucs_char): Deleted.
3892         (ucs_to_char): Deleted.
3893         (Fucs_char): Deleted.
3894         (Fset_char_ucs): Deleted.
3895         (Fchar_ucs): Deleted.
3896         (decode_ucs4): Deleted.
3897         (mule_char_to_ucs4): Deleted.
3898         (encode_ucs4): Deleted.
3899         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
3900         (decode_coding_utf8): Likewise.
3901         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
3902         (char_encode_iso2022): Fixed.
3903         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
3904         `Fset_char_ucs' and `Fchar_ucs'.
3905         (complex_vars_of_file_coding): Don't initialize
3906         `ucs_to_mule_table'.
3907
3908         * objects-tty.c (tty_initialize_font_instance): Don't use
3909         `XCHARSET_COLUMNS'.
3910
3911         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
3912         UTF-2000.
3913
3914         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
3915         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3916
3917         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
3918         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3919         (emchar_string_displayed_columns): Likewise.
3920
3921         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
3922         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3923         (string_column_at_point): Likewise.
3924         (Fmove_to_column): Likewise.
3925
3926         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
3927         `encoding_table' and `decoding_table'.
3928         (CHARSET_REP_BYTES): Deleted.
3929         (XCHARSET_REP_BYTES): Deleted.
3930         (XCHARSET_COLUMNS): Deleted.
3931         (CHAR_COLUMNS): New macro.
3932         (lookup_composite_char): Deleted unconditionally.
3933         (composite_char_string): Likewise.
3934
3935 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3936
3937         * char-ucs.h (Emchar_to_byte_table): New type.
3938         (get_byte_from_character_table): New function interface.
3939         (Vcharset_latin_jisx0201): New variable.
3940         (latin_jisx0201_to_ucs): New variable.
3941         (ucs_to_latin_jisx0201): New variable.
3942         (Vcharset_latin_iso8859_2): New variable.
3943         (latin_iso8859_2_to_ucs): New variable.
3944         (ucs_to_latin_iso8859_2): New variable.
3945         (Vcharset_latin_iso8859_3): New variable.
3946         (latin_iso8859_3_to_ucs): New variable.
3947         (ucs_to_latin_iso8859_3): New variable.
3948         (Vcharset_latin_iso8859_4): New variable.
3949         (latin_iso8859_4_to_ucs): New variable.
3950         (ucs_to_latin_iso8859_4): New variable.
3951         (Vcharset_latin_iso8859_9): New variable.
3952         (latin_iso8859_9_to_ucs): New variable.
3953         (ucs_to_latin_iso8859_9): New variable.
3954         (Vcharset_latin_viscii_lower): New variable.
3955         (latin_viscii_lower_to_ucs): New variable.
3956         (ucs_to_latin_viscii_lower): New variable.
3957         (Vcharset_latin_viscii_upper): New variable.
3958         (latin_viscii_upper_to_ucs): New variable.
3959         (ucs_to_latin_viscii_upper): New variable.
3960         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
3961         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
3962         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
3963         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
3964         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
3965         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
3966         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
3967         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
3968         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
3969         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
3970
3971         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
3972         (Vcharset_latin_viscii_upper): New variable.
3973         (make_byte_from_character_table): New function.
3974         (put_byte_from_character_table): New function.
3975         (get_byte_from_character_table): New function.
3976         (CHAR96): New macro.
3977         (ucs_to_latin_jisx0201): New variable.
3978         (latin_jisx0201_to_ucs): New variable.
3979         (ucs_to_latin_iso8859_2): New variable.
3980         (latin_iso8859_2_to_ucs): New variable.
3981         (ucs_to_latin_iso8859_3): New variable.
3982         (latin_iso8859_3_to_ucs): New variable.
3983         (ucs_to_latin_iso8859_4): New variable.
3984         (latin_iso8859_4_to_ucs): New variable.
3985         (ucs_to_latin_iso8859_9): New variable.
3986         (latin_iso8859_9_to_ucs): New variable.
3987         (ucs_to_latin_viscii_lower): New variable.
3988         (latin_viscii_lower_to_ucs): New variable.
3989         (ucs_to_latin_viscii_upper): New variable.
3990         (latin_viscii_upper_to_ucs): New variable.
3991         (ucs_to_latin_tcvn5712): New variable.
3992         (latin_tcvn5712_to_ucs): New variable.
3993         (Qlatin_viscii_lower): New variable.
3994         (Qlatin_viscii_upper): New variable.
3995         (syms_of_mule_charset): Set up new symbol
3996         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
3997         (complex_vars_of_mule_charset): Set up new charset
3998         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
3999         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
4000         `ucs_to_<CHARSET>' tables.
4001
4002 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
4003
4004         * text-coding.c: New file.
4005
4006 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4007
4008         * mule-charset.c (Fmake_char): Fix problem of 256-set.
4009
4010         * char-ucs.h (Vcharset_ucs_bmp): New variable.
4011         (MAKE_CHAR): Modify for `ucs-bmp'.
4012         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
4013         non-MULE characters of BMP.
4014
4015 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
4016
4017         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4018         to 0.6.
4019
4020 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4021
4022         * lstream.h:
4023         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
4024         - Include character.h for `CHAR_ASCII_P'.
4025
4026         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
4027
4028         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
4029         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
4030
4031         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
4032         (BYTE_C0_P): Likewise.
4033         (BYTE_C1_P): Likewise.
4034         (Lstream_get_emchar_1): Likewise.
4035         (Lstream_fput_emchar): Likewise.
4036         (Lstream_funget_emchar): Likewise.
4037         (copy_internal_to_external): Likewise.
4038         (copy_external_to_internal): Likewise.
4039
4040         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
4041         (BYTE_C0_P): Likewise.
4042         (BYTE_C1_P): Likewise.
4043         (Lstream_get_emchar_1): Likewise.
4044         (Lstream_fput_emchar): Likewise.
4045         (Lstream_funget_emchar): Likewise.
4046         (copy_internal_to_external): Likewise.
4047         (copy_external_to_internal): Likewise.
4048
4049         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
4050         (REP_BYTES_BY_FIRST_BYTE): Likewise.
4051
4052         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
4053         (BYTE_ASCII_P): Moved to mb-1byte.h.
4054
4055 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4056
4057         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
4058
4059         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
4060         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
4061         (VALID_CHARPTR_P): Moved to mb-*byte.h.
4062         (VALIDATE_CHARPTR_BACKWARD): Likewise.
4063         (VALIDATE_CHARPTR_FORWARD): Likewise.
4064         (simple_charptr_emchar): Moved to mb-multibyte.h.
4065         (simple_set_charptr_emchar): Likewise.
4066         (simple_charptr_copy_char): Likewise.
4067         (non_ascii_charptr_emchar): Likewise.
4068         (non_ascii_set_charptr_emchar): Likewise.
4069         (non_ascii_charptr_copy_char): Likewise.
4070         (charptr_emchar): Moved to mb-*byte.h.
4071         (set_charptr_emchar): Likewise.
4072         (charptr_copy_char): Likewise.
4073
4074         * mb-1byte.h, mb-multibyte.h: New files.
4075
4076 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4077
4078         * mb-utf-8.h (MULTIBYTE): New macro.
4079         (MAX_EMCHAR_LEN): Moved from buffer.h.
4080         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
4081
4082         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
4083
4084         * mb-lb.h, multibyte.h: New files.
4085
4086         * char-1byte.h (Charset_ID): Moved from buffer.h.
4087         (MIN_LEADING_BYTE): Likewise.
4088         (LEADING_BYTE_ASCII): Likewise.
4089         (NUM_LEADING_BYTES): Likewise.
4090         (CHARSETP): Likewise.
4091         (CHARSET_BY_LEADING_BYTE): Likewise.
4092         (XCHARSET_LEADING_BYTE): Likewise.
4093         (XCHARSET_GRAPHIC): Likewise.
4094         (XCHARSET_COLUMNS): Likewise.
4095         (XCHARSET_DIMENSION): Likewise.
4096         (CHAR_CHARSET): Likewise.
4097         (CHAR_LEADING_BYTE): Likewise.
4098         (BREAKUP_CHAR): Likewise.
4099         (Vcharset_ascii): Likewise.
4100
4101         * buffer.h: Include multibyte.h unconditionally.
4102         (VALID_CHARPTR_P): Moved to multibyte.h.
4103         (ASSERT_VALID_CHARPTR): Likewise.
4104         (REAL_INC_CHARPTR): Likewise.
4105         (REAL_INC_CHARBYTIND): Likewise.
4106         (REAL_DEC_CHARPTR): Likewise.
4107         (INC_CHARPTR): Likewise.
4108         (INC_CHARBYTIND): Likewise.
4109         (DEC_CHARPTR): Likewise.
4110         (VALIDATE_CHARPTR_BACKWARD): Likewise.
4111         (VALIDATE_CHARPTR_FORWARD): Likewise.
4112         (charptr_n_addr): Likewise.
4113         (MAX_EMCHAR_LEN): Moved to mb-*.h.
4114         (simple_charptr_emchar): Moved to multibyte.h.
4115         (simple_set_charptr_emchar): Likewise.
4116         (simple_charptr_copy_char): Likewise.
4117         (non_ascii_charptr_emchar): Likewise.
4118         (non_ascii_set_charptr_emchar): Likewise.
4119         (non_ascii_charptr_copy_char): Likewise.
4120         (charptr_emchar): Likewise.
4121         (set_charptr_emchar): Likewise.
4122         (charptr_copy_char): Likewise.
4123         (charptr_emchar_n): Likewise.
4124         (Charset_ID): Moved to char-1byte.h.
4125         (Vcharset_ascii): Likewise.
4126         (CHAR_CHARSET): Likewise.
4127         (CHAR_LEADING_BYTE): Likewise.
4128         (LEADING_BYTE_ASCII): Likewise.
4129         (NUM_LEADING_BYTES): Likewise.
4130         (MIN_LEADING_BYTE): Likewise.
4131         (CHARSETP): Likewise.
4132         (CHARSET_BY_LEADING_BYTE): Likewise.
4133         (XCHARSET_LEADING_BYTE): Likewise.
4134         (XCHARSET_GRAPHIC): Likewise.
4135         (XCHARSET_COLUMNS): Likewise.
4136         (XCHARSET_DIMENSION): Likewise.
4137         (BREAKUP_CHAR): Likewise.
4138
4139 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4140
4141         * character.h: Add document about interface for characters.
4142
4143         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
4144         (MAKE_CHAR): Delete comment about
4145         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
4146         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
4147         (BREAKUP_CHAR): Modify name of arguments.
4148         (CHAR_CHARSET): Modify name of argument.
4149
4150         * buffer.h: Delete document about Emchar accessors.
4151
4152 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4153
4154         * character.h (CHAR_INTP): Moved from buffer.h
4155         (CHAR_OR_CHAR_INTP): Likewise.
4156         (XCHAR_OR_CHAR_INT): Likewise.
4157         (CHECK_CHAR_COERCE_INT): Likewise.
4158
4159         * buffer.h (CHAR_INTP): Moved to character.h
4160         (CHAR_OR_CHAR_INTP): Likewise.
4161         (XCHAR_OR_CHAR_INT): Likewise.
4162         (CHECK_CHAR_COERCE_INT): Likewise.
4163
4164 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4165
4166         * character.h:
4167         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
4168         - Include char-1byte.h, char-lb.h or char-ucs.h.
4169
4170         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
4171
4172         * buffer.h: Include character unconditionally.
4173         (valid_char_p): Moved to char-*.h.
4174         (non_ascii_valid_char_p): Moved to char-lb.h.
4175
4176         * char-1byte.h, char-lb.h, char-ucs.h: New files.
4177
4178 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4179
4180         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
4181         in UTF-2000 because it is not ported yet and not to use
4182         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
4183         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
4184         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
4185
4186         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
4187         (CHAR_ASCII_P): Moved from character.h.
4188
4189         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
4190         (CHAR_ASCII_P): Likewise.
4191         (CHAR_FIELD1_MASK): Deleted.
4192         (CHAR_FIELD2_MASK): Deleted.
4193         (CHAR_FIELD3_MASK): Deleted.
4194         (MAX_CHAR_BASIC_LATIN): New macro.
4195         (CHAR_FIELD1): Deleted.
4196         (CHAR_FIELD2_INTERNAL): Deleted.
4197         (CHAR_FIELD3_INTERNAL): Deleted.
4198         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
4199         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
4200         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
4201         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
4202         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
4203         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
4204         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
4205         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
4206         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
4207         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
4208         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
4209         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
4210         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
4211         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
4212         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
4213         (MIN_CHAR_COMPOSITION): Deleted.
4214         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
4215         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
4216
4217 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
4218
4219         * buffer.h: Include mb-utf-8.h in UTF-2000.
4220
4221         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
4222
4223         * mb-utf-8.h: New file.
4224
4225 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
4226
4227         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
4228         instead of `int'.
4229
4230         * mule-charset.h, buffer.h (Charset_ID): New type.
4231
4232 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
4233
4234         * mule-canna.c (c2mu): Use `MAKE_CHAR',
4235         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
4236         instead of `MULE_CHAR_PRIVATE_OFFSET',
4237         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
4238         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
4239         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
4240
4241         * character.h (Vcharset_japanese_jisx0212): New variable
4242         definition.
4243
4244 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
4245
4246         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
4247         (charset_by_attributes): Delete array about direction.
4248         (latin_a_char_to_charset): New variable in UTF-2000.
4249         (latin_a_char_to_byte1): New variable in UTF-2000.
4250         (latin_a_char_to_byte2): New variable in UTF-2000.
4251         (Qucs_bmp): New variable.
4252         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
4253         `Bufbyte'.
4254         (next_allocated_2_byte_leading_byte): Likewise.
4255         (non_ascii_set_charptr_emchar): Likewise.
4256         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
4257         `CHARSET_TYPE_256X256' in UTF-2000; modify for
4258         `charset_by_attributes'.
4259         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
4260         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
4261         and `CHARSET_BY_LEADING_BYTE'.
4262         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
4263         `utf-2000-version' to `vars_of_mule_charset'.
4264         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
4265         define `leading-code-private-11' in UTF-2000; move setting of
4266         `utf-2000-version' from `syms_of_mule_charset'.
4267         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
4268         UTF-2000.
4269
4270         * character.h (Charset_ID): New type.
4271         (LEADING_BYTE_UCS_BMP): New macro.
4272         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
4273         (CHARSET_ID_OFFSET_94): New macro.
4274         (MIN_CHARSET_ID_PRIVATE_94): New macro.
4275         (MAX_CHARSET_ID_PRIVATE_94): New macro.
4276         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
4277         final-byte.
4278         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
4279         (LEADING_BYTE_LATIN_JISX0201): Likewise.
4280         (CHARSET_ID_OFFSET_96): New macro.
4281         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
4282         CHARSET_ID_OFFSET_96 and final-byte.
4283         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
4284         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
4285         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
4286         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
4287         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
4288         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
4289         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
4290         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
4291         (LEADING_BYTE_THAI_TIS620): Likewise.
4292         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
4293         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
4294         (CHARSET_ID_OFFSET_94x94): New macro.
4295         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
4296         CHARSET_ID_OFFSET_94x94 and final-byte.
4297         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
4298         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
4299         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
4300         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
4301         (LEADING_BYTE_CHINESE_GB2312): Likewise.
4302         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
4303         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
4304         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
4305         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
4306         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
4307         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
4308         (CHARSET_TYPE_128X128): New macro.
4309         (CHARSET_TYPE_256X256): New macro.
4310         (XCHARSET_PRIVATE_P): Delete unconditionally.
4311         (charset_by_attributes): Delete array about direction.
4312         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
4313         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
4314         (MIN_CHAR_94): New macro.
4315         (MAX_CHAR_94): New macro.
4316         (MIN_CHAR_96): New macro.
4317         (MAX_CHAR_96): New macro.
4318         (MIN_CHAR_94x94): New macro.
4319         (MAX_CHAR_94x94): New macro.
4320         (MIN_CHAR_96x96): New macro.
4321         (MAX_CHAR_96x96): New macro.
4322         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
4323         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
4324         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
4325         - 32)'.
4326         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
4327         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
4328         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
4329         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
4330         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
4331         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
4332         `XCHARSET_LEADING_BYTE' to make code-point.
4333         (latin_a_char_to_charset): New variable.
4334         (latin_a_char_to_byte1): New variable.
4335         (latin_a_char_to_byte2): New variable.
4336         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
4337         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
4338         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
4339
4340         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
4341         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
4342         (find_charsets_in_emchar_string): Likewise.
4343         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
4344
4345         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
4346         `int'.
4347         (decode_coding_iso2022): Likewise.
4348
4349         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
4350         of `unsigned char'.
4351
4352         * redisplay.c (redisplay_text_width_emchar_string): Use
4353         `Charset_ID' instead of `unsigned char'.
4354         (redisplay_frame_text_width_string): Likewise.
4355
4356         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
4357         `unsigned char'.
4358
4359         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
4360         instead of `unsigned char'.
4361         (face_cachel_charset_font_metric_info): Likewise.
4362
4363         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
4364         (get_non_ascii_char_table_value): Likewise.
4365         (get_char_table): Likewise.
4366         (put_char_table): Likewise.
4367         (map_over_other_charset): Likewise.
4368         (map_char_table): Likewise.
4369
4370         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
4371         instead of `unsigned char'.
4372
4373 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
4374
4375         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
4376         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
4377
4378         * mule-charset.c (leading_code_private_11): Don't define in
4379         UTF-2000.
4380
4381         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
4382         in UTF-2000 because it is not ported yet and not to use
4383         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
4384
4385 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
4386
4387         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
4388
4389 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4390
4391         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
4392         in UTF-2000.
4393
4394         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
4395         of unsigned char to store leading-byte.
4396
4397         * chartab.c (get_non_ascii_char_table_value): Don't use
4398         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
4399
4400         * file-coding.c (encode_coding_big5): Delete bogus implementation
4401         in UTF2000.
4402
4403         * character.h (LEADING_BYTE_*): Delete definition for
4404         non-UTF-2000.
4405         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
4406         (LEADING_BYTE_PREFIX_P): Deleted.
4407         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
4408         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
4409         (BUFBYTE_LEADING_BYTE_P): Deleted.
4410         (CHARSET_PRIVATE_P): Deleted unconditionally.
4411         (rep_bytes_by_first_byte): Deleted unconditionally.
4412         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
4413         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
4414         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
4415         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
4416         (CHAR_FIELD2): Deleted.
4417         (CHAR_FIELD3): Deleted.
4418         (MAKE_CHAR): Delete definition for non-UTF-2000.
4419         (BREAKUP_CHAR_1_UNSAFE): Deleted.
4420         (breakup_char_1): New implementation.
4421         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
4422         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
4423
4424 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4425
4426         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
4427         condition.
4428
4429 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4430
4431         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
4432         (CHARSET_PRIVATE_P): Likewise.
4433         (XCHARSET_PRIVATE_P): Likewise.
4434         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
4435
4436         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
4437         UTF2000.
4438         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
4439
4440 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4441
4442         * character.h (LEADING_BYTE_*): Changed in UTF2000.
4443         (NUM_LEADING_BYTES): Changed from 128 to 256.
4444         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
4445         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
4446         UTF2000.
4447         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
4448
4449         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
4450         UTF2000.
4451         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
4452         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
4453         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
4454         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
4455         (Qchinese_cns11643_3): New variable in UTF2000.
4456         (Qchinese_cns11643_4): New variable in UTF2000.
4457         (Qchinese_cns11643_5): New variable in UTF2000.
4458         (Qchinese_cns11643_6): New variable in UTF2000.
4459         (Qchinese_cns11643_7): New variable in UTF2000.
4460         (syms_of_mule_charset): Define `chinese-cns11643-3',
4461         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4462         and `chinese-cns11643-7' in UTF2000.
4463         (vars_of_mule_charset): Initialize
4464         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
4465         + 1 in UTF2000.
4466         (complex_vars_of_mule_charset): Setup charset
4467         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
4468         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
4469
4470 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4471
4472         * mule-charset.c: Move setting for `leading-code-private-11' from
4473         `syms_of_mule_charset' to `vars_of_mule_charset'.
4474
4475 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4476
4477         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
4478         and `NUM_LEADING_BYTES' in assert.
4479
4480 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4481
4482         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
4483         instead of 128.
4484         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
4485         `NUM_LEADING_BYTES' instead of 128.
4486
4487 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4488
4489         * mule-charset.h (charset_by_leading_byte): Use
4490         `NUM_LEADING_BYTES' instead of 128.
4491         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
4492
4493         * mule-charset.c (charset_by_leading_byte): Use
4494         `NUM_LEADING_BYTES' instead of 128.
4495         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
4496
4497         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
4498         128.
4499
4500 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
4501
4502         * mule-charset.c (syms_of_mule_charset): Update to
4503         0.4 (Shin-Imamiya).
4504
4505 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
4506
4507         * file-coding.c (encode_coding_sjis): New implementation for
4508         UTF2000.  (decode_coding_sjis): Ditto.
4509
4510 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4511
4512         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
4513         Don't define in UTF2000.
4514
4515         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
4516         defined.
4517
4518         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4519         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
4520         MULE.
4521
4522 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4523
4524         * config.h.in (CHAR_IS_UCS4): New macro.
4525
4526         * mule-charset.c (rep_bytes_by_first_byte): Modify for
4527         conventional MULE representation.
4528         (syms_of_mule_charset): Update to 0.3 (Imamiya).
4529
4530         * mule-charset.h: Reverted to original.
4531
4532         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4533         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
4534         "mule-charset.h" if CHAR_IS_UCS4 is defined.
4535
4536         * character.h: New file.
4537
4538         * file-coding.c (Fmake_coding_system): Set 1 to
4539         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
4540         defined.
4541         (encode_coding_no_conversion): New implementation for UTF2000.
4542
4543         * file-coding.h (struct Lisp_Coding_System): Add new member
4544         `fixed.size'.
4545
4546 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
4547
4548         * file-coding.c (decode_coding_iso2022): Code-point arguments of
4549         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
4550         (encode_coding_iso2022): New implementation for UTF2000.
4551
4552 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4553
4554         * mule-canna.c (c2mu): New implementation for UTF2000.
4555         (m2c): Likewise.
4556
4557 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4558
4559         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
4560
4561 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4562
4563         * file-coding.c (reset_encoding_stream): Set 0 to
4564         `str->iso2022.current_char_boundary' in UTF2000.
4565         (encode_utf8): Don't define in UTF2000.
4566         (encode_coding_utf8): New implementation for UTF-8 representation
4567         of UTF2000.
4568         (complex_vars_of_file_coding): Define coding-system `utf-8'.
4569
4570 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4571
4572         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
4573
4574         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
4575         UTF2000.
4576         (REP_BYTES_BY_FIRST_BYTE): Likewise.
4577
4578         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
4579
4580         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
4581         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
4582         as UTF-8 in UTF2000.
4583         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
4584         (non_ascii_valid_char_p): Don't define in UTF2000.
4585         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
4586         (Lstream_get_emchar_1): Likewise.
4587         (utf-2000-version): New variable in UTF2000.
4588
4589         * lread.c (read_escape): Add new reader `u'.
4590
4591         * insdel.c (three_to_one_table): Don't define in UTF2000.
4592         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
4593         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4594         UTF2000.
4595         (bytind_to_bufpos_func): Likewise.
4596         (buffer_mule_signal_inserted_region): Likewise.
4597         (vars_of_insdel): Don't initialize `three_to_one_table'.
4598         (init_buffer_text): Use `buf->text->mule_size' instead of
4599         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4600         UTF2000.
4601
4602         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
4603         UTF-8 representation in UTF2000.
4604         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
4605         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
4606         (decode_coding_iso2022): Don't define local variable `lb' in
4607         UTF2000; don't use LEADING_BYTE in UTF2000; use
4608         `DECODE_ADD_UCS_CHAR' in UTF2000.
4609         (convert_to_external_format): Decode as UTF-8 in UTF2000.
4610
4611         * config.h.in (UTF2000): New macro.
4612
4613         * buffer.h (struct buffer_text): Add new member `mule_size' and
4614         don't add `mule_shifter' and `mule_three_p' in UTF2000.
4615         (valid_char_p): Return always 1 in UTF2000.
4616         (MAX_EMCHAR_LEN): 6 in UTF2000.
4617         (three_to_one_table): Don't define in UTF2000.
4618         (real_bufpos_to_bytind): Modify for UTF-8 representation in
4619         UTF2000.
4620         (real_bytind_to_bufpos): Likewise.
4621
4622         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
4623
4624 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4625
4626         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
4627         representation change.
4628         (Vutf_2000_version): New variable.
4629         (leading_code_private_11): New variable.
4630         (syms_of_mule_charset): Add new variables `utf-2000-version' and
4631         `leading-code-private-11'.
4632
4633         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
4634         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
4635         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
4636         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
4637         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
4638         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
4639         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
4640         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
4641         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
4642         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
4643         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
4644         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
4645         (MIN_CHAR_GREEK): New macro.
4646         (MAX_CHAR_GREEK): New macro.
4647         (MIN_CHAR_CYRILLIC): New macro.
4648         (MAX_CHAR_CYRILLIC): New macro.
4649         (MIN_CHAR_HEBREW): New macro.
4650         (MAX_CHAR_HEBREW): New macro.
4651         (MIN_CHAR_THAI): New macro.
4652         (MAX_CHAR_THAI): New macro.
4653         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
4654         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
4655         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
4656         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
4657         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
4658         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
4659         (CHAR_FIELD2): New inline function.
4660         (CHAR_FIELD3): New inline function.
4661         (MULE_CHAR_PRIVATE_OFFSET): New macro.
4662         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
4663         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
4664         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
4665         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
4666         (MIN_CHAR_COMPOSITION): Likewise.
4667         (CHAR_LEADING_BYTE): Modified for character representation change.
4668         (MAKE_CHAR): Likewise.
4669
4670         * lisp.h (Vcharset_latin_iso8859_1): New variable.
4671         (Vcharset_greek_iso8859_7): Likewise.
4672         (Vcharset_cyrillic_iso8859_5): Likewise.
4673         (Vcharset_hebrew_iso8859_8): Likewise.
4674         (Vcharset_thai_tis620): Likewise.
4675         (Vcharset_katakana_jisx0201): Likewise.
4676
4677 2003-01-03  Stephen J. Turnbull  <stephen@xemacs.org>
4678
4679         * XEmacs 21.4.11 "Native Windows TTY Support" is released.
4680
4681 2002-12-14  Ben Wing  <ben@xemacs.org>
4682
4683         * callint.c: Declaration error.
4684         * dumper.c (pdump):
4685         * dumper.c (pdump_load): Warning fix.
4686         * process.c: GCPRO error.
4687         * glyphs.c (unmap_subwindow):
4688         * glyphs.c (map_subwindow): Parenthesizing errors with ! and &&.
4689         * event-stream.c (maybe_kbd_translate): Wrong argument to
4690         character_to_event().
4691
4692         * alloc.c (garbage_collect_1):
4693         * emacs.c:
4694         * emacs.c (debug_can_access_memory):
4695         * emacs.c (fatal_error_signal):
4696         * emacs.c (mswindows_handle_hardware_exceptions):
4697         * emacs.c (main_1):
4698         * emacs.c (main):
4699         * emacs.c (assert_failed):
4700         * emacs.c (syms_of_emacs):
4701         * lisp.h:
4702         * print.c:
4703         * print.c (std_handle_out_va):
4704         * print.c (write_string_to_stdio_stream):
4705         * print.c (write_fmt_string):
4706         * print.c (printing_badness):
4707         * print.c (printing_major_badness):
4708         * print.c (print_internal):
4709         * print.c (debug_print_no_newline):
4710         * print.c (debug_backtrace):
4711         Be more defensive in handling bad values when printing.  Add code
4712         from trunk involving inhibit_non_essential_printing_operations.
4713         When going down or in debug_print(), don't do external conversion
4714         and such and try really, really hard when printing to avoid core
4715         dumping.  Add force-debugging-signal, debug_break().
4716
4717 2002-12-12  Stephen J. Turnbull  <stephen@xemacs.org>
4718
4719         * dumper.c (pdump_load): Include sysdep.h; retry with truename.
4720         Analysis and original patch by Vin Shelton <acs@xemacs.org>.
4721
4722 2002-12-02  Greg Allen  <greg_allen@westlb-systems.co.uk>
4723
4724         * database.c: Fix open_database. Berkeley DB API has changed in
4725         4.1. see: http://www.sleepycat.com/docs/ref/upgrade.4.1/fop.html
4726
4727 2002-11-26  Stephen J. Turnbull  <stephen@xemacs.org>
4728
4729         * specifier.c (Fvalid_specifier_type_p): Typo in comment.
4730
4731 2002-11-13  Stephen J. Turnbull  <stephen@xemacs.org>
4732
4733         * event-Xt.c (Xt_timeout):
4734         (Xt_timeout_callback):
4735         (emacs_Xt_add_timeout):
4736         (emacs_Xt_remove_timeout):
4737         (Xt_timeout_to_emacs_event):
4738         Turn completed_timeouts from a stack into a queue.  Fixes
4739         deadlocks <15829.21626.171573.994716@sinisa.nasamreza.org>.
4740
4741 2002-11-07  Wolfram Gloger  <wg@malloc.de>
4742
4743         * alloc.c (reinit_alloc_once_early): Disable mmap in Doug Lea malloc.
4744         * emacs.c (main): Assert that mmap'd allocation is disabled.
4745
4746 2002-10-14  Andy Piper  <andy@xemacs.org>
4747
4748         * glyphs-widget.c (layout_query_geometry): add in fiddle
4749         factor. Include border text in width layout calculation.
4750         (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10.
4751
4752 2002-11-02  Stephen J. Turnbull  <stephen@xemacs.org>
4753
4754         * XEmacs 21.4.10 "Military Intelligence" is released.
4755
4756 2002-10-17  Raymond Toy  <toy@rtp.ericsson.se>
4757
4758         * nas.c: Update for NAS 1.6 and later, from Jon Trulson.  Was
4759         using the NAS private array SoundFileInfo that no longer exists in
4760         NAS 1.6 and later.  Preserve backward compatibility with NAS 1.5a
4761         and earlier.  This is broken for some versions between 1.5a and
4762         1.5f.
4763
4764 2002-10-10  Stephen J. Turnbull  <stephen@xemacs.org>
4765
4766         * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
4767
4768         * emacs.c (shut_down_emacs): Improve crash message.
4769
4770 2002-10-09  Stephen J. Turnbull  <stephen@xemacs.org>
4771
4772         * file-coding.c (determine_real_coding_system): Check for coding
4773         cookie in first LINES_TO_CHECK lines (currently 2).  Cater to
4774         shebangs and Python PEP 263.
4775
4776 2002-10-08  Andy Piper  <andy@xemacs.org>
4777
4778         * glyphs-widget.c (layout_query_geometry): only resize dynamically
4779         if static sizes haven't been set.
4780
4781 2002-08-30  Mike Alexander  <mta@arbortext.com>
4782
4783         * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
4784         to close a socket.
4785
4786 2002-10-03  Stephen J. Turnbull  <stephen@xemacs.org>
4787
4788         * callproc.c (child_setup): 21.4 doesn't have retry_close.
4789
4790 2002-09-20  Mike Sperber <mike@xemacs.org>
4791
4792         (This partially gets back my patch from 2002-07-20 without the
4793         bug.)
4794         * callproc.c (child_setup): Remove Ben's comment noting confusion
4795         over the file descriptors >= 3: close_process_descs() doesn't
4796         close those.  Fix fd range to go up to MAXDESC-1 instead of 64.
4797         * process-unix.c (unix_create_process): Call
4798         begin_dont_check_for_quit to inhibit unwanted interaction (and
4799         thus breaking of X event synchronicity) in the child.
4800
4801 2002-09-26  Golubev I. N.  <gin@mo.msk.ru>
4802
4803         * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
4804         widget.
4805
4806 2002-08-20  Ben Sigelman  <bhsigelm@cs.brown.edu>
4807
4808         * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
4809         instead of while(XtAppPending()&XtIMXEvent).  Upon a gdm logout,
4810         the xemacs process did not exit, but looped infinitely here.  This
4811         fixes that problem.
4812
4813 2002-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
4814
4815         * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
4816         (find_context): Improve comments.
4817
4818         * regex.c (re_compile_fastmap):  Gratuitous #ifdef comment fixes.
4819         (re_match_2): An XCHAR_TABLE operation was missing.
4820
4821         Many of the following changes were inspired by Andy Piper's (now
4822         obsolete) patch to make syntax-table text property lookup optional.
4823
4824         [Documentation]
4825
4826         * syntax.h (top level): Document semantics of syntax flags.
4827         * syntax.c (comstr_start, Fforward_comment): Improve comments.
4828         * syntax.c, syntax.h (top level): Document syntax cache better in
4829         comments.
4830
4831         [Instrument syntax caching (temporary change)]
4832
4833         * syntax.h (enum syntax_cache_statistics_functions, struct
4834         syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
4835         SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
4836         * syntax.c (scan_words, Fforward_comment, scan_lists,
4837         Fbackward_prefix_characters):
4838         * font-lock.c (find_context):
4839         Use them to instrument syntax caching. 
4840         * syntax.c (struct syntax_cache_statistics, scs_statistics,
4841         syntax_cache_statistics_function_names): New type and variables.
4842         * syntax.c (update_syntax_cache): Update and report statistics.
4843
4844         [Major syntax cache optimizations]
4845
4846         syntax.c (lookup_syntax_properties): Default off.
4847
4848         * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
4849         * syntax.c (update_syntax_cache):
4850         Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
4851
4852         [Minor syntax cache optimizations and code clarifications]
4853
4854         * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
4855         SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
4856         SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
4857         SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
4858         SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
4859         (Code clarification.)
4860
4861         * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
4862         scan_lists): Compute code from syncode, use Boolean macros instead
4863         of redundant masking operations.  (Code clarification; any decent
4864         compiler can do this optimization.)
4865
4866         * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
4867         for clarity.
4868
4869         * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
4870         PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
4871         use F*_single_property_change instead of F*_extent_change.
4872         Currently F*_single_property_change is _much_ less efficient.
4873
4874         * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
4875         * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT):  Initialize
4876         syntax_cache.object properly, don't leave Qt or Qnil.
4877         (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
4878         * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
4879         tests for Qt or Qnil.
4880
4881 2002-09-21  Stephen J. Turnbull  <stephen@xemacs.org>
4882
4883         * redisplay.c (point_in_line_start_cache): 
4884         * extents.c (print_extent_1):
4885         Fix warnings.
4886
4887         * extents.c (Fset_extent_property): Document `syntax-table' property.
4888
4889         * extents.h (Fnext_single_property_change): EXFUN it.
4890
4891 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
4892
4893         * search.c (clear_unused_search_regs): New static function.
4894         (search_buffer): 
4895         (simple_search): 
4896         (boyer_moore):
4897         Use it.  Fixes "stale match data" bug reported by Martin Stjernholm.
4898         Minor clarifications in comments.
4899
4900         * regex.c (re_match_2_internal): Ensure no stale submatches.
4901
4902 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
4903
4904         * event-Xt.c (enqueue_focus_event): Add missing prototype.
4905
4906 2002-08-29  Jerry James  <james@xemacs.org>
4907
4908         * lisp.h: structrures -> structures.
4909
4910 2002-06-03  Andy Piper  <andy@xemacs.org>
4911
4912         * frame.c (frame_conversion_internal): add conversion appropriate
4913         for setting frame dimensions in pixels.
4914
4915         * console.h (struct console_methods): add device-specific widget
4916         layout functions.
4917
4918         * emacs.c (main_1): initialize glyph vars.
4919
4920         * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
4921         (handle_focus_event_2): new function. Allow focus to
4922         be set to a particular window and widget.
4923         (enqueue_focus_event): new function. Create a
4924         synthetic focus event.
4925         (emacs_Xt_handle_magic_event): call
4926         handle_focus_event_2.
4927
4928         * frame.c (Fset_frame_pixel_height): new function. Allow
4929         pixel-based sizing. Does the right thing on character-oriented
4930         displays.
4931         (Fset_frame_pixel_width): ditto.
4932         (Fset_frame_pixel_size): ditto.
4933         (syms_of_frame): declare.
4934
4935         * general-slots.h: add :vertically-justify and
4936         :horizontally-justify.
4937
4938         * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
4939         (mswindows_widget_border_width): new function.
4940         (mswindows_combo_box_instantiate): set border widths.
4941         (console_type_create_glyphs_mswindows): declare.
4942
4943         * glyphs-widget.c:
4944         (check_valid_justification): allow vertical and horizontal
4945         justification.
4946         (widget_border_width): new function. Call device methods.
4947         (widget_instance_border_width): ditto.
4948         (logical_unit_height): new function. Determine the height of a
4949         logical-unit. Logical units are intended to provide grid-like
4950         layout for subcontrols in a layout. If the layout is
4951         :vertically-justify top then subcontrols will be positioned on
4952         logical-unit boundaries, thus allowing adjacent subcontrols to
4953         line up.
4954         (widget_logical_unit_height): ditto for widgets.
4955         (redisplay_widget): misc cleanup.
4956         (widget_spacing): new function. Call device specific
4957         methods. Intended to be the default gap between adjacent widgets.
4958         (widget_query_geometry): use new spacing functions to determine
4959         appropriate geometry.
4960         (initialize_widget_image_instance): initialize horizontal and
4961         vertical justification.
4962         (widget_instantiate): use logica-units where appropriate for
4963         sizing large widgets.
4964         (button_query_geometry): use widget_instance_border_width.
4965         (tree_view_query_geometry): ditto.
4966         (tab_control_query_geometry): ditto.
4967         (edit_field_query_geometry): new function.
4968         (layout_update): pick up :justify, :horizontally-justify and
4969         :vertically-justify none of which worked previously. :justify is
4970         used as a fallback for both horizontal and vertical justification.
4971         (layout_query_geometry): use logical units to size appropriately.
4972         (layout_layout): ditto.
4973         (Fwidget_logical_to_character_width): new function. Allow users to
4974         convert from logical units to characters so that frame sizes can
4975         be set appropriately.
4976         (Fwidget_logical_to_character_height): ditto.
4977         (syms_of_glyphs_widget): declare.
4978         (image_instantiator_edit_fields): add edit_field_query_geometry.
4979         (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
4980         :horizontally-justify.
4981         (specifier_vars_of_glyphs_widget): new function. Declare
4982         Vwidget_border_width which is not yet used.
4983
4984         * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
4985         (x_widget_border_width): new function.
4986         (x_widget_instantiate): create a sensible name for widgets.
4987         (console_type_create_glyphs_x): declare x_widget_border_width.
4988
4989         * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
4990         (struct Lisp_Image_Instance): add :vertically-justify and
4991         :horizontally-justify.
4992         (LAYOUT_JUSTIFY_TOP): new.
4993         (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
4994         (ROUND_UP): new macro. Round argument up to next integral
4995         interval.
4996
4997         * redisplay-output.c (redisplay_output_layout): misc formatting.
4998
4999         * symsinit.h: declare specifier_vars_of_glyphs_widget.
5000
5001 2002-08-23  Stephen J. Turnbull  <stephen@xemacs.org>
5002
5003         * XEmacs 21.4.9 "Informed Management" is released.
5004
5005 2002-08-19  Andy Piper  <andy@xemacs.org>
5006
5007         * fileio.c (Ffile_truename): on cygwin using win32 normalize to
5008         win32 format.
5009
5010         * realpath.c (xrealpath): normalize drive spec also so that dir
5011         sep chars are not mixed on cygwin.
5012
5013 2002-08-06  Jerry James  <james@xemacs.org>
5014
5015         * window.c (Fsplit_window): Count only half of the divider width
5016         against the left window when splitting horizontally. 
5017
5018 2002-06-24  Andy Piper  <andy@xemacs.org>
5019
5020         * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
5021         toolbar was cleared.
5022
5023         * toolbar-msw.c (mswindows_clear_frame_toolbars): new
5024         function. Split out from mswindows_output_frame_toolbars.
5025         (mswindows_output_frame_toolbars): move clear pieces to
5026         mswindows_output_frame_toolbars.
5027
5028         * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
5029         out from gtk_output_frame_toolbars.
5030         (gtk_output_frame_toolbars): move clear pieces to
5031         gtk_clear_frame_toolbars.
5032
5033         * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
5034         the frame is cleared. How this ever worked before is a mystery.
5035         (x_output_frame_toolbars): Only output toolbars.
5036         (x_clear_frame_toolbars): new. Clear previous toolbar locations.
5037
5038         * gutter.c (update_gutter_geometry):
5039         Mark frame layout changed.
5040         (update_frame_gutter_geometry, update_frame_gutters):
5041         Respect frame_layout_changed.
5042
5043         * console.h (struct console_methods): add
5044         clear_frame_toolbars_method.
5045
5046         * redisplay.c (redisplay_frame): call
5047         update_frame_toolbars_geometry and re-order update_frame_toolbars.
5048
5049         * toolbar.h: declare update_frame_toolbars_geometry.
5050
5051         * toolbar.c (update_frame_toolbars_geometry): new function. Split
5052         out from update_frame_toolbars.  Call clear_frame_toolbars.
5053         (update_frame_toolbars): only output, do not change geometry.
5054
5055         * redisplay.c: add frame_layout_changed.
5056
5057         * redisplay.h: add frame_layout_changed.
5058         (CLASS_RESET_CHANGED_FLAGS): set it.
5059         (GLOBAL_RESET_CHANGED_FLAGS): ditto.
5060         (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
5061         (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
5062
5063         * device.h (struct device): add frame_layout_changed.
5064         (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
5065
5066         * frame.h (struct frame): add frame_layout_changed.
5067         (MARK_FRAME_LAYOUT_CHANGED): new.
5068
5069 2002-06-30  Mike Alexander  <mta@arbortext.com>
5070
5071         * event-msw.c (mswindows_need_event): Don't wait for a new message
5072         if the queue is not empty.  Suggested by Paul Moore.
5073
5074 2002-06-12  Andy Piper  <andy@xemacs.org>
5075
5076         * frame-msw.c (msprinter_init_frame_3): calculate the frame size
5077         for printing on accurately.
5078
5079 2002-06-09  Rick Rankin <rick_rankin@yahoo.com>
5080
5081         * event-msw.c (mswindows_wnd_proc): Add a handler for the
5082         WM_ACTIVATE message. Make sure that the frame is visible if the
5083         window is visible. This seemss to fix the problem where XEmacs
5084         appears to freeze after switching desktops with certain virtual
5085         window managers.
5086         (debug_output_mswin_message): Added code to output message
5087         parameters for WM_WINDOWPOSCHANGED, 
5088         WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
5089
5090 2002-05-25  Andy Piper  <andy@xemacs.org>
5091
5092         * select-x.c (vars_of_select_x): Fix docstring of
5093         x-selection-strict-motif-ownership
5094
5095 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5096
5097         * keymap.c (get_keymap):
5098         Add comment about do_autoload GCPROs own args.
5099
5100 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5101
5102         * bytecode.c (execute_optimized_program): check_opcode ifdef
5103         ERROR_CHECK_BYTE_CODE.
5104
5105 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5106
5107         Thanks to Ben Wing and Michael Sperber.
5108
5109         * eval.c (Fcommand_execute):
5110         (Feval):
5111         (Ffuncall):
5112         (Fmacroexpand_internal):
5113         (function_argcount):
5114         callint.c (Fcall_interactively):
5115         Add comment about do_autoload GCPROs own args.
5116
5117         * (do_autoload): GCPRO both args as well as local Lisp_Object.
5118
5119         * eval.c (Ffuncall): Extra braces to placate GCC.
5120
5121 2002-08-10  Stephen J. Turnbull  <stephen@xemacs.org>
5122
5123         * backtrace.h (grow_specpdl):
5124         (SPECPDL_RESERVE):
5125         * EmacsFrame.c (EmacsFrameSetValues):
5126         * eval.c (grow_specpdl):
5127         * ExternalShell.c (hack_event_masks_1):
5128         * glyphs-x.c (convert_EImage_to_XImage): 
5129         (x_finalize_image_instance):
5130         * ralloc.c (page_size):
5131         (r_alloc_sbrk):
5132         * xgccache.c (gc_cache_hash):
5133         Fix unsigned comparison warnings.
5134
5135 2002-07-29  Jerry James  <james@xemacs.org>
5136
5137         * lread.c (locate_file): Any nonnegative return value indicates
5138         success if MODE is nonnegative.
5139
5140 2002-08-03  Brian A Palmer  <bpalmer@rescomp.Stanford.EDU>
5141
5142         * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
5143         argument. 
5144
5145 2002-07-17  Stephen J. Turnbull  <stephen@xemacs.org>
5146
5147         * process-unix.c (unix_send_process): #ifdef the coding_stream member.
5148
5149         * dumper.c (pdump_get_indirect_count):
5150         (pdump_scan_by_alignment):
5151         (pdump_dump_root_struct_ptrs):
5152         (pdump_dump_rtables):
5153         (pdump_dump_root_objects):
5154         (pdump):
5155         * nas.c (WaveOpenDataForReading):
5156         * fns.c (print_bit_vector):
5157         * font-lock.c (SINGLE_SYNTAX_STYLE):
5158         * glyphs.c (check_for_ignored_expose):
5159         (find_matching_subwindow):
5160         * glyphs-eimage.c:
5161         * imgproc.c (get_histogram):
5162         * redisplay.c (point_in_line_start_cache):
5163         * redisplay-output.c (redisplay_unmap_subwindows):
5164         * symbols.c (defsymbol_massage_name_1):
5165         (defkeyword_massage_name):
5166         (deferror_massage_name_and_message):
5167         * redisplay-x.c (x_output_string): 
5168         * emacs.c (run_temacs_argv_size, run_temacs_args_size):
5169         * frame.h (struct frame):
5170         * filelock.c (current_lock_owner):
5171         * doprnt.c (emacs_doprnt_1):
5172         * lisp.h (struct Lisp_Bit_Vector):
5173         (DO_REALLOC):
5174         Fix warnings.
5175
5176 2002-02-13  Ben Wing  <ben@xemacs.org>
5177
5178         * event-stream.c (reset_key_echo):
5179         * event-stream.c (reset_this_command_keys):
5180         * event-stream.c (execute_command_event):
5181         If console is dead as a result of C-x 5 0, then post-command stuff
5182         needs to be careful and do only non-console-specific stuff.
5183
5184 2002-07-01  Mike Sperber <mike@xemacs.org>
5185
5186         * process-unix.c (unix_send_process): Mark coding_outstream as
5187         non-open upon SIGPIPE.
5188
5189         * event-stream.c (Fnext_event): Reorder switch cases to something
5190         that makes sense.
5191
5192 2001-08-13  Dmitry Astapov  <adept@umc.com.ua>
5193
5194         * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
5195         Don't bogusly reinitialize ascii_character property.
5196
5197 2002-07-08  Mike Sperber <mike@xemacs.org>
5198
5199         * process.c (Fstart_process_internal): Do error checking before we
5200         fork off the child, so the child can't muck with the state of the
5201         parent.
5202
5203 2002-07-08  Mike Sperber <mike@xemacs.org>
5204
5205         * ralloc.c (init_ralloc): Allocate properly for pdump.
5206
5207 2002-06-12  Andy Piper  <andy@xemacs.org>
5208
5209         * glyphs.c (query_string_geometry): check the string.
5210
5211         * glyphs-widget.c (widget_logical_unit_height): cope with nil
5212         widget names.
5213
5214 2002-06-17  Jerry James  <james@xemacs.org>
5215
5216         * sysdll.c: Remove RTLD_GLOBAL initialization.
5217         * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
5218
5219 2002-06-25  Stephen J. Turnbull  <stephen@xemacs.org>
5220
5221         * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
5222
5223 2002-05-16  Mathias Grimmberger  <mgri@zaphod.sax.de>
5224
5225         * sysdep.c (sys_rename): Make sys_rename work for the case where
5226         Windows rename sets errno to EACCES if target file exists.
5227
5228 2002-05-21  Jonathan Harris  <jonathan@xemacs.org>
5229
5230         * device-msw.c (mswindows_handle_page_setup_dialog_box):
5231         Fix detection of metric units to work on Win95
5232
5233 2002-05-21  Stephen J. Turnbull  <stephen@xemacs.org>
5234
5235         * syswindows.h: #define LOCALE_RETURN_NUMBER.  Why, I don't know.
5236
5237 2002-04-25  Andy Piper  <andy@xemacs.org>
5238
5239         * redisplay.c (create_text_block): Remove extra comment trailer.
5240
5241 2002-04-24  Andy Piper  <andy@xemacs.org>
5242
5243         * redisplay.c (create_text_block): Don't actually add propagation
5244         data if the line ends after we have added a glyph.
5245
5246 2002-04-22  Andy Piper  <andy@xemacs.org>
5247
5248         * extents.c (extent_fragment_update): check for glyphs we have
5249         previously displayed.
5250         * extents.c (print_extent_1): warning removal.
5251         * extents.h: change prototype.
5252         * redisplay-output.c (redisplay_normalize_glyph_area): calculate
5253         widths correctly for wide glyphs.
5254         * redisplay.c (position_redisplay_data_type): add end_glyph_width.
5255         * redisplay.c (prop_type): add PROP_GLYPH.
5256         * redisplay.c (struct prop_block): add glyph type
5257         * redisplay.c (add_glyph_rune): when adding part of a glyph add it
5258         to the propagation data.
5259         * redisplay.c (create_text_block): if there is a glyph in the
5260         propagation data use it to salt extent_fragment_update.
5261         * redisplay.c (create_string_text_block): ditto.
5262
5263 2002-04-13  Nix  <nix@esperi.demon.co.uk>
5264
5265         * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
5266         * redisplay-output.c (compare_runes): Compare them.
5267         * redisplay.c: Update copyright date.
5268         * redisplay.c (pos_data): Add need_baseline_computation field.
5269         * redisplay.c (add_glyph_rune): Update ascent, descent, and
5270         need_baseline_computation; zero yoffset. Set max_pixmap_height
5271         for all pixmaps, not just automatically positioned ones.
5272         * redisplay.c (calculate_yoffset): New, compute yoffset values.
5273         * redisplay.c (calculate_baseline): New, compute textual baseline.
5274         * redisplay.c (add_glyph_rune): Call them.
5275         * redisplay.c (create_text_block): Likewise.
5276         * redisplay.c (create_overlay_glyph_block): Likewise.
5277         * redisplay.c (add_margin_runes): Likewise.
5278         * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
5279
5280         * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
5281         * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
5282         * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
5283         * redisplay-msw.c (mswindows_output_string): Likewise.
5284         * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
5285         * redisplay-gtk.c (gtk_output_display_block): Likewise.
5286         * redisplay-x.c (x_output_display_block): Likewise.
5287
5288 2002-03-28  Ben Wing  <ben@xemacs.org>
5289
5290         * redisplay.c: Fixed bug in redisplay
5291         w.r.t. hscroll/truncation/continuation glyphs causing jumping up
5292         and down of the lines, since they're bigger than the line
5293         size. (It was seen most obviously when there's a horizontal scroll
5294         bar, e.g. do C-h a glyph or something like that.) The problem was
5295         that the glyph-contrib-p setting on glyphs was ignored even if it
5296         was set properly, which it wasn't until now.
5297
5298 2002-04-24  Andy Piper  <andy@xemacs.org>
5299
5300         * lisp.h (Dynarr_end): Fix definition.
5301
5302 2002-02-06  Adrian Aichner  <adrian@xemacs.org>
5303
5304         * redisplay.c (mark_redisplay): Remove call to
5305         update_frame_window_mirror.
5306
5307 2001-11-15  Andy Piper  <andy@xemacs.org>
5308
5309         * win32.c (Fmswindows_shell_execute): fix handling of URL's under
5310         cygwin (again).
5311
5312 2002-02-13  Andy Piper  <andy@xemacs.org>
5313
5314         * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
5315         we did in fact enqueue the XM_MAPFRAME event.
5316
5317 2002-01-15  Adrian Aichner  <adrian@xemacs.org>
5318
5319         * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
5320         to fix problem switching between virtual desktops under virtuawin
5321         virtual window manager.
5322
5323 2001-07-30  Adrian Aichner  <adrian@xemacs.org>
5324
5325         * event-msw.c: Typo fix.
5326         * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
5327         magic XM_MAPFRAME event has been sent.
5328
5329 2001-11-23  Andy Piper  <andy@xemacs.org>
5330
5331         * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
5332
5333 2001-11-21  Andy Piper  <andy@xemacs.org>
5334
5335         * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
5336         mouse events outside the frame.
5337
5338 2002-03-20  Andy Piper  <andy@xemacs.org>
5339
5340         * menubar-msw.c (mswindows_popup_menu): warning removal.
5341         * dialog-msw.c (dialog_popped_down): ditto.
5342
5343 2001-12-11  Andy Piper  <andy@xemacs.org>
5344
5345         * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
5346         * dialog-msw.c (mswindows_make_dialog_box_internal): set
5347         popup_up_p.
5348         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
5349         * menubar-msw.c (mswindows_handle_wm_command): ditto.
5350         * menubar-msw.c (mswindows_popup_menu): ditto.
5351
5352 2001-10-29  Andy Piper  <andy@xemacs.org>
5353
5354         * dialog-msw.c (handle_directory_dialog_box): quit if the user
5355         cancels.
5356
5357 2002-01-03  Andy Piper  <andy@xemacs.org>
5358
5359         * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
5360         letters.
5361         (xrealpath): ditto.
5362
5363 2002-03-29  Jonathan Harris  <jonathan@xemacs.org>
5364
5365         * device-msw.c (plist_get_margin): Add arg specifying mm or inches
5366         * device-msw.c (plist_set_margin): Fix multiplicand used for mm
5367         * device-msw.c (mswindows_handle_page_setup_dialog_box):
5368         Detect and handle case where machine is set up for metric units
5369
5370 2002-04-02  Andy Piper  <andy@xemacs.org>
5371
5372         * dired-msw.c (mswindows_get_files): 
5373         * nt.c (mswindows_stat): SetErrorMode() so that file errors are
5374         completely handled by XEmacs. Suggested by Thomas Vogler
5375         <mail@thomas-vogler.de>.
5376
5377 2001-11-14  Andy Piper  <andy@xemacs.org>
5378
5379         * nt.c (REG_ROOT): change registry key to XEmacs.
5380
5381 2002-04-27  Andy Piper  <andy@xemacs.org>
5382
5383         * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
5384
5385 2002-04-26  Andy Piper  <andy@xemacs.org>
5386
5387         * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
5388         behavior.
5389
5390 2002-03-14  Mike Alexander  <mta@arbortext.com>
5391
5392         * event-msw.c (mswindows_unwait_process): New, remove process from
5393         wait list
5394         * process-nt.c (nt_finalize_process_data): Call
5395         mswindows_unwait_process
5396         * console-msw.h: Declare mswindows_unwait_process
5397
5398 2002-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
5399
5400         * editfns.c (Fdecode_time):
5401         (Fformat_time_string):
5402         Check for invalid time.  Thanks to Nick Pakoulin <npak@ispras.ru>.
5403         (make_time): Warning elimination (change arg name).
5404
5405 2001-11-24  Andy Piper  <andy@xemacs.org>
5406
5407         * window.c (Fsplit_window): Doc return type.
5408
5409 2002-04-01  Andy Piper  <andy@xemacs.org>
5410
5411         * emacs.c (Fkill_emacs): Only output message box in interactive
5412         mode.
5413
5414 2002-04-26  Andy Piper  <andy@xemacs.org>
5415  
5416         * config.h.in: pull in 21.5.x change to stop alloca warnings under
5417         cygwin.
5418
5419 2002-03-18  Gregory Steuck  <greg-xemacs-patch@nest.cx>
5420
5421         * unexelf.c:  Use ELFSIZE or define from _LP64 to indicate a 64
5422         bit platform.
5423
5424 2002-05-09  Stephen J. Turnbull  <stephen@xemacs.org>
5425
5426         * XEmacs 21.4.8 "Honest Recruiter" is released.
5427
5428 2002-05-07  Nix  <nix@esperi.demon.co.uk>
5429
5430         Supersedes 2002-04-17 patch.
5431
5432         * process.h (PROCESS_LIVE_P): Use the process status as
5433         evidence of health, not the state of the input stream.
5434         (PROCESS_READABLE_P): Say if the process is readable
5435         from. (It may be dead nonetheless.)
5436         (CHECK_READABLE_PROCESS): Test for that condition.
5437
5438         * process.c (create_process): Use PROCESS_READABLE_P.
5439         (read_process_output, set_process_filter): Likewise.
5440
5441         * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
5442         (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
5443
5444         This code is #if 0'd, this is not the time to add new functions:
5445
5446         * process.c (Fprocess_readable_p): Report readability status.
5447         * process.c (Qprocess_readable_p): New, associated symbol...
5448         * process.c (syms_of_process): ... initialize it.
5449
5450 2002-05-04  Stephen J. Turnbull  <stephen@xemacs.org>
5451
5452         * XEmacs 21.4.7 "Economic Science" is released.
5453
5454 2002-04-17  Nix  <nix@esperi.demon.co.uk>
5455
5456         * process.h (PROCESS_LIVE_P): Use the process status as
5457         evidence of health, not the state of the input stream.
5458
5459 2002-04-30  Charles G. Waldman <cgw@xemacs.org>
5460
5461         * sysdep.c (sys_siglist): change "signum" to "signal"
5462
5463 2001-04-21  Martin Buchholz  <martin@xemacs.org>
5464
5465         * s/darwin.h: New file.
5466         Thanks to Greg Parker <gparker@cs.stanford.edu>.
5467         
5468 2002-04-23  Andreas Jaeger  <aj@suse.de>
5469
5470         * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
5471         which use lib64 for 64-bit libs.
5472         (START_FILES): Likewise.
5473
5474 2002-02-11  Mike Sperber  <mike@xemacs.org>
5475
5476         * device-x.c: 
5477         (x_IO_error_handler):
5478         (x_init_device): Temporarily keep device in static variable
5479         `device_being_initialized' so we can recover gracefully from
5480         internal XOpenDevice failure.  (XOpenDevice is documented to
5481         return NULL on failure, but sometimes calls the IO error handler
5482         instead.)
5483
5484 2002-01-31  John H. Palmieri  <palmieri@math.washington.edu>
5485
5486         * dired.c (Ffile_name_all_completions): Change documentation --
5487         remove reference to completion-ignored-extensions.
5488         * dired.c (vars_of_dired): Change documentation for
5489         completion-ignored-extensions -- remove reference to
5490         file-name-all-completions.
5491
5492 2002-03-06  Jerry James  <james@xemacs.org>
5493
5494         * emodules.c (emodules_load): Fix multiple loading of same module.
5495
5496 2002-01-25  Andrew Begel <abegel@cs.berkeley.edu>
5497         * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
5498         RTLD_LAZY to avoid incorrect symbol binding when using nested
5499         shared libraries on Solaris.
5500
5501 2002-02-12  Stephen J. Turnbull  <stephen@xemacs.org>
5502
5503         * fileio.c (Ffind_file_name_handler): Improve docstring.
5504
5505 2002-01-20  Stephen J. Turnbull  <stephen@xemacs.org>
5506
5507         * fns.c (Fmapconcat): Improve docstring.
5508
5509 2002-01-03  Eric Gillespie, Jr.  <epg@pretzelnet.org>
5510
5511         * device-gtk.c: Add prototype for
5512         emacs_gtk_selection_clear_event_handle.
5513         (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
5514         selection.  Setup signal handler for "selection_clear_event"
5515         (emacs_gtk_selection_clear_event_handle).
5516
5517         * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
5518         other applications owning the clipboard (based on
5519         x_handle_selection_clear).
5520
5521 2001-12-23  William M. Perry  <wmperry@gnu.org>
5522
5523         * menubar-gtk.c (gtk_popup_menu)  Add sanity checks, fix crash.
5524         
5525 2002-01-04  Martin Buchholz  <martin@xemacs.org>
5526
5527         * keymap.c (define_key_alternate_name): Parenthesize EQ.
5528
5529 2001-12-17  Stephen J. Turnbull  <stephen@xemacs.org>
5530
5531         * XEmacs 21.4.6 "Common Lisp" is released.
5532
5533 2001-12-16  Torsten Duwe  <duwe@caldera.de>
5534
5535         * search.c (Freplace_match): Add missing sub-expression functionality.
5536
5537         * buffer.c (decode_buffer): Add a check for pointer type to
5538         decode_buffer, before gcc's CSE optimization reorders a
5539         dereference in front of the allow_string test.
5540
5541 2001-11-16  Darryl Okahata  <darrylo@xemacs.org>
5542
5543         * window.c (window_loop): Fix bug that sometimes prevented
5544         window_loop() from iterating across multiple devices.  Also, at
5545         Ben's request, changed infloop-detecting code to abort() instead
5546         of silently terminating window_loop().
5547
5548 2001-11-21  Stephen J. Turnbull  <stephen@xemacs.org>
5549
5550         Based on analysis and patch by Simon Josefson <jas@extundo.com>.
5551         * editfns.c (make_time): New function.
5552         (Fencode_time): Use it instead of wasteful_word_to_lisp.
5553         * lisp.h (make_time): Prototype and comment it.
5554         * dired.c (wasteful_word_to_lisp): Deprecate.
5555         (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
5556
5557 2001-10-31  Kyle Jones  <kyle_jones@wonderworks.com>
5558
5559         * fileio.c (auto_save_1): Use current coding system, not
5560         escape-quoted.
5561
5562 2001-11-13  Ben Wing  <ben@xemacs.org>
5563
5564         * window.c:
5565         * window.c (window_truncation_on):
5566         * window.c (syms_of_window):
5567         truncate-partial-width-windows should respect the buffer being
5568         displayed, like other redisplay vars.
5569
5570 2001-11-13  Hirokazu FUKUI  <hfukui@sannet.ne.jp>
5571
5572         * event-stream.c (Fread_key_sequence): save current buffer.
5573
5574 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
5575
5576         * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
5577
5578 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
5579
5580         * alloc.c (lcrecord_stats): Add space for types defined in modules.
5581
5582 2001-10-26  Mike Alexander  <mta@arbortext.com>
5583
5584         * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
5585
5586 2001-10-25  Andy Piper  <andy@xemacs.org>
5587
5588         * ChangeLog:
5589         * dialog-msw.c (handle_directory_proc): new function.
5590          (handle_directory_dialog_box): new fucntion.
5591          (handle_file_dialog_box): use new directory dialog support.
5592          (mswindows_make_dialog_box_internal): ditto.
5593         * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
5594         handling.
5595         (mswindows_find_frame): make global.
5596         * fileio.c (Fexpand_file_name): build fix.
5597         * general-slots.h: add Qdirectory.
5598         * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
5599         handling.
5600         * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
5601         cygwin not leaving win32 paths unchanged.
5602         * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
5603         cygwin runtime to do path conversion.
5604         (Fmswindows_shell_execute): fix cygwin handling of URLs.
5605         (syms_of_win32): add new function.
5606         * window.c (window_loop): build fix.
5607
5608 2001-10-15  Andy Piper  <andy@xemacs.org>
5609
5610         (Fmswindows_shell_execute): fix handling of URL's under cygwin.
5611
5612 2001-10-23  Stephen J. Turnbull  <stephen@xemacs.org>
5613
5614         * XEmacs 21.4.5 "Civil Service" is released.
5615
5616 2001-04-08  Danny Colascione  <qtmstr@optonline.net>
5617
5618         * glyphs-x.c: Force buffer-tab highlight update when moving the
5619         buffer, avoiding an ugly black border, used for keyboard focus
5620         indication, on a widget that can never have keyboard focus, the
5621         buffer tab.
5622
5623 2001-08-30  Daiki Ueno  <ueno@unixuser.org>
5624
5625         * process-unix.c (unix_open_multicast_group): Remove too much
5626         conversion between host and network byte order.
5627
5628 2001-09-10  Nix  <nix@esperi.demon.co.uk>
5629
5630         * src/buffer.c (kill_buffer): Undedicate windows showing BUF
5631         before replacing them.
5632
5633         * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
5634         operation.
5635
5636         * src/window.c (undedicate_windows): Use it.
5637         * src/window.h: Add prototype.
5638
5639 2001-09-17  Ben Wing  <ben@xemacs.org>
5640
5641         * fileio.c (normalize_filename):
5642         * fileio.c (Fexpand_file_name):
5643         Fix various C++ compile errors in Andy's recent code.
5644         
5645         * callint.c (Fcall_interactively):
5646         * editfns.c (Ftemp_directory):
5647         * editfns.c (Fuser_full_name):
5648         * emacs.c (argmatch):
5649         * lread.c (locate_file_map_suffixes):
5650         * redisplay-x.c (x_ring_bell):
5651         Fix sign-compare warnings.
5652         
5653 2001-09-08  Andy Piper  <andy@xemacs.org>
5654
5655         * fileio.c (normalize_filename): copied from nt.c
5656         * (Ffile_name_directory): enable win32 paths under cygwin.
5657         * (Ffile_name_nondirectory): ditto.
5658         * (directory_file_name): ditto.
5659         * (Fexpand_file_name): ditto.
5660         * (Ffile_truename): ditto.
5661         * (Fsubstitute_in_file_name): ditto.
5662         * (Ffile_name_absolute_p): ditto.
5663         * (Ffile_readable_p): ditto.
5664
5665 2001-09-08  Andy Piper  <andy@xemacs.org>
5666
5667         * device-msw.c (mswindows_finish_init_device): remove dde
5668         initialization.
5669         * device-msw.c (mswindows_init_dde): factor out from
5670         mswindows_finish_init_device()
5671         * device-msw.c (init_mswindows_very_early): new function
5672         initialize but don't enable dde.
5673         * emacs.c (main_1): call init_mswindows_very_early.
5674         * event-msw.c:
5675         * event-msw.c (mswindows_dde_callback): only execute when we are
5676         ready.
5677         * symsinit.h: declare init_mswindows_very_early.
5678
5679 2001-05-02  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
5680
5681         [sjt: This has been in 21.5 for months with no complaints.]
5682
5683         * console.h (struct console_methods): Added flags member.
5684         (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
5685         (CONMETH_IMPL_FLAG):
5686         (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
5687         Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
5688
5689         * device.c (window_system_pixelated_geometry): Use the above macros.
5690
5691         * device.h (DEVICE_IMPL_FLAG): Macro to check a device
5692         implememntation flag.
5693         * device.h (DEVICE_DISPLAY_P): Use it.
5694
5695         * frame.c (delete_frame_internal): Use the above macro.
5696
5697         * redisplay.c (redisplay_device): Use it.
5698         (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
5699         (redisplay_frame): Ditto.
5700
5701         * device-msw.c (mswindows_device_implementation_flags): Removed.
5702         (msprinter_device_implementation_flags): Removed.
5703         (console_type_create_device_mswindows): Removed references to
5704         implementation_flags methods, set implementation flags here.
5705         (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
5706
5707         * device-gtk.c (gtk_device_implementation_flags): Removed method.
5708         (console_type_create_device_gtk): Removed method declaration.
5709         Added commented out statement which semantically matches the
5710         commented out statement in the above removed method.
5711
5712 2001-04-14  Gordon Sadler  <gbsadler1@lcisp.com>
5713
5714         The attached patch fixes a few warnings. 
5715
5716         * src/emacs.c: prototype console_type_create_select_gtk for GTK only
5717         * src/frame-gtk.c: guard against GNOME calls in GTK only
5718         * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
5719         * src/select-gtk.c: prototype lisp_to_time
5720
5721 2001-06-08  Ben Wing  <ben@xemacs.org>
5722
5723         ------ gc-in-window-procedure fixes ------
5724         
5725         * alloc.c:
5726         * alloc.c (struct post_gc_action):
5727         * alloc.c (register_post_gc_action):
5728         * alloc.c (run_post_gc_actions):
5729         * alloc.c (garbage_collect_1):
5730         Create "post-gc actions", to avoid those dreaded "GC during window
5731         procedure" problems.
5732
5733         * event-msw.c:
5734         Abort, clean and simple, when GC in window procedure.  We want
5735         to flush these puppies out.
5736
5737         * glyphs-msw.c:
5738         * glyphs-msw.c (finalize_destroy_window):
5739         * glyphs-msw.c (mswindows_finalize_image_instance):
5740         Use a post-gc action when destroying subwindows.
5741
5742         * lisp.h:
5743         Declare register_post_gc_action().
5744
5745         * scrollbar-msw.c:
5746         * scrollbar-msw.c (unshow_that_mofo):
5747         Use a post-gc action when unshowing scrollbar windows, if in gc.
5748
5749         * redisplay.c (mark_redisplay):
5750         Add comment about the utter evilness of what's going down here.
5751
5752         ------ cygwin setitimer fixes ------
5753         
5754         * Makefile.in.in (sheap_objs):
5755         * Makefile.in.in (profile_objs):
5756         * Makefile.in.in (objs):
5757         Compile profile.c only when HAVE_SETITIMER.
5758         
5759         * nt.c (mswindows_sigset):
5760         * nt.c (mswindows_sighold):
5761         * nt.c (mswindows_sigrelse):
5762         * nt.c (mswindows_sigpause):
5763         * nt.c (mswindows_raise):
5764         * nt.c (close_file_data):
5765         Style fixes.
5766         
5767         * nt.c:
5768         Move setitimer() emulation to win32.c, because Cygwin needs it too.
5769         
5770         * profile.c:
5771         * profile.c (Fstart_profiling):
5772         * profile.c (Fstop_profiling):
5773         Make sure we don't compile if no setitimer().  Use qxe_setitimer()
5774         instead of just plain setitimer().
5775         
5776         * signal.c:
5777         * signal.c (set_one_shot_timer):
5778         * signal.c (alarm):
5779         Define qxe_setitimer() as an encapsulation around setitimer() --
5780         call setitimer() directly unless Cygwin or MS Win, in which case
5781         we use our simulated version in win32.c.
5782         
5783         * systime.h:
5784         * systime.h (struct itimerval):
5785         * systime.h (ITIMER_REAL):
5786         Prototype mswindows_setitimer() and qxe_setitimer().  Long
5787         comment about "qxe" and the policy regarding encapsulation.
5788
5789         * win32.c:
5790         * win32.c (setitimer_helper_proc):
5791         * win32.c (setitimer_helper_period):
5792         * win32.c (setitimer_helper):
5793         * win32.c (mswindows_setitimer):
5794         Move setitimer() emulation here, so Cygwin can use it.
5795         Rename a couple of functions and variables to be longer and more
5796         descriptive.  In setitimer_helper_proc(), send the signal
5797         using either mswindows_raise() or (on Cygwin) kill().  If for
5798         some reason we are still getting lockups, we'll change the kill()
5799         to directly invoke the signal handlers.
5800
5801         ------ windows shell fixes ------
5802         
5803         * callproc.c:
5804         * ntproc.c:
5805         Comments about how these two files must die.
5806
5807         * callproc.c (init_callproc):
5808         On MS Windows, init shell-file-name from SHELL, then COMSPEC,
5809         not just COMSPEC. (more correct and closer to FSF.) Don't
5810         force a value for SHELL into the environment. (Comments added
5811         to explain why not.)
5812         
5813         * nt.c (init_user_info):
5814         Don't shove a fabricated SHELL into the environment.  See above.
5815
5816 2001-06-01  Ben Wing  <ben@xemacs.org>
5817
5818         * Makefile.in.in (ldflags):
5819         eliminate that pesky "defaulting to 00401000" warning.
5820         * nt.h:
5821         eliminate warnings.
5822
5823 2001-06-15  Golubev I. N.  <gin@mo.msk.ru>
5824
5825         * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
5826         * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
5827
5828 2001-04-24  Jerry James <james@xemacs.org>
5829
5830         * faces.h: pass parameters to Fadd_spec_to_specifier in the
5831         correct order.
5832
5833 2001-06-01  Ben Wing  <ben@xemacs.org>
5834
5835         * event-msw.c (debug_mswin_messages):
5836         conditionalize the messages that were causing compile errors.
5837         (if only macros could generate #ifdef statements ...)
5838
5839 2001-07-28  Stephen J. Turnbull  <stephen@xemacs.org>
5840
5841         * XEmacs 21.4.4 "Artificial Intelligence" is released.
5842
5843 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
5844
5845         * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
5846
5847 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
5848
5849         * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
5850         * process-unix.c (unix_canonicalize_host_name):
5851         sysdep.c (init_system_name):
5852         Use it to conditionally support IPv6 canonicalization.
5853
5854 2001-05-31  Paul Stodghill  <stodghil@cs.cornell.edu>
5855
5856         * event-msw.c:
5857         Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
5858
5859 2001-05-19  Paul Krause  <paulkrause1@mediaone.net>
5860
5861         * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
5862         attempt is made to scroll when no scroll bar is available.
5863
5864 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
5865
5866         * input-method-motif.c (XIM_delete_frame): New callback.
5867         (XIM_init_frame): Register it.  (Reapplied by SJT, it somehow
5868         got deleted from 21.4.3.)
5869
5870 2001-06-01  Ben Wing  <ben@xemacs.org>
5871
5872         * nt.c (mswindows_utime):
5873         * nt.c (close_file_data):
5874         fix off-by-one-indirection error.
5875
5876 2001-05-29  Adrian Aichner  <adrian@xemacs.org>
5877
5878         * fileio.c: Include nt.h.  Remove lisp_string_set_file_times()
5879         because set_file_times() now takes Lisp_Object path, instead of
5880         char*.
5881         * nt.c: Include buffer.h.
5882         * nt.c (convert_from_time_t): New.
5883         * nt.c (mswindows_utime): New.  Use utime, since SetFileTime does
5884         not set mtime correctly.
5885         * nt.h: Declare mswindows_utime().
5886         * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
5887         path, instead of char*.
5888         * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
5889
5890 2001-05-30  Ben Wing  <ben@xemacs.org>
5891
5892         For 21.4:
5893
5894         (Stephen, just take all event-msw.c patches.  This includes
5895         the "iconify" fix below.)
5896
5897         * event-msw.c:
5898         * event-msw.c (mswindows_dequeue_dispatch_event):
5899         * event-msw.c (assert):
5900         * event-msw.c (emacs_mswindows_quit_p):
5901         * event-msw.c (debug_mswin_messages):
5902         * event-msw.c (debug_output_mswin_message):
5903         * event-msw.c (vars_of_event_mswindows):
5904         Fix yet more problems with C-g handling.
5905         Implement debug-mswindows-events.
5906         
5907 2001-05-24  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
5908
5909         * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
5910         
5911 2001-05-23  Ben Wing  <ben@xemacs.org>
5912
5913         * event-msw.c (winsock_writer):
5914         * event-msw.c (winsock_closer):
5915         prior kludgy code was clobbering the buffer, thinking it was
5916         "unused" space to store an unneeded return value; instead, use
5917         the variable we've already got staring us in the face.
5918
5919 2001-05-17  Andy Piper  <andy@xemacs.org>
5920
5921         * sysfile.h: don't assume that file attributes are boolean
5922
5923 2001-05-23  Ben Wing  <ben@xemacs.org>
5924
5925         * device-msw.c (msprinter_init_device):
5926         signal an error rather than crash with an unavailable network
5927         printer (from Mike Alexander).
5928         
5929         * event-msw.c:
5930         * event-msw.c (struct winsock_stream):
5931         * event-msw.c (winsock_writer):
5932         * event-msw.c (winsock_closer):
5933         * event-msw.c (make_winsock_stream_1):
5934         cleanup headers.  fix (hopefully) an error with data corruption
5935         when sending to a network connection.
5936
5937         * fileio.c (Fexpand_file_name): Fix evil code that attempts
5938         to handle the ~user prefix by (a) always assuming we're referencing
5939         ourselves and not even verifying the user -- hence any file with
5940         a tilde as its first char is invalid! (b) if there wasn't a slash
5941         following the filename, the pointer was set *past* the end of
5942         file and we started reading from uninitialized memory.  Now we
5943         simply treat these as files, always.
5944
5945         * buffer.c (common_init_complex_vars_of_buffer): comment change.
5946         
5947 2001-05-19  Ben Wing  <ben@xemacs.org>
5948
5949         * eval.c: doc comment about gcpro'ing in record_unwind_protect.
5950
5951         * process-nt.c:
5952         * process-nt.c (vars_of_process_nt):
5953         remove unused mswindows-quote-process-args.  rec for 21.4.
5954         
5955 2001-05-12  Ben Wing  <ben@xemacs.org>
5956
5957         * event-msw.c (mswindows_dde_callback):
5958         * event-msw.c (mswindows_wnd_proc):
5959         eliminate cygwin warnings.
5960
5961 2001-05-06  Ben Wing  <ben@xemacs.org>
5962
5963         * console-msw.h:
5964         * device-msw.c:
5965         * device-msw.c (print_dialog_worker):
5966         * device-msw.c (mswindows_handle_print_dialog_box):
5967         * device-msw.c (syms_of_device_mswindows):
5968         * dialog-msw.c (mswindows_make_dialog_box_internal):
5969         * general-slots.h:
5970         implement printing the selection when it's selected.
5971
5972 2001-05-20  Drazen Kacar  <dave@arsdigita.com>
5973
5974         * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
5975
5976 2001-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
5977
5978         * lisp.h (EMACS_INT_MAX): This should be one bit less since
5979         EMACS_INT is signed.
5980
5981 2001-04-15  Michael Lausch  <mla@1012surf.net>
5982
5983         * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
5984         gtk_widget_request_size() to give scrollbar >0 width for
5985         GTK >1.2.8.
5986
5987 2001-05-30  William M. Perry  <wmperry@gnu.org>
5988
5989         * event-gtk.c: Check for buttons as modifier keys.
5990
5991 2001-05-25  Craig Lanning  <CraigL@Knology.net>
5992
5993         * s\mingw32.h:
5994         Properly find MinGW's <process.h> inside Cygwin's restructured
5995         include directories.  Don't try to include <cygwin/version.h>
5996         since we are dropping support for MinGW in versions of Cygwin
5997         earlier than b21.
5998         * nt.c:
5999         Drop support for MinGW in versions of Cygwin before b21.
6000         * sysdep.c:
6001         Properly find MinGW's <process.h> inside Cygwin's restructured
6002         include directories.
6003         * syswindows.h:
6004         Drop support for MinGW in versions of Cygwin before b21.
6005         * unexcw.c:
6006         Even though a.out.h is no longer detected by configure, allow
6007         MinGW to use it until we figure out how to do the job with Win32.
6008
6009 2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
6010
6011         * syntax.c (find_start_of_comment):
6012         Fix `unbalanced parentheses' bug when dealing with mixed comment
6013         styles in c++/java/etc. mode
6014
6015 2001-05-29  Mike Alexander  <mta@arbortext.com>
6016
6017         * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
6018         FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
6019
6020 2001-05-17  Andrew Begel  <abegel@eecs.berkeley.edu>
6021
6022         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
6023
6024 2001-03-31  Mike Sperber <mike@xemacs.org>
6025
6026         * search.c (Freplace_match): Support FSF-style specification of
6027         match subexpression when applied to a buffer.
6028
6029 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
6030
6031         * event-stream.c (is_scrollbar_event): add missing semicolon
6032
6033 2001-05-22  Isaac Hollander  <ysh@mindspring.com>
6034
6035         * Makefile.in.in: Use TAR macro instead of hardcoding
6036           tar.  Allows use of GNU tar instead of system tar
6037
6038 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
6039
6040         * event-stream.c (is_scrollbar_event): add missing semicolon
6041
6042 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
6043
6044         * XEmacs 21.4.3 "Academic Rigor" is released.
6045
6046 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
6047
6048         * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
6049
6050 2001-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
6051
6052         * buffer.c (Vcase_fold_search): Remove obsolete
6053           comment about non ASCII case-fold-search.  This
6054           bug has been fixed by case-table changes.
6055
6056 2001-05-11  Stephen J. Turnbull  <stephen@xemacs.org>
6057
6058         * event-msw.c: Restore include of events-mod.h.
6059
6060 2001-04-22   zhaoway  <zw@debian.org>
6061
6062         * event-stream.c (is_scrollbar_event): Noop returning 0 if
6063         !HAVE_SCROLLBARS.
6064
6065 2001-05-10  Stephen J. Turnbull  <stephen@xemacs.org>
6066
6067         * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
6068
6069 2001-05-08  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>
6070
6071         * mule-charset.c (Fmake_charset): Add missing else.
6072
6073 2001-04-23  Ben Wing  <ben@xemacs.org>
6074
6075         * event-msw.c (FAKE_MOD_QUIT):
6076         * event-msw.c (mswindows_dequeue_dispatch_event):
6077         * event-msw.c (mswindows_wnd_proc):
6078         * event-msw.c (emacs_mswindows_quit_p):
6079         Get critical quit working.
6080
6081 2001-05-05  Ben Wing  <ben@xemacs.org>
6082
6083         * console-msw.h:
6084         * device-msw.c:
6085         * device-msw.c (mswindows_get_default_margin):
6086         * frame-msw.c (mswindows_size_frame_internal):
6087         * frame-msw.c (msprinter_init_frame_1):
6088         * frame-msw.c (vars_of_frame_mswindows):
6089         Change top/bottom margin defaults to 0.5 inches.
6090
6091 2001-05-01  Martin Buchholz  <martin@xemacs.org>
6092
6093         Fix link error with gcc 3.0 on Linux.
6094         * terminfo.c (UP): Remove.
6095         * terminfo.c (BC): Remove.
6096         * terminfo.c (PC): Remove.
6097         They weren't used, and in any case, these symbols should be
6098         defined in the *library*.
6099
6100 2001-05-03  Martin Buchholz  <martin@xemacs.org>
6101
6102         * s/aix4.h: Fix crash with xlc -O3.
6103         Improve comment explaining how -O3 works.
6104
6105 2001-04-15  Ben Wing  <ben@xemacs.org>
6106
6107         * event-stream.c:
6108         * event-stream.c (Fnext_event):
6109         * event-stream.c (is_scrollbar_event):
6110         * event-stream.c (execute_command_event):
6111         Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
6112         crash' problem.  His fix introduces other problems.  We filter
6113         out scrollbar events specifically, making them somewhat invisible
6114         to command-building, and not appearing in `this-command-keys'.
6115         More work is still needed (see comments in event-stream.c), but
6116         this fixes all the major problems.
6117
6118 2001-04-20  Ben Wing  <ben@xemacs.org>
6119
6120         * .cvsignore: Added stuff for Windows.
6121
6122 2001-04-28  Ben Wing  <ben@xemacs.org>
6123
6124         * buffer.c (Ferase_buffer):
6125         * editfns.c (buffer_insert1):
6126         * editfns.c (Finsert_before_markers):
6127         * editfns.c (Finsert_string):
6128         * editfns.c (Finsert_char):
6129         * editfns.c (Fdelete_region):
6130         * editfns.c (Fwiden):
6131         * editfns.c (Fnarrow_to_region):
6132         remove bogus lines setting zmacs_region_stays to 0.
6133         
6134 2001-04-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
6135
6136         * process-unix.c (unix_open_network_stream): If connect() fails
6137         invalidate file descriptor after closing it.
6138
6139 2001-03-08  Mike Alexander  <mta@arbortext.com>
6140
6141         * event-msw.c (mswindows_need_event_in_modal_loop):
6142         Don't dispatch a message if we didn't get one.
6143         (mswindows_need_event):
6144         Terminate the correct process when one exits instead of the first
6145         one on Vprocess_list and look for process termination when in
6146         mswindows_protect_modal_loop.
6147
6148 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
6149
6150         * XEmacs 21.4.1 "Copyleft" is released.
6151
6152 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
6153
6154         * input-method-motif.c (XIM_delete_frame): New callback.
6155         (XIM_init_frame): Register it.
6156
6157 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
6158
6159         * XEmacs 21.4.0 "Solid Vapor" is released.
6160
6161 2001-04-15  Ben Wing  <ben@xemacs.org>
6162
6163         * cmdloop.c (call_command_loop):
6164         Fix braino in bit-rotting code.
6165         
6166 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
6167
6168         * extents.c (Fset_extent_endpoints): Force creation of extent info
6169         in buffer_or_string.
6170
6171         * extents.c (process_extents_for_insertion_mapper): Correctly
6172         check for open-open zero-length extents.
6173
6174 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
6175
6176         * lisp.h: New typedefs Memory_count, Element_count.
6177         * regex.c:
6178         * regex.h:
6179         Sign-compare warning elimination: several unsigned -> signed.
6180         Based on work by Ben Wing <ben@xemacs.org>.
6181
6182 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
6183
6184         * XEmacs 21.2.47 "Zephir" is released.
6185
6186 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
6187
6188         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
6189
6190 2001-04-03  Mike Sperber <mike@xemacs.org>
6191
6192         * search.c: Revert previous patch due because of release.
6193
6194 2001-03-30  Ben Wing  <ben@xemacs.org>
6195
6196         * s\cygwin32.h:
6197         Add missing killpg prototype.
6198
6199         * elhash.c:
6200         Add a comment about fixing problems when a new entry is added
6201         while mapping.
6202
6203         * frame-msw.c (mswindows_init_frame_1):
6204         Fix compile warnings.
6205
6206         * menubar.c (vars_of_menubar):
6207         Provide `menu-accelerator-support' to indicate that we properly
6208         support %_ in menu specifications, so that package code can
6209         conditionalize on this (and remove %_ from menu specifications
6210         on older versions).
6211
6212         * event-msw.c:
6213         * scrollbar-msw.c:
6214         * scrollbar-msw.c (can_scroll):
6215         * scrollbar-msw.h:
6216         Fix handling of mouse wheel under Windows to follow standards --
6217         now scrolls window under pointer, not selected window.
6218
6219 2001-03-31  Mike Sperber <mike@xemacs.org>
6220
6221         * search.c (Freplace_match): Support FSF-style specification of
6222         match subexpression when applied to a buffer.
6223
6224 2001-03-15  Martin Buchholz  <martin@xemacs.org>
6225
6226         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
6227         function to modify KEYMAP, so map over a copy of the hash table.
6228
6229 2001-03-21  Martin Buchholz <martin@xemacs.org>
6230
6231         * XEmacs 21.2.46 "Urania" is released.
6232
6233 2001-03-20  Dan Holmsand  <dan@eyebee.com>
6234
6235         * realpath.c (xrealpath): Make file-truename work with symlinks to
6236         /cygdrive paths on cygwin. Always lowercase drive-letters on
6237         native windows.
6238         (cygwin_readlink): Don't try to find canonical filename unless
6239         file exists.
6240
6241 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
6242
6243         * ChangeLog: Log GTK merge.
6244
6245         * dumper.c:
6246         * select-x.c:
6247         * specifier.c:
6248         * symeval.h:
6249         Revert gratuitous whitespace changes from GTK merge.
6250
6251         * emacs.c: Document end of complex #ifdef @ l. 1495.
6252
6253
6254 2001-03-12  Andy Piper  <andy@xemacs.org>
6255
6256         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
6257         have to do likewise.
6258
6259 2001-03-12  Andy Piper  <andy@xemacs.org>
6260
6261         * sysdep.c: we only support mingw now.
6262
6263 2001-03-09  Andy Piper  <andy@xemacs.org>
6264
6265         * unexcw.c (copy_executable_and_dump_data_section): making approx
6266         overrun a warning only.
6267
6268 2001-03-10  William M. Perry  <wmperry@aventail.com>
6269
6270         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
6271         satisfy Stephen's identical-after-cpp plea.
6272
6273 2001-03-02  Ben Wing  <ben@xemacs.org>
6274
6275         * cmds.c:
6276         * cmds.c (Fforward_char):
6277         * syntax.c:
6278         * window.c:
6279
6280         Augment documentation of the most common motion commands to make
6281         note of the shifted-motion support.
6282         
6283 2001-03-02  Ben Wing  <ben@xemacs.org>
6284
6285         * nt.c (mswindows_fstat):
6286         * nt.c (mswindows_stat):
6287         * search.c (boyer_moore):
6288         Fix compile warnings under Windows.
6289         
6290         * sysdep.c (sys_readdir):
6291         Fix buggy filename-conversion code under Mule.
6292
6293 2001-03-09  William M. Perry  <wmperry@aventail.com>
6294
6295         * Makefile.in.in:
6296         * config.h.in:
6297         * console.c:
6298         * console.h:
6299         * device.c:
6300         * device.h:
6301         * dragdrop.c:
6302         * emacs.c:
6303         * event-stream.c:
6304         * events.c:
6305         * events.h:
6306         * faces.c:
6307         * frame.h:
6308         * general-slots.h:
6309         * glyphs.c:
6310         * gutter.c:
6311         * inline.c:
6312         * lisp.h:
6313         * lrecord.h:
6314         * make-src-depend:
6315         * redisplay-output.c:
6316         * redisplay.c:
6317         * symsinit.h:
6318         * sysfile.h:
6319         * toolbar.c:
6320         * window.c:
6321         The Great GTK Merge.
6322
6323         * ChangeLog.GTK:
6324         * console-gtk.c:
6325         * console-gtk.h:
6326         * device-gtk.c:
6327         * emacs-marshals.c:
6328         * emacs-widget-accessors.c:
6329         * event-gtk.c:
6330         * frame-gtk.c:
6331         * gccache-gtk.c:
6332         * gccache-gtk.h:
6333         * glade.c:
6334         * glyphs-gtk.c:
6335         * glyphs-gtk.h:
6336         * gtk-glue.c:
6337         * gtk-xemacs.c:
6338         * gtk-xemacs.h:
6339         * gui-gtk.c:
6340         * gui-gtk.h:
6341         * menubar-gtk.c:
6342         * native-gtk-toolbar.c:
6343         * objects-gtk.c:
6344         * objects-gtk.h:
6345         * redisplay-gtk.c:
6346         * scrollbar-gtk.c:
6347         * scrollbar-gtk.h:
6348         * select-gtk.c:
6349         * toolbar-gtk.c:
6350         * ui-byhand.c:
6351         * ui-gtk.c:
6352         * ui-gtk.h:
6353         The Great GTK Merge: new files.
6354
6355 2001-02-26  Ben Wing  <ben@xemacs.org>
6356
6357         Reapplied Lstream change.
6358
6359 2001-02-26  Ben Wing  <ben@xemacs.org>
6360
6361         Undid the last change, since it is more controversial than I
6362         thought.  It should be back in at some point soon.
6363         
6364 2001-02-25  Ben Wing  <ben@xemacs.org>
6365
6366         * buffer.c:
6367         * callproc.c (Fold_call_process_internal):
6368         * event-msw.c (ntpipe_slurp_reader):
6369         * event-msw.c (ntpipe_shove_writer):
6370         * event-msw.c (winsock_reader):
6371         * event-msw.c (winsock_writer):
6372         * file-coding.c:
6373         * file-coding.c (detect_eol_type):
6374         * file-coding.c (detect_coding_type):
6375         * file-coding.c (determine_real_coding_system):
6376         * file-coding.c (Fdetect_coding_region):
6377         * file-coding.c (decoding_reader):
6378         * file-coding.c (decoding_writer):
6379         * file-coding.c (mule_decode):
6380         * file-coding.c (Fdecode_coding_region):
6381         * file-coding.c (encoding_reader):
6382         * file-coding.c (encoding_writer):
6383         * file-coding.c (mule_encode):
6384         * file-coding.c (Fencode_coding_region):
6385         * file-coding.c (detect_coding_sjis):
6386         * file-coding.c (decode_coding_sjis):
6387         * file-coding.c (encode_coding_sjis):
6388         * file-coding.c (detect_coding_big5):
6389         * file-coding.c (decode_coding_big5):
6390         * file-coding.c (encode_coding_big5):
6391         * file-coding.c (detect_coding_ucs4):
6392         * file-coding.c (decode_coding_ucs4):
6393         * file-coding.c (encode_coding_ucs4):
6394         * file-coding.c (detect_coding_utf8):
6395         * file-coding.c (decode_coding_utf8):
6396         * file-coding.c (encode_coding_utf8):
6397         * file-coding.c (detect_coding_iso2022):
6398         * file-coding.c (decode_coding_iso2022):
6399         * file-coding.c (encode_coding_iso2022):
6400         * file-coding.c (decode_coding_no_conversion):
6401         * file-coding.c (encode_coding_no_conversion):
6402         * glyphs-x.c (write_lisp_string_to_temp_file):
6403         * gpmevent.c (tty_get_foreign_selection):
6404         * lisp.h:
6405         * lstream.c:
6406         * lstream.c (Lstream_flush_out):
6407         * lstream.c (Lstream_adding):
6408         * lstream.c (Lstream_write_1):
6409         * lstream.c (Lstream_write):
6410         * lstream.c (Lstream_raw_read):
6411         * lstream.c (Lstream_read_more):
6412         * lstream.c (Lstream_read):
6413         * lstream.c (Lstream_unread):
6414         * lstream.c (Lstream_fputc):
6415         * lstream.c (stdio_reader):
6416         * lstream.c (stdio_writer):
6417         * lstream.c (filedesc_reader):
6418         * lstream.c (filedesc_writer):
6419         * lstream.c (lisp_string_reader):
6420         * lstream.c (struct fixed_buffer_stream):
6421         * lstream.c (make_fixed_buffer_input_stream):
6422         * lstream.c (make_fixed_buffer_output_stream):
6423         * lstream.c (fixed_buffer_reader):
6424         * lstream.c (fixed_buffer_writer):
6425         * lstream.c (struct resizing_buffer_stream):
6426         * lstream.c (resizing_buffer_writer):
6427         * lstream.c (dynarr_writer):
6428         * lstream.c (lisp_buffer_reader):
6429         * lstream.c (lisp_buffer_writer):
6430         * lstream.h:
6431         * lstream.h (lstream_implementation):
6432         * lstream.h (struct lstream):
6433         * md5.c (Fmd5):
6434         * process-nt.c (nt_send_process):
6435         * process-unix.c (unix_send_process):
6436         
6437         Correct Lstream lossage due to mixing of signed and unsigned
6438         quantities.  All Lstream uses of size_t and ssize_t are now a
6439         single signed data type Lstream_data_count.  This fixes problems
6440         under Windows with sending large quantities of data to a process,
6441         and may well fix other subtle bugs.
6442
6443 2001-02-23  Martin Buchholz <martin@xemacs.org>
6444
6445         * XEmacs 21.2.45 "Thelxepeia" is released.
6446
6447 2001-02-21  Martin Buchholz  <martin@xemacs.org>
6448
6449         * lisp-union.h (XSETINT): 
6450         (XSETCHAR):
6451         (XSETOBJ): 
6452         Reverse previous change of 2001-02-06.
6453
6454 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
6455
6456         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
6457         buffers.
6458         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
6459         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
6460         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
6461         * regex.c (POS_AS_IN_BUFFER): removed
6462         * regex.c (re_search_2):
6463         * regex.c (re_match_2):
6464         Don't use an offset of 1 when calculating buffer positions, since
6465         `BI_BUF_BEGV' does it already.
6466
6467 2001-02-18  Wim Dumon  <wim@easics.be>
6468
6469         * insdel.c (prepare_to_modify_buffer): Also check for
6470         supersession when clash-detection is enabled. 
6471
6472 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
6473
6474         * regex.c (re_match_2_internal):
6475         Convert temp characters from 'const unsigned char' to 're_char'.
6476         Fix crashing bug with extended characters under mule.
6477         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
6478         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
6479         font-lock, pdump, and new syntax-table code.
6480         * syntax.c (find_start_of_comment):
6481         (find_end_of_comment):
6482         (forward-comment):
6483         Fix crashing bugs involving moving beyond end of buffer.
6484         * syntax.c (find_start_of_comment):
6485         Fixed logic to allow proper detection of cases where the same
6486         character is used to end both a two-char comment start and a
6487         two-char comment end sequence. Fixes `(forward-comment -1)'.
6488         * syntax.c (find_start_of_comment):
6489         Return position just past last comment-end character for all cases
6490         (previously was only done for two-char comment-end sequences).
6491         * syntax.c (forward-comment):
6492         Take value returned from `find_end_of_comment', rather than
6493         incrementing it.
6494         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
6495         Properly deal with BUFFERP (syntax_cache.object)
6496
6497 2001-02-17  Martin Buchholz  <martin@xemacs.org>
6498
6499         * alloc.c (Fgarbage_collect): 
6500         * alloc.c (make_bit_vector_from_byte_vector):
6501         -Wsign-compare-correctness.
6502
6503 2001-02-16  Martin Buchholz  <martin@xemacs.org>
6504
6505         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
6506         (XSETCHAR): Likewise.
6507         (XSETOBJ): Likewise.
6508
6509 2001-02-15  Martin Buchholz  <martin@xemacs.org>
6510
6511         * mule-canna.c (canna-func-delete_previous): 
6512         Rename to canna-func-delete-previous.
6513
6514 2001-02-14  Martin Buchholz  <martin@xemacs.org>
6515
6516         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
6517
6518 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
6519
6520         * font-lock.c (find_context): Fix C++ compile errors introduced by
6521         recent patch
6522
6523 2001-02-13  Martin Buchholz  <martin@xemacs.org>
6524
6525         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
6526         pragma, but earlier ones barf on the same pragma.
6527
6528 2001-02-06  Mike Sperber <mike@xemacs.org>
6529
6530         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
6531         `configure-mule-lisp-directory'.
6532
6533 2001-02-12  Martin Buchholz  <martin@xemacs.org>
6534
6535         Make sure dump-id.c is compiled in the same way as other .c's.
6536         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
6537         * dump-id.h: Remove.
6538         * emacs.c: Move dump-id.h into dumper.h.
6539         * dumper.h: Move dump-id.h into dumper.h.
6540         * Makefile.in.in:
6541         Use standard .c.o rule for building dump-id.o.
6542         Remove preprocessor flags from link command.
6543         Add dump-id.o to ${otherobjs} if PDUMP.
6544
6545 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
6546
6547         Port FSF 20.7 syntax table improvements.
6548         * syntax.c.
6549         * syntax.h.
6550
6551         Fixups for new syntax table stuff.
6552         * dired.c: Include syntax.c.
6553         (Fdirectory_files): Initialize regex_match_object and
6554         regex_emacs_buffer.
6555         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
6556         and Fget_char_property.
6557
6558         Use ported FSF 20.7 syntax table improvements.
6559         * font-lock.c.
6560         * regex.c.
6561         * search.c.
6562         
6563 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6564
6565         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
6566         Unixware's enum boolean from sys/types.h.
6567
6568 2001-02-10  Martin Buchholz  <martin@xemacs.org>
6569
6570         Fix support for building with latest Purify.
6571         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
6572         (PURIFY_FLAGS): Likewise.
6573
6574 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6575
6576         * fileio.c (lisp_string_set_file_times): New.
6577         * fileio.c (Fcopy_file): Use it.
6578         Fixes bug:
6579         (copy-file filename non-ascii-filename t t)
6580         ==> No such file or directory, non-ascii-filename
6581
6582 2001-02-10  Martin Buchholz  <martin@xemacs.org>
6583
6584         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
6585         USHRT_MAX seems clearer than ~0 anyways.
6586
6587 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6588
6589         dumper improvements.  Inspired by Olivier.
6590         * dumper.c (pdump_max_align): New.
6591         * dumper.c (pdump_add_entry): Use pdump_max_align.
6592         * dumper.c (pdump_get_entry_list): Likewise.
6593         * dumper.c (pdump_scan_by_alignment): Likewise.
6594         Don't iterate through unnecessary alignments.
6595         * dumper.c (pdump_file_get): No need to align result of malloc().
6596         * dumper.c (pdump_mallocadr): Remove.  
6597         The result of malloc() is guaranteed to be maximally aligned.
6598         * dumper.c: s/elmt/elt/g;
6599         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
6600         * dumper.c (pdump_alert_undump_object): Likewise.
6601         * dumper.c (pdump_align_table): 
6602         Don't support alignments > 64.
6603         Store ALIGNOF's, not shift counts, in table.
6604
6605 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6606
6607         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
6608         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
6609         * systime.h: Use HAVE_UTIME.
6610         * sysdep.c (struct utimbuf): Remove.
6611         * sysdep.c (set_file_times): Prefer utime() to utimes().
6612         * config.h.in (HAVE_UTIME): New.
6613         * config.h.in (HAVE_UTIME_H): Remove.
6614         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
6615
6616 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6617
6618         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
6619
6620 2001-02-08  Martin Buchholz  <martin@xemacs.org>
6621
6622         * s/irix6-0.h: Use the standard system memmove, not bcopy.
6623
6624 2001-02-08  Martin Buchholz <martin@xemacs.org>
6625
6626         * XEmacs 21.2.44 "Thalia" is released.
6627
6628 2001-02-06  Martin Buchholz  <martin@xemacs.org>
6629
6630         Fixes crashes in kill-emacs on some systems.
6631         * process-unix.c (unix_kill_child_process):
6632         It's OK for kill() to fail with ESRCH.
6633
6634 2001-02-07  Martin Buchholz  <martin@xemacs.org>
6635
6636         Contortions to make .gdbinit tricks work on most systems.
6637         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
6638         * alloc.c (dbg_valmask): Make non-const.
6639         * alloc.c (dbg_typemask): Make non-const.
6640         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
6641         * alloc.c (dbg_valbits): Make non-const.
6642         * alloc.c (dbg_gctypebits): Make non-const.
6643         * .gdbinit (decode_object): Make it work with AIX cc.
6644
6645 2001-02-06  Martin Buchholz  <martin@xemacs.org>
6646
6647         * elhash.c (make_general_lisp_hash_table):
6648         Use simpler and more efficient calloc to clear entries.
6649
6650 2001-02-07  Martin Buchholz  <martin@xemacs.org>
6651
6652         * window.c (window_scroll): Work around an AIX C compiler bug.
6653         Fixes 'scroll-up' does nothing problem with xlC.
6654
6655 2001-02-05  Martin Buchholz  <martin@xemacs.org>
6656
6657         * .gdbinit: Remove obsolete comment.
6658
6659 2001-01-31  Mike Alexander  <mta@arbortext.com>
6660
6661         * select.c (Fown_selection_internal): Set owned_p for device
6662         method correctly.
6663
6664 2001-02-01  Martin Buchholz  <martin@xemacs.org>
6665
6666         Port to g++ 2.97.
6667         "not" cannot be used as a macro name as it is an operator in C++
6668         * config.h.in: Stop #defining `not'.
6669         * chartab.c (check_category_char): not ==> not_p
6670         * chartab.h: Likewise.
6671         * regex.c (re_match_2_internal): Likewise.
6672
6673 2001-02-02  Martin Buchholz  <martin@xemacs.org>
6674
6675         * lisp-disunion.h: Fix up comments.
6676
6677 2001-01-31  Martin Buchholz  <martin@xemacs.org>
6678
6679         * keymap.c (define_key_check_and_coerce_keysym):
6680         (syms_of_keymap):
6681         Support mouse-6 and mouse-7 bindings in the obvious way.
6682
6683 2001-02-01  Martin Buchholz  <martin@xemacs.org>
6684
6685         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
6686
6687 2001-01-30  Martin Buchholz  <martin@xemacs.org>
6688
6689         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
6690         Previous patch missed DEFVAR_INT_MAGIC.
6691         Make sure future DEFVAR_foo use correct types.
6692         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
6693         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
6694         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
6695         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
6696         * (DEFVAR_INT): Likewise.
6697         * redisplay.c (vertical_clip): Should be of type Fixnum.
6698         * redisplay.c (horizontal_clip): Likewise.
6699         * lisp.h (dump_add_opaque_int): New.
6700         (dump_add_opaque_fixnum): New.
6701
6702 2001-01-29  Andy Piper  <andy@xemacs.org>
6703
6704         * glyphs-widget.c (check_valid_int_or_function): allow symbols
6705         since they can be eval'ed
6706
6707 2001-01-29  Martin Buchholz  <martin@xemacs.org>
6708
6709         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
6710         Oops, XEmacs redefines `class'.  Use `typename' instead.
6711
6712 2001-01-28  Martin Buchholz  <martin@xemacs.org>
6713
6714         * dumper.c: Fix C++ compile errors.
6715
6716 2001-01-29  Martin Buchholz  <martin@xemacs.org>
6717
6718         * tparam.c: Use correct prototypes.
6719
6720 2001-01-28  Martin Buchholz  <martin@xemacs.org>
6721
6722         * sysproc.h: #include util.h for NetBSD's openpty.
6723
6724 2001-01-27  Martin Buchholz  <martin@xemacs.org>
6725
6726         More 64-bit correctness.
6727         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
6728         Use a typedef `fixnum' for the type used for DEFVAR_INT.
6729         Fix up comments.
6730         This finally finishes the 64-bit SGI port.
6731         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
6732         * symbols.c: Fix up comments and type casts.
6733         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
6734         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
6735         * symeval.h (Fixnum): New type.
6736         * symeval.h (symbol_value_type): Fix up comment.
6737
6738         * commands.h:
6739         * nt.c:
6740         * emacs.c:
6741         * data.c:
6742         * redisplay.c:
6743         * abbrev.c:
6744         * dired-msw.c:
6745         * event-Xt.c:
6746         * eldap.c:
6747         * window.c:
6748         * sound.c:
6749         * event-stream.c:
6750         * eval.c:
6751         * buffer.c:
6752         * mule-canna.c: A million DEFVAR_INTs here...
6753         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
6754         * extents.c:
6755         * cmdloop.c:
6756         * lisp.h:
6757         * select-x.c:
6758         * console-x.h:
6759         * event-msw.c:
6760         * mule-wnnfns.c:
6761         * hpplay.c:
6762         * ralloc.c:
6763         * alloc.c:
6764         * keymap.c:
6765         * profile.c:
6766         s/int/Fixnum/g in DEFVAR_INT declarations.
6767
6768 2001-01-26  Martin Buchholz  <martin@xemacs.org>
6769
6770         Port pdump to SGI alignment-sensitive environment.
6771         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
6772         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
6773         properly aligned.
6774         Define and use aligned reading and writing macros.
6775         Use buffered stdio instead of posix i/o for faster dumping.
6776         Eliminate kludgy 256 byte space for header.
6777         Read and write from dump file using structs for alignment safety.
6778         * dumper.c (pdump_align_stream): New.
6779         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
6780         * dumper.c (PDUMP_READ_ALIGNED): New.
6781         * dumper.c (PDUMP_WRITE_ALIGNED): New.
6782         * dumper.c (pdump_static_Lisp_Object): New struct.
6783         * dumper.c (pdump_static_pointer): New struct.
6784         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
6785         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
6786         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
6787         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
6788
6789         * dumper.c (pdump_backtrace):
6790         * dumper.c (pdump_get_indirect_count):
6791         * dumper.c (pdump_register_object):
6792         * dumper.c (pdump_register_struct):
6793         * dumper.c (pdump_reloc_one):
6794         * dumper.c (pdump_scan_by_alignment):
6795         * dumper.c (pdump_dump_from_root_struct_ptrs):
6796         * dumper.c (pdump_dump_opaques):
6797         * dumper.c (pdump_dump_rtables):
6798         * dumper.c (pdump_dump_from_root_objects):
6799         * dumper.c (pdump):
6800         * dumper.c (pdump_load_finish):
6801         Use aligned reading and writing.
6802
6803         * dumper.c (pdump_free): Make static.
6804         * dumper.c (pdump_hFile): Likewise.
6805         * dumper.c (pdump_hMap): Likewise.
6806
6807 2001-01-26  Martin Buchholz <martin@xemacs.org>
6808
6809         * XEmacs 21.2.43 "Terspichore" is released.
6810
6811 2001-01-25  Martin Buchholz  <martin@xemacs.org>
6812
6813         Type fiddling for window_config.saved_windows_count
6814         * window.c (struct window_config): 
6815         Make saved_windows_count member unsigned.
6816         * window.c (sizeof_window_config_for_n_windows): 
6817         Make parameter unsigned.
6818         * window.c (mark_window_config):
6819         * window.c (window_config_equal):
6820         * window.c (free_window_configuration):
6821         * window.c (Fset_window_configuration):
6822         * window.c (count_windows):
6823         * window.c (Fcurrent_window_configuration):
6824         * window.c (reinit_vars_of_window):
6825         Update all callers and users.
6826
6827 2001-01-25  Martin Buchholz  <martin@xemacs.org>
6828
6829         Alignment correctness for flexible arrays.
6830         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
6831         Make alignment-correct. Add interesting comments.
6832         * alloc.c (size_vector):
6833         * alloc.c (make_vector_internal):
6834         * alloc.c (make_bit_vector_internal):
6835         * alloc.c (sweep_bit_vectors_1):
6836         * fns.c (size_bit_vector):
6837         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
6838         * window.c (sizeof_window_config_for_n_windows): 
6839         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
6840
6841 2001-01-24  Martin Buchholz  <martin@xemacs.org>
6842
6843         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
6844
6845 2001-01-23  Andy Piper  <andy@xemacs.org>
6846
6847         * select.c (Fown_selection_internal): pass owned_p
6848
6849         * select-msw.c (mswindows_own_selection): New Signature.
6850
6851         * console.h (struct console_methods): add owned_p to
6852         _own_selection.
6853
6854         * select-x.c (x_own_selection): pass owned_p
6855         (hack_motif_clipboard_selection): use owned_p
6856         (vars_of_select_x): new variable -
6857         x_selection_strict_motif_ownership.
6858
6859 2001-01-23  Martin Buchholz  <martin@xemacs.org>
6860
6861         * specifier.h (specifier_data_offset): Remove pointless parens.
6862         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
6863
6864 2001-01-24  Martin Buchholz  <martin@xemacs.org>
6865
6866         Make Lisp_Object sizeof methods be alignment-correct.
6867         pdump must restore objects to the same alignment as the C compiler
6868         assumes.  It really matters on SGIs.
6869         * lstream.c (aligned_sizeof_lstream): New.
6870         (sizeof_lstream): Use aligned_sizeof_lstream.
6871         (Lstream_new): Likewise.
6872         * opaque.c (aligned_sizeof_opaque): New.
6873         (sizeof_opaque): Use aligned_sizeof_opaque.
6874         (make_opaque): Likewise.
6875         * specifier.c (aligned_sizeof_specifier): New.
6876         (sizeof_specifier): Use aligned_sizeof_specifier.
6877         (make_specifier_internal): Likewise.
6878
6879 2001-01-23  Martin Buchholz  <martin@xemacs.org>
6880
6881         * lstream.h (struct lstream): Use max_align_t for trailing data.
6882         * specifier.h (struct Lisp_Specifier): Likewise.
6883
6884 2001-01-22  Martin Buchholz  <martin@xemacs.org>
6885
6886         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
6887         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
6888         (CCL_SUSPEND): Likewise.
6889         (CCL_INVALID_CMD): Likewise.
6890         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
6891         (ccl_driver): Likewise.
6892         (CCL_WRITE_CHAR): Macro hygiene.
6893         (CCL_WRITE_STRING): Macro hygiene.
6894
6895 2001-01-22  Martin Buchholz  <martin@xemacs.org>
6896
6897         Port "portable" dumper to SunOS 4 and HP-UX.
6898         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
6899         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
6900         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
6901
6902 2001-01-22  Martin Buchholz  <martin@xemacs.org>
6903
6904         * lisp.h (ALIGNOF): A better definition for C++.
6905
6906 2001-01-20  Martin Buchholz  <martin@xemacs.org>
6907
6908         Macro hygiene.
6909         Fix printf warnings: int format, long int arg.
6910         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
6911         (PUSH_FAILURE_POINT): Use correct printf formats.
6912         (POP_FAILURE_POINT): Use correct printf formats.  
6913         Use do {...} while (0)
6914
6915 2001-01-20  Martin Buchholz <martin@xemacs.org>
6916
6917         * XEmacs 21.2.42 "Poseidon" is released.
6918
6919 2001-01-20  Martin Buchholz  <martin@xemacs.org>
6920
6921         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
6922
6923 2001-01-19  Martin Buchholz  <martin@xemacs.org>
6924
6925         De-kludgify FIXED_TYPE free list frobbing.
6926         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
6927         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
6928         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
6929         * alloc.c (Lisp_Free): New pseudo lisp object definition.
6930         * alloc.c (LRECORD_FREE_P): New.
6931         * alloc.c (MARK_LRECORD_AS_FREE): New.
6932         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
6933         * alloc.c (STRUCT_FREE_P): Deleted.
6934         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
6935         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
6936         * alloc.c (STRING_CHARS_FREE_P): New.
6937         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
6938         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
6939         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
6940         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
6941         * alloc.c (resize_string): Use new definitions.
6942         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
6943         * alloc.c (verify_string_chars_integrity): Use new definitions.
6944         * alloc.c (compact_string_chars): Use new definitions.
6945         * alloc.c: Update monster comments.
6946         * lrecord.h (lrecord_type): Add some new lrecord types for
6947         alloc.c's use.
6948
6949 2001-01-18  Martin Buchholz  <martin@xemacs.org>
6950
6951         Improve alignment hackery.
6952         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
6953         (max_align_t): Moved from opaque.h - general purpose.
6954         (ALIGN_PTR): Use size_t, not long.
6955         * opaque.h (max_align_t): Move to lisp.h.
6956
6957 2001-01-18  Norbert Koch  <nk@LF.net>
6958
6959         * gui.h: Fix and add prototypes to fix build problems.
6960
6961 2001-01-18  Martin Buchholz  <martin@xemacs.org>
6962
6963         temacs is going away, so `dump-temacs' is now a bad name.
6964         * .dbxrc (dump-temacs): Rename to `dmp'.
6965         * .gdbinit (dump-temacs): Rename to `dmp'.
6966
6967 2001-01-17  Andy Piper  <andy@xemacs.org>
6968
6969         * glyphs.c (print_image_instance): comment to make martin happy.
6970
6971         * glyphs-x.c (x_redisplay_widget): update faces after a frame
6972         change.
6973
6974         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
6975         activation.
6976         (mswindows_tab_control_redisplay): warning suppression.
6977
6978         * glyphs-widget.c (widget_update): re-write to cope with updated
6979         items.
6980         (widget_instantiate): use new gui_item functions.
6981         (tab_control_update): deleted.
6982         (progress_gauge_update): deleted.
6983         (image_instantiator_progress_guage): take out update reference.
6984         (image_instantiator_tree_view): ditto.
6985         (image_instantiator_tab_control): ditto.
6986
6987         * gui.c (widget_gui_parse_item_keywords): new function. Do things
6988         Right the new way.
6989         (gui_item_add_keyval_pair): re-write to cope with descriptors and
6990         return whether anything was changed.
6991         (update_gui_item_keywords): as it sounds.
6992
6993         * gui.h: declare widget_gui_parse_item_keywords.
6994
6995         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
6996         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
6997
6998 2001-01-17  Martin Buchholz <martin@xemacs.org>
6999
7000         * XEmacs 21.2.41 "Polyhymnia" is released.
7001
7002 2001-01-16  Didier Verna  <didier@xemacs.org>
7003
7004         * glyphs.c (image_instantiate): don't use fallbacks when
7005         instantiating a face's background pixmap by inheritance.
7006
7007 2001-01-14  Mike Sperber <mike@xemacs.org>
7008
7009         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
7010         Conditionalize accordingly.
7011
7012 2001-01-16  Martin Buchholz  <martin@xemacs.org>
7013
7014         * dumper.c (pdump_file_get): Fix a compiler warning.
7015
7016 2001-01-15  Martin Buchholz  <martin@xemacs.org>
7017
7018         Make Purify happy when pdumping.
7019         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
7020         iniitalizing all bits of new lisp object memory.
7021         * symbols.c (Fmake_local_variable): Likewise.
7022         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
7023         * symbols.c (Fdefvaralias): Likewise.
7024         * mule-charset.c (vars_of_mule_charset): Likewise.
7025
7026 2001-01-15  Martin Buchholz  <martin@xemacs.org>
7027         Add the `-nd' flag when running pre-dump operations under the debugger.
7028         * .dbxrc (run-temacs): Add `-nd'.
7029         * .dbxrc (update-elc): Likewise.
7030         * .dbxrc (dump-temacs): Likewise.
7031         * .gdbinit (run-temacs): Likewise.
7032         * .gdbinit (check-temacs): Likewise.
7033         * .gdbinit (update-elc): Likewise.
7034         * .gdbinit (dump-temacs): Likewise.
7035
7036 2001-01-14  Martin Buchholz  <martin@xemacs.org>
7037
7038         Allow building 64-bit executables on AIX with GNU malloc, e.g.
7039         export OBJECT_MODE=64
7040         configure --pdump --use-union-type=no
7041         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
7042         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
7043
7044         * miscplay.c (sndcnv8U_2mono):
7045         Avoid two uses of `++' in the same expression.
7046         Suppresses a GCC warning.
7047
7048 2001-01-13  Martin Buchholz  <martin@xemacs.org>
7049
7050         Make sure future compilers don't miscompile alloc.c.
7051         * alloc.c:
7052         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
7053         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
7054
7055 2001-01-12  Martin Buchholz  <martin@xemacs.org>
7056
7057         * dumper.c: A little post-pdump-rename comment fixup.
7058
7059 2001-01-09  Jerry James  <james@eecs.ku.edu>
7060
7061         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
7062
7063 2001-01-13  Martin Buchholz  <martin@xemacs.org>
7064
7065         * *.[ch]: Globally rename symbols using the following `pdump-rename'
7066         script:
7067         #!/bin/sh
7068         replace_symbol () {
7069           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
7070         }
7071
7072         replace_symbol pdump_wire_lists pdump_weak_object_chains
7073         replace_symbol pdump_wire_list dump_add_weak_object_chain
7074
7075         replace_symbol pdump_wires pdump_root_objects
7076         replace_symbol pdump_wire dump_add_root_object
7077
7078         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
7079         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
7080
7081         replace_symbol dumpstructinfos pdump_root_struct_ptrs
7082         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
7083         replace_symbol dumpstructinfo pdump_root_struct_ptr
7084         replace_symbol dumpstruct dump_add_root_struct_ptr
7085
7086         replace_symbol dumpopaque dump_add_opaque
7087         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
7088         replace_symbol dumpopaqueinfos pdump_opaques
7089         replace_symbol dumpopaqueinfo pdump_opaque
7090
7091         replace_symbol nb_structdump nb_root_struct_ptrs
7092         replace_symbol nb_opaquedump nb_opaques
7093
7094         replace_symbol align_table pdump_align_table
7095         replace_symbol dump_header pdump_header
7096
7097         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
7098         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
7099
7100
7101 2001-01-12  Martin Buchholz  <martin@xemacs.org>
7102
7103         * s/aix4.h: Keep the C for AIX compiler from overaggressively
7104         optimizing bytecount_to_charcount().
7105
7106 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
7107
7108         * config.h.in:
7109         (HAVE_DLFCN_H): Removed.
7110         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
7111
7112 2001-01-06  Martin Buchholz  <martin@xemacs.org>
7113
7114         Portable dumper maintainability improvements.
7115         * alloc.c (staticpro):
7116         * alloc.c (staticpro_nodump):
7117         * alloc.c (garbage_collect_1):
7118         * alloc.c (reinit_alloc_once_early):
7119         * alloc.c (init_alloc_once_early):
7120         * alloc.c: Move dumper functions to alloc.c.
7121         * dumper.c (pdump_backtrace):
7122         * dumper.c (pdump_dump_structs):
7123         * dumper.c (pdump_dump_opaques):
7124         * dumper.c (pdump_dump_rtables):
7125         * dumper.c (pdump_dump_wired):
7126         * dumper.c (pdump):
7127         * dumper.c (pdump_load_check):
7128         * dumper.c (pdump_load_finish):
7129         * dumper.c (pdump_file_unmap):
7130         * dumper.c (pdump_file_get):
7131         * dumper.c (pdump_resource_free):
7132         * dumper.c (pdump_resource_get):
7133         * dumper.c (pdump_file_free):
7134         * dumper.c (pdump_file_try):
7135         * dumper.c (pdump_load):
7136         Remove fixed size limits on staticpro(), staticpro_nodump(),
7137         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
7138         Remove custom code for dumping lrecord_implementations_table - use
7139         dumpopaque instead.
7140         Remove (most of the) custom code for dumping staticpros - dump it
7141         like any other dynarr.
7142
7143         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
7144         * dumper.c: Moved functions from alloc.c.
7145         * alloc.c (dumpstruct): Moved to dumper.c.
7146         * alloc.c (dumpopaque): Likewise.
7147         * alloc.c (pdump_wire): Likewise.
7148         * alloc.c (pdump_wire_list): Likewise.
7149
7150         * lisp.h (Dynarr_sizeof): New.
7151         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
7152         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
7153         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
7154
7155         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
7156         * lisp.h (dumpopaque): ditto.
7157         * lisp.h (pdump_wire): ditto.
7158         * lisp.h (pdump_wire_list): ditto.
7159
7160 2001-01-09  Martin Buchholz  <martin@xemacs.org>
7161
7162         * make-src-depend (PrintPatternDeps):
7163         Use `sort' to make output independent of perl version.
7164
7165 2001-01-08  Martin Buchholz  <martin@xemacs.org>
7166
7167         Port to Netbsd 1.5.
7168         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
7169         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
7170
7171 2001-01-03  Didier Verna  <didier@xemacs.org>
7172
7173         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
7174         that `focus_frame' is alive before thinking of calling
7175         `redisplay_redraw_cursor' on it.
7176
7177 2001-01-08  Martin Buchholz <martin@xemacs.org>
7178
7179         * XEmacs 21.2.40 is released.
7180
7181 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
7182
7183         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
7184
7185 2001-01-06  Martin Buchholz  <martin@xemacs.org>
7186
7187         * alloc.c (dbg_valmask): Make const.
7188         * alloc.c (dbg_typemask): Make const.
7189         * alloc.c (dbg_USE_UNION_TYPE): Make const.
7190         * alloc.c (dbg_valbits): Make const.
7191         * alloc.c (dbg_gctypebits): Make const.
7192
7193 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
7194
7195         * redisplay-x.c (x_bevel_area):
7196         redisplay.h (struct rune):
7197         Typo fixes in comments.
7198
7199 2001-01-05  Andy Piper  <andy@xemacs.org>
7200
7201         * glyphs-x.c (x_redisplay_widget): use size changed for offset
7202         adjustment.
7203
7204         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
7205
7206 2001-01-05  Martin Buchholz  <martin@xemacs.org>
7207
7208         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
7209
7210         * mule-ccl.c (stack_idx_of_map_multiple):
7211         Non const global data must not be initialized!
7212         Found by MIYASHITA Hisashi.
7213
7214 2001-01-02  Andy Piper  <andy@xemacs.org>
7215
7216         * frame.c (change_frame_size): make sure frame size is always
7217         marked as changed.
7218
7219         * glyphs.c (image_instance_layout): minor code reuse.
7220
7221         * window.c (Fcurrent_window_configuration): revert previous
7222         change.
7223
7224 2001-01-02  Martin Buchholz  <martin@xemacs.org>
7225
7226         * glyphs.h:
7227         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
7228
7229 2000-12-31  Andy Piper  <andy@xemacs.org>
7230
7231         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
7232         when widget gets unmapped.
7233
7234         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
7235         function. Make sure widgets losing focus don't just drop it.
7236         (handle_focus_event_1): record the widget with focus.
7237
7238 2000-12-31  Andy Piper  <andy@xemacs.org>
7239
7240         * window.c (allocate_window): use
7241         make_image_instance_cache_hash_table.
7242         (make_dummy_parent): ditto.
7243         (Fset_window_configuration): ditto.
7244
7245         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
7246
7247         * glyphs.c (process_image_string_instantiator): use
7248         INSTANTIATOR_TYPE.
7249         (get_image_instantiator_governing_domain): ditto.
7250         (normalize_image_instantiator): ditto.
7251         (instantiate_image_instantiator): ditto.
7252         (make_image_instance_1): ditto.
7253         (image_instantiate): ditto. Key on glyph *and* instantiator type.
7254         (instantiator_eq_equal): new function for use with instance hash
7255         tables.
7256         (instantiator_eq_hash): ditto.
7257         (make_image_instance_cache_hash_table): create a suitable hash
7258         table for storing image instances.
7259
7260         * elhash.h (hash_table_weakness): new internal weakness type
7261         HASH_TABLE_KEY_CAR_VALUE_WEAK.
7262         declare new functions.
7263
7264         * elhash.c (finish_marking_weak_hash_tables): introduce yet
7265         another weakness type for glyphs.
7266         (make_standard_lisp_hash_table): new function split out from
7267         make_general_lisp_hash_table.
7268         (make_lisp_hash_table): call make_standard_lisp_hash_table.
7269         (hash_table_instantiate): ditto.
7270         (Fmake_hash_table): ditto.
7271
7272 2000-12-31  Martin Buchholz <martin@xemacs.org>
7273
7274         * XEmacs 21.2.39 is released.
7275
7276 2000-12-29  Andy Piper  <andy@xemacs.org>
7277
7278         * menubar.c (menubar_visible_p_changed): signal the frame changed.
7279
7280         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
7281         the frame has changed so that we pick up geometry changes such as
7282         menubar visibility.
7283
7284 2000-12-28  Andy Piper  <andy@xemacs.org>
7285
7286         * lastfile.c (my_ebss): make a char array so we can pad the
7287         bss. Fixes cygwin unexec.
7288
7289         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
7290
7291 2000-12-26  Andy Piper  <andy@xemacs.org>
7292
7293         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
7294         comments and try and be more precise about a non-/SIGIO world.
7295         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
7296         SIGIO.
7297
7298         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
7299         we don't normalize to zero width or height.
7300
7301 2000-12-24  Andy Piper  <andy@xemacs.org>
7302
7303         * Makefile.in.in (ldflags): add -mwindows when appropriate.
7304
7305 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
7306
7307         * s/sco5.h: SCO 5 has pty support.
7308
7309 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
7310
7311         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
7312         input-method-xlib.c contains whole contents of input-method-xfs.c,
7313         so we can use input-method-xlib.c's code for USE_XFONTSET
7314         using #ifdefs.
7315         * input-method-xfs.c: removed.
7316
7317 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
7318
7319         * file-coding.h (enum coding_category_type): reorder enumerators to
7320         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
7321         (now one greater than largest real coding_category_type enumerator).
7322         * file-coding.c (coding_category_symbol, coding_category_by_priority,
7323         coding_category_system, fcd_descriptihon_1, decode_coding_category,
7324         Fcoding_category_list, Fset_coding_priority_list,
7325         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
7326         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
7327
7328 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
7329
7330         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
7331         * redisplay-output.c (redisplay_output_window): Clear top of window
7332         when face is changed.
7333         * redisplay-x.c (x_redraw_exposed_window): Call
7334         redisplay_clear_top_of_window.
7335         * redisplay.h: Publish redisplay_clear_top_of_window.
7336
7337 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
7338
7339         * buffer.c (Fkill_buffer): Map over all devices.
7340         * window.c (window_loop): Remove UNSHOW_BUFFER code.
7341         (list_windows): New function.
7342         (list_all_windows): Ditto.
7343         (Freplace_buffer_in_windows): Use them.
7344
7345 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
7346
7347         * database.c (berkdb_subtype): Recognize new subtype `queue'.
7348         (Fopen_database): Use `db_create' instead of `db_open'.
7349         (syms_of_database): Initialize Qqueue.
7350
7351 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
7352
7353         * buffer.c (common_init_complex_vars_of_buffer): Initialize
7354         buffer_local_face_property.
7355         * buffer.h (struct buffer): New member buffer_local_face_property.
7356         * window.c (Fset_window_buffer):  Mark window's face as changed
7357         when buffer has buffer local face.
7358         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
7359         * objects.c (color_after_change): Set buffer_local_face_property
7360         when locale of face specifier is buffer.
7361         * objects.c (font_after_change): Ditto.
7362         * objects.c (face_boolean_after_change): Ditto.
7363         * glyphs.c (image_after_change): Ditto.
7364
7365 2000-12-09  Dan Holmsand  <dan@eyebee.com>
7366
7367         * nt.c (mswindows_fstat): Report file permissions, volume serial
7368         number, etc. Code adapted from FSF Emacs 20.7.
7369
7370 2000-12-09  Dan Holmsand  <dan@eyebee.com>
7371
7372         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
7373         of stat when we don't have symbolic links, to make sure
7374         mswindows_stat is called on mswindows.
7375
7376 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
7377
7378         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
7379
7380 2000-12-12  Martin Buchholz  <martin@xemacs.org>
7381
7382         * doprnt.c (emacs_doprnt_1): More printing fixes.
7383         Make printing of numbers compatible with libc and FSF Emacs.
7384         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
7385         Use the system printf to do most of the hard work of formatting,
7386         instead of doprnt_1().
7387         Calculate memory to allocate for format string.
7388         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
7389         (doprnt_1): Cleaner code and documentation.
7390
7391 2000-12-01  Jerry James  <james@eecs.ukans.edu>
7392
7393         * Makefile.in.in: Use the loop variable to install headers.
7394
7395 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
7396
7397         * window.c (Fsplit_window): Don't invalidate face cache.
7398
7399 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
7400
7401         * minibuf.c (Fall_completions): Undo the previous change
7402         which removed checking elements start with space.
7403
7404 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
7405
7406         * mule-canna.c: Didier suppression.
7407
7408 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
7409
7410         * mule-canna.c: rename static unsigned char buf[] to key_buffer
7411         (warning suppression).  Add English comment translations.
7412
7413 2000-12-05  Martin Buchholz  <martin@xemacs.org>
7414
7415         * unexelfsgi.c (unexec): Better test for mmap failure.
7416
7417 2000-12-05  Martin Buchholz <martin@xemacs.org>
7418
7419         * XEmacs 21.2.38 is released.
7420
7421 2000-12-05  Martin Buchholz  <martin@xemacs.org>
7422
7423         * redisplay.c (bar-cursor): Make a user variable.
7424
7425         * symsinit.h: Add init_postgresql_from_environment.
7426
7427 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
7428
7429         * regex.c: Convert to clean C.
7430
7431 2000-12-05  Dan Holmsand  <dan@eyebee.com>
7432
7433         * realpath.c:
7434         Don't #include sysfile.h. Revert to duplicating PATH_MAX
7435         initialization.
7436         (sys_readlink): renamed to system_readlink to avoid conflict with
7437         the other sys_readlink.
7438
7439 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
7440
7441         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
7442
7443 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
7444
7445         * postgresql.c (init_postgresql_from_environment): new function.
7446         (vars_of_postgresql): Move code initializing Lisp variables out and
7447         into init_postgresql_from_environment.
7448         emacs.c (main_1): Call init_postgresql_from_environment if and only
7449         if running a dumped XEmacs.
7450
7451 2000-08-31  Dan Holmsand  <dan@eyebee.com>
7452
7453         * buffer.c: Make find-file-compare-truenames default to true on
7454         windows.
7455
7456         * realpath.c (win32_abs_start):
7457         (cygwin_readlink):
7458         (win32_readlink): New functions.
7459         (xrealpath): Return really real filenames on windows.
7460
7461         * fileio.c (Ffile_truename): Make file-truename work on windows.
7462
7463 2000-11-29  Didier Verna  <didier@xemacs.org>
7464
7465         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
7466         * faces.c (update_face_cachel_data): use it.
7467         * faces.c (add_face_cachel): use it. Complete background pixmap
7468         frobbing in face cache if `update_face_cachel_data' has not done so.
7469
7470 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
7471
7472         * search.c (string_match_1): Don't set last_thing_searched
7473         when search failed.
7474
7475 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
7476
7477         * buffer.c: Include casetab.h
7478         (common_init_complex_vars_of_buffer): Use new case-table object.
7479         * buffer.h: Include casetab.h
7480         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
7481         (DOWNCASE_TABLE_OF): Ditto.
7482         * bufslots.h: Remove char-tables and add case-table.
7483         * casetab.c: Include casetab.h
7484         (CASE_TABLE_P): Removed.
7485         (mark_case_table): New function.
7486         (allocate_case_table): New function.
7487         (Fcase_table_p): Use new case-table.
7488         (case_table_char): New function.
7489         (Fget_case_table): Ditto.
7490         (Fput_case_table): Ditto.
7491         (Fput_case_table_pair): Ditto.
7492         (Fcopy_case_table): Ditto.
7493         (Fcurrent_case_table): Return case-table.
7494         (Fstandard_case_table): Return case-table.
7495         (Fset_case_table): Fix doc-string.
7496         (set_case_table): Use case-table
7497         (syms_of_casetab): DEFSUBR new functions.
7498         (complex_vars_of_casetab): Set up standard case-table.
7499         * casetab.h: New file.
7500         * editfns.c: Include casetab.h
7501         (Fcompare_buffer_substrings): Use case-table.
7502         * inline.c: Include casetab.h
7503         * lisp.h: Remove bogus extern.
7504         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
7505         * search.c: Include casetab.h
7506         (TRANSLATE_ASCII): Removed.
7507         (TRANSLATE): Unconditionally translate character.
7508         (looking_at_1): Use case-table.
7509         (string_match_1): Ditto.
7510         (fast_string_match): Ditto.
7511         (search_command): Ditto.
7512         (search_buffer): Separate boyer_moore.  Check whether
7513         boyer_moore is possible.
7514         (simple_search): New function.
7515         (boyer_moore): Separated from search_buffer. Translate char.
7516
7517 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
7518
7519         * regex.c (RE_TR_ASCII): Removed.
7520         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
7521         (PATFETCH): Call PATFETCH_RAW.
7522         (PATFETCH_RAW): Fetch Emchar.
7523         (PATUNFETCH): Decrement charptr.
7524         (GET_BUFFER_SPACE): Rename b to buf_end.
7525         (BUF_PUSH): Ditto.
7526         (BUF_PUSH_2): Ditto.
7527         (BUF_PUSH_3): Ditto.
7528         (EXTEND_BUFFER): Ditto.
7529         (SET_LIST_BIT): Ditto.
7530         (regex_compile): Ditto.  Translate non ASCII char.
7531         (compile_range): Ditto.
7532         (re_search_2): Ditto.
7533         (re_match_2_internal): Compare Emchar.
7534         (bcmp_translate): Ditto.
7535
7536 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
7537
7538         * lisp.h (basic char/int typedefs):  comment improvement.
7539
7540 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
7541
7542         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
7543         unstomp inhibit_site_lisp.  Improve comments.
7544
7545 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
7546
7547         * mule-charset.c (Fcharset_property):  improve type checking, comments.
7548
7549 2000-11-28  Andy Piper  <andy@xemacs.org>
7550
7551         * redisplay-output.c (redisplay_output_subwindow): make sure we do
7552         clipped display for windows in the gutter also.
7553         (redisplay_display_boxes_in_window_p): change semantics of return
7554         codes to be more intuitive.
7555
7556         * gutter.h: declare display_boxes_in_gutter_p.
7557
7558         * gutter.c (display_boxes_in_gutter_p): new function for
7559         redisplay.
7560
7561 2000-11-22  Andy Piper  <andy@xemacs.org>
7562
7563         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
7564         autodetect domain.
7565
7566 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
7567
7568         * callproc.c (Fold_call_process_internal):
7569         * gpm.c (Freceive_gpm_event):
7570         (tty_get_foreign_selection): Might be just warning supression.
7571         * fileio.c (Fwrite_region_internal):
7572         (Fset_visited_file_modtime):
7573         * keymap.c (event_matches_key_specifier_p):
7574         Initialize GCPROed variable.
7575
7576         * menubar-x.c (command_builder_find_menu_accelerator):
7577         Initialize before use.
7578
7579 2000-11-23  Andy Piper  <andy@xemacs.org>
7580
7581         * unexcw.c (unexec): make the resulting executable executable.
7582
7583 2000-11-21  Martin Buchholz  <martin@xemacs.org>
7584
7585         * doc.c (get_doc_string):
7586         Use size_t, not int, for result of XSTRING_LENGTH.
7587
7588         * cmds.c (Fdelete_char):
7589         * cmds.c (Fpoint_at_eol):
7590         * cmds.c (Fself_insert_command):
7591         Use EMACS_INT, not int, for result of XINT.
7592         Someday, someone will want to insert more than 2**31 identical characters.
7593
7594         * cmds.c (Fdelete_char):
7595         * cmds.c (Fdelete_backward_char):
7596         * syntax.c (Fforward_word):
7597         * syntax.c (Fforward_comment):
7598         Make COUNT argument optional, for consistency with forward-char et al.
7599
7600 2000-11-22  Martin Buchholz  <martin@xemacs.org>
7601
7602         * lisp.h:
7603         * print.c (long_to_string):
7604         Return a useful value: the pointer at end of data written.
7605
7606         * doprnt.c:
7607         Use `static const char * const' for constant strings.
7608         (union printf_arg): Delete `i', `ui' members.
7609         (get_doprnt_args):
7610         (emacs_doprnt_1):
7611         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
7612         Do all printf-ing via the `l' specifier.
7613         Use EMACS_INT instead of int.
7614         Optimize.
7615
7616 2000-11-20  Didier Verna  <didier@xemacs.org>
7617
7618         * faces.c (update_face_cachel_data): don't frob the background
7619         pixmap when the window is being created. The face is needed but
7620         does not exist yet.
7621
7622 2000-11-20  Andy Piper  <andy@xemacs.org>
7623
7624         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
7625         messing with a debug environment.
7626
7627 2000-11-20  Martin Buchholz  <martin@xemacs.org>
7628
7629         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
7630
7631 2000-11-20  Martin Buchholz  <martin@xemacs.org>
7632
7633         * casetab.c (Fcase_table_p): Fix compile error and crash.
7634
7635 2000-11-18  Philip Aston  <philipa@mail.com>
7636
7637         * s/cygwin32.h: Cygwin has SVR4-like pty support.
7638
7639 2000-11-18  Martin Buchholz  <martin@xemacs.org>
7640
7641         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
7642         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
7643
7644 2000-11-17  Martin Buchholz  <martin@xemacs.org>
7645
7646         * config.h.in: Define HAVE_ELF_H if elf.h exists.
7647         * unexelf.c: Use HAVE_ELF_H.
7648         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
7649         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
7650         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
7651         Greg Harrington <greg_harrington@hotmail.com> provided a machine
7652         for testing.
7653         So this is an unexelfsgi.c from a different line of development.
7654
7655 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
7656
7657         * regex.c (RE_TR_ASCII): New function.
7658         (RE_TRANSLATE): Call it.
7659
7660 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
7661
7662         * buffer.h (TRT_TABLE_OF): Remove assert.
7663         (IN_TRT_TABLE_DOMAIN): Removed.
7664
7665 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
7666
7667         * free-hook.c (log_gcpro):
7668         (show_gcprohist): Add support for GCPRO5.
7669
7670 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
7671
7672         * emacs.c (main_1): Improve -sd error message when --pdump=no.
7673
7674 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
7675
7676         * symeval.h: Declare flush_all_buffer_local_cache.
7677
7678         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
7679         (flush_buffer_local_cache): Added.
7680         (flush_all_buffer_local_cache): Added.
7681
7682         * lrecord.h: Remove unused XD_LO_RESET_NIL.
7683
7684         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
7685         (pdump_dump_data): Ditto.
7686         (pdump_reloc_one): Ditto.
7687         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
7688         before dumping.
7689
7690
7691 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
7692
7693         * buffer.c: Remove if 0'ed entry.
7694         * buffer.h: Rewrite TRT to use char-table.
7695         * bufslots.h: Remove mirror tables.
7696         * casetab.c: Remove mirror tables.
7697         (CASE_TABLE_P): New macro.
7698         (Fcase_table_p): Element of a case table is string or char-table.
7699         (make_mirror_trt_table): Removed.
7700         (set_case_table): Setup char-table from strings for backward
7701         compatibility.
7702         * dired.c (Fdirectory_files):
7703         * dired-msw.c: (mswindows_get_files):
7704         * lisp.h: Change prototype of re_pattern_buffer.
7705         * regex.c: (RE_TRANSLATE): New macro.
7706         (TRANSLATE_P): Ditto.
7707         Change translate to type RE_TRANSLATE_TYPE.
7708         * regex.h: Define RE_TRANSLATE_TYPE
7709         * search.c (TRANSLATE): New macro.
7710         (TRANSLATE_ASCII): New macro.
7711         Translate table is changed to Lisp_Object.
7712         (signal_failure): Inhibit return.
7713
7714 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
7715
7716         * device-msw.c:
7717         * eldap.c:
7718         * event-Xt.c:
7719         * event-stream.c:
7720         * print.c:
7721         Do UNGCPRO before return.
7722
7723 2000-11-14  Martin Buchholz <martin@xemacs.org>
7724
7725         * XEmacs 21.2.37 is released.
7726
7727 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
7728
7729         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
7730         Add comments about discarded return value.
7731
7732 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
7733
7734         * callint.c:
7735         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
7736
7737 2000-10-27  Andy Piper  <andy@xemacs.org>
7738
7739         * gutter.c (Fset_default_gutter_position): default left and right
7740         gutters to visible.
7741         (calculate_gutter_size): calculate resonable heuristic for left
7742         and right gutter sizes.
7743         (specifier_vars_of_gutter): change left and right gutter sizes to
7744         autodetect.
7745         (calculate_gutter_size_from_display_lines): new function.
7746         (output_gutter): check for resizing on left and right gutters.
7747         (clear_gutter): don't special case top and left gutters.
7748         (specifier_vars_of_gutter): use new signature for
7749         set_specifier_caching.
7750
7751         * glyphs-x.c (x_redisplay_widget): spelling fix.
7752         * glyphs.c (specifier_vars_of_glyphs):
7753         * menubar.c (specifier_vars_of_menubar):
7754         * redisplay.c (specifier_vars_of_redisplay):
7755         * toolbar.c (specifier_vars_of_toolbar):
7756         * window.c (specifier_vars_of_window):
7757         * scrollbar.c (specifier_vars_of_scrollbar):
7758         (complex_vars_of_scrollbar): use new signature for
7759         set_specifier_caching.
7760
7761         * specifier.c (set_specifier_caching): include recompute flag.
7762         (recompute_one_cached_specifier_in_window): always recompute if
7763         flag set.
7764         (recompute_one_cached_specifier_in_frame): ditto.
7765
7766         * specifier.h (struct specifier_caching): add recompute flag.
7767
7768 2000-10-24  Andy Piper  <andy@xemacs.org>
7769
7770         * unexcw.c (copy_executable_and_dump_data_section): add new
7771         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
7772         5.0 happy.
7773
7774 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
7775
7776         * console-x.h (x_device): New member modifier_release_time.
7777         * event-Xt.c (x_handle_sticky_modifiers):
7778         Bound interval modifier keys are sticky.
7779         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
7780         * events.h: extern it.
7781
7782 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
7783
7784         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
7785
7786 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
7787
7788         * event-stream.c (execute_command_event): Preserve current_events
7789         and the like when event is misc-user-event.
7790         Inhibit quit during the call to maybe_echo_keys.
7791
7792 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
7793
7794         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
7795         symlink when buffer is killed.
7796         (inhibit_clash_detection): New variable.
7797
7798 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
7799
7800         * console.c (Fset_input_method): Trigger redisplay on tty.
7801
7802 2000-11-07  Martin Buchholz  <martin@xemacs.org>
7803
7804         * process.c (Fprocess_status): Revert to previous behavior:
7805         (process-status "nosuchprocess") ==> nil
7806
7807 2000-11-06  Martin Buchholz  <martin@xemacs.org>
7808
7809         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
7810         Work around another GCC 2.95.2 optimizer bug.
7811
7812 2000-11-02  Martin Buchholz  <martin@xemacs.org>
7813
7814         * process.c (Fget_process): Use LIST_LOOP_2.
7815         (kill_buffer_processes): Use LIST_LOOP_2.
7816
7817         * minibuf.c (Fall_completions):
7818         Delete old non-functional code for FSF fourth argument.
7819
7820         * frame.c (frame_matches_frame_spec):
7821         Renamed from `frame_matches_frametype'.  Update all callers.
7822         (device_matches_device_spec):
7823         Renamed from 'device_matches_console_spec'.  Update all callers.
7824
7825         * doc.c (Fsubstitute_command_keys):
7826         Remove buffer overflow crash.  Small code cleanups.
7827
7828         * casetab.c (check_case_table): Simpler code.
7829
7830         * window.c (Freplace_buffer_in_windows):
7831         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
7832         (and similar implementation) as Fdelete_windows_on.
7833         Update all callers.
7834
7835         * alloc.c (Fmake_list):
7836         * alloc.c (make_vector):
7837         * alloc.c (Fmake_vector):
7838         * alloc.c (make_bit_vector):
7839         * alloc.c (Fmake_bit_vector):
7840         * alloc.c (Fbit_vector):
7841         * alloc.c (Fmake_string):
7842         * alloc.c (Fpurecopy):
7843         * alloc.c (Fmemory_limit):
7844         * buffer.c:
7845         * buffer.c (Fget_buffer):
7846         * buffer.c (Fkill_buffer):
7847         * buffer.c (complex_vars_of_buffer):
7848         * bytecode.c (Fcompiled_function_stack_depth):
7849         * callint.c (Fprefix_numeric_value):
7850         * event-stream.c:
7851         * event-stream.c (Fread_key_sequence):
7852         * casetab.c:
7853         * casetab.c (Fcase_table_p):
7854         * casetab.c (check_case_table):
7855         * casetab.c (Fset_case_table):
7856         * casetab.c (Fset_standard_case_table):
7857         * chartab.c:
7858         * chartab.c (Fchar_table_type):
7859         * chartab.c (Freset_char_table):
7860         * chartab.c (Fget_char_table):
7861         * chartab.c (Fget_range_char_table):
7862         * chartab.c (Fput_char_table):
7863         * chartab.c (Fmap_char_table):
7864         * chartab.c (Fcategory_table_p):
7865         * chartab.c (Fcheck_category_at):
7866         * chartab.c (Fchar_in_category_p):
7867         * chartab.c (Fcategory_table):
7868         * chartab.c (Fcopy_category_table):
7869         * chartab.c (Fset_category_table):
7870         * chartab.c (Fcategory_designator_p):
7871         * chartab.c (Fcategory_table_value_p):
7872         * cmds.c (Fdelete_char):
7873         * cmds.c (Fdelete_backward_char):
7874         * cmds.c (Fself_insert_command):
7875         * cmds.c (Fself_insert_internal):
7876         * console.c (Fvalid_console_type_p):
7877         * console.c (Fcdfw_console):
7878         * console.c (Fconsole_type):
7879         * console.c (Fconsole_name):
7880         * console.c (Fconsole_device_list):
7881         * console.c (Fconsole_on_window_system_p):
7882         * data.c:
7883         * data.c (Feq):
7884         * data.c (Fold_eq):
7885         * data.c (Fsubr_interactive):
7886         * data.c (Fchar_to_int):
7887         * data.c (Fint_to_char):
7888         * data.c (Fsetcar):
7889         * data.c (Fsetcdr):
7890         * data.c (Fnumber_to_string):
7891         * data.c (Fstring_to_number):
7892         * data.c (Frem):
7893         * database.c (mark_database):
7894         * database.c (finalize_database):
7895         * database.c (Fdatabase_live_p):
7896         * database.c (Fdatabasep):
7897         * device-x.c (Fx_get_resource):
7898         * device.c (Fdfw_device):
7899         * dired.c:
7900         * dired.c (Ffile_name_completion):
7901         * dired.c (Ffile_name_all_completions):
7902         * dired.c (Fuser_name_completion):
7903         * dired.c (Fuser_name_completion_1):
7904         * dired.c (Fuser_name_all_completions):
7905         * doc.c (Fdocumentation):
7906         * doc.c (Fdocumentation_property):
7907         * doc.c (Fsubstitute_command_keys):
7908         * editfns.c:
7909         * editfns.c (Fchar_to_string):
7910         * editfns.c (Fstring_to_char):
7911         * editfns.c (Ftemp_directory):
7912         * editfns.c (Finsert_char):
7913         * editfns.c (Fbuffer_substring_no_properties):
7914         * editfns.c (Fnarrow_to_region):
7915         * editfns.c (Fchar_equal):
7916         * editfns.c (Fchar_Equal):
7917         * editfns.c (Ftranspose_regions):
7918         * emacs.c (Fdump_emacs):
7919         * eval.c (Fthrow):
7920         * eval.c (Fcommand_execute):
7921         * eval.c (Fautoload):
7922         * eval.c (Fbacktrace):
7923         * eval.c (Fbacktrace_frame):
7924         * events.c:
7925         * events.c (Fcopy_event):
7926         * events.c (Fcharacter_to_event):
7927         * events.c (Fevent_button):
7928         * events.c (Fevent_process):
7929         * extents.c:
7930         * extents.c (Fnext_extent_change):
7931         * extents.c (Fextent_property):
7932         * faces.c (Ffacep):
7933         * faces.c (Fmake_face):
7934         * file-coding.c:
7935         * file-coding.c (Fencode_shift_jis_char):
7936         * file-coding.c (Fencode_big5_char):
7937         * fileio.c (Ffile_name_directory):
7938         * fileio.c (Ffile_name_nondirectory):
7939         * fileio.c (Ffile_name_as_directory):
7940         * fileio.c (Fdirectory_file_name):
7941         * fileio.c (Ffile_truename):
7942         * fileio.c (Fsubstitute_in_file_name):
7943         * fileio.c (Ffile_modes):
7944         * fileio.c (Fset_file_modes):
7945         * fileio.c (Fset_default_file_modes):
7946         * fileio.c (Fverify_visited_file_modtime):
7947         * floatfns.c (Facos):
7948         * floatfns.c (Fasin):
7949         * floatfns.c (Fatan):
7950         * floatfns.c (Fcos):
7951         * floatfns.c (Fsin):
7952         * floatfns.c (Ftan):
7953         * floatfns.c (Fbessel_j0):
7954         * floatfns.c (Fbessel_j1):
7955         * floatfns.c (Fbessel_jn):
7956         * floatfns.c (Fbessel_y0):
7957         * floatfns.c (Fbessel_y1):
7958         * floatfns.c (Fbessel_yn):
7959         * floatfns.c (Ferf):
7960         * floatfns.c (Ferfc):
7961         * floatfns.c (Flog_gamma):
7962         * floatfns.c (Fexp):
7963         * floatfns.c (Fexpt):
7964         * floatfns.c (Flog):
7965         * floatfns.c (Flog10):
7966         * floatfns.c (Fsqrt):
7967         * floatfns.c (Fcube_root):
7968         * floatfns.c (Facosh):
7969         * floatfns.c (Fasinh):
7970         * floatfns.c (Fatanh):
7971         * floatfns.c (Fcosh):
7972         * floatfns.c (Fsinh):
7973         * floatfns.c (Ftanh):
7974         * floatfns.c (Fabs):
7975         * floatfns.c (Ffloat):
7976         * floatfns.c (Flogb):
7977         * floatfns.c (Fceiling):
7978         * floatfns.c (Ffloor):
7979         * floatfns.c (Fround):
7980         * floatfns.c (Ftruncate):
7981         * floatfns.c (Ffceiling):
7982         * floatfns.c (Fffloor):
7983         * floatfns.c (Ffround):
7984         * floatfns.c (Fftruncate):
7985         * fns.c (Fstring_equal):
7986         * fns.c (Fstring_lessp):
7987         * fns.c (concat2):
7988         * fns.c (concat3):
7989         * fns.c (vconcat2):
7990         * fns.c (vconcat3):
7991         * fns.c (Fsubstring):
7992         * fns.c (Fassoc):
7993         * fns.c (Fold_assoc):
7994         * fns.c (assoc_no_quit):
7995         * fns.c (Fassq):
7996         * fns.c (Fold_assq):
7997         * fns.c (assq_no_quit):
7998         * fns.c (Frassoc):
7999         * fns.c (Fold_rassoc):
8000         * fns.c (Frassq):
8001         * fns.c (Fold_rassq):
8002         * fns.c (rassq_no_quit):
8003         * fns.c (Fremassoc):
8004         * fns.c (remassoc_no_quit):
8005         * fns.c (Fremassq):
8006         * fns.c (remassq_no_quit):
8007         * fns.c (Fremrassoc):
8008         * fns.c (Fremrassq):
8009         * fns.c (remrassq_no_quit):
8010         * fns.c (Fsort):
8011         * fns.c (Fplist_get):
8012         * fns.c (Fplist_put):
8013         * fns.c (Fplist_remprop):
8014         * fns.c (Fplist_member):
8015         * fns.c (Flax_plist_get):
8016         * fns.c (Flax_plist_put):
8017         * fns.c (Flax_plist_remprop):
8018         * fns.c (Flax_plist_member):
8019         * fns.c (Fequal):
8020         * fns.c (Fold_equal):
8021         * fns.c (Frequire):
8022         * fns.c (Fbase64_encode_region):
8023         * fns.c (Fbase64_encode_string):
8024         * fns.c (Fbase64_decode_region):
8025         * frame.c:
8026         * frame.c (frame_matches_frame_spec):
8027         * frame.c (device_matches_device_spec):
8028         * frame.c (next_frame):
8029         * frame.c (previous_frame):
8030         * frame.c (Fnext_frame):
8031         * frame.c (Fprevious_frame):
8032         * frame.c (Fframe_property):
8033         * frame.c (Fset_frame_height):
8034         * frame.c (Fset_frame_size):
8035         * frame.h:
8036         * glyphs.c:
8037         * glyphs.c (if):
8038         * glyphs.c (decode_error_behavior_flag):
8039         * glyphs.c (Fmake_image_instance):
8040         * indent.c (Findent_to):
8041         * intl.c (Fignore_defer_gettext):
8042         * keymap.c (Fkeymapp):
8043         * keymap.c (Flookup_key):
8044         * lread.c:
8045         * lread.c (Fload_internal):
8046         * lread.c (Feval_buffer):
8047         * lread.c (Feval_region):
8048         * macros.c (Fexecute_kbd_macro):
8049         * marker.c (set_marker_internal):
8050         * marker.c (Fset_marker):
8051         * marker.c (set_marker_restricted):
8052         * marker.c (Fcopy_marker):
8053         * marker.c (noseeum_copy_marker):
8054         * menubar.c:
8055         * menubar.c (Fpopup_menu):
8056         * minibuf.c:
8057         * mule-charset.c (Fcharset_name):
8058         * mule-charset.c (Fchar_charset):
8059         * mule-charset.c (Fchar_octet):
8060         * mule-charset.c (Fsplit_char):
8061         * mule-wnnfns.c (Fwnn_open):
8062         * mule-wnnfns.c (Fwnn_dict_comment):
8063         * mule-wnnfns.c (Fwnn_quit_henkan):
8064         * mule-wnnfns.c (Fwnn_word_toroku):
8065         * mule-wnnfns.c (Fwnn_word_sakujo):
8066         * mule-wnnfns.c (Fwnn_word_use):
8067         * mule-wnnfns.c (Fwnn_hindo_set):
8068         * objects.c:
8069         * objects.c (Fmake_color_instance):
8070         * objects.c (Fmake_font_instance):
8071         * print.c (Fwrite_char):
8072         * process.c:
8073         * process.c (mark_process):
8074         * process.c (print_process):
8075         * process.c (get_process_from_usid):
8076         * process.c (Fprocessp):
8077         * process.c (Fprocess_live_p):
8078         * process.c (Fget_process):
8079         * process.c (Fget_buffer_process):
8080         * process.c (get_process):
8081         * process.c (Fprocess_id):
8082         * process.c (Fprocess_name):
8083         * process.c (Fprocess_command):
8084         * process.c (init_process_io_handles):
8085         * process.c (start_process_unwind):
8086         * process.c (Fstart_process_internal):
8087         * process.c (Fopen_multicast_group_internal):
8088         * process.c (Fset_process_window_size):
8089         * process.c (read_process_output):
8090         * process.c (send_process):
8091         * process.c (Fprocess_tty_name):
8092         * process.c (Fset_process_buffer):
8093         * process.c (Fprocess_buffer):
8094         * process.c (Fprocess_mark):
8095         * process.c (set_process_filter):
8096         * process.c (Fset_process_filter):
8097         * process.c (Fprocess_filter):
8098         * process.c (Fprocess_send_region):
8099         * process.c (Fprocess_send_string):
8100         * process.c (exec_sentinel):
8101         * process.c (Fset_process_sentinel):
8102         * process.c (Fprocess_sentinel):
8103         * process.c (status_notify):
8104         * process.c (Fprocess_status):
8105         * process.c (Fprocess_exit_status):
8106         * process.c (process_send_signal):
8107         * process.c (Fprocess_send_eof):
8108         * process.c (deactivate_process):
8109         * process.c (remove_process):
8110         * process.c (Fdelete_process):
8111         * process.c (kill_buffer_processes):
8112         * process.c (Fprocess_kill_without_query):
8113         * process.c (Fprocess_kill_without_query_p):
8114         * rangetab.c:
8115         * rangetab.c (Fget_range_table):
8116         * rangetab.c (Fput_range_table):
8117         * rangetab.c (Fremove_range_table):
8118         * rangetab.c (Fclear_range_table):
8119         * search.c:
8120         * search.c (Fskip_chars_forward):
8121         * search.c (Fskip_chars_backward):
8122         * search.c (Fskip_syntax_forward):
8123         * search.c (Fskip_syntax_backward):
8124         * search.c (search_command):
8125         * search.c (Freplace_match):
8126         * search.c (Fregexp_quote):
8127         * select.c (Fown_selection_internal):
8128         * select.c (Fselection_owner_p):
8129         * select.c (Fselection_exists_p):
8130         * select.c (Fget_selection_internal):
8131         * specifier.c:
8132         * symbols.c:
8133         * symbols.c (Fintern):
8134         * symbols.c (Fintern_soft):
8135         * symbols.c (Funintern):
8136         * symbols.c (Fapropos_internal):
8137         * symbols.c (Fset_default):
8138         * syntax.c:
8139         * syntax.c (Fsyntax_table_p):
8140         * syntax.c (Fcopy_syntax_table):
8141         * syntax.c (Fset_syntax_table):
8142         * syntax.c (Fchar_syntax):
8143         * syntax.c (syntax_match):
8144         * syntax.c (Fmatching_paren):
8145         * syntax.c (Fforward_word):
8146         * syntax.c (scan_lists):
8147         * syntax.c (Fscan_lists):
8148         * syntax.c (Fscan_sexps):
8149         * syntax.c (Fparse_partial_sexp):
8150         * toolbar.c (Fcheck_toolbar_button_syntax):
8151         * tooltalk.doc:
8152         * window.c:
8153         * window.c (Fwindowp):
8154         * window.c (Fwindow_live_p):
8155         * window.c (Fwindow_point):
8156         * window.c (Fdelete_window):
8157         * window.c (Fnext_window):
8158         * window.c (Fprevious_window):
8159         * window.c (Fother_window):
8160         * window.c (window_loop):
8161         * window.c (Fget_lru_window):
8162         * window.c (Fsplit_window):
8163         * window.c (Fenlarge_window):
8164         * window.c (Fenlarge_window_pixels):
8165         * window.c (Fshrink_window):
8166         * window.c (Fshrink_window_pixels):
8167         * window.c (change_window_height):
8168         * window.c (Fwindow_configuration_p):
8169         * window.c (Fcurrent_window_configuration):
8170         * window.h:
8171         * casefiddle.c (casify_object):
8172         * casefiddle.c (Fupcase):
8173         * casefiddle.c (Fdowncase):
8174         * casefiddle.c (Fcapitalize):
8175         * casefiddle.c (Fupcase_initials):
8176         * casefiddle.c (casify_region_internal):
8177         * casefiddle.c (casify_region):
8178         * casefiddle.c (Fupcase_region):
8179         * casefiddle.c (Fdowncase_region):
8180         * casefiddle.c (Fcapitalize_region):
8181         * casefiddle.c (Fupcase_initials_region):
8182         * casefiddle.c (Fupcase_word):
8183         * casefiddle.c (Fdowncase_word):
8184         * casefiddle.c (Fcapitalize_word):
8185         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
8186         Replace 0 with '\0' when working with bytes.
8187         Replace initial "(" with "\(" in docstrings.
8188
8189 2000-11-01  Martin Buchholz  <martin@xemacs.org>
8190
8191         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
8192
8193         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
8194
8195 2000-10-31  Martin Buchholz  <martin@xemacs.org>
8196
8197         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
8198
8199 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
8200
8201         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
8202         correctly.
8203
8204 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
8205
8206         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
8207         (inhibit_auto_save_session): New variable.
8208         (vars_of_fileio): Declare and initialize them.
8209         * fileio.c (Fdo_auto_save): Don't create session file if
8210         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
8211
8212 2000-10-31  Martin Buchholz  <martin@xemacs.org>
8213
8214         * sgiplay.c (play_internal): C++ compilability.
8215         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
8216         * callproc.c (Fold_call_process_internal):
8217         Remove unused vars `env', `first'.
8218         * scrollbar.c (update_scrollbar_instance):
8219         #### unused var `current_window'.
8220         * redisplay-tty.c: Put currently unused vars insert_mode_on,
8221         etc. within #ifdef NOT_YET.
8222         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
8223         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
8224         * specifier.c (specifier_instance):
8225         #### unused var `tag'.
8226         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
8227
8228 2000-10-27  Martin Buchholz  <martin@xemacs.org>
8229
8230         * fns.c (Fbutlast):
8231         * fns.c (list_sort):
8232         * fns.c (Ffillarray):
8233         * fns.c (bytecode_nconc2):
8234         * fns.c (Fnconc):
8235         * fns.c (mapcar1):
8236         * fns.c (Fmapconcat):
8237         Be pedantically 64-bit correct.  For the time when someone will
8238         want to have a list with length > 2**32.
8239
8240         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
8241         Work around MIPSpro compiler bug.
8242
8243         * process-unix.c (unix_kill_child_process): Add snarky comment.
8244         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
8245
8246         * config.h.in: Oops, _getpt ==> _getpty
8247
8248 2000-10-26  Martin Buchholz  <martin@xemacs.org>
8249
8250         * config.h.in:
8251         * regex.c:
8252         Use void*, not char*, as return type of alloca().
8253
8254         * alloc.c (free_marker): Side effect inside assert expression!
8255
8256 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
8257
8258         * mule-charset.c (Fset_charset_ccl_program): To check
8259         if the given ccl program is valid, use setup_ccl_program()
8260         instead of CHECK_VECTOR().
8261         (Fmake_charset): Likewise.
8262
8263 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
8264
8265         * faces.c (get_extent_fragment_face_cache_index):
8266         Fix cachel.merged_faces memory leak.
8267
8268 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
8269
8270         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
8271         Reset MSB of octets obtained by DECODE_SJIS
8272         because of the incompatibility with Emacs.
8273         (ccl_driver)<CCL_ENCODE_SJIS>:
8274         Set MSB of octets before passing them to
8275         ENCODE_SJIS because of the incompatibility
8276         with Emacs.
8277
8278 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
8279
8280         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
8281         (DECLARE_LRECORD): Undo the last change.
8282         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
8283
8284 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
8285
8286         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
8287         the implementation to lrecord_implementations_table.
8288
8289 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
8290
8291         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
8292         initial value of `lrecord_type_##c_name' and
8293         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
8294         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
8295         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
8296         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
8297         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
8298
8299 2000-10-17  Martin Buchholz  <martin@xemacs.org>
8300
8301         * miscplay.c (sndcnv8S_2mono):
8302         (sndcnv2monounsigned):
8303         (sndcnvULaw_2linear):
8304         (sndcnv16swap):
8305         Remove implementation-defined behavior.
8306
8307 2000-10-12  Martin Buchholz  <martin@xemacs.org>
8308
8309         * input-method-xlib.c: Warning suppression.
8310
8311 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
8312
8313         * mule-ccl.c: Sync up with Emacs 21.0.90.
8314         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
8315         Do nothing.
8316         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
8317         Likewise.
8318         (ccl_driver[WriteMultibyteChar2]): Bug fix.
8319         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
8320         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
8321         leading char belongs to official 2-dimensional charset.
8322         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
8323         write the given character as is.  Otherwise,
8324         if it is a multibyte char, convert it by
8325         non_ascii_set_charptr_emchar, then write it.
8326         (CCL_WRITE_STRING): Likewise.
8327         (ccl_get_compiled_code): New function.
8328         (setup_ccl_program): When ccl_prog is invalid,
8329         return -1.
8330         (Fregister_code_conversion_map): New function.
8331         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
8332
8333         * mule-ccl.h: Sync up with Emacs 21.0.90.
8334         (Fregister_ccl_program): export it.
8335
8336         * redisplay-msw.c (separate_textual_runs):
8337         If ccl program is not valid, don't do ccl conversion.
8338
8339         * redisplay-x.c (separate_textual_runs): Ditto.
8340
8341         * file-coding.c (Fmake_coding_system):
8342         When type is ccl and value is vector, register it
8343         with a proper symbol.  And checks whether the
8344         given ccl program is valid.
8345         (mule_decode): When calling ccl_driver, if src indicates
8346         NULL pointer, set an empty string instead.
8347         (mule_encode): Likewise.
8348
8349 2000-10-11  Martin Buchholz  <martin@xemacs.org>
8350
8351         The following large batch of changes gets us back to a state of
8352         C++ compilability.  Extbyte is now a char, which means that
8353         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
8354
8355         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
8356
8357         * sound.c (Fplay_sound): Type correctness.
8358
8359         * select-x.c (hack_motif_clipboard_selection): Type correctness.
8360         (x_get_window_property): Type correctness.
8361         (receive_incremental_selection): unsigned char ==> Extbyte
8362         (selection_data_to_lisp_data): unsigned char ==> Extbyte
8363         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
8364         (Fx_store_cutbuffer_internal): Type correctness.
8365
8366         * process-unix.c (try_to_initialize_subtty): Type correctness.
8367
8368         * objects-x.c (x_print_color_instance): Type correctness.
8369         (x_print_font_instance): Type correctness.
8370         (x_list_fonts): SExtbyte ==> Extbyte.
8371         (valid_x_font_name_p): SExtbyte ==> Extbyte.
8372         (x_find_charset_font): SExtbyte ==> Extbyte.
8373         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
8374         (truename_via_XListFonts): SExtbyte ==> Extbyte.
8375         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
8376         Use bufbyte_strcmp.
8377
8378         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
8379         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
8380         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
8381         (BYTE_C0_P): Use bit ops for char-signedness safety.
8382         (BYTE_C1_P): Use bit ops for char-signedness safety.
8383         (CHARSET_BY_LEADING_BYTE):
8384         (CHARSET_BY_ATTRIBUTES):
8385         Always use inline function.
8386         Use type_checking_assert.
8387         Hide chlook.
8388
8389         * mule-charset.c (non_ascii_charptr_copy_char):
8390         Modify to work with both ASCII and non-ASCII characters.
8391         Improve docs and variable names.
8392         Replace over-clever fall-through switch with a simple loop.
8393         (Lstream_get_emchar_1):
8394         Replace over-clever fall-through switch with a simple loop.
8395
8396         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
8397         Warning suppression.
8398
8399         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
8400         the return value of Lstream_getc, which could be EOF as well.
8401
8402         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
8403
8404         * lisp.h: Make Extbyte a char, not unsigned char, so that external
8405         APIs can be used on Extbytes without casts.  Risky!
8406         (SExtbyte): Remove.
8407         (UExtbyte): Remove.
8408
8409         * input-method-xlib.c (XIM_init_device):
8410         Use Xlib.h instead of IntrinsicP.h.
8411         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
8412         which will break in X11R7.
8413         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
8414         to call XRegisterIMInstantiateCallback with correct types.
8415
8416         * gui-x.c (button_item_to_widget_value): Type correctness.
8417
8418         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
8419
8420         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
8421         (xbm_instantiate_1): Type correctness.
8422         (BUILD_GLYPH_INST):  Type correctness.
8423
8424         * fileio.c (Fsubstitute_in_file_name): Type correctness.
8425
8426         * file-coding.c:
8427         (decode_coding_sjis):
8428         (decode_coding_big5):
8429         (decode_coding_ucs4):
8430         (decode_coding_utf8):
8431         (decode_coding_iso2022):
8432         (decode_coding_no_conversion):
8433         Make all decoding functions take an Extbyte * arg.
8434         (encode_coding_sjis):
8435         (encode_coding_big5):
8436         (encode_coding_ucs4):
8437         (encode_coding_utf8):
8438         (encode_coding_iso2022):
8439         (encode_coding_no_conversion):
8440         Make all encoding functions take a Bufbyte * arg.
8441         Use size_t instead of unsigned int for memory sizes.
8442         Only cast to unsigned char whenever dereferencing Extbyte *.
8443
8444         * doc.c (unparesseuxify_doc_string): Type correctness.
8445
8446         * console-x.c (split_up_display_spec):
8447         Rewrite without using details of internal string representation.
8448         (x_semi_canonicalize_device_connection): Type correctness.
8449
8450         * config.h.in:
8451         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
8452         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
8453         (HAVE_XFREE386): Removed.
8454
8455         * buffer.h (DEC_CHARPTR): `const' correctness.
8456         (bufbyte_strcmp): New.
8457         (bufbyte_memcmp): New.
8458
8459         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
8460
8461         * buffer.h (XCHAR_OR_CHAR_INT):
8462         Always use inline function.
8463         Remove redundant type checking assert() - XINT will abort quite nicely.
8464
8465 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
8466
8467         * search.c (Freplace_match): Set newtext to an empty string.
8468
8469 2000-10-10  Martin Buchholz  <martin@xemacs.org>
8470
8471         * s/decosf1-3.h: Remove #include of stropts.h
8472         * s/ptx.h: Remove #include of stropts.h
8473         * s/usg5-4.h: Remove #include of stropts.h
8474         * sysproc.h:
8475         * config.h.in:
8476         Use stropts.h, not sys/stropts.h.
8477         Use strtio.h, not sys/strtio.h.
8478
8479 2000-10-04  Martin Buchholz <martin@xemacs.org>
8480
8481         * XEmacs 21.2.36 is released.
8482
8483 2000-09-21  Andy Piper  <andy@xemacs.org>
8484
8485         * glyphs-x.c (x_redisplay_widget): make sure non-structural
8486         changes still involve copying the widget tree.
8487         (update_widget_face): make sure a change is register in the widget
8488         tree. Call update_tab_widget_face appropriately.
8489         (update_tab_widget_face): ditto.
8490         (x_tab_control_redisplay): make sure non-structural changes still
8491         involve copying the widget tree.
8492
8493 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
8494
8495         * lread.c (locate_file): Check the path element is non-nil.
8496
8497 2000-10-02  Martin Buchholz  <martin@xemacs.org>
8498
8499         * lisp.h: Warning suppression for SCO compilers.
8500
8501         * redisplay-tty.c (reset_tty_modes): Fix crash.
8502         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
8503
8504 2000-09-27  Martin Buchholz  <martin@xemacs.org>
8505
8506         Big signal/process handling overhaul.  Bugs fixed:
8507         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
8508         M-x comint-kill-subjob should work for both values nil and t of
8509         process-connection-type. It was broken on most platforms.
8510         Testing on Irix and Cygwin still needed.  Other plaforms tested.
8511         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
8512         * process-unix.c: Signal/Process handling overhaul.
8513         (pty_name): make 64 bytes, as `expect' does, for paranoia.
8514         (allocate_pty): Use all available modern methods of allocating
8515         ptys, falling back to old style BSD allocation as a last resort.
8516         Use allegedly more secure Unix98 pty allocation by default.
8517         (allocate_pty_the_old_fashioned_way): New. the last resort.
8518         (unix_create_process): Push ptem, ldterm, ttcompat where
8519         available.  Autoconfiscate.
8520         (try_to_initialize_subtty): New.
8521         (unix_kill_child_process): Proper signal handling for ptys on most
8522         platforms, using special knowledge of AIX, BSD, etc...
8523         (unix_create_process): Always disconnect_controlling_terminal() for
8524         subprocesses, whether using ptys or not.
8525         * process.h: Remove old getpt-dependent PTY code.
8526         * process.c (Fprocess_send_signal): New, obvious generic function.
8527         (decode_signal): New.
8528         (Finterrupt_process):
8529         (Fkill_process):
8530         (Fquit_process):
8531         (Fstop_process):
8532         (Fcontinue_process):
8533         (Fsignal_process): Use decode_signal.
8534         (process_send_signal):
8535         Many docstring corrections.
8536         Allow any signal to be sent to a process object.
8537         * config.h.in: Add symbols for big signal/process overhaul.
8538         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
8539         * sysproc.h: Include process-related headers, where available:
8540         sys/stropts.h sys/strtio.h pty.h libutil.h
8541         * s/irix4-0.h:
8542         * s/irix5-0.h:
8543         * s/cygwin32.h:
8544         * s/gnu.h:
8545         * s/linux.h:
8546         * s/hpux.h:
8547         * s/aix3-1.h:
8548         Remove old S&M pty stuff.
8549         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
8550         * systty.h: Simplify cpp hackery, improve comments.
8551         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
8552
8553         * editfns.c (Fformat_time_string):
8554         Be a little more paranoid with the return value of ctime.
8555
8556         * fileio.c (check_executable):
8557         (check_writable):
8558         Use symbolic constants X_OK, W_OK.
8559
8560         * console-x.c (split_up_display_spec): Fix a warning.
8561
8562 2000-10-02  Martin Buchholz  <martin@xemacs.org>
8563
8564         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
8565         * ntproc.c (sys_spawnve): make_string ==> build_string
8566         Small clarity improvements.
8567
8568 2000-09-30  Martin Buchholz  <martin@xemacs.org>
8569
8570         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
8571
8572         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
8573
8574         * config.h.in (HAVE_STRCASECMP): Remove.
8575
8576 2000-09-29  Martin Buchholz  <martin@xemacs.org>
8577
8578         * redisplay-output.c (redisplay_output_pixmap):
8579         Cleaner and possibly more 64-bit correct code.
8580
8581 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
8582
8583         * dumper.c (pdump_load_finish): move restoration of
8584         `noninteractive1' to emacs.c (main_1).
8585         * emacs.c (main_1): protect LISP-visible command-line flags
8586         from pdump_load().
8587
8588 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
8589
8590         * Makefile.in.in (versionclean):  Use EXE_TARGET and
8591         DUMP_TARGET instead of literal program names.
8592
8593 2000-09-20  Martin Buchholz  <martin@xemacs.org>
8594
8595         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
8596
8597 2000-09-19  Martin Buchholz  <martin@xemacs.org>
8598
8599         * *: Spelling mega-patch
8600
8601 2000-09-19  Martin Buchholz  <martin@xemacs.org>
8602
8603         * fns.c (bad_bad_turtle):
8604         Delete "Eek!" comment, since we fixed the bug to which it refers.
8605
8606 2000-09-16  Martin Buchholz  <martin@xemacs.org>
8607
8608         * alloca.c: Replace REGISTER with register.
8609
8610 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
8611
8612         * file-coding.c (ucs_to_char): Use countof.
8613
8614 2000-09-16  Martin Buchholz  <martin@xemacs.org>
8615
8616         * file-coding.c: (ucs_to_char):
8617         (complex_vars_of_file_coding):
8618         Use countof instead of sizeof.
8619         Use CHECK_NATNUM instead of CHECK_INT.
8620
8621         * sysdep.c (strcasecmp): Remove.
8622         * device-x.c (ascii_strcasecmp): New.
8623         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
8624         Avoid using non-standard non-portable strcasecmp.
8625
8626 2000-09-16  Martin Buchholz  <martin@xemacs.org>
8627
8628         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
8629         * font-lock.c: remove reference to emacsfns.h.
8630         * search.c: small doc improvement.
8631         * event-Xt.c: correct file names in comments.
8632         * console-x.h Correct file names in comments.
8633         * frame.c: Correct file names in comments.
8634         * event-stream.c: remove Energize from comments.
8635
8636 2000-09-15  Martin Buchholz  <martin@xemacs.org>
8637
8638         * symeval.h (DEFERROR_STANDARD):
8639         (DEFERROR):
8640         (DEFSYMBOL):
8641         (DEFSYMBOL_NO_DUMP):
8642         (DEFSYMBOL_MULTIWORD_PREDICATE):
8643         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
8644         (DEFKEYWORD):
8645         The construct &##name is not sensible C.
8646         Fixes compilation errors with Unixware native compiler.
8647
8648 2000-09-14  Martin Buchholz  <martin@xemacs.org>
8649
8650         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
8651         (next_frame_internal): Removed.  We now just have next_frame.
8652         (next_frame):
8653         Write a simpler and cleaner one-pass algorithm.
8654         Remove called_from_delete_device arg and #ifdefed-out code.
8655         (previous_frame):
8656         Renamed from prev_frame.  Update callers.
8657         Cleaned up to have an analogous implementation to next_frame.
8658         (other_visible_frames_internal): Remove the
8659         called_from_delete_device bogus arg, and hence, remove this
8660         function.  Just use other_visible_frames().
8661
8662         * window.c (Fnext_window):
8663         Prettify docstring.
8664         Since next_frame() is guaranteed to return a frame, remove check
8665         for nil inserted in previous patch.
8666         (Fprevious_window):
8667         Prettify docstring.
8668         Make code look more like Fnext_window.
8669         (window_loop):
8670         Respect the `console' arg when iterating through windows.
8671         Fixes bug: (get-buffer-window buffer t device) not respecting
8672         the `device' arg.
8673         This function needs more work, as others have pointed out.
8674
8675         * frame.h: Rename prev_frame to previous_frame.
8676         device_matches_console_spec no longer takes a `frame' arg.
8677
8678         * s/gnu.h:
8679         * s/linux.h:
8680         * s/hpux.h:
8681         Use EMACS_BLOCK_SIGNAL instead of sigblock.
8682         From "Golubev I. N." <gin@mo.msk.ru>.
8683
8684         * make-src-depend: Fix typo.
8685
8686 2000-09-13  Martin Buchholz  <martin@xemacs.org>
8687
8688         * window.c (Fnext_window):
8689         next_frame() might return nil, not a frame.
8690         Fixes this crash:
8691         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
8692
8693         * frame.c (next_frame_internal):
8694         We've passed a frame if we've passed its device.
8695         Fixes this crash:
8696         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
8697 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
8698
8699 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
8700
8701         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
8702         Allow option to suppress accelerators in menu/dialog items.
8703         (populate_or_checksum_helper): Pass dialog title through above.
8704
8705 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
8706
8707         * event-msw.c (mswindows_key_to_emacs_keysym):
8708         Add "pause" key, fix "menu" key.
8709
8710 2000-09-09  Martin Buchholz  <martin@xemacs.org>
8711
8712         * eval.c (reinit_vars_of_eval):
8713         Increase max_lisp_eval_depth to 1000,
8714         required for thai-xtis.el to byte-compile under some circumstances.
8715
8716 2000-09-04  Martin Buchholz  <martin@xemacs.org>
8717
8718         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
8719         From Kenichi Handa.
8720
8721 2000-09-01  Martin Buchholz  <martin@xemacs.org>
8722
8723         * make-src-depend: Make the generated Makefiles smaller.
8724
8725         * s/hpux.h (SETUP_SLAVE_PTY):
8726         Provide a %d in the format string for the errno argument.
8727
8728         * editfns.c (Ftemp_directory):
8729         Warning fix.
8730         Avoid buffer overrun on very long file name.
8731
8732         * input-method-xlib.c (XIM_init_device):
8733         6th parameter of XRegisterIMInstantiateCallback has different
8734         pointer types on different OSes, so simply cast to (void *).
8735
8736         * unexhp9k800.c: Warning fixes.  Fiddly changes.
8737
8738         * sysdll.c (dll_open):
8739         shl_load will hang hard if passed a NULL filename.
8740         Simply return NULL for compatibility with dlopen.
8741         * sysdll.c: Conform to XEmacs coding standards.
8742
8743         * sysdep.c (get_pty_max_bytes):
8744         Support pty input lines longer than 512 bytes on HP-UX 10.20.
8745
8746 2000-08-31  Martin Buchholz  <martin@xemacs.org>
8747
8748         * tooltalk.c: Add #include <syssignal.h>
8749
8750 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
8751
8752         * s/hpux.h: Don't use undefined function sigunblock().
8753
8754 2000-08-31  Martin Buchholz  <martin@xemacs.org>
8755
8756         * config.h.in: Add HAVE_BALLOON_HELP.
8757         * emacs.c: Use HAVE_BALLOON_HELP.
8758         * Makefile.in.in (x_objs):
8759         Make Balloon Help conditional on finding shape.h.
8760
8761 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
8762
8763         * syntax.c (regex_emacs_buffer_p): New variable.
8764         * syntax.h (regex_emacs_buffer_p): extern.
8765         * search.c (looking_at_1):
8766         (string_match_1):
8767         (fast_string_match):
8768         (search_buffer): Set regex_emacs_buffer_p.
8769         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
8770         when before_dot, at_dot, after_dot.
8771
8772 2000-08-23  Andy Piper  <andy@xemacs.org>
8773
8774         * gui-x.c (popup_selection_callback): Only set action_occurred
8775         when we really have an image instance.
8776         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
8777
8778 2000-08-23  Andy Piper  <andy@xemacs.org>
8779
8780         * gui-msw.c (mswindows_handle_gui_wm_command): set
8781         action_occurred.
8782         * gui-x.c (popup_selection_callback): ditto.
8783
8784         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
8785         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
8786         (struct Lisp_Image_Instance): add action_occurred flag.
8787
8788         * glyphs.c (redisplay_subwindow): use action_occurred flag.
8789         (image_instance_changed): ditto.
8790         (reset_frame_subwindow_instance_cache): only unmap windows - do
8791         not remove them from the cache also.
8792
8793         * glyphs-widget.c (tab_control_update): better debug.
8794         (progress_gauge_update): ditto.
8795         (layout_update): ditto.
8796         (layout_instantiate): ditto.
8797         (tab_control_order_only_changed): cope with null pending items.
8798
8799         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
8800         debug. Force selection of an item when an action occurred. Cope
8801         with null pending_items.
8802         (mswindows_progress_gauge_redisplay): better debug.
8803         * glyphs-x.c (x_tab_control_redisplay): ditto.
8804
8805         * redisplay.c (redisplay_frame): reset the frame cache if the
8806         frame is garbaged.
8807
8808         * window.c (Fset_window_configuration): potentially re-enable
8809         frame cache reset.
8810         (window_unmap_subwindows): need to finalize instances here since
8811         it is only used in mark_window_as_deleted.
8812
8813 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
8814
8815         * nas.c (SndOpenDataForReading):
8816         nas.c (WaveOpenDataForReading):
8817         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
8818         Somehow escaped from the 2000-08-14 patch.
8819
8820 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
8821
8822         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
8823         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
8824
8825 2000-08-21  Andy Piper  <andy@xemacs.org>
8826
8827         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
8828         window if it is not already displayed.
8829
8830         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
8831         it is not already displayed.
8832
8833         * window.c (Fset_window_configuration): don't reset the frame
8834         cache.
8835
8836         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
8837         instances from the frame cache if we are actually finalizing them.
8838         (reset_frame_subwindow_instance_cache): reset frame cache only
8839         after unmapping everything.
8840         (map_subwindow): set displayed flag after mapping.
8841
8842 2000-08-21  Martin Buchholz  <martin@xemacs.org>
8843
8844         * data.c (indirect_function):
8845         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
8846
8847         * eval.c (function_argcount):
8848         Use original function when signaling errors.
8849
8850 2000-08-18  Andy Piper  <andy@xemacs.org>
8851
8852         * frame.c (delete_frame_internal): use new
8853         free_frame_subwindow_instances name.
8854
8855         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
8856         (add_tab_item): make return type correct.
8857         (mswindows_tab_control_instantiate): assert index of tab.
8858         (mswindows_tab_control_redisplay): Re-code to use
8859         gui_item_equal_sans_selected and gui_item_list_find_selected.
8860
8861         * glyphs-widget.c (tab_control_update): Correct comment.
8862
8863         * window.c (window_unmap_subwindows): use new
8864         unmap_subwindow_instance_cache_mapper.
8865         (window_unmap_subwindows_cache_mapper): deleted.
8866         (Fset_window_configuration): comparisons should now be with
8867         EQ. Preserve the subwindow instance cache across configuration
8868         changes.
8869         (allocate_window): ditto.
8870         (make_dummy_parent): ditto.
8871
8872         * glyphs.c (free_frame_subwindow_instances): rename from
8873         free_frame_subwindow_instance_cache. finalize all instances rather
8874         than just those in the display cache.
8875         (finalize_all_subwindow_instances): walk windows unmapping and
8876         finalizing subwindows.
8877         (unmap_subwindow_instance_cache_mapper): moved from
8878         window.c. Allow finalization as well as unmapping.
8879
8880         * gui.c (gui_item_list_find_selected): new function.
8881
8882         * gui.h (gui_item_list_find_selected): declare.
8883
8884         * glyphs-x.c (x_tab_control_redisplay): pick tab
8885         explicitly. Re-code to use gui_item_equal_sans_selected and
8886         gui_item_list_find_selected.
8887
8888         * glyphs-x.h: add lwlib-utils.h
8889
8890         * buffer.c (Frecord_buffer): undo previous change.
8891
8892 2000-08-09  Vin Shelton  <acs@xemacs.org>
8893
8894         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
8895         possible.  Create temporary files more securely.  The patch was
8896         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
8897         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
8898         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
8899         for details.
8900
8901 2000-08-07  Ben Wing  <ben@xemacs.org>
8902
8903         * getloadavg.c: remove duplicate (and windows-breaking)
8904         includes of fcntl.h and sys/file.h.
8905
8906         * nt.c: remove duplicate getloadavg() definition.
8907
8908         * sysdll.h (Qdll_filename_encoding): add missing stand-in
8909         encodings.
8910
8911 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
8912
8913         * eval.c (function_argcount): If function needs to be autoloaded
8914         actually use the loaded definition.
8915         GCPRO function.
8916
8917 2000-08-05  Ben Wing  <ben@xemacs.org>
8918
8919         * getloadavg.c: add prototype for getloadavg().  remove
8920         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
8921         of the code).  remove duplicate header includes.
8922
8923         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
8924
8925         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
8926         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
8927         useful load average.
8928
8929         * alloc.c (reinit_alloc_once_early): removed references to
8930         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
8931         the lisp vars are the only things referencing the malloc_sbrk_*
8932         vars, and they were already if 0'd out.  these vars only exist
8933         in the older malloc.c, which is basically unused, and they're
8934         only for informational purposes.
8935
8936         * m\*.h: removed useless VIRT_ADDR_VARIES.
8937
8938         * m\powerpc.h: removed stray NO_ARG_ARRAY.
8939
8940 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
8941
8942         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
8943         color if the image is a mono pixmap.
8944
8945 2000-07-30  Ben Wing  <ben@xemacs.org>
8946
8947         * Makefile.in.in (release):
8948         Remove stray @.
8949
8950         * buffer.c (directory_is_current_directory):
8951         * dired-msw.c (mswindows_get_files):
8952         * dired.c:
8953         * dired.c (Fdirectory_files):
8954         * dired.c (file_name_completion_stat):
8955         * dired.c (Ffile_attributes):
8956         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
8957         preprocessor tricks, to avoid problems on some machines
8958         (e.g. SCO).
8959
8960         * callproc.c (egetenv): GC docs.
8961
8962         * console-msw.h:
8963         * console-msw.h (struct mswindows_dialog_id):
8964         * lrecord.h (lrecord_type):
8965         New object for use with MSW dialogs.
8966
8967         * console.h (struct console_methods):
8968         New enable/disable frame methods, for proper modal dialogs.
8969
8970         * device-msw.c (msprinter_default_printer): Fix to follow
8971         proper Mule conventions.
8972
8973         * device-msw.c:
8974         * device-msw.c (signal_open_printer_error):
8975         * device-msw.c (msprinter_init_device):
8976         * device-msw.c (ensure_not_printing):
8977         * device-msw.c (plist_get_margin):
8978         * device-msw.c (Fmsprinter_select_settings):
8979         * device-msw.c (finalize_devmode):
8980         * device-msw.c (Fmsprinter_settings_despecialize):
8981         * device-msw.c (signal_enum_priner_error):
8982         * extents.c (decode_extent):
8983         * extents.c (decode_map_extents_flags):
8984         * extents.c (decode_extent_at_flag):
8985         * extents.c (Fextent_at):
8986         * extents.c (Fextents_at):
8987         * extents.c (symbol_to_glyph_layout):
8988         [[[[2]]]] Use structured errors.
8989
8990         * dialog-msw.c:
8991         * dialog-msw.c (mswindows_is_dialog_msg):
8992         * dialog-msw.c (mark_mswindows_dialog_id):
8993         * dialog-msw.c (dialog_proc):
8994         * dialog-msw.c (handle_question_dialog_box):
8995         * dialog-msw.c (syms_of_dialog_mswindows):
8996         Define new object to clean up marking; use it as a dialog identifier.
8997         Call new delete-dialog-box-hook.
8998
8999         * dialog-x.c (dbox_selection_callback):
9000         * dialog-x.c (dbox_descriptor_to_widget_value):
9001         * dialog-x.c (x_make_dialog_box_internal):
9002         Call new delete-dialog-box-hook.
9003         Return an id.
9004
9005         * dialog.c:
9006         * dialog.c (syms_of_dialog):
9007         * dialog.c (vars_of_dialog):
9008         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
9009
9010         * eval.c:
9011         * eval.c (signal_call_debugger):
9012         when noninteractive, output stack traces on the console instead
9013         of in a (never-seen) buffer.
9014
9015         * eval.c (signal_type_error):
9016         * eval.c (invalid_argument_2):
9017         * lisp.h:
9018         new funs for use w/structured errors.
9019
9020         * event-Xt.c:
9021         * event-Xt.c (x_to_emacs_keysym):
9022         * event-Xt.c (describe_event):
9023         * event-Xt.c (emacs_Xt_event_handler):
9024         * event-Xt.c (vars_of_event_Xt):
9025         * event-msw.c:
9026         * event-msw.c (mswindows_wnd_proc):
9027         * event-msw.c (vars_of_event_mswindows):
9028         rename {x,mswindows}-debug-events to debug-{}-events for
9029         consistency with other debug-foo variables.
9030
9031         * event-stream.c:
9032         document next-event more clearly.
9033
9034         * fileio.c (Ffile_name_directory):
9035         * fileio.c (Ffile_name_nondirectory):
9036         * fileio.c (Funhandled_file_name_directory):
9037         * fileio.c (file_name_as_directory):
9038         * fileio.c (Ffile_name_as_directory):
9039         * fileio.c (directory_file_name):
9040         * fileio.c (Fdirectory_file_name):
9041         * fileio.c (Fmake_temp_name):
9042         * fileio.c (Ffile_truename):
9043         * fileio.c (Fsubstitute_in_file_name):
9044         * fileio.c (expand_and_dir_to_file):
9045         * fileio.c (barf_or_query_if_file_exists):
9046         * fileio.c (check_executable):
9047         * fileio.c (Ffile_exists_p):
9048         * fileio.c (Ffile_writable_p):
9049         * fileio.c (Ffile_directory_p):
9050         * fileio.c (Ffile_regular_p):
9051         * fileio.c (Ffile_modes):
9052         * fileio.c (Ffile_newer_than_file_p):
9053         * fileio.c (Fverify_visited_file_modtime):
9054         * fileio.c (Fset_visited_file_modtime):
9055         * fileio.c (auto_save_1):
9056         (1). (2).
9057         fix up gcpro's.
9058
9059         * frame-msw.c:
9060         * frame-msw.c (mswindows_init_frame_1):
9061         * frame-msw.c (mswindows_enable_frame):
9062         * frame-msw.c (error_frame_unsizable):
9063         * frame-msw.c (msprinter_init_frame_1):
9064         * frame-msw.c (msprinter_init_frame_3):
9065         * frame-msw.c (console_type_create_frame_mswindows):
9066         (2).
9067         implement new enable/disable frame methods.
9068
9069         * frame-x.c:
9070         * frame-x.c (x_enable_frame):
9071         * frame-x.c (console_type_create_frame_x):
9072         implement new enable/disable frame methods.
9073
9074         * frame.c:
9075         * frame.c (Fdisable_frame):
9076         * frame.c (syms_of_frame):
9077         * frame.h (struct frame):
9078         implement new enable/disable frame methods/functions.
9079
9080         * general-slots.h:
9081         add initial-focus.
9082
9083         * glyphs-msw.c (mswindows_widget_instantiate):
9084         comment that initial-focus should be implemented.
9085
9086         * glyphs-widget.c:
9087         * glyphs-widget.c (check_valid_instantiator):
9088         * glyphs-widget.c (check_valid_orientation):
9089         * glyphs-widget.c (check_valid_tab_orientation):
9090         * glyphs-widget.c (check_valid_justification):
9091         * glyphs-widget.c (check_valid_border):
9092         * glyphs-widget.c (check_valid_callback):
9093         * glyphs-widget.c (check_valid_int_or_function):
9094         * glyphs-widget.c (check_valid_string_or_vector):
9095         * glyphs-widget.c (check_valid_item_list_1):
9096         * glyphs-widget.c (widget_validate):
9097         * glyphs-widget.c (combo_box_validate):
9098         * glyphs-widget.c (widget_instantiate):
9099         * glyphs-widget.c (syms_of_glyphs_widget):
9100         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
9101         * glyphs-widget.c (image_instantiator_combo_box):
9102         * glyphs-widget.c (image_instantiator_scrollbar):
9103         * glyphs-widget.c (image_instantiator_tab_control):
9104         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
9105         (2).
9106         support (unimplemented) keyword initial-focus.
9107         reindent long macros.
9108
9109         * glyphs-x.c (x_redisplay_widget):
9110         * glyphs-x.c (x_button_instantiate):
9111         * glyphs-x.c (x_button_redisplay):
9112         * glyphs-x.c (x_progress_gauge_instantiate):
9113         * glyphs-x.c (x_edit_field_instantiate):
9114         * glyphs-x.c (x_combo_box_instantiate):
9115         * glyphs-x.c (x_tab_control_instantiate):
9116         * glyphs-x.c (x_label_instantiate):
9117         * gui-x.c:
9118         * gui-x.c (button_item_to_widget_value):
9119         * gui-x.c (gui_items_to_widget_values_1):
9120         * gui-x.c (gui_item_children_to_widget_values):
9121         * gui-x.c (gui_items_to_widget_values):
9122         * gui-x.h:
9123         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9124         add new flag to gui-parsing routines to indicate whether
9125         accelerator specs should be supported.
9126
9127         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
9128
9129         * glyphs.h (struct Lisp_Image_Instance):
9130         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
9131         add initial-focus flag.
9132
9133         * gui.c:
9134         * gui.c (syms_of_gui):
9135         * gui.c (vars_of_gui):
9136         clean up menu-no-selection-hook.
9137
9138         * gui.h:
9139         support delete-dialog-box-hook.
9140
9141         * lread.c (Fload_internal):
9142         * lread.c (locate_file_in_directory_mapper):
9143         (1).
9144
9145         * lrecord.h:
9146         * lrecord.h (struct toolbar_button):
9147         * lrecord.h (syms_of_toolbar):
9148         document how to create a new object.
9149
9150         * menubar-msw.c (mswindows_char_is_accelerator):
9151         may be called on frames w/o menus.
9152
9153         * menubar.c (vars_of_menubar):
9154         clean up :filter docs.
9155
9156         * nt.c (readdir):
9157         * ntproc.c:
9158         (1).
9159
9160         * process-nt.c:
9161         * process-nt.c (validate_signal_number):
9162         * process-nt.c (signal_cannot_launch):
9163         * process-nt.c (nt_create_process):
9164         * process-nt.c (nt_send_process):
9165         * process-nt.c (nt_kill_child_process):
9166         * process-nt.c (nt_open_network_stream):
9167         * process-nt.c (syms_of_process_nt):
9168         (2).
9169         delete quote-handling.  call new lisp code that does it better.
9170
9171         * process-unix.c (connect_to_file_descriptor):
9172         * process-unix.c (allocate_pty):
9173         * process-unix.c (unix_send_process):
9174         * process-unix.c (unix_kill_child_process):
9175         * process-unix.c (unix_open_network_stream):
9176         * process-unix.c (unix_open_multicast_group):
9177         (1). (2).
9178
9179         * process.c:
9180         * process.c (Fstart_process_internal):
9181         (2).  need to canonicalize process path even if absolute.
9182
9183         * select-msw.c (symbol_to_ms_cf):
9184         * select-msw.c (ms_cf_to_symbol):
9185         * select-msw.c (cf_is_autofreed):
9186         * select-msw.c (mswindows_destroy_selection):
9187         * select.c:
9188         * select.c (syms_of_select):
9189         * select.h:
9190         support dibv5, fix bugs. (from Mike Alexander)
9191
9192         * select.c (Fget_selection_internal):
9193         * select.c (select_convert_out):
9194
9195         * sysdep.c:
9196         * sysdep.c (xemacs_stat):
9197         renamed.
9198
9199         * sysdep.c (mkdir):
9200         * sysdep.c (rmdir):
9201         but keep original stat() here because we provide encapsulation
9202         around these funs.
9203
9204         * sysfile.h:
9205         * sysfile.h (fstat):
9206         remove stat garbage.
9207
9208         * syswindows.h:
9209         fix X/MSW conflict.
9210         don't include tchar.h.  it's inappropriate because it makes
9211         compile-time distinctions when we want runtime distinctions.
9212         (we provide our own tchar replacements)
9213
9214         * toolbar.c:
9215         use default object printer for toolbar-button.
9216
9217         * unexcw.c:
9218         make sure we don't encapsulate.
9219
9220         * window.c (vars_of_window):
9221         emphasize that temp-buffer-show-hook is obsolete.
9222
9223 2000-08-05  Martin Buchholz  <martin@xemacs.org>
9224
9225         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
9226         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
9227
9228         * events.c (Fevent_timestamp_lessp):
9229         Not 64-bit clean.  Use EMACS_INT, not int.
9230
9231 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
9232
9233         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
9234         unsigned int and changed the last enum to
9235         lrecord_type_last_built_in_type.
9236         (lrecord_implementations_table): changed prototype to know how
9237         long the array is supposed to be.
9238         (lrecord_type_count): new unsigned int to keep track of the
9239         current number of lisp lrecord types.
9240         (DEFINE_EXTERNAL_LRECORD):
9241         (DECLARE_EXTERNAL_LRECORD): Added these two for external
9242         dynamic-modules to declare new lisp types. They are the same
9243         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
9244         int for each new type, and increment lrecord_type_count by 1.
9245
9246         * alloc.c (lrecord_implementations_table): Changed to reference
9247         lrecord_type_last_built_in_type for the size of the array.
9248         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
9249
9250 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
9251
9252         * glyphs.h (check_valid_item_list): Renamed from
9253         check_valid_item_list_1.
9254
9255 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
9256
9257         * select.c (Qselect_coerce): New.
9258         * select.c (Vselection_coercion_alist): New.
9259         * select.c (syms_of_select): Declare.
9260         * select.c (get-selection-internal): Use it.
9261         Use the new select-coerce functionality.
9262
9263         * select.c (select_coerce): New.
9264         * select.h (select_coerce): Declare.
9265         New function to coerce one type of data into another.
9266
9267 2000-08-03  Martin Buchholz  <martin@xemacs.org>
9268
9269         * callproc.c (Fcall_process_internal):
9270         (Fcall_process_internal):
9271         * process-unix.c (unix_create_process):
9272         Save and restore the value of errno, so that error messages are accurate.
9273
9274 2000-08-01  Martin Buchholz  <martin@xemacs.org>
9275
9276         * elhash.c (print_hash_table):
9277         Fix printing of hash tables to also use `key-and-value' instead of `t'.
9278         Prettify docstrings and indentation.
9279
9280 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
9281
9282         * window.c (Fwindow_pixel_edges): Subtract frame border and
9283         gutter size.
9284
9285 2000-07-31  Andy Piper  <andy@xemacs.org>
9286
9287         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
9288         will acknowledge the change.
9289
9290         * glyphs.h: declare tab_control_order_only_changed.
9291
9292         * glyphs-x.c (x_tab_control_redisplay): use
9293         tab_control_order_only_changed.
9294
9295         * glyphs-widget.c (tab_control_order_only_changed): new function.
9296
9297         * glyphs-msw.c (mswindows_tab_control_redisplay): use
9298         tab_control_order_only_changed.
9299
9300         * gui.c (gui_item_equal_sans_selected): new function.
9301         (gui_item_equal): use it.
9302
9303         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
9304         :properties in favor of :items..
9305
9306         * glyphs-widget.c (check_valid_item_list): rename from
9307         check_valid_item_list_1.
9308         (check_valid_item_list_1): renamed.
9309         (combo_box_validate): deprecate :properties in favor of :items.
9310         (widget_instantiate): ditto.
9311         (tab_control_update): ditto.
9312         (image_instantiator_combo_box): ditto.
9313         (image_instantiator_tree_view): ditto.
9314         (image_instantiator_tab_control): ditto.
9315         (layout_post_instantiate): remove dead code.
9316
9317         * print.c (debug_print_no_newline): only write to debugger if in
9318         WIN32_NATIVE.
9319
9320         * elhash.c (Fmake_hash_table): update doc string.
9321
9322         * event-msw.c (mswindows_wnd_proc): don't allow processing of
9323         messages whilst in GC. This at least stops XEmacs crashing but has
9324         the potential for wierd behaviour.
9325
9326 2000-07-31  Martin Buchholz  <martin@xemacs.org>
9327
9328         * config.h.in:
9329         Make existence of s&m files optional.
9330
9331         * s/bsd386.h: Remove HAVE_GETLOADAVG.
9332         * s/freebsd.h: Remove HAVE_GETLOADAVG.
9333         * s/gnu.h: Remove HAVE_GETLOADAVG.
9334         * s/netbsd.h: Remove HAVE_GETLOADAVG.
9335         * s/sol2.h: Remove HAVE_GETLOADAVG.
9336         * lisp.h: Remove getloadavg() declaration.
9337         * fns.c:
9338         Include <sys/loadavg.h> if available.
9339         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
9340         * config.h.in:  Group together getloadavg()-related macros.
9341         Use only configure-time tests to detect getloadavg().
9342
9343 2000-07-30  Martin Buchholz  <martin@xemacs.org>
9344
9345         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
9346
9347 2000-07-25  Andy Piper  <andy@xemacs.org>
9348
9349         * syswindows.h: add tchar.h for native builds.
9350
9351         * frame.c (syms_of_frame): remove set-glyph-image.
9352
9353         * general-slots.h: add Qset_glyph_image.
9354
9355         * glyphs-widget.c (layout_update): add domain arg to
9356         set-glyph-image.
9357         (syms_of_glyphs_widget): remove set-glyph-image.
9358
9359 2000-07-23  Ben Wing  <ben@xemacs.org>
9360
9361         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
9362         Vpopup_frame_list.
9363
9364 2000-07-22  Andy Piper  <andy@xemacs.org>
9365
9366         * symsinit.h: add syms_of_win32().
9367
9368         * gui-msw.c (syms_of_gui_mswindows): remove
9369         Fmswindows_shell_execute.
9370         (Fmswindows_shell_execute): moved to win32.c.
9371
9372         * emacs.c (main_1): add syms_of_win32 ().
9373
9374         * win32.c (init_potentially_nonexistent_functions): rewrite in
9375         compiler-friendly terms.
9376         (Fmswindows_shell_execute): move here from gui-msw.c.
9377         (syms_of_win32): new.
9378
9379         * device-msw.c (Fmswindows_printer_list): clean up args to
9380         EnumPrinters.
9381         Don't include tchar under cygwin or mingw.
9382         (msprinter_default_printer): make cygwin-friendly.
9383
9384 2000-07-21  Andy Piper  <andy@xemacs.org>
9385
9386         * glyphs-widget.c (image_instantiator_tree_view): use tab
9387         control's update function.
9388         (layout_property): new function. Retrieve items.
9389
9390         * glyphs-msw.c (mswindows_tree_view_redisplay): new
9391         function. Re-populate the tree view from the pending items.
9392
9393         * glyphs.c (instantiate_image_instantiator): Make sure the domain
9394         is designated the parent if the domain is an image instance. This
9395         is needed so that dirtiness can be cascade up the hierarchy and
9396         thus for layout children to be redisplayed correctly.
9397         (allocate_image_instance): rename glyph -> parent.
9398
9399         * redisplay.h: change redisplay_output_layout signature.
9400
9401         * redisplay-msw.c (mswindows_output_display_block): use domain
9402         arg.
9403
9404         * redisplay-x.c (x_output_display_block): use domain arg.
9405
9406 2000-07-10  Andy Piper  <andy@xemacs.org>
9407
9408         * window.c (Fset_window_configuration): add comment.
9409
9410         * redisplay-output.c (compare_runes):
9411         (redisplay_output_subwindow): redisplay rather than update subwindow.
9412         (redisplay_output_layout): ditto.
9413
9414         * redisplay-msw.c (mswindows_frame_output_end):
9415         (mswindows_frame_output_end): make defer window pos optional.
9416
9417         * lisp.h: add Flast.
9418
9419         * glyphs.h (struct image_instantiator_methods): add dest_mask top
9420         normalize method. Change update method to be for changed
9421         instantiators. Add redisplay method. Change signature of layout
9422         method.
9423         (struct Lisp_Image_Instance): add instantiator.
9424         (IMAGE_INSTANCE_INSTANTIATOR): new.
9425         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
9426         (XIMAGE_INSTANCE_INSTANTIATOR): new.
9427         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
9428
9429         * glyphs.c:
9430         (find_instantiator_differences): new function.
9431         (Fset_instantiator_property): new convenience function.
9432         (check_image_instance_structure): strictly check for vector
9433         instantiators.
9434         (normalize_image_instantiator): make non-static.
9435         (instantiate_image_instantiator): pass on dest_mask and use new
9436         signatures for image_instance_layout and friends.
9437         (mark_image_instance): mark the instantiator. Mark the subwindow
9438         face not the widget face.
9439         (image_instance_equal): add instantiator.
9440         (image_instance_hash): ditto.
9441         (allocate_image_instance): ditto.
9442         (Fset_image_instance_property): removed.
9443         (Fimage_instance_file_name): ditto.
9444         (Fcolorize_image_instance): ditto.
9445         (image_instance_layout): add offsets to be set.
9446         (update_image_instance): new function. update an image instance
9447         from its changed instantiator.
9448         (inherit_normalize): add dest_mask.
9449         (xbm_normalize): ditto.
9450         (xface_normalize): ditto.
9451         (xpm_normalize): ditto.
9452         (text_update): set_property -> update.
9453         (image_instantiate): use the glyph identity as a hash key, not the
9454         instantiator.
9455         (glyph_width): use new image_instance_layout signature.
9456         (glyph_ascent): ditto.
9457         (glyph_descent): ditto.
9458         (glyph_height): ditto.
9459         (glyph_query_geometry): ressurrect.
9460         (glyph_layout): ditto.
9461         (redisplay_subwindow): update -> redisplay.
9462         (syms_of_glyphs): add Fset_instantiator_property.
9463         (image_instantiator_format_create): set_property -> update.
9464
9465         * glyphs-x.c:
9466         (autodetect_normalize): add dest_maks to signature.
9467         (x_redisplay_subwindow): update -> redisplay.
9468         (x_redisplay_widget): ditto.
9469         (x_button_redisplay): ditto.
9470         (x_progress_gauge_redisplay): ditto.
9471         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
9472         stacking order.
9473         (console_type_create_glyphs_x): update -> redisplay.
9474         (image_instantiator_format_create_glyphs_x): ditto.
9475
9476         * glyphs-widget.c:
9477         (check_valid_instantiator): disallow glyphs in the instantiator,
9478         they must now be vectors.
9479         (check_valid_instantiator_list): ditto.
9480         (glyph_instantiator_to_glyph): use internal symbol rather than
9481         intern.
9482         (widget_update): renamed from widget_set_property. Call cascaded
9483         update methods.
9484         (redisplay_widget): renamed from update_widget.
9485         (widget_layout): image_instance_layout now takes position as well
9486         as size.
9487         (widget_normalize): ditto.
9488         (widget_instantiate): ditto.
9489         (tab_control_query_geometry) ditto.:
9490         (tab_control_update): renamed from tab_control_set_property.
9491         (progress_gauge_update): set_property -> update.
9492         (layout_normalize): rewrite so that child instantiators are
9493         normalized also.
9494         (layout_update): new function. Create glyphs from the normalized
9495         children and cope with any other layout keywords. We do not
9496         instantiate children here that will be take care of by
9497         redisplay_output_layout.
9498         (layout_instantiate): call layout_update and not much else.
9499         (layout_post_instantiate): not sure whether this is needed
9500         anymore.
9501         (layout_query_geometry): query glyph geometry rather than
9502         image_instance geometry.
9503         (layout_layout): set offsets from pass in parameters. Use glyph
9504         geometry and layout functions rather than image instance ones.
9505         (native_layout_layout): ditto.
9506         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
9507         (image_instantiator_widget): set_property -> update.
9508         (image_instantiator_buttons): ditto.
9509         (image_instantiator_progress_guage): ditto.
9510         (image_instantiator_tab_control): ditto.
9511         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
9512         (image_instantiator_layout): add update method.
9513
9514         * glyphs-msw.c (bmp_normalize):
9515         (mswindows_resource_normalize): add dest_mask so that it can be
9516         proprogated by layout_normalize.
9517         (begin_defer_window_pos): make optional because it may not be the
9518         right thing to do and it introduces differences with X.
9519         (mswindows_unmap_subwindow): ditto.
9520         (mswindows_map_subwindow): ditto.
9521         (mswindows_redisplay_subwindow): renamed from
9522         mswindows_update_subwindow.
9523         (mswindows_redisplay_widget): ditto.
9524         (mswindows_button_redisplay): renamed from
9525         mswindows_button_update. Update is now what the instantiation
9526         function does for a changed instantiator.
9527         (mswindows_progress_gauge_instantiate): set the progress value
9528         here if appropriate.
9529         (mswindows_tab_control_redisplay): cope with re-ordering of the
9530         members of the tab widget by simply selecting the new top
9531         widget. This makes things appear ok if you click on a tab.
9532         (mswindows_combo_box_instantiate): image_instance_layout now takes
9533         position as well as size.
9534         (mswindows_progress_gauge_redisplay): renamed from
9535         mswindows_progress_gauge_update.
9536         (console_type_create_glyphs_mswindows): fix update -> redisplay.
9537         (image_instantiator_format_create_glyphs_mswindows): ditto.
9538
9539         * glyphs-eimage.c (jpeg_normalize):
9540         (gif_normalize):
9541         (png_normalize):
9542         (tiff_normalize): add dest_mask so that it can be proprogated by
9543         layout_normalize.
9544
9545         * elhash.c:
9546         (print_hash_table):
9547         (hash_table_weakness_validate):
9548         (decode_hash_table_weakness):
9549         (Fhash_table_weakness):
9550         (Fhash_table_type):
9551         (syms_of_elhash): use Ben's naming scheme for hashtable types..
9552
9553         * console.h (struct console_methods): move update_* to
9554         redisplay_*.
9555
9556 2000-07-20  Ben Wing  <ben@xemacs.org>
9557
9558         * *.[ch] (XSETOBJ): remove unused middle argument.
9559         lisp-disunion.h: correct wrap_object() to one argument.
9560
9561 2000-07-15  Ben Wing  <ben@xemacs.org>
9562
9563         * s/cygwin32.h:
9564         * s/cygwin32.h (CYGWIN_CONV_PATH):
9565         Add missing logb prototype for v1.1.
9566         Use post-b20 names and alias to pre-b20 names when pre-b20.
9567
9568         * s/windowsnt.h: [5].
9569
9570 2000-07-15  Ben Wing  <ben@xemacs.org>
9571
9572         * Makefile.in.in (x_objs):
9573         * Makefile.in.in (sheap_objs):
9574         * Makefile.in.in (objs):
9575         added win32.o, cosmetic cleanups.
9576
9577         * alloc.c (Fmake_byte_code):
9578         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
9579         etc. macros which declare their own args now.
9580
9581         * alloc.c (syms_of_alloc):
9582         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
9583
9584         * buffer.c:
9585         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
9586
9587         * buffer.c (Fget_file_buffer):
9588         Fixed GCPRO problem.
9589
9590         * buffer.c (get_truename_buffer):
9591         Fixed comment about GC checking.
9592
9593         * buffer.c (syms_of_buffer):
9594         Undeclared those dedicated frame funs.
9595         [2].
9596
9597         * buffer.h:
9598         Define convenience macros for internal/external conversions.
9599         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
9600         and Qenvironment_variable_encoding for cleaner code.
9601
9602         * bufslots.h:
9603         Remove dedicated-frame; in lisp.
9604
9605         * bytecode.c (funcall_compiled_function):
9606         [1].
9607
9608         * bytecode.c (syms_of_bytecode):
9609         [2].
9610
9611         * console-msw.c:
9612         * console-msw.c (mswindows_show_console): Rewrote.
9613
9614         * console-msw.c (Fmswindows_debugging_output): New.
9615         Sends to OutputDebugString (special MSWin debugger interface).
9616
9617         * console-msw.c (Fmswindows_message_box):
9618         Fixed stupid bugs so it works when called from kill-emacs.
9619
9620         * console-msw.c (syms_of_console_mswindows):
9621         Declare Fmswindows_debugging_output.
9622
9623         * console-msw.h:
9624         New MSWin prototypes.
9625
9626         * console-msw.h (struct mswindows_frame):
9627         New entry last-click-mods for improved button-modifier support.
9628
9629         * console-msw.h (FRAME_MSWINDOWS_POPUP):
9630         New struct entry `popup' with corresponding accessor.
9631
9632         * console-x.c:
9633         * console-x.c (split_up_display_spec):
9634         * console-x.c (get_display_arg_connection):
9635         * console-x.c (x_semi_canonicalize_console_connection):
9636         * console-x.c (x_canonicalize_device_connection):
9637         [[[6]]]: Change char to more specific type.
9638         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
9639
9640         * console-x.c (x_semi_canonicalize_console_connection):
9641         * console-x.c (x_canonicalize_device_connection):
9642         [[[9]]]: Fix up error signalling to use new structured error system.
9643
9644         * console-x.h:
9645         [[[4]]]: Define codesys aliases:
9646         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
9647         Qx_color_name_encoding, Qx_display_name_encoding.
9648
9649         * console.h (struct console_methods):
9650         New method make_dialog_box_internal supersedes older
9651         popup_dialog_box method.
9652
9653         * data.c:
9654         Define many new errors, part of new structured errors.
9655
9656         * data.c (init_errors_once_early):
9657         * data.c (syms_of_data):
9658         [2].
9659
9660         * device-msw.c (mswindows_init_device):
9661         [[[5]]]: Cleanup to support NT 3.51.
9662
9663         * device-msw.c (decode_devmode): Cleanup.
9664
9665         * device-msw.c (mswindows_handle_print_setup_dialog_box):
9666         * device-msw.c (mswindows_handle_print_dialog_box):
9667         * device-msw.c (mswindows_handle_page_setup_dialog_box):
9668         * device-msw.c (syms_of_device_mswindows):
9669         Delete the dialog box primitives recently introduced by Kirill and
9670         instead interface to general dialog box interface.
9671
9672         * device-x.c:
9673         * device-x.c (compute_x_app_name):
9674         * device-x.c (x_init_device):
9675         * device-x.c (Fx_valid_keysym_name_p):
9676         * device-x.c (Fx_set_font_path):
9677         [6].
9678         [7].
9679
9680         * device.h (wrap_device): New.
9681         First of its kind; meant to replace XSETDEVICE.
9682
9683         * dialog-msw.c: Many file-dialog symbols.
9684
9685         * dialog-msw.c (mswindows_register_popup_frame): New.
9686         * dialog-msw.c (mswindows_is_dialog_msg): New.
9687         For supporting kbd traversal in dialog boxes.
9688
9689         * dialog-msw.c (dialog_proc):
9690         Support hitting ESC in dialogs.
9691
9692         * dialog-msw.c (struct):
9693         Common dialog box errors.
9694
9695         * dialog-msw.c (handle_file_dialog_box): New.
9696         Add file dialog code.
9697
9698         * dialog-msw.c (handle_question_dialog_box):
9699         Redo existing code to support new question dialog syntax.
9700
9701         * dialog-msw.c (console_type_create_dialog_mswindows):
9702         We support new dialog console method.
9703
9704         * dialog-msw.c (syms_of_dialog_mswindows):
9705         * dialog-msw.c (vars_of_dialog_mswindows):
9706         New file dialog symbols, vars.
9707
9708         * dialog-x.c:
9709         * dialog-x.c (maybe_run_dbox_text_callback):
9710         * dialog-x.c (dbox_descriptor_to_widget_value):
9711         * dialog-x.c (x_make_dialog_box_internal):
9712         * dialog-x.c (console_type_create_dialog_x):
9713         Mule-ize entire file.
9714         Redo to support question dialog syntax.
9715         [6].
9716
9717         * dialog.c:
9718         * dialog.c (Fmake_dialog_box_internal):
9719         * dialog.c (syms_of_dialog):
9720         Kill old popup-dialog-box, replace with new primitive.
9721         Just call device method or signal error.
9722
9723         * eldap.c (Fldap_open):
9724         * eldap.c (Fldap_search_basic):
9725         * eldap.c (Fldap_add):
9726         * eldap.c (Fldap_modify):
9727         [1].
9728         [7].
9729
9730         * emacs.c:
9731         * emacs.c (make_arg_list_1):
9732         * emacs.c (make_arg_list):
9733         Mule-ize call to dll_init().
9734         [6].
9735         [8].
9736
9737         * emacs.c (make_argc_argv):
9738         * emacs.c (free_argc_argv):
9739         * emacs.c (init_cmdargs):
9740         * emacs.c (main_1):
9741         * emacs.c (Fkill_emacs):
9742         * emacs.c (Fdump_emacs):
9743         Update comments about what can be used in syms_* etc.
9744         Call init_win32() when necessary.
9745         Fix up MS Win dialog box in kill-buffer to actually work right.
9746         [7].
9747
9748         * eval.c:
9749         * eval.c (For):
9750         * eval.c (Fand):
9751         * eval.c (Fprogn):
9752         * eval.c (Fprog1):
9753         * eval.c (Fprog2):
9754         * eval.c (FletX):
9755         * eval.c (Flet):
9756         * eval.c (condition_case_3):
9757         * eval.c (Feval):
9758         * eval.c (function_argcount):
9759         * eval.c (funcall_lambda):
9760         [1].
9761
9762         * eval.c (type_error): New.
9763         * eval.c (maybe_type_error): New.
9764         * eval.c (continuable_type_error): New.
9765         * eval.c (maybe_continuable_type_error): New.
9766         * eval.c (type_error_with_frob): New.
9767         * eval.c (maybe_type_error_with_frob): New.
9768         * eval.c (continuable_type_error_with_frob): New.
9769         * eval.c (maybe_continuable_type_error_with_frob): New.
9770         New functions for use with structured errors.
9771
9772         * event-Xt.c:
9773         * event-Xt.c (x_event_to_emacs_event):
9774         Buttons are now modifiers too.
9775
9776         * event-Xt.c (emacs_Xt_current_event_timestamp):
9777         Implement new event method.
9778         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
9779
9780         * event-msw.c:
9781         * event-msw.c (ntpipe_shove_writer): [5].
9782         * event-msw.c (mswindows_enqueue_mouse_button_event):
9783         * event-msw.c (mswindows_drain_windows_queue):
9784         * event-msw.c (mswindows_wnd_proc): [7].
9785         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
9786         * event-msw.c (mswindows_modifier_state):
9787         Throughout: support new button modifiers.
9788
9789         * event-msw.c (emacs_mswindows_current_event_timestamp):
9790         Implement new event method.
9791         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
9792
9793         * event-stream.c:
9794         * event-stream.c (event_stream_current_event_timestamp): New.
9795         * event-stream.c (maybe_kbd_translate): New functionality.
9796         * event-stream.c (vars_of_event_stream):
9797         Document new kbd-translate-table functionality.
9798
9799         * event-stream.c (Fcurrent_event_timestamp): New.
9800         New primitive for use in fabricated events.
9801         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
9802
9803         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
9804
9805         * events.c:
9806         * events.c (Fmake_event):
9807         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
9808         [1].
9809         [9].
9810
9811         * events.c (format_event_object): fix gcc warnings.
9812
9813         * events.c (Fevent_timestamp): Document new primitives.
9814
9815         * events.c (TIMESTAMP_HALFSPACE): New.
9816
9817         * events.c (Fevent_timestamp_lessp): New.  New primitive for
9818         comparing timestamps correctly (half-space algorithm).
9819
9820         * events.c (Fevent_modifier_bits): Doc fix.
9821
9822         * events.c (Fevent_modifiers): Major doc addition.
9823         * events.c (event_x_y_pixel_internal): Typo fix.
9824         * events.c (syms_of_events): Declare new primitives.
9825
9826         * events.h:
9827         Update long comment for button modifiers, timestamps.
9828
9829         * events.h (struct event_stream):
9830         New current_event_timestamp method.
9831
9832         * extents.c:
9833         * extents.c (extent_in_region_p):
9834         * extents.c (decode_extent):
9835         * extents.c (Fset_extent_parent):
9836         * extents.c (decode_map_extents_flags):
9837         Fix gcc warnings.
9838         [9].
9839
9840         * extents.c (struct extent_at_arg):
9841         * extents.c (decode_extent_at_flag):
9842         * extents.c (extent_at_mapper):
9843         * extents.c (extent_at_bytind):
9844         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
9845         * extents.c (Fextents_at): New primitive. [9].
9846         * extents.c (symbol_to_glyph_layout): [9].
9847         Support new primitive `extents-at'.
9848
9849
9850         * extents.c (get_text_property_bytind):
9851         extent_at_bytind has another arg.
9852         [9].
9853
9854         * extents.c (syms_of_extents): New primitive.
9855
9856         * file-coding.c (Fmake_coding_system): [1].
9857         * file-coding.c (subsidiary_coding_system): fix gcc warning
9858         * file-coding.c (syms_of_file_coding): [2].
9859
9860         * fileio.c (Fexpand_file_name):
9861         * fileio.c (Fsysnetunam):
9862         * fileio.c (Ffile_exists_p):
9863         * fileio.c (Ffile_executable_p):
9864         * fileio.c (Fverify_visited_file_modtime):
9865         Clean up GCPROing.
9866
9867         * fileio.c (syms_of_fileio): [2].
9868
9869         * filelock.c (lock_file_1):
9870         * filelock.c (current_lock_owner):
9871         * filelock.c (lock_if_free):
9872         * filelock.c (lock_file):
9873         * filelock.c (unlock_file):
9874         Clean up GCPROing.
9875
9876         * fns.c (concat): Fix gcc warning.
9877
9878         * fns.c (Fmember):
9879         * fns.c (Fold_member):
9880         * fns.c (Fmemq):
9881         * fns.c (Fold_memq):
9882         * fns.c (memq_no_quit):
9883         * fns.c (Fassoc):
9884         * fns.c (Fold_assoc):
9885         * fns.c (Fassq):
9886         * fns.c (Fold_assq):
9887         * fns.c (assq_no_quit):
9888         * fns.c (Frassoc):
9889         * fns.c (Fold_rassoc):
9890         * fns.c (Frassq):
9891         * fns.c (Fold_rassq):
9892         * fns.c (rassq_no_quit):
9893         * fns.c (Fdelete):
9894         * fns.c (Fold_delete):
9895         * fns.c (Fdelq):
9896         * fns.c (Fold_delq):
9897         * fns.c (delq_no_quit):
9898         * fns.c (Fremassoc):
9899         * fns.c (Fremassq):
9900         * fns.c (remassq_no_quit):
9901         * fns.c (Fremrassoc):
9902         * fns.c (Fremrassq):
9903         * fns.c (remrassq_no_quit):
9904         * fns.c (Freverse):
9905         * fns.c (mapcar1):
9906         [1].
9907
9908         * frame-msw.c (mswindows_init_frame_1):
9909         * frame-msw.c (mswindows_delete_frame):
9910         Register popups with dialog code so keyboard traversing works.
9911
9912         * frame-tty.c (tty_raise_frame_no_select): [1].
9913
9914         * frame-x.c:
9915         * frame-x.c (x_set_frame_text_value):
9916         * frame-x.c (x_set_frame_properties):
9917         * frame-x.c (x_create_widgets):
9918         [7].
9919
9920         * frame.c:
9921         * frame.c (Fmouse_pixel_position): Minor doc fixes.
9922
9923         * frame.h (wrap_frame): New.
9924         Macro like wrap_device.
9925
9926         * general.c:
9927         * general.c (SYMBOL):
9928         * general.c (syms_of_general):
9929         Major reorg.  This is now just a wrapper and symbols themselves
9930         are listed in general-slots.h.
9931
9932         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
9933         * glyphs-msw.c (mswindows_resource_instantiate): [5].
9934
9935         * glyphs-msw.c (mswindows_native_layout_instantiate):
9936         Add DS_CONTROL so keyboard traversal will work.
9937
9938         * glyphs-widget.c:
9939         * glyphs-widget.c (syms_of_glyphs_widget):
9940         Move some symbols to general-slots.h.
9941
9942         * glyphs-x.c:
9943         * glyphs-x.c (xbm_instantiate_1):
9944         * glyphs-x.c (x_xbm_instantiate):
9945         * glyphs-x.c (x_xface_instantiate):
9946         * glyphs-x.c (autodetect_instantiate):
9947         * glyphs-x.c (cursor_font_instantiate):
9948         * glyphs-x.c (x_update_widget):
9949         * glyphs-x.c (x_widget_instantiate):
9950         * glyphs.c (bitmap_to_lisp_data):
9951         * glyphs.c (pixmap_to_lisp_data):
9952         [7].
9953
9954         * glyphs.c (syms_of_glyphs):
9955         [2].
9956
9957         * gui-x.c:
9958         * gui-x.c (print_widget_value):
9959         * gui-x.c (menu_separator_style_and_to_external):
9960         * gui-x.c (add_accel_and_to_external):
9961         * gui-x.c (button_item_to_widget_value):
9962         * gui-x.c (gui_items_to_widget_values_1):
9963         * gui-x.c (gui_items_to_widget_values):
9964         * gui-x.c (syms_of_gui_x):
9965         * gui-x.c (vars_of_gui_x):
9966         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
9967         [9].
9968
9969         * gui-x.h:
9970         Muleize, prototype changes matching gui-x.c.
9971
9972         * gui.c:
9973         * gui.c (separator_string_p):
9974         * gui.c (gui_item_add_keyval_pair):
9975         * gui.c (make_gui_item_from_keywords_internal):
9976         * gui.c (signal_too_long_error):
9977         * gui.c (parse_gui_item_tree_item):
9978         * gui.c (syms_of_gui):
9979         * gui.c (vars_of_gui):
9980         * gui.h:
9981         menu-no-selection-hook moved here (used by MSWin).
9982         Move some symbols to general-slots.h.
9983         [6].
9984         [9].
9985
9986         * insdel.c (get_buffer_pos_char):
9987         * insdel.c (get_buffer_range_char):
9988         Add GC comments.
9989
9990         * keymap.c (keymap_lookup_directly):
9991         * keymap.c (keymap_store):
9992         * keymap.c (ensure_meta_prefix_char_keymapp):
9993         * keymap.c (describe_map):
9994         * keymap.h:
9995         Support new button modifiers.
9996
9997         * lisp-disunion.h (wrap_object):
9998         * lisp-disunion.h (XSETOBJ):
9999         Rename make_obj to wrap_object.
10000
10001         * lisp-union.h:
10002         * lisp-union.h (make_int):
10003         * lisp-union.h (make_char):
10004         Support wrap_object.
10005
10006         * lisp.h:
10007         * lisp.h (LIST_LOOP):
10008         * lisp.h (EXTERNAL_LIST_LOOP):
10009         * lisp.h (LIST_LOOP_2):
10010         * lisp.h (EXTERNAL_LIST_LOOP_1):
10011         * lisp.h (EXTERNAL_LIST_LOOP_2):
10012         * lisp.h (EXTERNAL_LIST_LOOP_3):
10013         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
10014         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
10015         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
10016         * lisp.h (EXTERNAL_ALIST_LOOP_5):
10017         * lisp.h (EXTERNAL_ALIST_LOOP_6):
10018         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
10019         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
10020         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
10021         * lisp.h (struct Lisp_Symbol):
10022         * lisp.h (maybe_continuable_error_with_frob):
10023         Fix up section comments.
10024         Add new types for char to indicate usage.
10025         Delete symbols auto-generated from general-slots.h.
10026         Add prototypes for structured error functions.
10027         Add long comments describing looping macros and change interface
10028         so that lvalues are automatically declared.
10029         Add NO_DECLARE macro in case callers want to declare lvalues
10030         themselves.
10031
10032         * lread.c (read_syntax_error):
10033         * lread.c (continuable_read_syntax_error):
10034         * lread.c (read_structure):
10035         * lread.c (sequence_reader):
10036         * lread.c (read_list_conser):
10037         * lread.c (read_compiled_function):
10038         Rename syntax_error and continuable_syntax_error to avoid clash
10039         with same-named structured error functions.
10040
10041         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
10042         * menubar-msw.c (populate_menu_add_item):
10043         * menubar-msw.c (populate_or_checksum_helper):
10044         [5].
10045         [9].
10046
10047         * menubar-x.c:
10048         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10049         Mule-ize whole file.
10050
10051         * menubar.c (Fnormalize_menu_item_name): Add optimization.
10052
10053         * mule-charset.c (Fmake_charset):
10054         * mule-wnnfns.c (Fwnn_set_param):
10055         [1].
10056
10057         * ntproc.c (create_child):
10058         * ntproc.c (Fwin32_set_current_locale):
10059         Add comments portending doom.
10060
10061         * objects-msw.c:
10062         * objects-msw.c (old_font_enum_callback_2):
10063         * objects-msw.c (font_enum_callback_1):
10064         * objects-msw.c (mswindows_enumerate_fonts):
10065         [5].
10066
10067         * objects-x.c:
10068         * objects-x.c (allocate_nearest_color):
10069         * objects-x.c (x_parse_nearest_color):
10070         * objects-x.c (x_initialize_color_instance):
10071         * objects-x.c (x_print_color_instance):
10072         * objects-x.c (x_finalize_color_instance):
10073         * objects-x.c (x_valid_color_name_p):
10074         * objects-x.c (x_initialize_font_instance):
10075         * objects-x.c (x_print_font_instance):
10076         * objects-x.c (valid_x_font_name_p):
10077         * objects-x.c (truename_via_FONT_prop):
10078         * objects-x.c (truename_via_random_props):
10079         * objects-x.c (truename_via_XListFonts):
10080         * objects-x.c (x_font_truename):
10081         * objects-x.c (x_font_instance_truename):
10082         * objects-x.c (x_font_instance_properties):
10083         * objects-x.c (x_list_fonts):
10084         * objects-x.c (x_find_charset_font):
10085         Mule-ize entire file.
10086         [7].
10087
10088         * objects-x.h:
10089         Mule-verify.
10090
10091         * print.c:
10092         * print.c (std_handle_out_external):
10093         * print.c (debug_print_no_newline):
10094         * print.c (syms_of_print):
10095         Output to all debugger kinds in debug-print.
10096         Fix console-output code under MSWin to actually work.
10097
10098         * process-nt.c (send_signal):
10099         * process-nt.c (nt_create_process):
10100         Use newer Unicode macros.
10101
10102         * process-unix.c (unix_create_process):
10103         * process-unix.c (unix_canonicalize_host_name):
10104         * process-unix.c (unix_open_network_stream):
10105         [7].
10106
10107         * scrollbar-x.c:
10108         Mule-verify.
10109
10110         * search.c (syms_of_search):
10111         [2].
10112
10113         * select-msw.c (mswindows_destroy_selection):
10114         Use LIST_LOOP_2.
10115
10116         * select-x.c (symbol_to_x_atom):
10117         [7].
10118
10119         * select.c (syms_of_select):
10120         [2].
10121
10122         * sound.c (Fplay_sound_file):
10123         [7].
10124
10125         * specifier.c:
10126         * specifier.c (decode_specifier_type):
10127         * specifier.c (Fvalid_specifier_locale_type_p):
10128         * specifier.c (check_valid_locale_or_locale_type):
10129         * specifier.c (decode_locale):
10130         * specifier.c (decode_locale_type):
10131         * specifier.c (decode_locale_list):
10132         * specifier.c (check_valid_domain):
10133         * specifier.c (decode_specifier_tag_set):
10134         * specifier.c (Fcanonicalize_tag_set):
10135         * specifier.c (Fdefine_specifier_tag):
10136         * specifier.c (Fspecifier_tag_predicate):
10137         * specifier.c (check_valid_inst_list):
10138         * specifier.c (check_valid_spec_list):
10139         * specifier.c (decode_how_to_add_specification):
10140         * specifier.c (check_modifiable_specifier):
10141         * specifier.c (specifier_add_spec):
10142         * specifier.c (boolean_validate):
10143         * specifier.c (display_table_validate):
10144         [9].
10145
10146         * specifier.c (syms_of_specifier):
10147         Move some symbols to general-slots.h.
10148         [2].
10149
10150         * symbols.c:
10151         * symbols.c (Fmapatoms):
10152         * symbols.c (Fapropos_internal):
10153         Add GCPROs.
10154
10155         * symbols.c (set_default_buffer_slot_variable):
10156         * symbols.c (set_default_console_slot_variable):
10157         [1].
10158
10159         * symbols.c (defsymbol_massage_name_1):
10160         * symbols.c (defkeyword_massage_name):
10161         * symbols.c (deferror_1):
10162         * symbols.c (deferror):
10163         * symbols.c (deferror_massage_name_and_message):
10164         * symeval.h:
10165         * symeval.h (DEFSYMBOL):
10166         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
10167
10168         * symbols.c (syms_of_symbols):
10169         [2].
10170
10171         * symsinit.h:
10172         * symsinit.h (init_win32): New.
10173         Also new is syms_of_dialog_mswindows.
10174
10175         * syswindows.h:
10176         Add new Unicode macros, missing Cygwin wide-char functions,
10177         convenience conversion macros for Qmswindows_tstr, macros for
10178         encapsulating required MSWin <-> Cygwin filename conversions,
10179         prototype for dynamically-extracted (not in NT 3.51) functions.
10180
10181         * toolbar-x.c:
10182         Mule-verify.
10183
10184         * tooltalk.c (Fadd_tooltalk_message_arg):
10185         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
10186         * tooltalk.c (Fadd_tooltalk_pattern_arg):
10187         [7].
10188
10189         * tooltalk.c (syms_of_tooltalk):
10190         [2].
10191
10192         * unexnt.c:
10193         * unexnt.c (unexec):
10194         Fix up headers, declaration of unexec() to be more standard.
10195
10196 2000-07-20  Martin Buchholz  <martin@xemacs.org>
10197
10198         * offix.h: Revert change to guard macros - they're used in offix.c!
10199
10200 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10201
10202         * lisp.h: Defsubred Fdelete.
10203
10204         * console-msw.h:  (msprinter_default_printer): Added.
10205
10206         * console-msw.c (msprinter_canonicalize_console_connection):
10207         (msprinter_canonicalize_device_connection): Added.
10208
10209         * device-msw.c (msprinter_default_printer):
10210         (Fmswingows_get_default_printer):
10211         (signal_enum_priner_error):
10212         (Fmswingows_printer_list): Added.
10213
10214 2000-07-19  Martin Buchholz <martin@xemacs.org>
10215
10216         * XEmacs 21.2.35 is released.
10217
10218 2000-07-19  Martin Buchholz  <martin@xemacs.org>
10219
10220         * select-x.c (x_handle_selection_request):
10221         Text selected in xemacs and pasted into xterm failed to appear.
10222         Spelling fixes and cosmetic changes.
10223
10224 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10225
10226         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
10227         XEmacs frame (fix for doubling chars in dialog boxes).
10228
10229 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
10230
10231         * select.c (select_convert_in, select_convert_out):
10232         Don't call intern() every time.
10233
10234         * select.c (Qselect_convert_in, Qselect_convert_out): New.
10235         * select.c (vars_of_select): Initialise them.
10236
10237 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
10238
10239         * select.c (selection-coercible-types): New.
10240
10241         * select.c (own-selection-internal):
10242         * select.c (get-selection-internal):
10243         MULE bug fix - these should default to COMPOUND_TEXT and not
10244         STRING for MULE. I think.
10245
10246         * select.c (select_convert_out): Use selection-coercible-types
10247         to find types that we can attempt to perform coercions on.
10248
10249 2000-07-18  Martin Buchholz  <martin@xemacs.org>
10250
10251         * mule-wnnfns.c:
10252         * mule-canna.c:
10253         Add coding: cookie to identify encoding.
10254
10255         * mule-canna.c (CANNA_mode_keys): make static.
10256         Use proper prototypes, even for functions of no arguments.
10257         Remove external prototype for Fding().
10258
10259         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
10260
10261         * select.c (syms_of_select): Add missing DEFSUBR.
10262
10263 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
10264
10265         * select.c (get_selection_internal, own_selection_internal):
10266         Make the type default to STRING, rather than placing a nil type
10267         into Vselection_alist.
10268
10269 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
10270
10271         * gpmevent.c (tty_selection_exists_p):
10272         * gpmevent.c (tty_own_selection):
10273         Updated parameter lists.
10274
10275 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
10276
10277         * select.h (selection-alist): Removed declaration.
10278
10279         * select.h (get_local_selection):
10280         * select.c (get_local_selection):
10281         Made static.
10282
10283         * select.h (convert_selection): Removed declaration.
10284         * select.c (convert_selection): Removed.
10285         This function belongs in Lisp.
10286
10287         * select.h (select_convert_in): Declare.
10288         * select.h (select_convert_out): Declare.
10289         * select.c (select_convert_in): New.
10290         * select.c (select_convert_out): New.
10291         New conversion functions for other files to call.
10292
10293         * select.h (select_notify_buffer_kill): Declare.
10294         * select.c (select_notify_buffer_kill): New.
10295         New functions that get called from kill-buffer.
10296
10297         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
10298         X-specific lisp code.
10299
10300         * select.h: Declare some of the lisp-visible functions for
10301         external use.
10302
10303         * select.c (clean_local_selection_data): Removed. This was
10304         a disgusting function, and previously should have been in
10305         select-x.c in any case. The functionality is now provided
10306         in select-convert-from-integer (select.el).
10307
10308         * select.c (available-selection-types): Fixed stupidity where
10309         INTEGER and ATOM got added twice. Also add STRING when we see an
10310         extent.
10311
10312         * select.c (get-selection-internal): Removed symbol stripping. No
10313         longer causes conversion when data comes from the internal cache.
10314
10315         * select.c (syms_of_select): Added new functions.
10316
10317         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
10318         error checking - previously this called abort!
10319
10320         * select-x.c (x_own_selection): Changed comment.
10321
10322         * select-x.c (x_handle_selection_request): Use select_convert_out.
10323         Don't mess with selection-alist; it's an internal variable of select.c.
10324
10325         * select-x.c (x_get_foreign_selection): Use select_convert_in.
10326
10327         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
10328         rather than messing with selection-alist.
10329
10330         * select-msw.c (mswindows_get_foreign_selection):
10331         Use TO_INTERNAL_FORMAT rather than hacking.
10332
10333 2000-07-14  Martin Buchholz  <martin@xemacs.org>
10334
10335         * process-unix.c (unix_open_multicast_group):
10336         (unix_open_multicast_group): Remove useless casts.
10337
10338 2000-07-13  Martin Buchholz  <martin@xemacs.org>
10339
10340         * sound.c (Fplay_sound): Fix `unused variable' warning.
10341
10342         * emacs.c (main): Use correct type for _environ on SCO5.
10343
10344 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
10345
10346         * console.h (own_selection_method):
10347         * console.h (selection_exists_p_method):
10348         * console.h (available_selection_types_method): New.
10349         * console.h (register_selection_data_type_method): New.
10350         * console.h (selection_data_type_name): New.
10351
10352         * console-msw.h (mswindows_destroy_selection): Declare it.  New
10353         function & alist to track GlobalAlloc()'d handles that need
10354         releasing when the clipboard data gets replaced or emptied.
10355
10356         * event-msw.c (mswindows_wnd_proc): Call it.
10357
10358         * lisp.h, general.c (Qappend): New symbol representing a
10359         `how-to-add' mode.
10360
10361         * select.c (own-selection-internal):
10362         * select.c (selection-exists-p):
10363         * select.c (available-selection-types): New.
10364         * select.c (register-selection-data-type): New.
10365         * select.c (selection-data-type-name): New.  New functions to deal
10366         with device-specific selection data formats.
10367         * select.c (selection-converter-out-alist): Renamed.
10368         * select.c (selection-converter-in-alist): New.
10369         * select.c (selection-appender-alist): New.  Added new alists.
10370         * select.c (syms_of_select, vars_of_select): Added new symbols &
10371         variables.
10372         * select.c (get_local_selection): Split.
10373         * select.c: Removed spurious type checking - selections may now be
10374         of any type, not just strings.
10375         * select.c (own-selection-internal):
10376
10377         * select.h, select.c (convert_selection): New. Created
10378         convert_selection() function based on get_local_selection().
10379         * select.h, select.c (QCF_*): New symbols representing mswindows
10380         clipboard formats.
10381         * select.h, select.c (Qreplace_all, Qreplace_existing): New
10382         symbols representing `how-to-add' modes.
10383
10384         * select-msw.c (x_sym_p): New.
10385         * select-msw.c (symbol_to_ms_cf): New.
10386         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
10387         symbols & clipboard formats. Can also handle string names.
10388         * select-msw.c (mswindows_own_selection):
10389         * select-msw.c (mswindows_selection_exists_p):
10390         Added `data-type' parameter. Use it.
10391         * select-msw.c (mswindows_available_selection_types): New.
10392         * select-msw.c (mswindows_register_selection_data_type): New.
10393         * select-msw.c (mswindows_selection_data_type_name): New.
10394         * select-msw.c (mswindows_own_selection):
10395         * select-msw.c (mswindows_get_foreign_selection):
10396         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
10397         * select-msw.c (console_create_select_mswindows): Added new methods.
10398         * select-msw.c (mswindows_destroy_selection): New.
10399         * select-msw.c (Vhandle_alist): New list.
10400         * select-msw.c (mswindows_own_selection):
10401
10402         * select-x.c (x_own_selection):
10403         * select-x.c (x_selection_exists_p):
10404         * select-x.c: Added some comments about maybe using new
10405         functionality.
10406         * select-x.c (x_own_selection):
10407
10408         * specifier.c: Remove definition of Qappend (now in general.c)
10409         * specifier.c (syms_of_specifier): Remove Qappend.
10410
10411 2000-07-12  Martin Buchholz  <martin@xemacs.org>
10412
10413         * config.h.in: Add socklen_t.
10414
10415         * s/decosf4-0.h: No special compiler flags needed or desired.
10416         In particular, undefine _BSD for DEC OSF 4.0.
10417
10418 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10419
10420         * redisplay-msw.c (msprinter_frame_output_end): Added.
10421         (console_type_create_redisplay_mswindows): Referred the above.
10422
10423         * frame.c (setup_frame_without_minibuffer): Do not create a
10424         default minibuffer frame on a printer device.
10425
10426         * frame-msw.c (apply_dc_geometry): Added.
10427         (msprinter_start_page):
10428         (msprinter_init_frame_3):
10429         (msprinter_eject_page): Use it.
10430
10431         * console-msw.h (struct msprinter_frame): Added pix_left and top,
10432         and removed residual duplex and orientation properties.
10433
10434 2000-07-11  Martin Buchholz  <martin@xemacs.org>
10435
10436         * eval.c (function_argcount): Work around a DEC CC compiler bug.
10437
10438         * unexalpha.c: Remove system prototypes from C sources!
10439
10440 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
10441
10442         * eval.c: Remove references to M-x edit-options in DEFUNs for
10443         `defvar' and `defconst'.
10444
10445 2000-07-09  Martin Buchholz  <martin@xemacs.org>
10446
10447         * config.h.in: Remove SMART_INCLUDE hackery.
10448
10449         PostgreSQL hacking:
10450         * config.h.in: Don't use SMART_INCLUDE.
10451
10452         * postgresql.h: Include libpq-fe.h here.  Fix typo.
10453         * inline.c: Simply #include "postgresql.h"
10454         * postgresql.c:
10455         - Don't use SMART_INCLUDE
10456         - Use simply "const".
10457         - Use standard doc string conventions.
10458         - Use correct type for result of PQstatus.
10459
10460 2000-07-09  Martin Buchholz  <martin@xemacs.org>
10461
10462         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
10463
10464         C++ compilation changes.
10465         * config.h.in (EXTERN_C): Define.
10466         * config.h.in (not): This is also a C++ keyword.
10467         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
10468         * cm.c: Use EXTERN_C.
10469         * redisplay-tty.c: Use EXTERN_C.
10470         * sysdep.c: Use EXTERN_C.  Remove Gould support.
10471
10472 2000-07-09  Martin Buchholz  <martin@xemacs.org>
10473
10474         * general.c: Remove duplicate definition for Qfunction.
10475
10476 2000-07-08  Ben Wing  <ben@xemacs.org>
10477
10478         * device-msw.c (msprinter_init_device):
10479         * device-msw.c (sync_printer_with_devmode):
10480         * device-msw.c (handle_devmode_changes):
10481         * device-msw.c (print_dialog_worker):
10482         * device-msw.c (Fmsprinter_apply_settings):
10483         * device-msw.c (hash_devmode):
10484         * device-msw.c (Fmsprinter_settings_despecialize):
10485         use Qmswindows_tstr, not Qctext.
10486
10487         * vm-limit.c (check_memory_limits):
10488         avoid infinite loop printing warning messages.
10489
10490 2000-07-05  Craig Lanning  <lanning@scra.org>
10491
10492         * Makefile.in.in: Add support for including the Windows resources
10493         when building with the cygwin and mingw targets.
10494
10495         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
10496         not set or not correct.
10497         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
10498         (init_initial_directory): Don't try to use $PWD on the
10499         WIN32_NATIVE target.
10500
10501         * s\cygwin32.h:
10502         [[Add -mwindows to eliminate console window.]] not required --ben
10503         (HAVE_NATIVE_SOUND): removed; now handled by configure.
10504         (MAIL_USE_POP): removed; now handled by configure.
10505
10506         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
10507         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
10508         (HAVE_NATIVE_SOUND): removed; now handled by configure.
10509         (MAIL_USE_POP): removed; now handled by configure.
10510         (ENCAPSULATE_STAT): from Dan Holmsand, added.
10511         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
10512         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
10513         constant string.
10514         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
10515         up from <winsock.h> via systime.h.
10516         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
10517         (getpagesize): from Dan Holmsand, added.
10518         Added #endif which was left dangling by Ben's mega patch; added
10519         comment to help prevent this in the future.
10520
10521         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
10522
10523 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10524
10525         * console-msw.h (struct mswindows_device): Removed unnecessary
10526         cached device geometry values.
10527         Added update_tick and an accessor macro.
10528         (Lisp_Devmode): Added lrecord declaration.
10529         (struct msprinter_device): Contain devmode as a Lisp object.
10530         Added mswindows_get_selected_frame_hwnd();
10531
10532         * console.h (struct console_methods): Indentation nitpicking.
10533
10534         * device-msw.c (mswindows_init_device): Do not initialize geometry
10535         cache. Initialize update tick.
10536         (mswindows_device_system_metrics): Ask the device for its geometry.
10537         (global_free_2_maybe):
10538         (devmode_to_hglobal):
10539         (handle_printer_changes):
10540         (ensure_not_printing):
10541         (print_dialog_worker):
10542         (Fmsprinter_print_setup_dialog):
10543         (Fmsprinter_print_dialog):
10544         (plist_get_margin):
10545         (plist_set_margin):
10546         (Fmsprinter_page_setup_dialog): Added functions.
10547         (sync_printer_with_devmode):
10548         (handle_devmode_changes):
10549         (Fmsprinter_get_settings):
10550         (Fmsprinter_select_settings):
10551         (Fmsprinter_apply_settings):
10552         (allocate_devmode):
10553         (Fmsprinter_settings_copy):
10554         (Fmsprinter_settings_despecialize):
10555         (print_devmode):
10556         (finalize_devmode):
10557         (equal_devmode):
10558         (hash_devmode): Added functions
10559         (syms_of_device_mswindows): Init devmode lrecord class.
10560
10561         * device.h: Added an exfun for find-device.
10562
10563         * event-msw.c (mswindows_wnd_proc): Do not update the cached
10564         geometry; although, recreate the device compatible DC.
10565
10566         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
10567         (msprinter_init_frame_3):
10568         (msprinter_frame_property):
10569         (msprinter_internal_frame_property_p):
10570         (msprinter_frame_properties):
10571         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
10572         print job properties (will move to device settings).
10573
10574         * lisp.h: Added symbols.
10575
10576         * general.c (syms_of_general): Declared them.
10577
10578         * hash.c (string_hash): Added.
10579
10580         * lrecord.h (lrecord_type): Added devmode lrecord type.
10581
10582 2000-07-02  Mike Sperber <mike@xemacs.org>
10583
10584         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
10585         FreeBSD 4.0.
10586
10587 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
10588
10589         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
10590         integer.
10591
10592 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
10593
10594         * data.c (Fstring_to_number): Don't recognize floating point if
10595         base is not 10.
10596
10597 2000-06-22  Martin Buchholz  <martin@xemacs.org>
10598
10599         * glyphs-widget.c (tab_control_query_geometry):
10600         (widget_query_geometry):
10601         (button_query_geometry):
10602         * glyphs.c (text_query_geometry):
10603         Enforce type correctness.
10604
10605 2000-06-18  Martin Buchholz  <martin@xemacs.org>
10606
10607         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
10608         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
10609
10610 2000-06-17  Martin Buchholz  <martin@xemacs.org>
10611
10612         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
10613         conflicts with gcc's fixincluded version of FOO.h.
10614
10615         * glyphs.h (image_instance_geometry): Remove trailing `,'
10616
10617 2000-06-08  Mike Alexander  <mta@arbortext.com>
10618
10619         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
10620         (shove_thread): Don't write the same output twice
10621         (make_ntpipe_output_stream): Increase priority of shove thread
10622         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
10623         chance to run
10624         (ntpipe_shove_closer): Don't delete the pipe until we're done with
10625         it.
10626
10627 2000-06-12  Ben Wing  <ben@xemacs.org>
10628
10629         * s\mingw32.h (sigset):
10630         * s\windowsnt.h (sigset):
10631         rename msw_ to mswindows_ for consistency with general convention.
10632
10633 2000-06-12  Ben Wing  <ben@xemacs.org>
10634
10635         * console-msw.c:
10636         * console-msw.c (mswindows_get_console_hwnd):
10637         * console-msw.c (mswindows_ensure_console_allocated):
10638         * console-msw.c (mswindows_hide_console):
10639         * console-msw.c (mswindows_show_console):
10640         * console-msw.c (mswindows_ensure_console_buffered):
10641         * console-msw.c (mswindows_output_console_string):
10642         * console-msw.c (mswindows_windows9x_p):
10643         * console-msw.h:
10644         * device-msw.c (mswindows_get_workspace_coords):
10645         * device-msw.c (mswindows_device_system_metrics):
10646         * dialog-msw.c (mswindows_popup_dialog_box):
10647         * event-msw.c (mswindows_wnd_proc):
10648         * frame-msw.c (mswindows_size_frame_internal):
10649         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
10650         * menubar-msw.c (displayable_menu_item):
10651         * menubar-msw.c (mswindows_char_is_accelerator):
10652         * nt.c:
10653         * nt.c (mswindows_sigset):
10654         * nt.c (mswindows_sigrelse):
10655         * nt.c (mswindows_sigpause):
10656         * nt.c (mswindows_raise):
10657         * nt.c (timer_proc):
10658         * ntproc.c:
10659         * ntproc.c (find_child_console):
10660         * ntproc.c (sys_kill):
10661         * print.c:
10662         * print.c (std_handle_out_external):
10663         * process-nt.c (find_child_console):
10664         * process-nt.c (send_signal_the_95_way):
10665         * process-nt.c (ensure_console_window_exists):
10666         * process-nt.c (nt_create_process):
10667         * syssignal.h:
10668         rename msw_ to mswindows_ for consistency with general convention.
10669
10670         * emacs.c:
10671         * dumper.c:
10672         include nt.h, not syswindows.h.
10673
10674         * nt.c (mswindows_fstat):
10675         * nt.c (mswindows_stat):
10676         prefix mswindows_ instead of attempting to directly override the
10677         library functions.  fix declarations.
10678
10679         * nt.h:
10680         include syswindows.h.  move some sysdep.h stuff here.
10681
10682         * ntheap.h:
10683         include syswindows.h, not <windows.h>.
10684
10685         * ntplay.c:
10686         clean up headers.
10687
10688         * sysdep.c:
10689         clean up headers.
10690
10691         * sysdep.c (sys_fstat):
10692         * sysdep.c (sys_stat):
10693         call mswindows versions when appropriate.
10694
10695         * sysdep.h:
10696         move mswin decls to nt.h.
10697
10698         * syswindows.h:
10699         add long comment describing appropriate use of the various windows
10700         headers.
10701
10702 2000-06-11  Ben Wing  <ben@xemacs.org>
10703
10704         * device-x.c: Correct doc string for sixth arg of x-get-resource.
10705
10706 2000-06-10  Ben Wing  <ben@xemacs.org>
10707
10708         * Makefile.in.in (release):
10709         Correction to make sure xemacs.exe always dumped when correct.
10710
10711         * alloca.c:
10712         * balloon_help.c:
10713         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
10714
10715         * buffer.c (set_buffer_internal):
10716         [[[[2]]]]: Remove HAVE_FEP code.
10717
10718         * buffer.c (init_initial_directory):
10719         [3].
10720
10721         * bytecode.c:
10722         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
10723         individual files.
10724
10725         * callproc.c:
10726         * callproc.c (call_process_cleanup):
10727         * callproc.c (Fold_call_process_internal):
10728         * callproc.c (child_setup):
10729         * callproc.c (getenv_internal):
10730         * callproc.c (init_callproc):
10731         * callproc.c (vars_of_callproc):
10732         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
10733         __CYGWIN32__ -> CYGWIN.
10734         DOS_NT -> WIN32_NATIVE.
10735         Remove MSDOS support/references, converting to WIN32_NATIVE
10736           where correct.
10737         __MINGW32__ -> MINGW.
10738         Fix windows.h includes.
10739         Remove bogus HAVE_NTGUI.
10740
10741         * config.h.in:
10742         [2].
10743
10744         * console-msw.c:
10745         mswindows_message_outputted added for use in allowing startup
10746         errors on the console to be seen.
10747
10748         * console-msw.c (msw_ensure_console_allocated):
10749         * console-msw.c (msw_output_console_string):
10750         * console-msw.c (DHEADER):
10751         * console-msw.c (DOPAQUE_DATA):
10752         * console-msw.c (DEVENT):
10753         * console-msw.c (DCONS):
10754         * console-msw.c (DCONSCDR):
10755         * console-msw.c (DSTRING):
10756         * console-msw.c (DVECTOR):
10757         * console-msw.c (DSYMBOL):
10758         * console-msw.c (DSYMNAME):
10759         Fix warnings.
10760
10761         * console-stream.c (stream_init_console):
10762         Fix text/binary problems.
10763
10764         * device-msw.c:
10765         * device-msw.c (mswindows_finish_init_device):
10766         * device-msw.c (mswindows_delete_device):
10767         [1].
10768
10769         * device.c (handle_asynch_device_change):
10770         [3].
10771
10772         * dgif_lib.c:
10773         * dgif_lib.c (DGifOpenFileName):
10774         * dgif_lib.c (DGifOpenFileHandle):
10775         * dgif_lib.c (DGifGetLine):
10776         * dgif_lib.c (DGifGetPixel):
10777         Added config.h/lisp.h, fix up includes.
10778         [1].
10779
10780         * dired-msw.c:
10781         [4].
10782
10783         * dired.c:
10784         * dired.c (file_name_completion):
10785         * dired.c (Ffile_attributes):
10786         * dired.c (syms_of_dired):
10787         [1].
10788
10789         * dumper.c:
10790         * dumper.c (pdump_file_unmap):
10791         * dumper.c (pdump_load):
10792         [1].
10793
10794         * editfns.c:
10795         * editfns.c (Ftemp_directory):
10796         * editfns.c (user_login_name):
10797         * editfns.c (Fuser_real_login_name):
10798         * editfns.c (get_home_directory):
10799         [1].
10800
10801         * elhash.c (finish_marking_weak_hash_tables):
10802         [[[[5]]]]: Fix GCC warnings.
10803
10804         * emacs.c:
10805         * emacs.c (mswindows_handle_hardware_exceptions):
10806         * emacs.c (make_arg_list_1):
10807         * emacs.c (main_1):
10808         * emacs.c (Fkill_emacs):
10809         * emacs.c (Fdump_emacs):
10810         [1].
10811         Fix problems with nested crashes, add long comment.
10812
10813         * event-Xt.c (init_event_Xt_late):
10814         [1].
10815
10816         * event-msw.c:
10817         * event-msw.c (mswindows_dde_callback):
10818         * event-msw.c (mswindows_handle_sticky_modifiers):
10819         * event-msw.c (mswindows_wnd_proc):
10820         [1].
10821         [5].
10822
10823         * events.c (character_to_event):
10824         [1].
10825
10826         * fileio.c:
10827         * fileio.c (Ffile_name_directory):
10828         * fileio.c (Ffile_name_nondirectory):
10829         * fileio.c (directory_file_name):
10830         * fileio.c (Fexpand_file_name):
10831         * fileio.c (Fsubstitute_in_file_name):
10832         * fileio.c (Ffile_name_absolute_p):
10833         * fileio.c (check_executable):
10834         * fileio.c (Ffile_readable_p):
10835         * fileio.c (Ffile_accessible_directory_p):
10836         * fileio.c (Ffile_modes):
10837         * fileio.c (Funix_sync):
10838         * fileio.c (vars_of_fileio):
10839         [1]. [4].
10840
10841         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
10842
10843         Expand getdefdir defn.
10844         Fix bogus rename() comment.
10845
10846         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
10847         to use standard XEmacs include files, e.g. sysfile.h, rather
10848         than system-specific includes.
10849
10850         * fns.c:
10851         * fns.c (Fsubseq):
10852         [5]. [6].
10853
10854         * frame.c (vars_of_frame):
10855         [1].
10856
10857         * getloadavg.c:
10858         * getloadavg.c (getloadavg):
10859         [1]. [6].
10860         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
10861         (We don't use it elsewhere in the code; just add a comment.)
10862
10863         * gif_io.c:
10864         [6].
10865         Add config.h.
10866
10867         * glyphs-msw.c:
10868         * glyphs-msw.c (mswindows_resource_instantiate):
10869         [1].
10870
10871         * glyphs-x.c (x_native_layout_instantiate):
10872         [5].
10873
10874         * gui-msw.c (Fmswindows_shell_execute):
10875         [1].
10876
10877         * insdel.c:
10878         [4].
10879
10880         * lisp.h:
10881         [4]. [5].
10882
10883         * lread.c (locate_file_in_directory_mapper):
10884         [1].
10885
10886         * lstream.c:
10887         [4].
10888
10889         * mem-limits.h:
10890         * mem-limits.h (get_lim_data):
10891         [1].
10892
10893         * menubar-msw.c:
10894         [4].
10895
10896         * ndir.h:
10897         [1].
10898
10899         * nt.c:
10900         * nt.c (getwd):
10901         * nt.c (closedir):
10902         * nt.c (rva_to_section):
10903         * nt.c (mswindows_executable_type):
10904         [1]. [6].
10905         Fix closedir() defn.
10906
10907         * nt.h:
10908         [[[[8]]]]: *_OK defs moved to sysfile.h.
10909
10910         * ntproc.c:
10911         [6]. [7].
10912
10913         * objects-x.c:
10914         [4].
10915
10916         * print.c:
10917         * print.c (std_handle_out_external):
10918         [1]. [4].
10919
10920         * process-nt.c:
10921         * process-nt.c (nt_create_process):
10922         [6].
10923         try to fix process quoting somewhat.
10924
10925         * process-unix.c (unix_create_process):
10926         [1].
10927
10928         * process.c:
10929         * process.c (vars_of_process):
10930         Add Vnull_device.
10931
10932         * process.h:
10933         [1].
10934
10935         * realpath.c:
10936         * realpath.c (xrealpath):
10937         [1].
10938
10939         * redisplay-tty.c (init_tty_for_redisplay):
10940         [3].
10941
10942         * redisplay.c:
10943         [4]. [6].
10944
10945         * scrollbar-msw.c:
10946         [4].
10947
10948         * sheap.c:
10949         * sheap.c (more_static_core):
10950         * sheap.c (report_sheap_usage):
10951         [5]. [6].
10952
10953         * signal.c:
10954         * signal.c (alarm_signal):
10955         [1]. [6].
10956
10957         * sound.c:
10958         [6].
10959
10960         * strftime.c:
10961         * strftime.c (zone_name):
10962         [1]. [5].
10963
10964         * symsinit.h (init_sunpro):
10965         [1].
10966
10967         * syscommctrl.h:
10968         commctrl.h not in Cygwin b20.1.
10969
10970         * sysdep.c:
10971         * sysdep.c (endif):
10972         * sysdep.c (sys_subshell):
10973         * sysdep.c (init_baud_rate):
10974         * sysdep.c (emacs_get_tty):
10975         * sysdep.c (emacs_set_tty):
10976         * sysdep.c (tty_init_sys_modes_on_device):
10977         * sysdep.c (init_system_name):
10978         * sysdep.c (sys_open):
10979         * sysdep.c (interruptible_open):
10980         * sysdep.c (sys_fopen):
10981         * sysdep.c (sys_mkdir):
10982         * sysdep.c (sys_rename):
10983         * sysdep.c (get_process_times_1):
10984         [1]. [6].
10985
10986         * sysdep.h:
10987         [1].
10988
10989         * sysdir.h:
10990         * sysdir.h (DIRENTRY_NONEMPTY):
10991         [1]. [6].
10992
10993         * sysdll.c (dll_init):
10994         * sysdll.h:
10995         [1].
10996
10997         * sysfile.h:
10998         [1]. [6]. [8].
10999         added text/binary defs.
11000
11001         * sysfloat.h:
11002         [1].
11003
11004         * sysproc.h:
11005         * sysproc.h (EDESTADDRREQ):
11006         * sysproc.h (poll_fds_for_input):
11007         [1]. [6].
11008
11009         * syspwd.h:
11010         [6].
11011
11012         * syssignal.h:
11013         [1].
11014
11015         * systime.h:
11016         [1]. [6].
11017
11018         * systty.h:
11019         [1].
11020
11021         * syswindows.h:
11022         [1].
11023         Always define WIN32_LEAN_AND_MEAN.
11024
11025         * unexcw.c (unexec):
11026         [5].
11027
11028         * unexec.c:
11029         * unexec.c (copy_text_and_data):
11030         * unexec.c (adjust_lnnoptrs):
11031         [1].
11032
11033         * unexnt.c:
11034         * unexnt.c (_start):
11035         [1].
11036
11037 2000-06-07  Ben Wing  <ben@xemacs.org>
11038
11039         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
11040         was used only as a model.  We've long since extracted any useful
11041         logic or code out of this. (I just did an exhaustive search.)
11042
11043         * s\msdos.h: Removed.
11044
11045         * s\windows95.h: Removed.
11046
11047 2000-06-10  Ben Wing  <ben@xemacs.org>
11048
11049         * s\cygwin32.h:
11050         [1]. [5].
11051         Don't use extern with fun defs.
11052
11053         * s\mingw32.h:
11054         [1]. [7].
11055         Remove nt\inc include.
11056         Remove getdisk, getdefdir. (The former is unused, the latter
11057         expanded in fileio.h.)
11058
11059         * s\windowsnt.h:
11060         * s\windowsnt.h (WIN32_NATIVE):
11061         * s\windowsnt.h (HAVE_STRCASECMP):
11062         [1]. [7].
11063         Add long comment about preprocessor changes.
11064         Remove getdisk, getdefdir. (The former is unused, the latter
11065         expanded in fileio.h.)
11066
11067 2000-06-10  Ben Wing  <ben@xemacs.org>
11068
11069         * m\arm.h:
11070         * m\delta.h:
11071         * m\intel386.h:
11072         * m\sequent.h:
11073         * m\template.h:
11074         * m\windowsnt.h:
11075         [1].
11076         Remove bogus/unused NO_SOCK_SIGIO.
11077
11078 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
11079
11080         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
11081         not an Emchar.
11082
11083 2000-06-04  Mike Sperber <mike@xemacs.org>
11084
11085         * casetab.c (set_case_table): For `set-standard-case-table',
11086         actually deposit the new case tables where the rest of XEmacs can
11087         see them.
11088
11089 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
11090
11091         * data.c (Faset): Don't cast XCHAR() to unsigned char.
11092
11093 2000-06-05  Ben Wing  <ben@xemacs.org>
11094
11095         * callproc.c (child_setup): Don't do close_load_descs() under
11096         MS Windows.  Put in a comment explaining why.
11097
11098 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
11099
11100         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
11101         Toolkit shell" which breaks `kill-compilation' on Windows NT
11102         native, retaining STDERR handling improvements.
11103
11104 2000-06-01  Andreas Jaeger  <aj@suse.de>
11105
11106         * s/s390.h: Support for S390, based on a patch by Martin
11107         Schwidefsky <schwidefsky@de.ibm.com>.
11108
11109 2000-05-30  Andy Piper  <andy@xemacs.org>
11110
11111         * window.c (allocate_window):
11112         (make_dummy_parent):
11113         (Fset_window_configuration): use new hashtable type.
11114
11115         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
11116         (struct image_instantiator_methods):
11117         (struct Lisp_Image_Instance): make instance geometry signed.
11118
11119         * glyphs.c (instantiate_image_instantiator):
11120         (image_instance_query_geometry):
11121         (image_instance_layout):
11122         (image_instance_layout):
11123         (query_string_geometry):
11124         (text_query_geometry):
11125         (image_instantiate):
11126         (image_instantiate):
11127         (cache_subwindow_instance_in_frame_maybe):
11128         (subwindow_query_geometry): make instance geometry signed.
11129
11130         * glyphs-widget.c (widget_query_geometry):
11131         (widget_layout):
11132         (button_query_geometry):
11133         (tree_view_query_geometry):
11134         (tab_control_query_geometry):
11135         (layout_query_geometry):
11136         (layout_layout):
11137         (native_layout_layout): make instance geometry signed.
11138
11139 2000-05-29  Olivier Galibert  <galibert@pobox.com>
11140
11141         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
11142         constant.
11143
11144         * general.c (syms_of_general): Add Qfull_assoc symbol.
11145
11146         * data.c (finish_marking_weak_lists): Mark full-assoc lists
11147         correctly.
11148         (decode_weak_list_type): Decode full-assoc type.
11149         (encode_weak_list_type): Encode full-assoc type.
11150         (Fmake_weak_list): Update doc string.
11151
11152 2000-05-30  Andy Piper  <andy@xemacs.org>
11153
11154         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
11155
11156         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
11157         (decode_hash_table_weakness): ditto.
11158         (Fhash_table_weakness): ditto.
11159         (Fhash_table_type): ditto.
11160         (finish_marking_weak_hash_tables): ditto.
11161         (hash_table_weakness_validate): ditto.
11162         (syms_of_elhash): ditto.
11163
11164 2000-05-28  Martin Buchholz <martin@xemacs.org>
11165
11166         * XEmacs 21.2.34 is released.
11167
11168 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
11169
11170         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
11171         start cache.
11172         (updating_line_start_cache): Gone.
11173         (regenerate_window): Replace resetting of VERTICAL_CLIP by
11174         generic code to force a minimum of 1 line laid out in the
11175         CMOTION_DISP case.
11176
11177 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
11178
11179         * glyphs.c (instantiate_image_instantiator): Check for initialized
11180         height & width no longer special cases IMAGE_NOTHING.
11181         (nothing_instantiate): Set height and width of instance.
11182
11183 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
11184
11185         * unexelf.c (unexec): Search for ".data" section.
11186         Initialize new_data2_offset from old_data_index.
11187         Remove redundant check for ElfW.
11188
11189 2000-05-23  Andy Piper  <andy@xemacs.org>
11190
11191         * glyphs.c (get_image_instantiator_governing_domain): allow more
11192         specific domains as the governing domain rather than expecting an
11193         exact match. This fixes problems with layouts.
11194
11195 2000-05-22  Andy Piper  <andy@xemacs.org>
11196
11197         * redisplay-output.c (compare_runes): check for non-images
11198
11199         * glyphs.c (set_glyph_dirty_p): ditto.
11200         (update_glyph_cachel_data): ditto.
11201
11202         * glyphs-widget.c (layout_post_instantiate): ditto.
11203         (layout_post_instantiate): ditto.
11204
11205         * event-msw.c (mswindows_wnd_proc): warning removal.
11206
11207 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
11208
11209         * s\mingw32.h: Added #undef for CLASH_DETECTION.
11210
11211         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
11212
11213         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
11214
11215         * nt.c (rva_to_section): mingw32 needs rva_to_section.
11216         (mswindows_executable_type): mingw32 now has enough headers for
11217         this to work.
11218
11219 2000-05-20  Andy Piper  <andy@xemacs.org>
11220
11221         * console-msw.c (mswindows_output_last_error): ; -> ,
11222
11223 2000-05-12  Andy Piper  <andy@xemacs.org>
11224
11225         * console-msw.c (FROB): compare ints with ints.
11226
11227 2000-05-11  Andy Piper  <andy@xemacs.org>
11228
11229         * glyphs-x.c (x_finalize_image_instance): make minimal build
11230         happy.
11231
11232 2000-05-20  Ben Wing  <ben@xemacs.org>
11233
11234         * event-Xt.c:
11235         * event-Xt.c (vars_of_event_Xt):
11236         move modifier-keys-are-sticky to event-stream.c.
11237
11238         * event-msw.c:
11239         * event-msw.c (mswindows_enqueue_mouse_button_event):
11240         * event-msw.c (key_needs_default_processing_p):
11241         * event-msw.c (XEMSW_LCONTROL):
11242         * event-msw.c (mswindows_handle_sticky_modifiers):
11243         * event-msw.c (FROB):
11244         * event-msw.c (clear_sticky_modifiers):
11245         * event-msw.c (output_modifier_keyboard_state):
11246         * event-msw.c (output_alt_keyboard_state):
11247         * event-msw.c (mswindows_wnd_proc):
11248         * event-msw.c (mswindows_modifier_state):
11249         * event-msw.c (emacs_mswindows_handle_magic_event):
11250         implement sticky modifiers.
11251
11252         * event-stream.c:
11253         * event-stream.c (vars_of_event_stream):
11254         move modifier-keys-are-sticky here.
11255
11256         * lisp.h:
11257         add CHECK_FUNCTION.
11258
11259         * rangetab.c:
11260         implement map-range-table.
11261
11262
11263 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
11264
11265         * redisplay-tty.c (reset_tty_modes):
11266         (tty_redisplay_shutdown): Adjust argument type to
11267         tty_frame_output_end.
11268
11269 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
11270
11271         * eval.c (Fbacktrace): Don't output a line with only right
11272         parenthesis.
11273
11274 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
11275
11276         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
11277         (Fpq_reset_poll): Ditto.
11278
11279 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
11280
11281         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
11282
11283 2000-05-16  Ben Wing  <ben@xemacs.org>
11284
11285         * buffer.c:
11286         * buffer.c (dfc_convert_to/from_internal_format):
11287         * buffer.c (reinit_vars_of_buffer):
11288         Fix conversion functions to allow reentrancy.
11289
11290         * console-msw.c:
11291         * console-msw.c (mswindows_output_last_error):
11292         New fun, generally useful -- output a human-readable
11293         version of GetLastError() on the console.
11294
11295         * console-msw.h:
11296         * console-msw.h (struct mswindows_frame):
11297         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
11298
11299         * console-stream.c (stream_output_begin):
11300         * console-stream.c (stream_output_end):
11301         * console-stream.c (stream_output_vertical_divider):
11302         * console-stream.c (stream_clear_region):
11303         * console-stream.c (stream_flash):
11304         * console-stream.c (console_type_create_stream):
11305         Delete blank stream methods, not needed.
11306
11307         * console.h (struct console_methods):
11308         Split begin/end methods into window and frame.
11309
11310         * event-msw.c:
11311         * event-msw.c (mswindows_handle_paint):
11312         * event-msw.c (output_alt_keyboard_state):
11313         * event-msw.c (mswindows_wnd_proc):
11314         * event-msw.c (vars_of_event_mswindows):
11315         Comment about problems with ignored-expose.
11316         Define mswindows-debug-events; not really implemented.
11317
11318         * frame-msw.c (mswindows_init_frame_1):
11319         random cleanups.
11320
11321         * glyphs-msw.c:
11322         * glyphs-msw.c (begin_defer_window_pos):
11323         * glyphs-msw.c (mswindows_unmap_subwindow):
11324         * glyphs-msw.c (mswindows_map_subwindow):
11325         * glyphs-msw.c (mswindows_resize_subwindow):
11326         Use DeferWindowPos to reduce flashing when mapping/unmapping.
11327
11328         * glyphs.c (make_image_instance_1):
11329         Fix crash.
11330
11331         * gutter.c (Fredisplay_gutter_area):
11332         Use new begin/end methods.
11333
11334         * lisp.h (Dynarr_new2):
11335         New creation fun.
11336
11337         * redisplay-msw.c:
11338         * redisplay-msw.c (mswindows_frame_output_begin):
11339         * redisplay-msw.c (mswindows_frame_output_end):
11340         * redisplay-msw.c (console_type_create_redisplay_mswindows):
11341         New begin/end methods -- handle DeferWindowPos.
11342
11343         * redisplay-output.c (redisplay_move_cursor):
11344         * redisplay-output.c (redraw_cursor_in_window):
11345         * redisplay-output.c (redisplay_update_line):
11346         * redisplay-output.c (redisplay_output_window):
11347         New begin/end methods.
11348
11349         * redisplay-tty.c:
11350         * redisplay-tty.c (tty_frame_output_begin):
11351         * redisplay-tty.c (tty_frame_output_end):
11352         * redisplay-tty.c (console_type_create_redisplay_tty):
11353         New begin/end methods.
11354
11355         * redisplay-x.c:
11356         * redisplay-x.c (x_window_output_begin):
11357         * redisplay-x.c (x_window_output_end):
11358         * redisplay-x.c (console_type_create_redisplay_x):
11359         New begin/end methods.
11360
11361         * redisplay.c (redisplay_frame):
11362         * redisplay.c (Fredisplay_echo_area):
11363         New begin/end methods.
11364         use MAYBE_DEVMETH for clear_frame; it may not exist.
11365
11366         * window.h (WINDOW_XFRAME):
11367         WINDOW_XFOO macros -- get locale and decode struct pointer.
11368
11369
11370 2000-05-12  Ben Wing  <ben@xemacs.org>
11371
11372         * emacs.c:
11373         * emacs.c (ensure_no_quitting_from_now_on):
11374         * emacs.c (fatal_error_signal):
11375         * emacs.c (mswindows_handle_hardware_exceptions):
11376         * emacs.c (main):
11377         * emacs.c (Fkill_emacs):
11378         * emacs.c (shut_down_emacs):
11379         * emacs.c (assert_failed):
11380         various improvements in fatal error handling.
11381
11382         * eval.c:
11383         move preparing_for_armageddon to emacs.c.
11384
11385         * lisp.h:
11386         declare fatal_error_in_progress.
11387
11388         * print.c:
11389         * print.c (std_handle_out_external):
11390         * print.c (std_handle_out_va):
11391         * print.c (stderr_out):
11392         * print.c (stdout_out):
11393         use console under mswin when no standard output.
11394         don't do code conversion during fatal error.
11395
11396         * scrollbar.c (Fscrollbar_page_up):
11397         * scrollbar.c (Fscrollbar_page_down):
11398         fix missing else.  reindent.
11399
11400 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
11401
11402         Emergency fix.
11403
11404         * glyphs.h (GLYPH_CACHEL_DESCENT):
11405         (GLYPH_CACHEL_DESCENT):
11406         (GLYPH_CACHEL_DESCENT):
11407         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
11408         used in case these are inline functions.
11409         Use more absurd values to error check.
11410
11411         include window.h for error check functions.
11412
11413 2000-05-11  Ben Wing  <ben@xemacs.org>
11414
11415         * cmdloop.c (Freally_early_error_handler):
11416         Display message box under windows; otherwise, message will disappear
11417         before it can be viewed.
11418
11419         * console-msw.c:
11420         * console-msw.c (Fmswindows_message_box):
11421         * console-msw.c (FROB):
11422         * console-msw.c (syms_of_console_mswindows):
11423         Define new fun `mswindows-message-box'.
11424         #### I will merge this into `popup-dialog-box'; just give me
11425         a bit of time.
11426
11427         * general.c:
11428         * general.c (syms_of_general):
11429         Some new symbols used in `mswindows-message-box'.
11430
11431         * glyphs.c:
11432         * glyphs.c (Fset_image_instance_property):
11433         put warning in this fun.
11434
11435         * glyphs.h:
11436         * glyphs.h (GLYPH_CACHEL_WIDTH):
11437         * glyphs.h (GLYPH_CACHEL_ASCENT):
11438         * glyphs.h (GLYPH_CACHEL):
11439         * glyphs.h (GLYPH_CACHEL_GLYPH):
11440         define error-checking versions to try to catch a bug i've seen --
11441         redisplay gets in an infinite loop because the glyph width of the
11442         continuation glyph is 65535.
11443
11444         * lisp.h:
11445         Extern message-box stuff.
11446
11447         * window.c (allocate_window):
11448         * window.c (make_dummy_parent):
11449         * window.c (Fset_window_configuration):
11450         Use EQUAL not EQ for subwindow caches to make them work a bit
11451         better. (Something is still very broken.)
11452
11453
11454 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
11455
11456         * glyphs.c (image_instantiate): Suppress gcc warnings.
11457         (Fmake_image_instance): Fix doc string.
11458         * specifier.c (Fmake_specifier): Ditto.
11459
11460 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
11461
11462         * paths.h.in (PATH_LOCK): Removed.
11463         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
11464         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
11465
11466 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
11467
11468         * fns.c (Ffeaturep): Update e-mail address in doc-string.
11469         Document (featurep '(and xemacs 21.02)).
11470
11471 2000-05-09  Ben Wing  <ben@xemacs.org>
11472
11473         * buffer.c (complex_vars_of_buffer):
11474         update modeline-format doc.
11475
11476         * device.h:
11477         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
11478
11479         * emacs.c:
11480         timeline of all released versions of Emacs, for use in creating
11481         authorship comments and in synching up.
11482
11483         * glyphs-widget.c (image_instantiator_buttons):
11484         * glyphs-widget.c (image_instantiator_edit_fields):
11485         * glyphs-widget.c (image_instantiator_combo_box):
11486         * glyphs-widget.c (image_instantiator_scrollbar):
11487         * glyphs-widget.c (image_instantiator_progress_guage):
11488         * glyphs-widget.c (image_instantiator_tree_view):
11489         * glyphs-widget.c (image_instantiator_tab_control):
11490         * glyphs-widget.c (image_instantiator_labels):
11491         * glyphs-widget.c (image_instantiator_layout):
11492         * glyphs-widget.c (image_instantiator_native_layout):
11493         rename decode_domain method to governing_domain.
11494
11495         * glyphs.c:
11496         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
11497         * glyphs.c (add_entry_to_device_ii_format_list):
11498         make sure we don't put an entry more than once into the list.
11499         * glyphs.c (check_instance_cache_mapper):
11500         *************************************************************
11501         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
11502         HAVE BEEN GETTING.
11503         *************************************************************
11504         * glyphs.c (get_image_instantiator_governing_domain):
11505         clean up, expand on new concept of governing domain.
11506         * glyphs.c (instantiate_image_instantiator):
11507         * glyphs.c (allocate_image_instance):
11508         use governing_domain instead of cache_domain in naming.
11509         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
11510         * glyphs.c (make_image_instance_1):
11511         * glyphs.c (Fmake_image_instance):
11512         allow for any domain (not just device), and process the
11513         governing domain correctly.  very big doc fix.
11514         * glyphs.c (Fimage_instance_domain):
11515         new primitive, to retrieve the governing domain of an image instance.
11516         * glyphs.c (image_instantiate):
11517         use new governing_domain stuff.  this fixes a crash you could get
11518         by instantiating certain widget glyphs in frame locales. (should
11519         signal an error instead of crashing.)
11520         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
11521         * glyphs.c (Fglyphp): clean up doc.
11522         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
11523         * glyphs.c (syms_of_glyphs):
11524         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
11525         * glyphs.c (image_instantiator_format_create): add some comments about
11526         bogus code.
11527         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
11528         for current-display-table. (Apparently Hrjove implemented in 1998 a
11529         design I wrote up in 1996, but didn't update the doc string.)
11530
11531         * glyphs.h: clean up a doc string.
11532         * glyphs.h (governing_domain):
11533         * glyphs.h (struct image_instantiator_methods):
11534         changes for governing_domain stuff.
11535
11536         * gutter.c:
11537         * gutter.c (Fgutter_specifier_p):
11538         * gutter.c (Fgutter_size_specifier_p):
11539         * gutter.c (Fgutter_visible_specifier_p):
11540         * objects.c:
11541         * objects.c (Fcolor_specifier_p):
11542         * objects.c (Ffont_specifier_p):
11543         * objects.c (Fface_boolean_specifier_p):
11544         doc strings moved to make-*-specifier.
11545
11546         * redisplay.c (add_disp_table_entry_runes_1):
11547         * redisplay.c (generate_fstring_runes):
11548         * redisplay.c (screen):
11549         add random comments and doc strings.
11550
11551         * specifier.c:
11552         * specifier.c (Fmake_specifier):
11553         major overhaul of this doc string.
11554
11555         * specifier.c (Fvalid_specifier_domain_p):
11556         comment about the bogosity of image instances being domains.
11557         * specifier.c (decode_domain):
11558         now non-static, used in glyphs.c.
11559         * specifier.c (specifier_instance):
11560         comment about the bogosity of image instances being domains.
11561         * specifier.c (Fgeneric_specifier_p):
11562         move doc string to make-generic-specifier.
11563         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
11564         rebackslashify.
11565
11566         * specifier.h:
11567         * specifier.h (DOMAIN_FRAME):
11568         * specifier.h (DOMAIN_LIVE_P):
11569         * specifier.h (DOMAIN_XDEVICE):
11570         rebackslashify.
11571         add comments about problems with these macros.
11572         prototype for decode_domain.
11573
11574         * toolbar.c:
11575         * toolbar.c (Ftoolbar_specifier_p):
11576         move doc string to `make-toolbar-specifier'.
11577
11578         * window.c (window_unmap_subwindows_cache_mapper):
11579         *************************************************************
11580         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
11581         HAVE BEEN GETTING.
11582         *************************************************************
11583
11584 2000-05-09  Andy Piper  <andy@xemacs.org>
11585
11586         * glyphs.h: declare reset_frame_subwindow_instance_cache.
11587
11588         * window.c (Fset_window_configuration): reset the frame subwindow
11589         cache and re-initialize the window subwindow caches.
11590
11591         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
11592
11593 2000-05-09  Ben Wing  <ben@xemacs.org>
11594
11595         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
11596         DWORD.
11597
11598 2000-04-26  Mike Woolley  <mike@bulsara.com>
11599
11600         * ntheap.c: Changed recreate_heap to limit the amount reserved
11601         for the heap to that which is actually available. Also now
11602         displays a message box (with some dignostics) in the event that
11603         it still can't start.
11604
11605 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
11606
11607         * callproc.c (Fold_call_process_internal): GCPRO path
11608
11609 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
11610
11611         Patch by Bill Perry.
11612
11613         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
11614         back data instead of #ifdef.
11615         (Fscrollbar_page_down): ditto.
11616
11617 2000-05-07  Ben Wing  <ben@xemacs.org>
11618
11619         * buffer.h:
11620         Kludge for defining Qmswindows_tstr.
11621
11622         * nt.c:
11623         * nt.c (open_input_file):
11624         * nt.c (open_output_file):
11625         * nt.c (rva_to_section):
11626         * nt.c (mswindows_executable_type):
11627         Move all memory-mapped-file routines here (some were in unexnt.c,
11628         which is bad because they are used by process-nt.c, and unexnt
11629         won't be around when portable dumping).  Synched the above routines
11630         with FSF 20.6.
11631
11632         * nt.h:
11633         Removed ifdef'd out bogus code.
11634         Fixed some prototypes.
11635
11636         * nt.h (file_data):
11637         * nt.h (OFFSET_TO_RVA):
11638         * nt.h (RVA_TO_OFFSET):
11639         * nt.h (RVA_TO_PTR):
11640         Moved the memory-mapped-file structures, macros and prototypes
11641         here, to parallel nt.c.  ntheap.h should really be removed
11642         entirely, and it's a non-portable-dumper specific file.
11643
11644         * ntheap.h (round_to_next):
11645         Moved the memory-mapped-file structures, macros and prototypes
11646         to nt.h.
11647
11648         * ntproc.c (compare_env):
11649         Moved rva_to_section and mswindows_executable_type to nt.c.
11650         Moved compare_env to process-nt.c.
11651         ntproc.c will die, one day.
11652
11653         * ntproc.c (sys_spawnve):
11654         Account for win32_ -> mswindows_.
11655
11656         * process-nt.c:
11657         * process-nt.c (struct nt_process_data):
11658         * process-nt.c (ensure_console_window_exists):
11659         * process-nt.c (compare_env):
11660         * process-nt.c (nt_create_process):
11661         * process-nt.c (nt_kill_process_by_pid):
11662         * process-nt.c (syms_of_process_nt):
11663         * process-nt.c (vars_of_process_nt):
11664         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
11665         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
11666         changes).  Eliminate our old `nt-quote-process-args' mechanism.
11667         Synch up nt_create_process with FSF 20.6 sys_spawnve.
11668         Move compare_env here from ntproc.c.
11669
11670         * process.c (Fprocess_send_region):
11671         Takes an optional fourth argument, BUFFER, which should fix some
11672         problems with call-process.
11673
11674         * syscommctrl.h:
11675         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
11676
11677         * syswindows.h:
11678         Move ICC_BAR_CLASSES to syscommctrl.h.
11679         Add preliminary macros for MSWindows/Mule.  More to come.
11680
11681         * unexnt.c:
11682         * unexnt.c (unexec):
11683         open_output_file moved to nt.c.
11684
11685
11686 2000-05-05  Andy Piper  <andy@xemacs.org>
11687
11688         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
11689         instance from the frame cache also since GC may catch up too late
11690         to make frame deletion sane.
11691
11692 2000-05-04  Andy Piper  <andy@xemacs.org>
11693
11694         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
11695         (x_finalize_image_instance): ungcpro on deletion.
11696
11697         * glyphs.c (image_instantiator_format_create): give pointers a
11698         query geometry method so that the geometry is at least set.
11699
11700         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
11701         initialize layouts if using widgets.
11702
11703 2000-05-03  Andy Piper  <andy@xemacs.org>
11704
11705         * nt.c: remove bogus reference to sysmmsystem.h
11706
11707         * gui-x.c (popup_selection_callback): fix no selection abort.
11708
11709 2000-05-02  Andy Piper  <andy@xemacs.org>
11710
11711         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
11712         (mswindows_widget_instantiate): ditto.
11713
11714         * glyphs-widget.c (initialize_widget_image_instance): initialize
11715         children correctly.
11716         (widget_instantiate): cope with children and items in the same
11717         instance.
11718
11719         * glyphs.c (mark_image_instance): cope with children as a first
11720         class member.
11721         (image_instance_equal): ditto.
11722         (image_instance_hash): ditto.
11723         (image_instance_changed): ditto.
11724
11725 2000-04-30  Andy Piper  <andy@xemacs.org>
11726
11727         * glyphs.c (subwindow_query_geometry): new function. Return some
11728         defaults.
11729         (subwindow_instantiate): don't assign dimensions if none have been
11730         given.
11731         (image_instantiator_format_create): add subwindow_query_geometry.
11732         (print_image_instance): cope with layouts as widgets.
11733
11734 2000-04-29  Andy Piper  <andy@xemacs.org>
11735
11736         * frame.c (delete_frame_internal): call
11737         free_frame_subwindow_instance_cache so that all subwindows are
11738         finalized before their parent.
11739         (mark_frame): remove subwindow_cachels.
11740         (Fmake_frame): remove subwindow_cachel manipulation.
11741         (allocate_frame_core): subwindow_instance_cache is a weak list.
11742         (delete_frame_internal): set subwindow_instance_cache to nil.
11743
11744         * glyphs-msw.c (mswindows_finalize_image_instance): make double
11745         finalization safe.
11746         (mswindows_finalize_image_instance): use the device
11747         not the domain as the domain may have died already.
11748
11749         * glyphs-x.c (x_finalize_image_instance): ditto.
11750         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
11751         HEIGHT.
11752
11753         * redisplay-output.c (redisplay_unmap_subwindows): update for
11754         subwindow instance cache as a weak list.
11755         (redisplay_unmap_subwindows_maybe): ditto.
11756         (redisplay_unmap_subwindows_except_us): ditto.
11757
11758         * glyphs.c (unmap_subwindow): error checking will check the domain
11759         so don't deal with it here. Don't use cachels anymore.
11760         (map_subwindow): ditto.
11761         (update_subwindow_cachel_data): remove old accessor names.
11762         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
11763         (Fresize_subwindow): don't update cachel.
11764         (mark_subwindow_cachels):
11765         (update_subwindow_cachel_data):
11766         (add_subwindow_cachel):
11767         (get_subwindow_cachel_index):
11768         (update_subwindow_cachel):
11769         (reset_subwindow_cachels):
11770         (mark_subwindow_cachels_as_not_updated): deleted.
11771         (cache_subwindow_instance_in_frame_maybe): new function. Add a
11772         subwindow instance to the frame cache.
11773         (find_matching_subwindow): update for subwindow instance cache as
11774         a weak list.
11775         (update_widget_instances): ditto.
11776         (image_instance_type_to_mask):inlined.
11777         (free_frame_subwindow_instance_cache): new function. finalize all
11778         subwindows that are instantiated.
11779
11780         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
11781         of cachel information.
11782         (IMAGE_INSTANCE_DISPLAY_X):
11783         (IMAGE_INSTANCE_DISPLAY_Y):
11784         (IMAGE_INSTANCE_DISPLAY_WIDTH):
11785         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
11786         (XIMAGE_INSTANCE_DISPLAY_X):
11787         (XIMAGE_INSTANCE_DISPLAY_Y):
11788         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
11789         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
11790         remove subwindow_cachel structure and function references.
11791         (image_instance_type_to_mask): inline from glyphs.c
11792
11793         * redisplay.c (redisplay_frame): remove subwindow_cachel
11794         references.
11795
11796         * frame.h (struct frame): remove subwindow_cachels.
11797         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
11798
11799         * frameslots.h: add subwindow_instance_cache.
11800
11801         * window.c (replace_window): check subwindow cache of replacement.
11802         (window_unmap_subwindows_cache_mapper):
11803         (window_unmap_subwindows): new functions. Unmap all subwindows
11804         cached on this window.
11805         (mark_window_as_deleted): unmap all subwindows.
11806
11807 2000-04-27  Andy Piper  <andy@xemacs.org>
11808
11809         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
11810
11811         * glyphs-widget.c (widget_layout): return something.
11812         (layout_layout): return something. Fail if not initialized.
11813         (layout_query_geometry): ditto.
11814         (image_instantiator_native_layout): new function. Initialized the
11815         native layout type.
11816         (widget_instantiate): don't do layout stuff here.
11817
11818         * glyphs.c (instantiate_image_instantiator): reorded calling or
11819         instantiate and post_instantiate with layout in between.
11820         (image_instance_layout): be more selective about deciding whether
11821         the layout has been done or not.
11822
11823         * glyphs.h (struct image_instantiator_methods): return a value
11824         from layout_method.
11825
11826 2000-04-26  Andy Piper  <andy@xemacs.org>
11827
11828         * glyphs.c (allocate_image_instance): make initial width and
11829         height unspecified. Set initialized to 0.
11830
11831         * syscommctrl.h new file. Encapsulates commctrl.h.
11832
11833         * syswindows.h new file. Encapsulates windows.h.
11834
11835         * ntplay.c: use new syswindows.h and syscommctrl.h header.
11836         * nt.c: ditto.
11837         * console-msw.h: ditto.
11838
11839         * redisplay-tty.c (tty_output_display_block): remove layout references.
11840
11841         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
11842         window handle rather than just the frame.
11843
11844         * glyphs.c (mark_image_instance): remove layout references.
11845         (print_image_instance): ditto.
11846         (image_instance_equal): ditto.
11847         (image_instance_hash): ditto.
11848         (decode_image_instance_type): ditto.
11849         (encode_image_instance_type): ditto.
11850         (image_instantiate): ditto.
11851         (allocate_glyph): ditto.
11852         (Fimage_instance_height): ditto.
11853         (Fimage_instance_width): ditto.
11854         (update_subwindow): ditto.
11855
11856         * redisplay-x.c (x_output_display_block): recode for layouts as
11857         widgets.
11858
11859         * redisplay-output.c (redisplay_output_layout): recode for layouts
11860         as widgets.
11861         (compare_runes): remove layout references.
11862
11863         * redisplay-msw.c (mswindows_output_display_block): recode for
11864         layouts as widgets.
11865
11866         * glyphs-widget.c (image_instantiator_layout): remove
11867         layout_possible_dest_types.
11868         (layout_possible_dest_types): deleted.
11869
11870         * glyphs.h (image_instance_type): remove layout references.
11871         (struct Lisp_Image_Instance): ditto. Add initialized flag.
11872         (IMAGE_INSTANCE_INITIALIZED): new accessor.
11873         (XIMAGE_INSTANCE_INITIALIZED): ditto.
11874
11875 2000-04-25  Andy Piper  <andy@xemacs.org>
11876
11877         * glyphs-widget.c (image_instantiator_buttons):
11878         (image_instantiator_edit_fields):
11879         (image_instantiator_combo_box):
11880         (image_instantiator_scrollbar):
11881         (image_instantiator_progress_guage):
11882         (image_instantiator_tree_view):
11883         (image_instantiator_tab_control):
11884         (image_instantiator_labels):
11885         (image_instantiator_layout): call default post_instantiate method.
11886         (widget_post_instantiate): new function. Simply lays out the
11887         widgets.
11888
11889         * glyphs.h (struct image_instantiator_methods): add
11890         post_instantiate method.
11891
11892         * glyphs.c (instantiate_image_instantiator): add post_instantiate
11893         method calls.
11894
11895 2000-04-23  Andy Piper  <andy@xemacs.org>
11896
11897         * glyphs.h (struct image_instantiator_methods): add
11898         decode_domain_method.
11899         (struct Lisp_Image_Instance): remove subwindow frame - it can be
11900         derived from the domain.
11901         (IMAGE_INSTANCE_FRAME): new accessor.
11902         (XIMAGE_INSTANCE_FRAME): ditto.
11903
11904         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
11905         instead of _SUBWINDOW_FRAME.
11906         (finalize_image_instance): ditto.
11907         (Fimage_instance_foreground): ditto.
11908         (Fimage_instance_background): ditto.
11909         (image_instantiate): ditto.
11910         (update_subwindow_cachel): ditto.
11911         (update_subwindow): ditto.
11912         (unmap_subwindow): ditto.
11913         (map_subwindow): ditto
11914         (subwindow_instantiate): ditto.
11915         * glyphs-msw.c (mswindows_update_widget): ditto.
11916         (mswindows_progress_gauge_instantiate): ditto.
11917         (mswindows_tab_control_update): ditto.
11918         * glyphs-x.c (x_update_widget): ditto.
11919         (x_widget_instantiate): ditto.
11920         (x_tab_control_instantiate): ditto.
11921         (x_tab_control_update): ditto.
11922         * event-msw.c (mswindows_wnd_proc): ditto
11923
11924         * glyphs-widget.c (image_instantiator_layout): use
11925         subwindow_decode_domain.
11926         (image_instantiator_buttons): ditto.
11927         (image_instantiator_edit_fields): ditto.
11928         (image_instantiator_combo_box): ditto.
11929         (image_instantiator_scrollbar): ditto.
11930         (image_instantiator_progress_guage): ditto.
11931         (image_instantiator_tree_view): ditto.
11932         (image_instantiator_tab_control): ditto.
11933         (image_instantiator_labels): ditto.
11934         (image_instantiator_layout): ditto.
11935
11936         * glyphs.c: add instance error checking to many functions.
11937         (instantiate_image_instantiator): decode device from cache_domain.
11938         (image_instantiate): partially rewrite by using
11939         decode_image_instantiator_domain to determine what domain the
11940         instance needs to be cached in.
11941         (decode_image_instantiator_domain): new function. Determine what
11942         domain the image needs to be cached in.
11943         (check_window_subwindow_cache): new error checking function.
11944         (check_instance_cache_mapper): ditto.
11945         (check_image_instance_structure): ditto.
11946         (subwindow_decode_domain): new function. Encodes a window as a
11947         subwindow's cache domain.
11948         (image_instantiator_format_create): use it for text and
11949         subwindows.
11950
11951 2000-04-21  Andy Piper  <andy@xemacs.org>
11952
11953         * glyphs.c (image_instance_device): new function.
11954         (image_instance_frame): new function.
11955         (image_instance_window): new function.
11956         (image_instance_live_p): new function.
11957
11958         * window.c (mark_window_as_deleted): reset the subwindow_instance_
11959         cache to nil.
11960
11961         * glyphs.h (struct Lisp_Image_Instance): device->domain.
11962         (IMAGE_INSTANCE_DOMAIN): new accessor.
11963         (XIMAGE_INSTANCE_DOMAIN): ditto.
11964
11965         * glyphs-x.c (x_finalize_image_instance): device->domain.
11966
11967         * glyphs-msw.c (init_image_instance_geometry): device->domain.
11968         (mswindows_finalize_image_instance): ditto.
11969
11970         * glyphs-eimage.c (jpeg_instantiate): device->domain.
11971         (gif_instantiate): ditto.
11972         (png_instantiate): ditto.
11973         (tiff_instantiate): ditto.
11974
11975         * glyphs.c (instantiate_image_instantiator): use domain rather
11976         than device.
11977         (mark_image_instance): device -> domain.
11978         (print_image_instance): ditto.
11979         (finalize_image_instance): ditto.
11980         (image_instance_equal): ditto.
11981         (allocate_image_instance): ditto.
11982         (Fcolorize_image_instance): ditto.
11983         (query_string_geometry): ditto.
11984         (image_instantiate): ditto
11985         (query_string_font): ditto.
11986         (image_instantiate): ditto.
11987         (update_subwindow): ditto.
11988         (unmap_subwindow): ditto.
11989         (map_subwindow): ditto.
11990         (subwindow_instantiate): ditto.
11991
11992         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
11993         (DOMAIN_FRAME): ditto.
11994         (DOMAIN_WINDOW): ditto.
11995         (DOMAIN_LIVE_P): ditto.
11996         (XDOMAIN_DEVICE): ditto.
11997         (XDOMAIN_FRAME): ditto.
11998         (XDOMAIN_WINDOW): ditto.
11999
12000         * specifier.c (Fvalid_specifier_domain_p): add image instances as
12001         a valid specifier domain.
12002
12003 2000-04-19  Andy Piper  <andy@xemacs.org>
12004
12005         * glyphs-widget.c (syms_of_glyphs_widget): remove
12006         widget-callback-current-channel.
12007         (vars_of_glyphs_widget): ditto.
12008         * glyphs.h: ditto
12009
12010         * gui.c (get_gui_callback): revert to previous behaviour.
12011
12012 2000-04-18  Andy Piper  <andy@xemacs.org>
12013
12014         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
12015         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
12016         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
12017
12018         * glyphs.c (image_instance_equal): add margin_width.
12019         (image_instance_hash): ditto.
12020
12021         * glyphs-widget.c (widget_instantiate): deal with margin-width.
12022         (layout_query_geometry): ditto.
12023         (layout_layout): ditto.
12024         (syms_of_glyphs_widget): add margin-width.
12025         (image_instantiator_layout): allow margin-width.
12026
12027         * glyphs.c (update_widget_instances): make a normal function.
12028         (syms_of_glyphs): remove Qupdate_widget_instances.
12029         * glyphs.h: ditto.
12030
12031         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
12032         so that we don't corrupt ideas about the last event or
12033         command. Remove widget-callback-current-channel fiddling.
12034         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
12035
12036 2000-05-01  Martin Buchholz <martin@xemacs.org>
12037
12038         * XEmacs 21.2.33 is released.
12039
12040 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
12041
12042         * make-src-depend: Allow dots in header file name.
12043
12044 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
12045
12046         * mule-charset.h (struct charset_lookup): Add
12047         next_allocated_1_byte_leading_byte and
12048         next_allocated_2_byte_leading_byte.
12049         * mule-charset.c: Move above two variables so that those values
12050         will be dumped.
12051
12052 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
12053
12054         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
12055         when string length is zero.
12056         (find_charsets_in_emchar_string): Ditto.
12057
12058 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
12059
12060         * lisp.h: extern Qdialog and Qmenubar.
12061
12062         * gui-x.c: added events.h.
12063                 also fixed typo which made the file uncompilable.
12064
12065         * general.c: Added Qmenubar and Qdialog
12066
12067 2000-04-28  Ben Wing  <ben@xemacs.org>
12068
12069         * frame-msw.c (mswindows_init_frame_1):
12070         * frame-msw.c (mswindows_mark_frame):
12071         * event-msw.c (mswindows_enqueue_dispatch_event):
12072         * console-msw.h:
12073         * console-msw.h (struct mswindows_frame):
12074         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
12075         there are now three hash tables for callbacks.
12076         mswindows_enqueue_dispatch_event is no longer static.
12077
12078         * dialog-x.c (maybe_run_dbox_text_callback):
12079         * dialog-x.c (dbox_descriptor_to_widget_value):
12080         switch to new cons3 form for callbacks.
12081
12082         * glyphs-msw.c (mswindows_register_gui_item):
12083         * glyphs-msw.c (mswindows_widget_instantiate):
12084         * glyphs-msw.c (add_tree_item):
12085         * glyphs-msw.c (add_tab_item):
12086         new image instance parameter, so it can be passed to callback-ex.
12087         respect :callback-ex as well as :callback.
12088
12089         * glyphs-widget.c (VALID_GUI_KEYWORDS):
12090         add :callback-ex.
12091
12092         * glyphs.c (print_image_instance):
12093         prettify, e.g. now prints widget type.
12094
12095         * gui-x.h:
12096         certain funs have new image instance parameter.
12097
12098         * gui.c:
12099         * gui.c (get_gui_callback):
12100         * gui.c (gui_item_add_keyval_pair):
12101         * gui.c (gui_item_init):
12102         * gui.c (gui_add_item_keywords_to_plist):
12103         * gui.c (mark_gui_item):
12104         * gui.c (gui_item_hash):
12105         * gui.c (gui_item_equal):
12106         * gui.c (copy_gui_item):
12107         * gui.c (syms_of_gui):
12108         recognize callback-ex in a number of places.
12109         also, fix the annoying "can't get out of yes-no dialog" bug.
12110
12111         * gui.h:
12112         * gui.h (struct Lisp_Gui_Item):
12113         recognize callback-ex in a number of places.
12114
12115         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
12116         new parameter in button_item_to_widget_value.
12117
12118         * glyphs-x.c (x_update_widget):
12119         * glyphs-x.c (x_button_instantiate):
12120         * glyphs-x.c (x_button_update):
12121         * glyphs-x.c (x_progress_gauge_instantiate):
12122         * glyphs-x.c (x_edit_field_instantiate):
12123         * glyphs-x.c (x_combo_box_instantiate):
12124         * glyphs-x.c (x_tab_control_instantiate):
12125         * glyphs-x.c (x_label_instantiate):
12126         new image instance parameter in various places.
12127
12128         * event-Xt.c:
12129         * event-Xt.c (enqueue_Xt_dispatch_event):
12130         this fun gets exported.
12131
12132         * gui-msw.c:
12133         * gui-msw.c (mswindows_handle_gui_wm_command):
12134         handle both :callback and :callback-ex, and generate our own
12135         event because it's one of the callback-ex arguments.
12136
12137         * gui-x.c:
12138         * gui-x.c (popup_selection_callback):
12139         handle both :callback and :callback-ex, and generate our own
12140         event because it's one of the callback-ex arguments.
12141         * gui-x.c (button_item_to_widget_value):
12142         * gui-x.c (gui_items_to_widget_values_1):
12143         * gui-x.c (gui_item_children_to_widget_values):
12144         * gui-x.c (gui_items_to_widget_values):
12145         new image instance parameter in various places.
12146
12147         * fns.c (Freplace_list):
12148         fix small typo in doc string.
12149
12150         * lisp.h:
12151         declare enqueue_Xt_dispatch_event.
12152
12153 2000-04-28  Ben Wing  <ben@xemacs.org>
12154
12155         * buffer.c:
12156         * buffer.c (Frecord_buffer):
12157         * buffer.c (syms_of_buffer):
12158         delete record-buffer-hook.
12159
12160         * fns.c:
12161         * fns.c (Freplace_list):
12162         * fns.c (syms_of_fns):
12163         new primitive replace-list.
12164
12165         * frameslots.h:
12166         slot for old buffer-alist.
12167
12168         * lisp.h:
12169         exfun replace-list.
12170
12171         * redisplay.c:
12172         * redisplay.c (redisplay_frame):
12173         * redisplay.c (syms_of_redisplay):
12174         * redisplay.c (vars_of_redisplay):
12175         new hook buffer-list-changed-hook.
12176         call it.
12177
12178 2000-04-27  Ben Wing  <ben@xemacs.org>
12179
12180         * extents.h: extern in_modeline_generation.
12181
12182         * redisplay.c (generate_formatted_string_db): set
12183         in_modeline_generation.
12184
12185         * extents.c (extent_changed_for_redisplay): don't mark redisplay
12186         flags if in modeline generation.  otherwise frame-modified-tick
12187         is ticked far too often.
12188         Declare in_modeline_generation.
12189
12190 2000-04-26  Ben Wing  <ben@xemacs.org>
12191
12192         * emacs.c (vars_of_emacs): document quick-build "error-checking"
12193         option.
12194         (vars_of_emacs): add quick-build as an error-checking option.
12195         A bit kludgy, but there doesn't seem much point in creating
12196         a real var for this.
12197
12198         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
12199
12200 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12201
12202         * redisplay.h (struct display_line): Add a new variable,
12203         line_continuation.
12204
12205         * redisplay.c (create_text_block): Set dl->line_continuation if
12206         the line continues.
12207         (create_string_text_block): Ditto.
12208         (regenerate_window_incrementally): Use line_continuation instead
12209         of searching continuation glyph.
12210         (add_margin_runes): Call add_glyph_rune.
12211         (add_glyph_rune): Handle margin glyph.
12212
12213 2000-04-20  Martin Buchholz  <martin@xemacs.org>
12214
12215         * filelock.c (fill_in_lock_file_name):
12216         ANSIfy.
12217         Check for IS_ANY_SEP instead of '/'.
12218         (lock_file_1):
12219         Avoid generating gratuitous garbage.  Call user_login_name() directly.
12220         Never check errno without first seeing that system call failed.
12221         (unlock_file): Add GCPRO.
12222         (Flock_buffer): Fix docstring.
12223         (Ffile_locked_p): Fix docstring.  Add GCPRO.
12224
12225 2000-04-19  Martin Buchholz  <martin@xemacs.org>
12226
12227         * sysdep.c (get_pty_max_bytes):
12228         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
12229         strings longer than 252 bytes.
12230
12231         * md5.c: Unconditionally include ANSI header <limits.h>
12232
12233         * glyphs-x.c (convert_EImage_to_XImage):
12234         * lisp-union.h (union Lisp_Object):
12235         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
12236
12237 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
12238
12239         * filelock.c (current_lock_owner): Remove unused variable o, p.
12240
12241 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
12242
12243         * callint.c: Remove multiply defined symbol Qlet
12244         (syms_of_callint): ditto.
12245
12246 2000-04-14  Andy Piper  <andy@xemacs.org>
12247
12248         * general.c (syms_of_general): add last-command, this-command, let
12249         and funcall.
12250
12251         * lisp.h: declare various symbols.
12252
12253         * glyphs.h: declare Qwidget_callback_current_channel;
12254
12255         * glyphs-widget.c (syms_of_glyphs_widget): add
12256         Qgui_callback_current_channel.
12257         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
12258
12259         * gui-msw.c (mswindows_handle_gui_wm_command): bind
12260         widget-callback-current-channel when invoking the interactive
12261         arg. Also bind last-command and next-command when invoking the
12262         widget updates.
12263         * gui-x.c (popup_selection_callback): ditto.
12264
12265         * gui.c (get_gui_callback): massage args so that we are always
12266         calling eval. This allows us to add our own variable bindings
12267         outside.
12268
12269         * glyphs-x.c (x_button_instantiate): use
12270         gui_items_to_widget_values since this is GC safe.
12271         (x_progress_gauge_instantiate): ditto.
12272         (x_edit_field_instantiate): ditto.
12273         (x_label_instantiate): ditto.
12274
12275         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
12276         (emacs_Xt_event_widget_focus_out): new function
12277         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
12278         focus.
12279         (emacs_Xt_event_add_widget_actions): new function. add focus
12280         functions as actions.
12281         (init_event_Xt_late): use it.
12282
12283 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
12284
12285         * event-stream.c (Fdispatch_event): Doc fix.
12286
12287 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
12288
12289         * postgresql.c: Remove all references to PQsetenv*.
12290
12291         * postgresql.h: Remove references to PGsetenvHandler object.
12292         * lrecord.h (lrecord_type): Ditto.
12293
12294 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12295
12296         * glyphs-msw.h (struct mswindows_image_instance_data): Added
12297         real_heigh and real_width members, and accessor macros for these.
12298
12299         * glyphs-msw.c (init_image_instance_geometry): New function.
12300         (init_image_instance_from_dibitmap): Use it.
12301         (mswindows_resource_instantiate): Use it.
12302         (init_image_instance_from_xbm_inline): Use it.
12303         (mswindows_initialize_image_instance_mask): Use real bitmap
12304         geometry.
12305         (mswindows_create_resized_bitmap): Ditto.
12306         (mswindows_create_resized_mask): Ditto.
12307
12308         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
12309         and bitmap to their surface size.
12310
12311 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
12312
12313         * process-unix.c (unix_send_process): Guard against process MIA
12314         after Faccept_process_output.
12315
12316 2000-04-11  Ben Wing  <ben@xemacs.org>
12317
12318         * eval.c (unbind_to_hairy): fix brokenness introduced by
12319         nanosecond speed improvements.
12320
12321 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
12322
12323         * sunplay.c (init_device): To play sounds correctly, the device
12324         apparently needs to be initialized at least once by XEmacs.  Make
12325         it so.
12326
12327 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12328
12329         * redisplay.c (add_margin_runes): Add text image glyph
12330           handling.
12331
12332 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
12333
12334         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
12335         gcc is newer than 2.5.
12336
12337 2000-04-06  Colin Rafferty  <colin@xemacs.org>
12338
12339         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
12340
12341         * fns.c (size_bit_vector):
12342         * alloc.c (size_vector):
12343         (make_vector_internal):
12344         (make_bit_vector_internal):
12345         (sweep_bit_vectors_1):
12346         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
12347
12348 2000-04-06  Andy Piper  <andy@xemacs.org>
12349
12350         * gmalloc.c (malloc): undo previous change.
12351         (malloc): ditto.
12352         (free): ditto.
12353         (realloc): ditto.
12354
12355 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
12356
12357         * line-number.c (buffer_line_number): Revert to former version.
12358
12359 2000-04-06  Andy Piper  <andy@xemacs.org>
12360
12361         * gmalloc.c (malloc): add error checking.
12362         (malloc): ditto.
12363         (free): ditto.
12364         (realloc): ditto.
12365
12366         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
12367         button_item_to_widget_value arg.
12368
12369         * glyphs-x.c (x_button_instantiate): add extra
12370         button_item_to_widget_value arg.
12371         (x_progress_gauge_instantiate): ditto.
12372         (x_edit_field_instantiate): ditto.
12373         (x_label_instantiate): ditto.
12374
12375         * gui-x.c (gui_items_to_widget_values_1): add extra
12376         button_item_to_widget_value arg.
12377         (button_item_to_widget_value): add extra menu_item_p arg.
12378
12379         * gui-x.h: change signature of button_item_to_widget_value.
12380
12381         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
12382         button_item_to_widget_value arg.
12383
12384 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
12385
12386         * buffer.h (struct buffer): auto_save_modified should be long.
12387
12388 2000-04-05  Andy Piper  <andy@xemacs.org>
12389
12390         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
12391         type.
12392         (button_query_geometry): give a little more room so that athena
12393         buttons fit.
12394
12395 2000-04-05  Andy Piper  <andy@xemacs.org>
12396
12397         * faces.c (complex_vars_of_faces): The widget face should inherit
12398         the font of the gui-element face.
12399
12400 2000-04-04  Andy Piper  <andy@xemacs.org>
12401
12402         * glyphs-x.c (x_button_update): new function. unconditionally
12403         update a button's state when the instance is dirty.
12404         (image_instantiator_format_create_glyphs_x): add x_button_update.
12405         (x_widget_instantiate): remove old resize cruft.
12406
12407 2000-04-02  Andy Piper  <andy@xemacs.org>
12408
12409         * frame.c (change_frame_size_1): The introduction of gutters means
12410         that we need to allow 0 as a potential frame dimension.
12411
12412 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12413
12414         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
12415         image glyph if allow_cursor.
12416         (add_hscroll_rune): Don't allow cursor to border glyph.
12417         (create_text_block): Ditto.
12418
12419         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
12420         text not in buffer.
12421         (redisplay_output_layout): Call ensure_face_cachel_complete for
12422         text image glyph.
12423
12424
12425 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12426
12427         * redisplay.c (add_glyph_rune): Adding text image as text runes.
12428
12429         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
12430         not in buffer
12431
12432         * redisplay-tty.c (tty_output_display_block): Delete the routine
12433         for text image glyph
12434         * redisplay-x.c (x_output_display_block): ditto
12435         * redisplay-msw.c (mswindows_output_display_block): ditto
12436
12437 2000-02-02  Mike Alexander  <mta@arbortext.com>
12438
12439         Note: Some of these were committed by accident as part of other
12440         patches.
12441
12442         * regex.c (regex_compile): Avoid compiler warnings.
12443
12444         * ntproc.c (sys_spawnve): Avoid compiler warnings.
12445
12446         * nt.h: Declare term_ntproc correctly.
12447
12448         * nt.c: Remove incorrect declaration of get_home_directory which
12449         is declared correctly in lisp.h.
12450
12451         * keymap.c (get_keyelt): Avoid compiler warnings.
12452         (raw_lookup_key_mapper): Avoid compiler warnings.
12453
12454         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
12455
12456         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
12457
12458         * filemode.c (mode_string): Avoid compiler warnings.
12459
12460         * file-coding.c (Fcoding_system_aliasee): Add return statement to
12461         avoid warning.
12462
12463         * events-mod.h: Undef some things that winuser.h defines differently.
12464
12465         * data.c (Faset): Avoid compiler warnings.
12466
12467         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
12468
12469 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
12470
12471         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
12472         Fall through to simple beep on error.
12473         Replace "extern" by real header file.
12474
12475         * linuxplay.c: Use nativesound.h
12476         (play_sound_data): Return error code. Be less verbose on error.
12477
12478         * sunplay.c: Use nativesound.h
12479         (play_sound_data): Return error code. Be less verbose on error.
12480
12481         * ntplay.c: Use nativesound.h
12482         (play_sound_data): Return fake error code
12483
12484         * sgiplay.c: Use nativesound.h
12485         (play_sound_data): Return error code
12486
12487         * hpplay.c: Use nativesound.h, partially implement
12488         new error code. Break compilation until finished.
12489         (play_sound_data): error code.
12490
12491         * nativesound.h (play_sound_file):
12492           (play_sound_data): Prototype in new header.
12493
12494 2000-03-31  Andy Piper  <andy@xemacs.org>
12495
12496         * glyphs-widget.c: (button_query_geometry): new function. Adjust
12497         for toggle and radio buttons.
12498         (image_instantiator_buttons): use it.
12499
12500 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
12501
12502         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
12503         (x_update_horizontal_scrollbar_callback): Return if no mirror was
12504         found. Scrollbar event probably belonged to some old config.
12505
12506 2000-03-31  Andy Piper  <andy@xemacs.org>
12507
12508         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
12509         than 1.
12510         (initialize_widget_image_instance): default layout to
12511         LAYOUT_HORIZONTAL rather than 0.
12512         (widget_instantiate): reverse the item list at the end rather than
12513         every iteration.
12514         (layout_layout): re-code for the border text at the front of the
12515         item list rather than at the end.
12516         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
12517         provided by the user.
12518         (widget_query_geometry): comment.
12519
12520 2000-03-30  Andy Piper  <andy@xemacs.org>
12521
12522         * glyphs-widget.c (image_instantiator_layout): allow standard
12523         widget keywords in layouts.
12524
12525         * gutter.c (output_gutter): cope with nil gutter contents.
12526
12527         * frame.c (Fset_frame_properties): add gutter docs.
12528
12529 2000-03-29  Andy Piper  <andy@xemacs.org>
12530
12531         * toolbar-msw.c (TBSTYLE_FLAT): add.
12532         (mswindows_output_toolbar): minor fiddling.
12533
12534 2000-03-29  Andy Piper  <andy@xemacs.org>
12535
12536         * gutter.c (output_gutter): force gutter size recalculation if
12537         what we are trying to display won't fit.
12538         (update_gutter_geometry): new function. A per-gutter version of
12539         update_frame_gutter_geometry.
12540         (update_frame_gutter_geometry): use it.
12541         (redraw_exposed_gutter): add extra debugging output.
12542
12543 2000-03-28  Mike Alexander  <mta@arbortext.com>
12544
12545         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
12546         (pdump_file_unmap): Implement it on Windows
12547         (pdump_file_get): Save alocated handles for pdump_file_unmap
12548
12549 2000-03-28  Andy Piper  <andy@xemacs.org>
12550
12551         * gui.c (get_gui_callback): treat Quit specially.
12552
12553 2000-03-27  Andy Piper  <andy@xemacs.org>
12554
12555         * glyphs.c (image_instantiate): be careful to check in the same
12556         way we assigned.
12557
12558 2000-03-27  Didier Verna  <didier@xemacs.org>
12559
12560         * config.h.in: define the proper SMART_INCLUDE macro.
12561         handle renaming of `foo_h_path' to `foo_h_file'.
12562
12563         * database.c: ditto.
12564
12565         * emacs.c: ditto.
12566
12567         * linuxplay.c: ditto.
12568
12569         * terminfo.c: ditto.
12570
12571         * tooltalk.h: ditto.
12572
12573 2000-03-27  Andy Piper  <andy@xemacs.org>
12574
12575         * glyphs-msw.c (mswindows_update_widget): make sure the widget
12576         gets updated whenever the face might have changed.
12577
12578 2000-03-26  Mike Alexander  <mta@arbortext.com>
12579
12580         * dumper.c (pdump_resource_free): Fix the comment.
12581
12582 2000-03-21  Olivier Galibert  <galibert@pobox.com>
12583
12584         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
12585
12586 2000-03-22  Mike Alexander  <mta@arbortext.com>
12587
12588         * dumper.c: Include Windows headers on Windows
12589         (pdump_resource_free): Add a body to the function
12590         (pdump_load): exe_name -> exe_path and add some comments.
12591
12592 2000-03-25  Mike Alexander  <mta@arbortext.com>
12593
12594         * gui.c (copy_gui_item_tree): Return a value in all cases
12595
12596 2000-03-21  Didier Verna  <didier@xemacs.org>
12597
12598         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
12599         lwlib/config.h.in.
12600         (SMART_INCLUDE): new macro.
12601         (POSTGRES_INCLUDE): new macro to include postgresql headers from
12602         the proper location.
12603
12604         * postgresql.c: use it.
12605
12606         * inline.c: ditto.
12607
12608 2000-03-24  Andy Piper  <andy@xemacs.org>
12609
12610         * gutter.c (redraw_exposed_gutters): must be "in display" when we
12611         do this.
12612
12613 2000-03-24  Andy Piper  <andy@xemacs.org>
12614
12615         * redisplay-output.c (compare_runes): use image_instance_changed
12616         to detect changes. Do not depend on glyphs_changed, only depend on
12617         dirtiness.
12618          (redisplay_output_layout): add debug messages.
12619         (compare_runes): ditto.
12620
12621         * glyphs.h: declare new functions.
12622         (struct Lisp_Image_Instance): remove percent and associated
12623         accessors.
12624
12625         * gui.h: declare new copying functions.
12626
12627         * gui.c (copy_gui_item_tree): new function.
12628         (copy_gui_item): new function.
12629         (gui_item_id_hash): revert to standard hash.
12630         (gui_item_hash): ditto.
12631         (gui_item_hash_internal): deleted.
12632         (mark_gui_item): mark value.
12633         (gui_item_add_keyval_pair): add value.
12634         (gui_item_init): ditto.
12635         (gui_add_item_keywords_to_plist): ditto.
12636         (gui_item_equal): ditto.
12637         (syms_of_gui): add Q_value.
12638
12639         * glyphs-x.c (x_progress_gauge_update): use pending items and
12640         value for setting the state.
12641         (x_update_widget): don't set items from pending here.
12642
12643         * glyphs-widget.c (update_widget): update items here.
12644         (progress_gauge_set_property): use items for storing value. Put
12645         new value in pending items.
12646
12647         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
12648         items for new value. Convert percent -> value.
12649         (mswindows_tab_control_update): don't update items here.
12650
12651         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
12652         (update_subwindow): ditto.
12653         (image_instance_changed): new function. Compare hash values and
12654         past and present widget items.
12655         (image_instantiate): We more careful about where we instantiate
12656         things.
12657         (image_instantiate): add error checking.
12658
12659         * gutter.c (syms_of_gutter): use -hook.
12660
12661 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
12662
12663         * console-tty.c (Fset_console_tty_input_coding_system): Use
12664         Qkeyboard.
12665         (Fset_console_tty_output_coding_system): Use Qterminal.
12666         (tty_init_console): Use Qkeyboard and Qterminal.
12667
12668 2000-03-21  Ben Wing  <ben@xemacs.org>
12669
12670         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
12671         From Mike Alexander <mta@arbortext.com>.
12672
12673 2000-03-21  Ben Wing  <ben@xemacs.org>
12674
12675         * event-msw.c (mswindows_need_event): Horrible kludge to fix
12676         process brokenness.  Proper implementation to come.
12677         * callproc.c:
12678         Rename call-process-internal to old-call-process-internal.
12679         New impl. in process.el.
12680
12681 2000-03-21  Martin Buchholz  <martin@xemacs.org>
12682
12683         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
12684
12685 2000-03-20  Andy Piper  <andy@xemacs.org>
12686
12687         * glyphs.c (full_list_hash): make hashes of the same elements in
12688         different orders return different values.
12689
12690 2000-03-20  Martin Buchholz <martin@xemacs.org>
12691
12692         * XEmacs 21.2.32 is released.
12693
12694 2000-03-20  Martin Buchholz  <martin@xemacs.org>
12695
12696         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
12697         (DFC_MALLOC_USE_CONVERTED_DATA):
12698         Add aliasing-safe casts to allow use with char* or unsigned char*
12699         lvalues.
12700
12701         * eldap.c (Fldap_open):
12702         (Fldap_search_basic):
12703         (Fldap_add):
12704         (Fldap_modify):
12705         Make C++-compilable.
12706         Make sure GCPRO'ed variables are initialized.
12707         Use temp variables to avoid repeated calls to Flength.
12708
12709 2000-03-16  Martin Buchholz  <martin@xemacs.org>
12710
12711         * sysfile.h:
12712         Make sure PATH_MAX is always defined.
12713         Include limits.h for PATH_MAX.
12714         Deprecate use of MAXPATHLEN.
12715
12716 2000-03-10  Martin Buchholz  <martin@xemacs.org>
12717
12718         * emacs.c: Add reinit_vars_of_fileio.
12719         * symsinit.h: Add reinit_vars_of_fileio.
12720         * fileio.c (reinit_vars_of_fileio): New.
12721         * fileio.c (Fmake_temp_name):
12722         Initialize temp_name random number from microseconds to make
12723         collisions even less likely.  Initialize always at process startup
12724         time.  (make-temp-name) used to return the same file name twice in
12725         a row when PDUMP.
12726         Random stylistic fiddling.
12727         Comment fixes.
12728
12729 2000-03-20  Andy Piper  <andy@xemacs.org>
12730
12731         * glyphs.c (image_instantiate): allow text glyphs to be
12732         instantiated in the minibuffer window.
12733
12734 2000-03-19  Andy Piper  <andy@xemacs.org>
12735
12736         * glyphs.c (image_instance_hash): be careful about which items we
12737         hash on.
12738
12739         * glyphs-widget.c (tab_control_set_property): record into pending
12740         items rather than the actual items.
12741
12742         * glyphs-x.c (x_update_widget): use pending items to update with.
12743
12744         * glyphs-msw.c (mswindows_tab_control_update): use pending items
12745         to update with.
12746
12747         * glyphs.c (mark_image_instance): mark pending items.
12748
12749         * window.c (Fset_window_configuration): record the buffer.
12750         (Fselect_window): totally revert previous change which breaks many
12751         things.
12752
12753 2000-03-18  Andy Piper  <andy@xemacs.org>
12754
12755         * glyphs-msw.c (mswindows_tab_control_update): force selected
12756         item.
12757
12758         * glyphs.c (image_instantiate): don't allow the minibuffer as a
12759         window domain cache, otherwise we get inconsistencies at
12760         startup. There is something fishy at startup which can lead to the
12761         minibuffer being the selected window when the gutter content is
12762         instantiated.
12763
12764         * gui.c (parse_gui_item_tree_list): add probably unnecessary
12765         gcpros.
12766         (parse_gui_item_tree_children): ditto.
12767         (parse_gui_item_tree_item): ditto.
12768
12769         * glyphs.c (Fupdate_widget_instances): return something.
12770
12771 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
12772
12773         * window.c (Fselect_window): Undo 2000-03-17 change.
12774
12775 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
12776
12777         * postgresql.c (Fpq_setenv): Remove this turkey when linking
12778         against v7.0 libraries.  Insta-coredump city until the postgres
12779         folks fix it.
12780
12781 2000-03-17  Andy Piper  <andy@xemacs.org>
12782
12783         * faces.c (complex_vars_of_faces): don't give the widget face an
12784         inherited background pixmap.
12785
12786         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
12787         selected item.
12788
12789         * event-stream.c (Fdispatch_non_command_events): return something.
12790
12791         * gutter.c (output_gutter): use widget face.
12792         (clear_gutter): ditto.
12793
12794         * NEWS: adjust again.
12795
12796         * window.c (Fselect_window): make sure this runs to completion to
12797         avoid oddities with Fset_window_configuration.
12798         (Fcurrent_window_configuration): in general do not save the
12799         minibuffer as the selected window.
12800
12801         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
12802
12803 2000-03-16  Olivier Galibert  <galibert@pobox.com>
12804
12805         * emacs.c (Frunning_temacs_p): Revert previous patch.
12806         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
12807
12808 2000-03-16  Andy Piper  <andy@xemacs.org>
12809
12810         * glyphs-x.c (x_tab_control_update): if no widget values then
12811         return.
12812
12813         * NEWS: update for new features.
12814
12815         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
12816         synthetic event to the native system.
12817         (reinit_vars_of_event_Xt): set force_event_pending to
12818         emacs_Xt_force_event_pending.
12819
12820         * events.h (struct event_stream): add force_event_pending.
12821
12822         * specifier.c (recompute_one_cached_specifier_in_window): add
12823         comment.
12824
12825         * redisplay.c (redisplay_frame): don't call
12826         update_frame_subwindows. Reset subwindow cachels when
12827         subwindows_changed, removing this was an optimization too far.
12828
12829         * redisplay-output.c (compare_runes): reorganize so that we catch
12830         glyph changes when we want them. Set optimize_output when this
12831         would help layouts.
12832         (redisplay_output_layout): remove frame_really_changed, use
12833         optimize_output instead.
12834
12835         * redisplay-msw.c (mswindows_output_display_block): reset
12836         optimize_output after outputting a glyph.
12837         * redisplay-x.c (x_output_display_block): ditto.
12838         * redisplay-tty.c (tty_output_display_block): ditto.
12839
12840         * gutter.c: (specifier_vars_of_gutter): use new spec changed
12841         functions.
12842         (gutter_specs_changed): do specific gutter positions.
12843         (top_gutter_specs_changed): new function. Only update the
12844         specified gutter specs.
12845         (bottom_gutter_specs_changed): ditto.
12846         (left_gutter_specs_changed): ditto.
12847         (right_gutter_specs_changed): ditto.
12848
12849         * gui.c (gui_item_hash_internal): new function, does a real hash.
12850         (gui_item_id_hash): use it.
12851         (gui_item_hash): hash the eval'ed gui_item.
12852
12853         * gui-x.c (popup_selection_callback): send an eval event to call
12854         Fupdate_widget_instances.
12855
12856         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
12857         to call Fupdate_widget_instances.
12858
12859         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
12860         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
12861
12862         * glyphs.c: (update_frame_subwindows): deleted.
12863         (Fupdate_widget_instances): new function for updating the dirty
12864         state of widgets that might have changed.
12865         (syms_of_glyphs): add Qupdate_widget_instances.
12866         (full_list_hash): hash a list completely.
12867         (image_instance_hash): use it for items and properties.
12868
12869         * frame-msw.c (mswindows_size_frame_internal): remove unused
12870         variable.
12871
12872         * faces.h (struct face_cachel): fix comment.
12873
12874         * event-stream.c (Fdispatch_non_command_events): new
12875         function. Process non-command events, forcing an event cycle
12876         beforehand.
12877         (syms_of_event_stream): declare.
12878         (event_stream_force_event_pending): new function. Force an event
12879         on the native event queue so that an event cycle will occur next
12880         time we check.
12881
12882         * event-msw.c:
12883         (struct ntpipe_shove_stream):
12884         (mswindows_enqueue_dispatch_event):
12885         (mswindows_dequeue_dispatch_event):
12886         (mswindows_cancel_dispatch_event):
12887         (mswindows_pump_outstanding_events):
12888         (mswindows_drain_windows_queue):
12889         (mswindows_handle_paint):
12890         (mswindows_wnd_proc):
12891         (mswindows_key_to_emacs_keysym):
12892         (get_process_input_waitable):
12893         (emacs_mswindows_delete_stream_pair): re-indent file.
12894         (mswindows_need_event): do not process further fds if the windows
12895         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
12896         fixes the 100% cpu problem.
12897         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
12898
12899 2000-03-15  Olivier Galibert  <galibert@pobox.com>
12900
12901         * alloc.h: New.
12902         * dumper.h: New.
12903         * dumper.c: New.
12904
12905         * emacs.c: Moved dump file searching to dumper.c.
12906         (Frunning_temacs_p): Fixed.
12907
12908         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
12909         last_lrecord_type_index_assigned.
12910
12911 2000-02-20  Olivier Galibert  <galibert@pobox.com>
12912
12913         * symsinit.h: Added reinit parameter to init_console_stream
12914         declaration.
12915
12916         * lisp.h: Added file parameter to pdump_load declaration.
12917
12918         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
12919         support.  Added dump file searching.
12920
12921         * config.h.in: Added EMACS_PROGNAME.
12922
12923         * console-stream.c (init_console_stream): Fix reinitialisation
12924         when running from temacs.
12925
12926         * alloc.c (pdump): Add id support.
12927         (pdump_load): Add file parameter and signature/id support.
12928
12929         * Makefile.in.in: Add full pdump support.
12930
12931 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
12932
12933         * postgresql.c: Update documentation to reflect latest code
12934         status.
12935         (print_result): Show tuple counts in printed representation when
12936         appropriate.
12937         (Fpq_put_nbytes): MULE-ize.
12938         (Fpq_get_line_async): Ditto.
12939
12940 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
12941
12942         * postgresql.c (Fpq_lo_import): Fix return value.
12943         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
12944
12945 2000-03-13  Ben Wing  <ben@xemacs.org>
12946
12947         * alloc.c (pdump_load):
12948         Fix compile warning under mswin.
12949
12950 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
12951
12952         * postgresql.c: Mule-ization, bug fixes.
12953         Use PG_CODING to encapsulate coding system name changes.
12954         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
12955         (pg-coding-system): Create.
12956
12957         (Fpq_conn_defaults): Mule-ize.
12958         (Fpq_connectdb): Mule-ize & bug fix.
12959         (Fpq_connect_start): Mule-ize.
12960         (Fpq_set_client_encoding): Mule-ize.
12961         (Fpq_finish): Document `DEAD' connection status.
12962         (Fpq_clear): Ditto.
12963         (Fpq_pgconn): Mule-ize.
12964         (Fpq_exec): Mule-ize & bug fix.
12965         (Fpq_send_query): Ditto.
12966         (Fpq_get_result): Ditto.
12967         (Fpq_res_status): Mule-ize.
12968         (Fpq_result_error_message): Mule-ize.
12969         (Fpq_ntuples): fix comments.
12970         (Fpq_fname): Mule-ize.
12971         (Fpq_fnumber): Mule-ize.
12972         (Fpq_ftype): fix comments.
12973         (Fpq_get_value): Mule-ize.
12974         (Fpq_cmd_status): Ditto.
12975         (Fpq_cmd_tuples): Ditto.
12976         (Fpq_oid_value): Ditto.
12977         (Fpq_notifies): Ditto.
12978         (Fpq_lo_import): Ditto.
12979         (Fpq_lo_export): Ditto.
12980         (Fpq_get_line): Ditto.
12981         (Fpq_put_line): Mule-ize and bug fix.
12982         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
12983
12984 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
12985
12986         * postgresql.c (vars_of_postgresql): Mule-ize.
12987         (Fpq_conn_defaults): Ditto.
12988
12989 2000-03-12  Ben Wing  <ben@xemacs.org>
12990
12991         * alloc.c (Fmake_byte_code):
12992         * alloc.c (debug_string_purity_print):
12993         * alloc.c (pdump_backtrace):
12994         * alloc.c (pdump_get_indirect_count):
12995         * alloc.c (pdump_register_sub):
12996         * alloc.c (pdump_register_object):
12997         * alloc.c (pdump_register_struct):
12998         * alloc.c (pdump_dump_data):
12999         * alloc.c (pdump_reloc_one):
13000         Minor cleanups.
13001
13002         * console-msw.c:
13003         * console-msw.c (GetConsoleHwnd):
13004         * console-msw.c (msw_hide_console):
13005         * console-msw.c (msw_show_console):
13006         * console-msw.c (msw_ensure_console_buffered):
13007         * console-msw.c (msw_output_console_string):
13008         * console-msw.c (console_type_create_mswindows):
13009
13010         a) Added functions to manipulate the console window for use with
13011         shell support.
13012
13013         b) Added support for writing text to the console, which is now
13014         used under Windows when xemacs is not being run non-interactively,
13015         to write text that would otherwise be destined for stdout because
13016         under these circumstances, text written to stdout tends to
13017         disappear and not be seen.
13018
13019         * console-msw.h:
13020         * event-Xt.c:
13021         * event-Xt.c (x_event_to_emacs_event):
13022         * event-Xt.c (describe_event_window):
13023         * events-mod.h (XEMACS_MOD_CONTROL):
13024         * events.c:
13025         * events.c (Fmake_event):
13026         * events.c (character_to_event):
13027         * events.c (event_to_character):
13028         * events.c (format_event_object):
13029         * events.c (Fevent_modifiers):
13030         * events.h:
13031         * events.h (struct key_data):
13032         * events.h (struct button_data):
13033         * events.h (struct misc_user_data):
13034         * frame-x.c (Fcde_start_drag_internal):
13035         * frame-x.c (Foffix_start_drag_internal):
13036         * gpmevent.c (Freceive_gpm_event):
13037         * keymap.c:
13038         * keymap.c (bucky_sym_to_bucky_bit):
13039         * keymap.c (control_meta_superify):
13040         * keymap.c (make_key_description):
13041         * keymap.c (keymap_lookup_directly):
13042         * keymap.c (create_bucky_submap):
13043         * keymap.c (keymap_store):
13044         * keymap.c (define_key_check_and_coerce_keysym):
13045         * keymap.c (define_key_parser):
13046         * keymap.c (define_key_alternate_name):
13047         * keymap.c (Fdefine_key):
13048         * keymap.c (raw_lookup_key_mapper):
13049         * keymap.c (struct map_keymap_unsorted_closure):
13050         * keymap.c (map_keymap_unsorted_mapper):
13051         * keymap.c (map_keymap_sort_predicate):
13052         * keymap.c (map_keymap_sorted):
13053         * keymap.c (accessible_keymaps_mapper_1):
13054         * keymap.c (where_is_recursive_mapper):
13055         * keymap.c (describe_map_mapper):
13056         * keymap.c (describe_map_sort_predicate):
13057         * keymap.c (describe_map):
13058         * keymap.c (complex_vars_of_keymap):
13059         And a number of other files, the key modifier preprocessor
13060         constants that xemacs uses have names that conflict with constants
13061         defined under MS Windows for other purposes, so they were renamed
13062         to begin with the prefix XEMACS_. The variables that hold such
13063         modifiers were changed to consistently be of type int to fix
13064         various compile warnings.
13065
13066         * console.c (complex_vars_of_console):
13067         * device.c:
13068         * device-msw.c:
13069         * device-msw.c (mswindows_finish_init_device):
13070         * device-msw.c (msw_get_workspace_coords):
13071         * device-msw.c (mswindows_device_system_metrics):
13072         and various other files, added support for a new
13073         device property called offset-workspace which returns the position
13074         of the upper left corner of the workspace area and goes along with
13075         the existing size-workspace property.
13076
13077         * dialog-msw.c:
13078         * dialog-msw.c (push_bufbyte_string_as_unicode):
13079         * dialog-msw.c (mswindows_popup_dialog_box):
13080         Added support for XEmacs-style accelerator specifications in
13081         button text.  Note: I didn't add support for this under X Windows,
13082         and somebody needs to do this.
13083
13084         * dialog.c:
13085         * dialog.c (Fpopup_dialog_box):
13086         Documented the support for accelerators that was just mentioned.
13087
13088         editfns.c (get_home_directory): Changed behavior under Windows
13089         when HOME not defined; former behavior was irretrievably broken.
13090
13091         * emacs.c:
13092         * emacs.c (main_1):
13093         * emacs.c (main):
13094         * minibuf.c (clear_echo_area_internal):
13095         * minibuf.c (echo_area_append):
13096         * print.c:
13097         * print.c (std_handle_out_external):
13098         * print.c (std_handle_out_va):
13099         * print.c (fatal):
13100         * print.c (write_string_to_stdio_stream):
13101         * print.c (output_string):
13102         * print.c (debug_print):
13103         * print.c (debug_backtrace):
13104         * print.c (debug_short_backtrace):
13105         Cleaned up the code that prints text to stdout so that this can be
13106         changed to output into a console window instead under MS Windows,
13107         as described above.
13108
13109         * eval.c:
13110         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
13111         * eval.c (internal_catch):
13112         * eval.c (unwind_to_catch):
13113         * eval.c (throw_or_bomb_out):
13114         * eval.c (condition_case_1):
13115         * eval.c (signal_1):
13116         * eval.c (check_error_state_sanity):
13117         * eval.c (call_with_suspended_errors_1):
13118         * eval.c (call_with_suspended_errors):
13119         * eval.c (reinit_vars_of_eval):
13120         Added code to catch throw loops and check for a pesky bug that may
13121         be gone now.
13122
13123         * event-msw.c:
13124         * event-msw.c (key_needs_default_processing_p):
13125         * event-msw.c (mswindows_wnd_proc):
13126         * event-msw.c (mswindows_modifier_state):
13127         * event-msw.c (emacs_mswindows_quit_p):
13128         * event-msw.c (vars_of_event_mswindows):
13129         a) Added support for using the alt key to select menu items as is
13130         standard under MS Windows.  This is controlled using the variable
13131         menu-accelerator-enabled, just like under X Windows.  There is an
13132         option on the options menu to turn this support on.  I really
13133         think that it should be on by default under Windows, but I'm not
13134         going to make this change yet.
13135
13136         b)  Added support for dynamic display size changes under Windows.
13137
13138         * event-stream.c:
13139         * event-stream.c (maybe_echo_keys):
13140         * event-stream.c (Fnext_event):
13141         * event-stream.c (command_builder_find_leaf):
13142         * event-stream.c (lookup_command_event):
13143         * event-stream.c (execute_command_event):
13144         * event-stream.c (pre_command_hook):
13145         * event-stream.c (post_command_hook):
13146         * event-stream.c (syms_of_event_stream):
13147         * event-stream.c (vars_of_event_stream):
13148         * event-stream.c (complex_vars_of_event_stream):
13149         * events.h (struct command_builder):
13150
13151         a) Tried to clean up a little bit the horribly written x-specific
13152         accelerator code that crept into this file.  I moved this code
13153         into menubar-x.c where it belongs. I also needed to move the
13154         command builder structure into the file events.h because it is
13155         accessed directly by this accelerator code.  What I didn't do, but
13156         which should be done at some point, is to properly abstract this
13157         code using device methods instead of the kludgy way that it
13158         currently hooks into the event code.
13159
13160         b) Added the lisp variables this-command-properties and
13161         last-command- properties, which should be used to synchronize two
13162         adjacent commands in preference to playing games with the variable
13163         this-command, which is typically what happens.
13164
13165         c) Added some slightly nasty code to hook into the lisp support
13166         for shifted- motion-key selection.  This is actually necessary for
13167         somewhat complicated reasons, which are described in
13168         simple.el. (NB: I think the proper thing would be to have the code
13169         that calls the pre and post command hooks also call out to generic
13170         lisp functions in simple.el, where all built-in stuff could be
13171         added.  I will think about this more.)
13172
13173         * event-unixoid.c (poll_fds_for_input):
13174         * lread.c (readchar):
13175         * redisplay-tty.c (tty_clear_frame):
13176         * redisplay-x.c (x_get_gc):
13177         * signal.c (interrupt_signal):
13178         And a whole bunch of other files: fixed up places that printed
13179         directly to stderr to instead call the function stderr_out so that
13180         the changes I made under Windows work correctly.
13181
13182         * filemode.c (mode_string):
13183         Warning fixes.
13184
13185         * frame-msw.c:
13186         * frame-msw.c (mswindows_size_frame_internal):
13187         Fixed the computation of frame size and position to keep the frame
13188         within the workspace area, rather than within the physical
13189         dimensions of the screen, so that the frame doesn't overlap window
13190         manager decorations, such as the start menu and toolbar, typically
13191         at the bottom of the screen.
13192
13193         * frame.c (vars_of_frame):
13194         Changed the default frame title format under MS Windows to consist
13195         of buffername-XEmacs, which is standard under MS Windows.  I think
13196         it might be a good idea to change this everywhere because I think
13197         it is superior to the current frame title format, but this is the
13198         kind of change that is likely to cause some people to get annoyed,
13199         so I'm not making it.
13200
13201         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
13202
13203         * gui-msw.c (mswindows_handle_gui_wm_command):
13204         Fixed compile warnings.
13205
13206         * gui-x.c:
13207         * gui-x.c (strdup_and_add_accel):
13208         * gui-x.c (button_item_to_widget_value):
13209         * gui-x.h:
13210         Added code to automatically put an accelerator onto the beginning
13211         of menu items that don't have one as is now the standard, and is
13212         described more later.  Also fixed things so that the menu item
13213         name can be an evaluated expression, again a new standard.
13214
13215         * gui.c:
13216         * gui.c (gui_item_add_keyval_pair):
13217         * gui.c (make_gui_item_from_keywords_internal):
13218         * gui.c (gui_add_item_keywords_to_plist):
13219         * gui.c (gui_item_accelerator):
13220         * gui.c (gui_name_accelerator):
13221         * gui.c (gui_item_included_p):
13222         * gui.c (gui_item_display_flush_left):
13223         * gui.c (gui_item_display_flush_right):
13224         * gui.c (parse_gui_item_tree_item):
13225         * gui.c (parse_gui_item_tree_children):
13226         * gui.c (parse_gui_item_tree_list):
13227         Mule-ized.  Cleanup.  GCPRO addition.
13228
13229         * line-number.c (buffer_line_number):
13230         * lisp.h:
13231         * lisp.h (EMACS_INT_MAX):
13232         Added the manifest constant EMACS_INT_MIN corresponding to the
13233         existing constant EMACS_INT_MAX.  This is partially to fix compile
13234         warnings under Windows, and partly for cleanliness.
13235
13236         * menubar-msw.c:
13237         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
13238         * menubar-msw.c (msw_translate_menu_or_dialog_item):
13239         * menubar-msw.c (displayable_menu_item):
13240         * menubar-msw.c (populate_menu_add_item):
13241         * menubar-msw.c (populate_or_checksum_helper):
13242         * menubar-msw.c (populate_menu):
13243         * menubar-msw.c (update_frame_menubar_maybe):
13244         * menubar-msw.c (prune_menubar):
13245         * menubar-msw.c (msw_char_is_accelerator):
13246         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
13247         * menubar-msw.c (mswindows_handle_wm_command):
13248         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
13249         * menubar-msw.c (mswindows_handle_wm_initmenu):
13250         * menubar-msw.c (mswindows_update_frame_menubars):
13251         * menubar-msw.c (mswindows_free_frame_menubars):
13252         * menubar-msw.c (mswindows_popup_menu):
13253         Fixed a bug in handling accelerators where an extra character
13254         would be displayed in the menu item.  Also generalized the
13255         function displayable_menu_item because it is now used by the
13256         dialog box code as well.  And finally, added code in the functions
13257         that create the menubar to extract a list of accelerators for the
13258         top level menubar, which is used in the event code to determine
13259         whether a particular alt-key combination should be used to invoke
13260         a menu item, or should be passed through to access the standard
13261         XEmacs keymap binding for this key combination.
13262
13263         Much needed GCPROing.
13264
13265         * menubar-x.c:
13266         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
13267         * menubar-x.c (menu_item_descriptor_to_widget_value):
13268         * menubar-x.c (restore_in_menu_callback):
13269         * menubar-x.c (x_popup_menu):
13270         * menubar-x.c (menu_move_up):
13271         * menubar-x.c (menu_move_down):
13272         * menubar-x.c (menu_move_left):
13273         * menubar-x.c (menu_move_right):
13274         * menubar-x.c (menu_select_item):
13275         * menubar-x.c (command_builder_operate_menu_accelerator):
13276         * menubar-x.c (menu_accelerator_junk_on_error):
13277         * menubar-x.c (command_builder_find_menu_accelerator):
13278         * menubar-x.c (Faccelerate_menu):
13279         * menubar.h:
13280         Moved a whole bunch of code here that was previously in
13281         event-stream.c as described above.  There is also code connected
13282         to the new standard of adding an accelerator to the beginning of
13283         menu items that don't have one as described above and below.
13284
13285         * menubar.c:
13286         * menubar.c (menu_parse_submenu_keywords):
13287         * menubar.c (Fmenu_find_real_submenu):
13288         * menubar.c (Fnormalize_menu_item_name):
13289         * menubar.c (syms_of_menubar):
13290         * menubar.c (vars_of_menubar):
13291         * menubar.c (complex_vars_of_menubar):
13292
13293         a) Cleaned up a bunch of documentation and improved it.
13294
13295         b) XEmacs now automatically adds an accelerator onto the beginning
13296         of any menu items that don't have one.  I did this because there
13297         will inevitably be some menu items on the main menubar that don't
13298         have accelerators on them because the package that adds that
13299         particular menu item hasn't yet been fixed up to have accelerators
13300         in them and it looked rather strange to have some items with and
13301         some items without accelerators, especially since even in items
13302         without accelerators, you can, at least under windows, still
13303         access the item through an accelerator corresponding to the first
13304         character in the item's name.  If people don't like this behavior,
13305         I can add a variable to turn it off optionally, but I'm not sure
13306         this is a good idea because we really do need to have accelerators
13307         on all of the menu items, and if a package doesn't like the
13308         accelerators being put on the first character, then it should put
13309         the accelerators where they belong.
13310
13311         c) I made a behavior change, which is that the descriptor that
13312         specifies the text of the menu item, which formerly was just a
13313         string, can now also be an evaluated expression.  This makes this
13314         descriptor parallel with all of the others, which could also be
13315         evaluated expressions.  This also obviates the need for the
13316         keyword :label, which was previously listed in the documentation
13317         as unimplemented, and which was for the same purpose.
13318
13319         d) GCPROing.
13320
13321         * ntproc.c:
13322         * ntproc.c (new_child):
13323         * ntproc.c (sys_spawnve):
13324         * ntproc.c (find_child_console):
13325         * ntproc.c (sys_kill):
13326         Fixed compile warnings.  By the way, this file should really go
13327         away entirely, and this will happen as soon as Kirill makes his
13328         final round of process cleanups, which affect the function
13329         call-process.
13330
13331         * process-nt.c:
13332         * process-nt.c (struct nt_process_data):
13333         * process-nt.c (find_process_from_pid):
13334         * process-nt.c (send_signal_the_nt_way):
13335         * process-nt.c (enable_child_signals):
13336         * process-nt.c (find_child_console):
13337         * process-nt.c (send_signal_the_95_way):
13338         * process-nt.c (nt_finalize_process_data):
13339         * process-nt.c (ensure_console_window_exists):
13340         * process-nt.c (nt_create_process):
13341         * process-nt.c (nt_kill_child_process):
13342         * process-nt.c (nt_kill_process_by_pid):
13343         * process-nt.c (nt_open_network_stream):
13344         * process-nt.c (vars_of_process_nt):
13345         Copied over code from Emacs 20.5 to correctly send signals to sub-
13346         processes under Windows 95.  Also added code to automatically
13347         create and hide console window when a sub-process is created under
13348         Windows 95, which obviates the need for the separate runemacs.exe
13349         executable, and finally implemented some variables that were
13350         implemented in Emacs 20.5, but previously not in XEmacs.  These
13351         include mswindows- start-process-share-console and
13352         mswindows-start-process-inherit-error-mode. (Both of these only
13353         apply to Windows 95.)
13354
13355         * regex.c (regex_compile): Fixed a compile warning.
13356
13357         * select-msw.c:
13358         * select-msw.c (mswindows_own_selection):
13359         * select-msw.c (mswindows_get_foreign_selection):
13360         * select-msw.c (mswindows_disown_selection):
13361         * select-msw.c (console_type_create_select_mswindows):
13362         * select-msw.c (syms_of_select_mswindows):
13363         Cleaned up the file and implemented the device method
13364         selection_exists_p, which had accidentally been left out.  Also
13365         removed four lisp functions that were remnants from before the
13366         time when the selection code was properly device abstracted.
13367         These functions are no longer needed because there are generic
13368         equivalents, and because they were added recently and don't exist
13369         in FSF Emacs, I don't think there's any problem with just deleting
13370         them.
13371
13372         * sysdep.c:
13373         * sysdep.c (sys_subshell):
13374         Fixed a compile warning, although in this case there's probably
13375         something wrong with this code, and it ought to be looked into
13376         more thoroughly by somebody who understands it.
13377
13378         * window.c:
13379         * window.c (Fwindow_text_area_height):
13380         * window.c (Fwindow_width):
13381         * window.c (Fwindow_full_width):
13382         * window.c (Fwindow_pixel_width):
13383         * window.c (debug_print_window):
13384         * window.c (syms_of_window):
13385         Added functions window-text-area-height and window-full-width,
13386         which are functions for returning various width and height
13387         characteristics of a window. (One of these functions is necessary
13388         for making the file dialog box work correctly, and the other one
13389         was added for completeness.)  Also added a table to the
13390         documentation for window-height which describes the entire scheme
13391         for accessing width and height characteristics of a window.
13392
13393 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13394
13395         * nt.c (fstat): Added a comment for another problem with
13396         non-encapsulated [f]stat(), reported by Adrian Aichner
13397         <aichner@ecf.teradyne.com>.
13398
13399 2000-03-11  Andy Piper  <andy@xemacs.org>
13400
13401         * window.c (make_dummy_parent): initialize subwindow instance
13402         cache.
13403         (Fset_window_configuration): zero extent_modiff.
13404
13405 2000-03-10  Andy Piper  <andy@xemacs.org>
13406
13407         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
13408         more changes can be triggered.
13409         (Fredisplay_frame): ditto.
13410         (Fredraw_device): ditto.
13411         (Fredisplay_device): ditto.
13412         (redisplay_frame): make non-static.
13413         (redisplay_frame): call update_frame_gutter_geometry outside of
13414         display proper.
13415
13416         * gutter.h: declare update_frame_gutter_geometry.
13417
13418         * redisplay.h: declare redisplay_frame.
13419
13420         * gutter.c (update_frame_gutter_geometry): move geometry changes
13421         in update_frame_gutters here. Geometry changes can only occur
13422         outside of redisplay.
13423         (update_frame_gutters): remove geometry change code.
13424         (Fredisplay_gutter_area): make sure that we are in display when we
13425         update and that we have flushed any size changes.
13426
13427 2000-03-11  Andy Piper  <andy@xemacs.org>
13428
13429         * alloc.c (pdump_dump_data): remove i & count shadows.
13430
13431 2000-02-27  Mike Alexander  <mta@arbortext.com>
13432
13433         * sysdep.h: Declare pdump_read_file
13434
13435         * sysdep.c (pdump_read_file): New function
13436
13437         * alloc.c (pdump_load): Call pdump_read_file to get the portable
13438         dump data
13439
13440 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
13441
13442         * lrecord.h: add `lrecord_type_pgsetenv'.
13443
13444 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
13445
13446         * symsinit.h: declare (vars|syms)_of* functions.
13447         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
13448
13449 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
13450
13451         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
13452
13453         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
13454         GCCs.
13455
13456         * emacs.c (main_1): Call postgres initialization code.
13457
13458         * postgresql.h: New file.  PostgreSQL RDBMS support.
13459         * postgresql.c: New file.
13460
13461 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
13462
13463         * redisplay-output.c (redisplay_output_display_block): Disable
13464         redundant code.
13465
13466 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
13467
13468         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
13469         (Fcanna_henkan_next): Ditto.
13470         (Fcanna_bunsetu_henkou): Ditto.
13471         (Fcanna_henkan_kakutei): Ditto.
13472         (Fcanna_henkan_end): Ditto.
13473         (Fcanna_henkan_quit): Ditto.
13474         (Fcanna_henkan_next): Set retun value correctly.
13475         (c2mu): Use unsigned char instead of signed char.
13476
13477 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
13478
13479         * emacs.c (main_1): Always call syms_of_gui.
13480         * inline.c: include gui.h
13481
13482 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
13483
13484         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
13485         converted to Lisp_Object.
13486         (Qtop_bottom): New variable.
13487         (syms_of_redisplay): Initialize it.
13488         * redisplay.h (Vvisible_bell): Ditto.
13489         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
13490         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
13491         only flash top and bottom.
13492
13493 2000-03-08  Andy Piper  <andy@xemacs.org>
13494
13495         * buffer.c (Frename_buffer): record new buffer name the right way.
13496
13497 2000-03-08  Andy Piper  <andy@xemacs.org>
13498
13499         * glyphs.c (update_subwindow): increase hash depth so that widget
13500         items get picked up properly.
13501
13502         * redisplay-output.c (compare_runes): increase hash depth so that
13503         widget items get picked up properly.
13504
13505 2000-03-08  Andy Piper  <andy@xemacs.org>
13506
13507         * gutter.c (output_gutter): add some debug.
13508
13509         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
13510         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
13511         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
13512
13513         * redisplay-output.c (compare_runes): use display_hash to
13514         determine if glyphs really are not the same.
13515
13516         * glyphs.c (update_subwindow): check display_hash to see if
13517         anything really needs to be updated. If not then do
13518         nothing. Record the display_hash after updating.
13519         (image_instance_equal): compare the image_instance face also.
13520
13521 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
13522
13523         * redisplay.h: Fix comment style.
13524
13525 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13526
13527         * consle-msw.h (struct mswindows_frame):
13528         Added new member paint_pending to indicate whether a WM_PAINT
13529         magic event has been queued for this frame.
13530
13531         * event-msw.c (mswindows_drain_windows_queue):
13532         Don't queue a WM_PAINT magic event if one is already queued.
13533         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
13534
13535         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
13536
13537 2000-03-07  Didier Verna  <didier@xemacs.org>
13538
13539         * dired.c: #include `regex.h' after `sysfile.h'.
13540
13541 2000-03-06  Martin Buchholz  <martin@xemacs.org>
13542
13543         * sound.c (init_nas_sound): Fix compiler warning.
13544
13545         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
13546         (FREE_STRUCT_P):
13547         (MARK_STRUCT_AS_FREE):
13548         (MARK_STRUCT_AS_NOT_FREE):
13549         Make `gcc -fstrict-aliasing' work properly.
13550
13551 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13552
13553         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
13554         (mswindows_delete_device): Call CoUnnitialize().
13555
13556         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
13557
13558 2000-02-25    <CraigL@DyCon.com>
13559
13560         * process-nt.c: MinGW now has <shellapi.h>, but still needs
13561         <errno.h>.
13562
13563         * sysdep.c: This extern declaration for environ prevents MinGW
13564         from finding the variable in CRTDLL.DLL.
13565
13566         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
13567         windows headers.
13568         (SHGFI_EXETYPE): ..
13569         (WM_MOUSEWHEEL): ..
13570         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
13571         definitions.
13572         (MMRESULT): Removed, now defined in cygwin's windows headers.
13573         (TIMECAPS): ..
13574         (uid_t,gid_t,pid_t,ssize_t): ..
13575         (_timeb): Removed, MinGW defines both _timeb and timeb.
13576         (HAVE_H_ERRNO): Added.
13577         (HAVE_TZNAME): Added, configure is not detecting this.
13578
13579 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
13580
13581         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
13582         * syntax.c (syntax_match): Use it.
13583
13584         * cmds.c: Import auto-fill-chars from FSF Emacs.
13585         (Vauto_fill_chars): New variables.
13586         (internal_self_insert): Check Vauto_fill_chars.
13587         (vars_of_cmds):
13588         Declare auto-fill-chars as a Lisp variable and initialize it.
13589
13590 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13591
13592         * fileio.c (Fmake_symbolic_link):
13593         (Ffile_symlink_p):
13594         Run handlers even if local machine doesn't have symlinks.
13595
13596 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13597
13598         * event-msw.c (mswindows_drain_windows_queue):
13599         Don't generate paint magic events for non-XEmacs frames.
13600
13601 2000-03-05  Andy Piper  <andy@xemacs.org>
13602
13603         * redisplay.c (redisplay_frame): generate_displayable_area and
13604         friends assumes that we are not in GC, we therefore have to make
13605         sure that this doesn't happen.
13606
13607         * gutter.c (calculate_gutter_size): generate_displayable_area
13608         assumes that we are not in GC, we therefore have to make sure that
13609         this doesn't happen.
13610
13611 2000-03-05  Martin Buchholz  <martin@xemacs.org>
13612
13613         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
13614
13615 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
13616
13617         * redisplay.c (regenerate_window): Make sure we set a sane value
13618         for end_pos even if we jump out of the loop.
13619         (regenerate_window): Answer Ben's question :-).
13620         (start_end_of_last_line): Add may_error argument.
13621         (start_of_last_line):
13622         (end_of_last_line): Pass may_error = 0.
13623         (end_of_last_line_may_error): New function.
13624         (pixel_to_glyph_translation): Use it, so we don't crash in
13625         event_to_glyph.
13626
13627 2000-03-04  Andy Piper  <andy@xemacs.org>
13628
13629         * window.h (struct window): add gutter_extent_modiff.
13630
13631         * window.c (allocate_window): zero out gutter_extent_modiff.
13632
13633         * redisplay.h: declare sync_display_line_structs.
13634
13635         * redisplay.c (add_glyph_rune): add a better comment.
13636
13637         * redisplay-output.c (sync_display_line_structs): made non-static.
13638         (compare_runes): remove unneccesary glyph cachel access.
13639
13640         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
13641
13642         * gutter.c (output_gutter): don't output the gutter if extent
13643         changes only involve extents in buffers. use 4 sets of display
13644         lines.
13645         (gutter_extent_signal_changed_region_maybe): new function. Mark
13646         extents in gutters as changed.
13647         (update_frame_gutters): use 4 sets of display lines.
13648         (reset_gutter_display_lines): ditto.
13649         (free_frame_gutters): ditto.
13650         (redraw_exposed_gutter): force output of gutters.
13651
13652         * frame.h (struct frame): add 4 sets of gutter display lines.
13653
13654         * extents.c: (extent_changed_for_redisplay): signal changes to
13655         extents in strings in the gutter as well as extents in buffers.
13656
13657 2000-03-02  Andy Piper  <andy@xemacs.org>
13658
13659         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
13660
13661         * frame.c (Fmake_frame): make sure the gutters get initialized
13662         after the frame is visible.
13663         (set_frame_selected_window): re-arrange compilation macros a
13664         little.
13665         (change_frame_size_1): mark gutters changed.
13666
13667         * device.c (Fset_device_class): mark gutters changed.
13668
13669 2000-03-01  Andy Piper  <andy@xemacs.org>
13670
13671         * window.c (window_top_frame_gutter_height): deleted.
13672         (window_bottom_frame_gutter_height): ditto.
13673         (window_left_frame_gutter_height): ditto.
13674         (window_right_frame_gutter_height): ditto.
13675         (window_top_gutter_height): don't use them.
13676         (window_bottom_gutter_height): ditto.
13677         (window_left_gutter_width): ditto.
13678         (window_right_gutter_width): ditto.
13679         (Fsplit_window): ditto.
13680         (Fwindow_pixel_edges): don't use border dimensions here.
13681
13682         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
13683         (update_scrollbar_instance): ditto.
13684
13685         * redisplay.c (generate_modeline): don't take gutters into account.
13686         (generate_modeline): ditto.
13687         (redisplay_frame): small gutter display optimization.
13688
13689         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
13690
13691         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
13692         gutters into account.
13693
13694         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
13695         for window position and type.
13696
13697         * gutter.c (get_gutter_coords): fix for frame gutters.
13698         (update_frame_gutters): update frame geometry if the gutters have
13699         changed.
13700         (init_frame_gutters): record current gutter geometries.
13701
13702         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
13703         var.
13704         (mswindows_widget_instantiate): ditto.
13705
13706         * frame.h (struct frame): add current_gutter_bounds.
13707
13708         * frame.c (change_frame_size_1): position window and minibuffer
13709         appropriately taking into account the frame gutters.
13710
13711         * frame-x.c: (x_initialize_frame_size): take into account the
13712         frame gutters.
13713
13714 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
13715
13716         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
13717
13718 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
13719
13720         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
13721
13722 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
13723
13724         * file-coding.c (reset_decoding_stream): Clear previous
13725         detection state when autodetect.
13726
13727 2000-02-29  Didier Verna  <didier@xemacs.org>
13728
13729         * extents.c (set_extent_glyph_1): don't require extents to be
13730         attached.
13731
13732 2000-02-27  Andy Piper  <andy@xemacs.org>
13733
13734         * gutter.c (Fset_default_gutter_position): don't default left and
13735         right gutter visibility to t.
13736         (Fset_default_gutter_position): run
13737         default-gutter-position-changed-hook.
13738         (syms_of_gutter): add default-gutter-position-changed-hook.
13739
13740 2000-02-26  Andy Piper  <andy@xemacs.org>
13741
13742         * specifier.c (Fmake_specifier): add gutter references.
13743
13744         * gutter.h (RAW_WINDOW_GUTTER): new macro.
13745
13746         * lisp.h: declare Fvalid_plist_p.
13747
13748         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
13749         as changed.
13750         (default_gutter_visible_p_changed_in_window): invalidate gutter as
13751         well as its visibility so that it gets reconstructed.
13752         (construct_window_gutter_spec): new function. Construct a string
13753         to be displayed in the gutter from a plist of strings. Take care
13754         to only use elements that are declared as visible.
13755         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
13756         WINDOW_GUTTER.
13757         (gutter_validate): allow plists of strings in the specifier.
13758         (gutter_specs_changed): construct the real_gutter from the gutter
13759         specs using construct_window_gutter_spec.
13760         (gutter_visible_validate): gutter-visible is a new specifier type.
13761         (Fgutter_visible_specifier_p): new function for the new specifier.
13762         (syms_of_gutter): declare gutter-visible and
13763         Fgutter_visible_specifier_p.
13764         (specifier_type_create_gutter): intitalize new gutter-visible
13765         specifier.
13766         (reinit_specifier_type_create_gutter): ditto.
13767         (specifier_vars_of_gutter): use new specifier type for gutter
13768         visibility.
13769         (init_frame_gutters): construct real_gutter correctly.
13770         (Fgutter_specifier_p): beef up documentation.
13771         (Fgutter_size_specifier_p): ditto.
13772
13773         * winslots.h: add real_gutter slots.
13774
13775 2000-02-25  Andy Piper  <andy@xemacs.org>
13776
13777         * device-msw.c: Be kind to older cygwin versions. From Raymond
13778         Toy <toy@rtp.ericsson.se>.
13779
13780         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
13781         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
13782
13783 2000-02-25  Martin Buchholz  <martin@xemacs.org>
13784
13785         * elhash.c (MARK_OBJ): Practice macro hygiene.
13786
13787 2000-02-24  Martin Buchholz  <martin@xemacs.org>
13788
13789         * miscplay.c: s/__inline__/inline/g;
13790         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
13791         (get_device_compdc): INLINE ==> static inline
13792         * *.[ch]: Change INLINE to INLINE_HEADER globally.
13793         find -name '*.h' | \
13794         xargs global-replace \
13795         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
13796
13797 2000-02-25  Andy Piper  <andy@xemacs.org>
13798
13799         * window.c (window_top_frame_gutter_height): new function.
13800         (window_top_window_gutter_height): ditto.
13801         (window_top_gutter_height): use them.
13802         (window_bottom_frame_gutter_height): new function.
13803         (window_bottom_window_gutter_height): ditto.
13804         (window_bottom_gutter_height): use them.
13805         (window_left_window_gutter_width): new function.
13806         (window_left_frame_gutter_width): ditto.
13807         (window_left_gutter_width): use them.
13808         (window_right_window_gutter_width): new function.
13809         (window_right_frame_gutter_width): ditto.
13810         (window_right_gutter_width): use them.
13811         (window_pixel_height): new function. calulate window pixel height
13812         with frame gutter involvement.
13813         (Fsplit_window): calculate new sizes taking frame gutters into
13814         account.
13815         (window_char_height_to_pixel_height): don't include frame gutters.
13816         (window_char_height): use window_pixel_height.
13817         (window_pixheight): rename from window_pixel_height.
13818         (change_window_height): use it.
13819         (window_pixel_height_to_char_height): don't include frame gutters.
13820         (window_char_width_to_pixel_width): ditto.
13821
13822 2000-02-25  Andy Piper  <andy@xemacs.org>
13823
13824         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
13825         if it is.
13826
13827 2000-02-24  Martin Buchholz  <martin@xemacs.org>
13828
13829         * alloc.c (staticpro):
13830         (staticpro_nodump):
13831         (dumpstruct):
13832         (dumpopaque):
13833         (pdump_wire):
13834         (pdump_wire_list):
13835         (compact_string_chars):
13836         (pdump_dump_wired):
13837         Convert:  if (foo) abort();  ==>  assert (! foo);
13838
13839         * eldap.c (Fldap_search_basic):
13840         (Fldap_add):
13841         (Fldap_modify):
13842         (Fldap_delete):
13843         Fix compiler warnings, and possible crashes if (random) return
13844         value were to be used.
13845
13846 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13847
13848         * device-msw.c: Workaround ResetDC failure.
13849
13850         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
13851         applying a devmode.
13852
13853         * redisplay-msw.c (get_frame_dc): Added start_page_p.
13854         (mswindows_text_width): Do not start printer page.
13855
13856         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
13857
13858         * glyphs-msw.c: Added image methods to msprinter console and
13859         msprinter-specific image instantiation.
13860
13861 2000-02-20  Mike Alexander  <mta@arbortext.com>
13862
13863         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
13864         to avoid crashes when selection-sets-clipboard is on
13865         (mswindows_own_selection): ditto
13866
13867 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13868
13869         * glyphs-msw.c:
13870         * redisplay-msw.c (get_frame_dc):
13871         (get_frame_compdc):
13872         * console-msw.h:
13873         * device-msw.c (mswindows_init_device):
13874         (mswindows_delete_device):
13875         (msprinter_init_device):
13876         (msprinter_delete_device):
13877         * frame-msw.c (mswindows_init_frame_1):
13878         (mswindows_delete_frame):
13879         (msprinter_init_frame_3):
13880         (msprinter_delete_frame): Move compatible DC to device object from
13881         frame object, for both mswindows and msprinter. Only one at a time
13882         is needed, it is a real waste to have one per frame!
13883
13884 2000-02-23  Andy Piper  <andy@xemacs.org>
13885
13886         * glyphs.c: add dynamic width and height elements.
13887         (image_instance_equal): ditto.
13888
13889         * glyphs-widget.c (widget_query_geometry): calculate width and
13890         height dynamically if required.
13891         (initialize_widget_image_instance): initialize dynamic dimensions.
13892         (widget_instantiate): pick-up dynamic dimensions.
13893
13894         * glyphs.h (struct Lisp_Image_Instance): add width and height for
13895         dynamic determination. Add appropriate macros.
13896
13897         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
13898         dimensions safe.
13899         (WINDOW_GUTTER_SIZE): ditto.
13900         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
13901
13902         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
13903         inline.
13904         (get_frame_dc): ditto.
13905
13906         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
13907         here.
13908
13909 2000-02-23  Martin Buchholz <martin@xemacs.org>
13910
13911         * XEmacs 21.2.31 is released.
13912
13913 2000-02-22  Ben Wing <ben@xemacs.org>
13914
13915         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
13916
13917 2000-02-22  Andy Piper  <andy@xemacs.org>
13918
13919         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
13920
13921 2000-02-21  Mike Sperber <mike@xemacs.org>
13922
13923         * .dbxrc:
13924         * .gdbinit:
13925         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
13926         variables.
13927
13928 2000-02-21  Mike Sperber <mike@xemacs.org>
13929
13930         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
13931
13932 2000-02-21  Martin Buchholz <martin@xemacs.org>
13933
13934         * XEmacs 21.2.30 is released.
13935
13936 2000-02-20  Martin Buchholz  <martin@xemacs.org>
13937
13938         Performance hacking.
13939         * *.c (syms_of_*):
13940         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
13941         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
13942         * emacs.c (main_1):
13943         * lisp.h (DEFUN):
13944         * console.c (DEFVAR_CONSOLE_LOCAL_1):
13945         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
13946         * symeval.h (DEFVAR_SYMVAL_FWD):
13947         * symbols.c (guts_of_unbound_marker):
13948         Make all c_readonly objects also lisp_readonly and marked for life.
13949         * lrecord.h (struct lrecord_implementation):
13950         Document flags better.
13951         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
13952         * lrecord.h (DECLARE_LRECORD):
13953         * lrecord.h (XSETRECORD):
13954         * lrecord.h (RECORDP):
13955         * lrecord.h (RECORD_TYPEP):
13956         * lrecord.h (RECORD_MARKER): New.
13957         * lrecord.h (error_check_*):
13958         * lrecord.h (CONCHECK_NONRECORD):
13959         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
13960         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
13961         * lrecord.h (set_lheader_implementation):
13962         * lrecord.h (enum lrecord_type): New.
13963         * symeval.h (SYMBOL_VALUE_MAGIC_P):
13964         * alloc.c (disksave_object_finalization_1):
13965         * alloc.c (mark_object):
13966         * alloc.c (lrecord_type_index):
13967         * alloc.c (tick_lcrecord_stats):
13968         * alloc.c (Fgarbage_collect):
13969         * alloc.c (init_alloc_once_early):
13970         * alloc.c (pdump_load):
13971         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
13972         * alloc.c (lrecord_type_index): Delete.
13973         Make lisp object type indexes be constant.
13974           Makes (byte-compile) 5% faster.
13975         Put all marker functions into their own array.
13976           Makes (garbage-collect) 5% faster.
13977         Optimize SYMBOL_VALUE_MAGIC_P.
13978           Makes (byte-compile) 2-3% faster.
13979         * config.h.in (gc_checking_assert): New.
13980         * alloc.c: Use gc_checking_assert().
13981         * .dbxrc: Make compatible with new object type implementation.
13982         * .gdbinit: Make compatible with new object type implementation.
13983         * alloc.c: Delete all symbols defined only for debugging, such as
13984         Lisp_Type_Vector and lrecord_charset.
13985
13986 2000-02-21  Andy Piper  <andy@xemacs.org>
13987
13988         * gui-msw.c (Fmswindows_shell_execute): fix file location
13989         problems.
13990
13991         * buffer.c (Fkill_buffer): remove buffer from alist buffer
13992         unshowing so that set_window_buffer doesn't undo
13993         kill_buffer_hook's hard work.
13994
13995         * glyphs-widget.c (tab_control_query_geometry): don't count the
13996         first item when calculating geometry.
13997
13998         * glyphs.c (map_subwindow): remove redundant code.
13999         (update_frame_subwindows): be more circumspect about when to
14000         update subwindows.
14001
14002         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
14003         when items haven't changed. Update faces if faces have changed as
14004         well as just the widget face.
14005         (x_tab_control_update): Update faces if faces have changed as well
14006         as just the widget face.
14007
14008 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14009
14010         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
14011         registration.
14012         (build_syscolor_string): Use mswindows_color_to_string to try to
14013         get a named color.
14014         (mswindows_device_system_metrics): Reverse the foreground and
14015         background colors so that they match the documentation.
14016
14017         * objects-msw.c: (mswindows_X_color_map): tweak some values so
14018         they match the default Windows palette.
14019         (mswindows_color_to_string): New function.
14020
14021 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14022
14023         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
14024
14025 2000-02-18  Olivier Galibert  <galibert@pobox.com>
14026
14027         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
14028         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
14029
14030         * symbols.c (init_symbols_once_early): Removed obsolete
14031         DATA_SEG_BITS related kludge.
14032         (defvar_magic): Ditto.
14033
14034         * malloc.c: Removed obsolete DATA_SEG_BITS
14035         * ralloc.c: Ditto.
14036         * mem-limits.h: Ditto.
14037
14038         * Makefile.in.in: Removed obsolete HAVE_SHM
14039         * emacs.c: Ditto.
14040
14041 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14042
14043         *  device-msw.c (mswindows_delete_device): Free DDE string
14044         handles.
14045
14046 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14047
14048         * keymap.c (get_keyelt):
14049         * unexnt.c (unexec):
14050         * vm-limit.c (memory_warnings):
14051         * ntheap.c (recreate_heap):
14052         * ntheap.h (UNINIT_PTR):
14053         * select-msw.c (Fmswindows_get_clipboard):
14054         (Fmswindows_set_clipboard):
14055         * objects-msw.h (MSWINDOWS_BAD_HFONT):
14056         * objects-msw.c:
14057         * menubar-msw.c (displayable_menu_item):
14058         * glyphs-msw.c:
14059         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
14060         * sysdep.c (sys_subshell):
14061         * process-nt.c (nt_create_process):
14062         * nt.c (normalize_filename):
14063         (dostounix_filename):
14064         (unixtodos_filename):
14065         * ntproc.c (win32_executable_type):
14066         * ntplay.c (play_sound_data_1):
14067         (play_sound_file):
14068         * editfns.c (get_home_directory):
14069         * event-msw.c (struct winsock_stream):
14070         (mswindows_dde_callback):
14071         * device-msw.c (msprinter_init_device):
14072         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
14073
14074         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
14075         mswindows_clear_toolbar were swapped!
14076
14077         * objects-msw.c:(colormap_t):
14078         (fontmap_t):
14079         * emacs.c (struct standard_args): Fixed const jumble.
14080
14081         * glyphs-widget.c (update_widget): Fixed comparison notation.
14082
14083         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
14084
14085         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
14086         __declspec(noreturn) syntax.
14087
14088 2000-02-19  Martin Buchholz  <martin@xemacs.org>
14089
14090         * eldap.c (Fldap_open):
14091         (Fldap_search_basic):
14092         (Fldap_add):
14093         (Fldap_modify):
14094         Use new coding system conversion macros.
14095
14096 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14097
14098         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
14099
14100 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
14101
14102         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
14103         (Fldap_add, Fldap_modify, Fldap_delete): New functions
14104
14105         * eldap.c (Qadd, Qreplace): New constant symbols
14106         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
14107         interruptions by XEmacs signals
14108         Remove unnecessary calls to slow_down_interrupts and
14109         speed_up_interrupts
14110         (Fldap_search_basic): Renamed from Fldap_search_internal
14111         Added new optional parameter VERBOSE that triggers the
14112         display of progress messages
14113         Remove unnecessary calls to slow_down_interrupts and
14114         speed_up_interrupts
14115         LDAP result code analysis rewritten
14116         (Fldap_add, Fldap_modify, Fldap_delete): New functions
14117         (syms_of_eldap): Define the new symbols and functions
14118
14119
14120 2000-02-17  Martin Buchholz  <martin@xemacs.org>
14121
14122         * realpath.c: Determine PATH_MAX maximally portably.
14123
14124         * insdel.c (bytecount_to_charcount): Optimize.
14125         The function used to be optimized for entirely ASCII sequences.
14126         Now it is optimized for successive characters from the same
14127         charset.  This also wins big for _mostly_ ASCII sequences.
14128
14129         * fileio.c (Ffile_truename): convert return from realpath() using
14130         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
14131         - Rewrite GCPROing slightly.
14132
14133         * sysdep.c (sys_open): Do filename conversion, like all other
14134         sys_* functions.  Fixes bug:
14135         (let ((file-name-coding-system 'iso-8859-2))
14136            (write-region x y latin2-name))
14137         ==> writes filename using internal encoding.
14138
14139 2000-02-18  Martin Buchholz  <martin@xemacs.org>
14140
14141         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
14142         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
14143         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
14144         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
14145         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
14146         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
14147         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
14148         (CONST_IF_NOT_DEBUG): Delete.
14149         * alloc.c (this_one_is_unmarkable): Delete.
14150         (mark_object): Don't check for this_one_is_unmarkable. Use the
14151         c_readonly flag instead.
14152         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
14153
14154 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14155
14156         * event-msw.c (mswindows_drain_windows_queue):
14157         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
14158         away redundant repaint events.
14159
14160 2000-02-17  Andy Piper  <andy@xemacs.org>
14161
14162         * redisplay.h: declare mark_redisplay_structs.
14163
14164         * redisplay.c (redisplay_window):
14165         (redisplay_frame): don't check subwindows_state_changed.
14166         (mark_redisplay): mark gutters here.
14167
14168         * glyphs.c: (instantiate_image_instantiator): always layout if we
14169         haven't done so already.
14170         (allocate_image_instance): don't mark as dirty.
14171         (update_subwindow): bind inhibit_quit.
14172
14173         * gutter.c (mark_gutters): new function.
14174
14175         * glyphs-x.c (x_update_widget): Always resize to get round a
14176         widget bug.
14177
14178         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
14179         breaking absolutely everything.
14180
14181         * gutter.h: declare mark_gutters.
14182
14183 2000-02-16  Martin Buchholz <martin@xemacs.org>
14184
14185         * XEmacs 21.2.29 is released.
14186
14187 2000-02-15  Olivier Galibert  <galibert@pobox.com>
14188
14189         * fns.c (size_bit_vector): Fix computation of the size.
14190
14191 2000-02-15  Martin Buchholz  <martin@xemacs.org>
14192
14193         * *.[ch]: Change CONST to const globally.
14194         find -name '*.[ch]' | \
14195         xargs global-replace \
14196         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
14197         - Remove vestigial references to CONST_IS_LOSING
14198
14199 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14200
14201         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
14202         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
14203         events instead of dispatching them directly.
14204         (mswindows_handle_paint): New function to do repainting.
14205         (mswindows_wnd_proc):
14206         (emacs_mswindows_handle_magic_event): Call above function.
14207
14208 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14209
14210         * objects-msw.c (mswindows_create_font_variant): Return the new
14211         font handle.
14212         (initialize_font_instance): Get font metrics from the underlined
14213         variant of the font to cope with the case where the underlined
14214         font has a bigger descent.
14215
14216 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
14217
14218         * gui.c (gui_item_accelerator): Return the first underlined
14219         character in item name.
14220
14221 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14222
14223         * lisp.h: Added Qprinter.
14224
14225         * general.c (syms_of_general): Initialized it.
14226
14227         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
14228         (get_frame_dc):
14229         (get_frame_compdc): Made inline.
14230
14231         * console.h (struct console_methods): Added eject_page method.
14232
14233         * frame.h: Added FRAME_DISPLAY_P and friends.
14234         Aligned backslahes in many macros in more readable fashion.
14235         Added page_number to struct frame, and an accessor macro
14236         for it.
14237
14238         * defice.h: Added DEVICE_DISPLAY_P and friends.
14239
14240         * device.c (Fdevice_printer_p): Used these.
14241
14242         * frame.c (allocate_frame_core): Initialize page number.
14243         (Fprint_job_page_number):
14244         (Fprint_job_eject_page): Implemented.
14245
14246         * frame-msw.c (msprinter_eject_page): Added method.
14247         (msprinter_start_page): Added.
14248
14249         * window.c (Fwindow_truncated_p): Fixed docstring.
14250         (Fwindow_last_line_visible_height): Implemented.
14251
14252 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14253
14254         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
14255
14256 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14257
14258         * syntax.c (scan_words): Always advance at least one character.
14259
14260 2000-02-13  Andy Piper  <andy@xemacs.org>
14261
14262         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
14263         to make sure the glyph is in the cachels.
14264
14265         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
14266         global image instance flag.
14267         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
14268         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
14269
14270         * glyphs.c (allocate_image_instance): set dirty bits correctly.
14271         (Fset_image_instance_property): mark layout as changed.
14272         (invalidate_glyph_geometry_maybe): mark layout as changed.
14273         (glyph_width): use new NEEDS_LAYOUT macro.
14274         (glyph_ascent): ditto.
14275         (glyph_descent): ditto.
14276         (glyph_height): ditto.
14277         (image_instance_layout): mark layout as clean after laying out.
14278         (update_subwindow): don't mark layout as clean here.
14279
14280         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
14281         should no longer be needed.
14282
14283         * glyphs-x.c (x_update_widget): sanitize asserts.
14284         (x_finalize_image_instance): sanitize assignment to widgets.
14285
14286         * glyphs-widget.c (widget_instantiate): don't need to clear the
14287         layout flag here.
14288
14289 2000-02-13  Martin Buchholz  <martin@xemacs.org>
14290
14291         * sysdep.c (getcwd): Use standard prototype.
14292         * sysdep.h (getcwd): Use standard prototype.
14293
14294         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
14295         (sequence, start, end).
14296         Remove redundant type checking.
14297         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
14298         view of `caller-protects') to avoid a crash where the real fix was
14299         found elsewhere.
14300
14301 2000-02-12  Martin Buchholz  <martin@xemacs.org>
14302
14303         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
14304
14305         * s/sol2.h: Remove feature macro initialization.
14306
14307         * alloc.c (alloc_lcrecord): Add more type checking assertions.
14308         (vector_hash): New.  Code from internal_hash.
14309         * lrecord.h:
14310         Fix up allocation subsystem comments.
14311
14312         * config.h.in: Add __EXTENSIONS__ for Solaris.
14313
14314         * systime.h (EMACS_GETTIMEOFDAY): New.
14315         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
14316         Remove Solaris-specific code.
14317         Use void* for the (ignored) second arg for gettimeofday().
14318
14319         * elhash.c (hash_table_hash): Implement it, finally.
14320         * elhash.c:  Use hashcode_t.
14321
14322         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
14323         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
14324
14325         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
14326         * fns.c (size_bit_vector):
14327         * alloc.c (size_vector):
14328         (make_vector_internal):
14329         (make_bit_vector_internal):
14330         (sweep_bit_vectors_1):
14331         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
14332
14333 2000-02-10  Martin Buchholz  <martin@xemacs.org>
14334
14335         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
14336         Include strings.h to avoid warnings for bzero and strcasecmp.
14337
14338 2000-02-10  Olivier Galibert  <galibert@pobox.com>
14339
14340         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
14341         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
14342
14343         * fns.c (size_bit_vector): New.  Declare bit vectors as a
14344         sequence.
14345
14346 2000-02-10  Olivier Galibert  <galibert@pobox.com>
14347
14348         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
14349         use a value field instead.
14350         (symbol_value_forward_forward): Use value field.
14351         (DEFVAR_SYMVAL_FWD): Use value field.
14352         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
14353         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
14354         (DEFVAR_CONST_INT): Ditto.
14355         (DEFVAR_BOOL): Ditto.
14356         (DEFVAR_CONST_BOOL): Ditto.
14357         (DEFVAR_INT_MAGIC): Ditto.
14358         (DEFVAR_BOOL_MAGIC): Ditto.
14359
14360         * symbols.c (guts_of_unbound_marker): Use value field.
14361         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
14362         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
14363
14364         * lisp.h: Declare dumpopaque and noninteractive1.
14365
14366         * alloc.c (dumpopaque): Added.
14367         (pdump_dump_opaquevec): Added.
14368         (pdump): Call pdump_dump_opaquevec to dump opaque data.
14369         (pdump_load): Reload opaque data.  Sync noninteractive1 with
14370         noninteractive.
14371
14372 2000-02-10  Andy Piper  <andy@xemacs.org>
14373
14374         * glyphs.c (image_instance_layout): if the size changes, mark it
14375         as such.
14376
14377         * redisplay-output.c (redisplay_output_layout): Update the
14378         subwindow here.
14379         (redisplay_output_subwindow): ditto.
14380
14381         * glyphs.c (update_subwindow): make sure we reset flags for
14382         layouts as well as everything else.
14383
14384         * glyphs-widget.c (layout_layout): don't need to set the instances
14385         dimensions here.
14386
14387 2000-02-09  Martin Buchholz  <martin@xemacs.org>
14388
14389         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
14390         not HAVE_DLOPEN, which is a lower-level thing.
14391
14392         * .cvsignore: Ignore gmon.out
14393
14394 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
14395
14396         * .cvsignore: Ignore portable dumper xemacs.dmp file
14397
14398 2000-02-09  Andy Piper  <andy@xemacs.org>
14399
14400         * redisplay-output.c (redisplay_output_layout): be more clever
14401         about when we output based on the changed flags.
14402
14403         * glyphs.h (struct image_instantiator_methods): add update_method.
14404         (struct Lisp_Image_Instance): add changed flags. Declare new
14405         macros for manipulating them.
14406
14407         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
14408         (image_instance_parent_glyph): find an image_instance's parent
14409         glyph or image_instance.
14410         (image_instance_layout): mark the size as changed.
14411         (set_image_instance_dirty_p): new function. mark an image
14412         instance, plus all of its parents, as dirty.
14413         (Fset_image_instance_property): use it.
14414         (Fglyph_animated_timeout_handler): use it.
14415         (update_subwindow): call update_widget and device methods for
14416         update_subwindow. Mark all changed flags as clean.
14417         (Fresize_subwindow): mark size as changed.
14418
14419         * glyphs-x.c (x_finalize_image_instance): try and detect gc
14420         failures.
14421         (x_update_subwindow): only resize subwindows here.
14422         (x_update_widget): new function. Update all changed properties of
14423         a widget.
14424         (x_resize_subwindow): deleted.
14425         (x_widget_set_property): deleted.
14426         (x_progress_gauge_set_property): deleted.
14427         (x_progress_gauge_update): new function. Implement recorded
14428         changes.
14429         (x_tab_control_update): ditto.
14430         (x_tab_control_set_property): deleted.
14431         (console_type_create_glyphs_x): declare new functions.
14432         (image_instantiator_format_create_glyphs_x): ditto.
14433
14434         * glyphs-widget.c (widget_set_property): mark text changed.
14435         (update_widget): new function. Update properties of a widget.
14436         (widget_instantiate): for layouts make sure we set their
14437         children's parent correctly.
14438         (tab_control_set_property): new function. Record changes that will
14439         take place under redisplay's control.
14440         (progress_gauge_set_property): ditto.
14441         (image_instantiator_progress_guage): declare new functions.
14442         (image_instantiator_tab_control): ditto.
14443
14444         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
14445         now.
14446         (mswindows_update_widget): new function. Update all properties on
14447         a widget that have changed.
14448         (mswindows_button_update): new function. Update a button's set
14449         state.
14450         (mswindows_tab_control_update): new function. Update the items in
14451         a tab.
14452         (mswindows_tab_control_set_property): deleted.
14453         (mswindows_progress_gauge_update): new function. Update the
14454         progress gauge's progress.
14455         (mswindows_widget_set_property): deleted. This is all done
14456         asynchronously now.
14457         (mswindows_progress_gauge_set_property): ditto.
14458         (console_type_create_glyphs_mswindows): declare new methods.
14459         (image_instantiator_format_create_glyphs_mswindows): ditto.
14460
14461         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
14462         (msprinter_set_frame_properties): ditto.
14463
14464         * console.h (struct console_methods): Add update_widget_method.
14465
14466 2000-02-09  Andy Piper  <andy@xemacs.org>
14467
14468         * gui-msw.c (Fmswindows_shell_execute): Make
14469         mswindows-shell-execute industrial strength.
14470
14471 2000-02-08  Martin Buchholz  <martin@xemacs.org>
14472
14473         * lrecord.h: Make macro argument `props' match member function `plist'.
14474         * fns.c (Fget):
14475         * fns.c (Fput):
14476         * fns.c (Fremprop):
14477         * fns.c (Fobject_plist):
14478         * alloc.c:
14479         * symbols.c:
14480         Object property list frobbing cleanup.
14481         - Allow any lisp object (compared with `eq'), not just symbols, as
14482           keys in object plists.
14483         - Move symbol plist frobbing into symbols.c, where it belongs.
14484         - Move string plist frobbing into alloc.c, where it belongs.
14485         - Everything's an lrecord now, so no need to test for symbolp, etc.
14486         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
14487
14488         * extents.c: Reorder code to remove declarations.
14489
14490         * frame.h (store_in_alist): Remove useless declaration.
14491
14492 2000-02-07  Martin Buchholz  <martin@xemacs.org>
14493
14494         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
14495         * config.h.in: Add HAVE_XCONVERTCASE.
14496
14497 2000-02-07  Andy Piper  <andy@xemacs.org>
14498
14499         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
14500         it breaks many things.
14501
14502 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
14503
14504         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
14505         actually can start a common comment type.
14506         * src/syntax.h (SYNTAX_END_P): ditto for end.
14507
14508 2000-02-07  Martin Buchholz <martin@xemacs.org>
14509
14510         * XEmacs 21.2.28 is released.
14511
14512 2000-02-06  Martin Buchholz  <martin@xemacs.org>
14513
14514         * event-Xt.c (x_keysym_to_character): New.
14515         (maybe_define_x_key_as_self_inserting_character): New.
14516         (x_has_keysym): New.
14517         Auto-define all keys on the keyboard as self-insert-key.
14518
14519 2000-02-02  Martin Buchholz  <martin@xemacs.org>
14520
14521         * menubar.c (vars_of_menubar): A small code simplification.
14522
14523         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
14524
14525         * ExternalShell.c:
14526         * ExternalClient.c:
14527         * EmacsShell-sub.c:
14528         * EmacsManager.c:
14529         * EmacsFrame.c:
14530         Use consistent style for specifying X resources.
14531
14532         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
14533         This makes (dontusethis-set-symbol-value-handler) actually usable.
14534
14535         * lrecord.h (lrecord_decription_type):
14536         * alloc.c (pdump_register_sub):
14537         (pdump_dump_data):
14538         (pdump_reloc_one):
14539         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
14540         Comply with XEmacs coding style.
14541         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
14542         args, and XD_LISP_OBJECT_ARRAY with 3 args.
14543
14544         * keymap.c (Faccessible_keymaps):
14545         Make (accessible-keymaps map "\C-h") do the Right Thing.
14546         Make (accessible-keymaps map []) do the Right Thing.
14547         Make (accessible-keymaps map "") do the Right Thing.
14548         (check_keymap_definition_loop): New function.
14549         (keymap_store_internal): Keep luser from shooting self in foot,
14550           via (define-key ctl-x-4-map "p" global-map).
14551         Remove fullness slot from struct Lisp_Keymap, since hash tables
14552         are now reliable.
14553         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
14554
14555 2000-01-30  Martin Buchholz  <martin@xemacs.org>
14556
14557         * redisplay.c (init_redisplay): Fix small memory leak.
14558         * elhash.h:
14559         * elhash.c (pdump_reorganize_hash_table):
14560         Rename from reorganize_hash_table. Change prototype.
14561         Reuse the original memory for hentries.  Save 100k.
14562         * alloc.c (PDUMP_READ): new macro.
14563         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
14564         * alloc.c: No need to #ifndef before #undef.
14565
14566         * print.c: Allow debug_print() to print readably by modifying
14567         debug_print_readably.  Use consistent variable names.
14568
14569         * .dbxrc: Try to get things to work even if stopped in a function
14570         without source available by explicitly specifying source files.
14571 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14572
14573         * unexnt.c (_start): Removed bogus code which caused loading heap
14574         from differrent executable file.
14575         Removed bogus assignment to _fmode, which caused inconsistencies.
14576
14577 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14578
14579         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
14580         Have spawnve encapsulation regard DONT_ENCAPSULATE.
14581         Do not preliminary `#define signal sigset'.
14582
14583         * systime.h: Do not prototype environ on windows nt and cygwin,
14584         this conflicts with system header.
14585
14586         * syssignal.h: Use correct define for WINDOWSNT
14587
14588         * sysdep.h: Do not prototype environ on windows nt, this conflicts
14589         with system header.
14590
14591         * sysdep.c (near start of file): Fixed commentary and rearranged
14592         ifdefs in readable order.
14593         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
14594         (start_of_text):
14595         (end_of_text):
14596         (end_of_data): Do not compile in if using PDUMP.
14597
14598         * symsinit.h: Prototyped vars_of_nt().
14599
14600         * ntproc.c (windows9x_p): Added, instead of os_subtype.
14601         (find_child_console): Use it.
14602         (sys_kill): Use it.
14603
14604         * ntheap.h: Do not extern os_subtype.
14605
14606         * ntheap.c (cache_system_info): Do not cache unneeded:
14607         nt_major_version, nt_minor_version and os_subtype.
14608         (recreate_heap): Do not compile in when PDUMPing.
14609
14610         * nt.c (geteuid and friends): Use the new varibale
14611         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
14612         (init_user_info): Removed the above mentioned hackery.
14613         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
14614         stat has been fixed in the C runtime.
14615         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
14616
14617         * file-coding.c (struct file_coding_dump): Do not define
14618         ucs_to_mule_table in the struct if not MULE.
14619         (struct struct lrecord_description fcd_description_1): Do not dump
14620         the above.
14621
14622         * emacs.c (main_1): Call vars_of_nt().
14623         (right before Fdump_emacs_data): Don't need lastfile if using both
14624         portabe dumper and system malloc.
14625
14626         * alloc.c (Fmemory_limit): Conditionalized out.
14627         (pdump): Use OPEN_BINARY for the portable dump file.
14628         (pdump_load): Ditto.
14629
14630 2000-02-02  Mike Alexander  <mta@arbortext.com>
14631
14632         * nt.c (convert_time): Set tm_isdst before calling mktime and
14633         avoid calling it at all if the compiler supports 64 bit integers.
14634         Also initialize utc_base_ft before using it.
14635
14636 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
14637
14638         * frame.c (change_frame_size_1): Take f->internal_border_width
14639         into consideration when calculating the width of the frame.
14640
14641 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14642
14643         * window.c (frame_min_height):
14644         (frame_size_valid_p):
14645         (frame_pixsize_valid_p): Added.
14646         (check_frame_size): Generalized.
14647
14648         * window.h: Prototyped the above.
14649
14650         * lisp.h:
14651         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
14652         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
14653         Deleted Vwin32_* and Vbinary_process_* unused variables.
14654
14655         * device-msw.c (msprinter_init_device): Do not get printer font
14656         list; Added DEVMODE functions.
14657
14658         * frame-msw.c: Added lots of printer code.
14659
14660         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
14661         general.c.
14662
14663         * console-msw.h: Added more msprinter device private slots.
14664
14665 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14666
14667         * event-msw.c (key_needs_default_processing_p): Added.
14668         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
14669
14670 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14671
14672         * glyphs.c (image_instance_layout): Mark image instance as clean
14673         after layout.
14674         (glyph_dirty_p): Removed redundant function.
14675         (invalidate_glyph_geometry_maybe): Added.
14676         (update_glyph_cachel_data): Call it.
14677
14678         * glyphs.h: Prototyped it.
14679
14680         * redisplay.c (add_glyph_rune): Call it.
14681         (redisplay_window): Reset glyphs cachels when frame faces have
14682         changed, thus forcing recomputation of built-in border glyphs.
14683
14684 2000-01-30  Martin Buchholz  <martin@xemacs.org>
14685
14686         * Makefile.in.in: Make portable dumper and purify play well together.
14687         Add imperfect, but better than nothing, support for pdump.
14688         Remove xemacs.dmp when temacs is re-generated.
14689         Don't ignore errors when dumping xemacs.
14690
14691         * symbols.c (maybe_call_magic_handler): Remove one magic number.
14692
14693 2000-01-28  Andy Piper  <andy@xemacs.org>
14694
14695         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
14696         (setup_normal_frame): ditto.
14697         (setup_frame_without_minibuffer): ditto.
14698         (setup_minibuffer_frame): ditto.
14699         (delete_frame_internal): ditto.
14700         (Fmake_frame_invisible): ditto.
14701         (Ficonify_frame): ditto.
14702
14703         * window.h: change Fset_window_buffer signature.
14704
14705         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
14706         (Fset_window_buffer): allow recording of buffer if the window is
14707         the selected window.
14708         (window_loop): Use new Fset_window signature.
14709
14710 2000-01-23  Daniel Pittman  <daniel@danann.net>
14711
14712         * config.h.in: Added template for `HAVE_ATHENA_3D'
14713
14714 2000-01-29  Andy Piper  <andy@xemacs.org>
14715
14716         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
14717
14718         * gutter.c (output_gutter): Don't output if the window isn't live.
14719
14720 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14721
14722         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
14723         of 01/12/00: Moved SetFocus back here where it belongs.
14724
14725 2000-01-23  Andy Piper  <andy@xemacs.org>
14726
14727         * s/cygwin32.h: declare printer things.
14728
14729 2000-01-26  Andy Piper  <andy@xemacs.org>
14730
14731         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
14732         Alexander.
14733
14734 2000-01-24  Andy Piper  <andy@xemacs.org>
14735
14736         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
14737         (mswindows_button_instantiate): Make sure glyph is a pixmap.
14738
14739         * glyphs-widget.c (widget_instantiate): Avoid shadows.
14740
14741         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
14742
14743         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
14744
14745         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
14746         (mswindows_output_display_block): Avoid local shadows.
14747
14748         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
14749         (mswindows_enqueue_mouse_button_event): ditto.
14750         (mswindows_handle_gui_wm_command): remove declaration.
14751
14752         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
14753         warnings.
14754
14755         * console-msw.h: Avoid shadows.
14756         (mswindows_get_toolbar_button_text):
14757         (emacs_mswindows_create_stream_pair):
14758         (emacs_mswindows_delete_stream_pair):
14759         (mswindows_handle_toolbar_wm_command): declare.
14760
14761         * device-msw.c (build_syscolor_string): Avoid shadows.
14762
14763 2000-01-23  Andy Piper  <andy@xemacs.org>
14764
14765         * glyphs-widget.c (widget_instantiate): reverse the items for
14766         layouts so that children are in the expected order.
14767
14768 2000-01-28  Martin Buchholz  <martin@xemacs.org>
14769
14770         * ralloc.c: safe_bcopy ==> memmove
14771         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
14772         * s/msdos.h: Remove BCOPY macros.
14773         * insdel.c (gap_right): Remove BCOPY conditional code.
14774         * insdel.c (gap_left): Remove BCOPY conditional code.
14775         XEmacs demands a working ANSI C compiler - hence memmove.
14776
14777         * regex.c (regex_compile): Remove accidental use of trigraphs.
14778
14779 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14780
14781         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
14782         event timestamp.
14783
14784 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14785
14786         * event-msw.c (mswindows_drain_windows_queue): Added the
14787         parameter.
14788         (mswindows_need_event): Commented the call to
14789         mswindows_drain_windows_queue().
14790         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
14791         only.
14792
14793         * console-msw.h: Moved a few function prototypes here from
14794         event-msw.c.
14795
14796         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
14797         parameter from unsigned short to unsigned long.
14798         (Fmswindows_shell_execute): Added return value.
14799
14800 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
14801
14802         * sysdep.c (init_system_name):
14803           process-unix.c (unix_canonicalized_host_name):
14804         Don't call freeaddrinfo() if getaddrinfo() fails.
14805
14806         * process-unix.c (unix_open_unix_network_stream):
14807         Moved the code to get a port # into address loop.
14808
14809 2000-01-27  Martin Buchholz  <martin@xemacs.org>
14810
14811         * buffer.c (reinit_vars_of_buffer):
14812         The right place to initialize conversion_in_dynarr and
14813         conversion_out_dynarr.
14814
14815         * alloc.c (pdump): Use the real open() till sys_open() is functional.
14816
14817         * process-unix.c (unix_canonicalize_host_name): Muleize.
14818         (unix_open_network_stream): Muleize.
14819
14820         * buffer.h: Fix up prototypes for ralloc.c functions.
14821
14822 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
14823         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
14824         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
14825                 instead of gethostbyname()
14826         * process-unix.c: In unix_canonicalize_host_name() and
14827                 unix_open_network_stream(), add code to use getaddrinfo()
14828                 instead of gethostbyname().
14829
14830 2000-01-27  Daniel Pittman <daniel@danann.net>
14831
14832         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
14833         libs when built with flat Athena.
14834
14835 2000-01-27  Martin Buchholz  <martin@xemacs.org>
14836
14837         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
14838         Use coding standards for function prototypes.
14839
14840 2000-01-25  Martin Buchholz  <martin@xemacs.org>
14841
14842         * dialog-msw.c (push_lisp_string_as_unicode):
14843         * doc.c (unparesseuxify_doc_string):
14844         * dired.c (Fuser_name_completion_1):
14845         * dired.c (Fuser_name_all_completions):
14846         * dired.c (free_user_cache):
14847         * dired.c (user_name_completion):
14848         * console-x.c (get_display_arg_connection):
14849         * minibuf.c (clear_echo_area_internal):
14850         * minibuf.c (echo_area_append):
14851         * eldap.c (Fldap_open):
14852         * eldap.c (Fldap_search_internal):
14853         * frame-x.c (x_set_frame_text_value):
14854         * frame-x.c (x_set_frame_properties):
14855         * frame-x.c (x_create_widgets):
14856         * redisplay-tty.c (term_get_fkeys_1):
14857         * objects-x.c (x_parse_nearest_color):
14858         * objects-x.c (x_valid_color_name_p):
14859         * objects-x.c (x_initialize_font_instance):
14860         * objects-x.c (x_list_fonts):
14861         * objects-x.c (x_find_charset_font):
14862         * tooltalk.c (Fadd_tooltalk_message_arg):
14863         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
14864         * tooltalk.c (Fadd_tooltalk_pattern_arg):
14865         * process-unix.c (unix_create_process):
14866         * ntproc.c (sys_spawnve):
14867         * sound.c (Fplay_sound_file):
14868         * sound.c (Fplay_sound):
14869         * buffer.c (init_initial_directory):
14870         * buffer.c (init_buffer):
14871         * editfns.c (init_editfns):
14872         * editfns.c (Ftemp_directory):
14873         * editfns.c (Fuser_full_name):
14874         * editfns.c (uncache_home_directory):
14875         * editfns.c (get_home_directory):
14876         * editfns.c (Fuser_home_directory):
14877         * editfns.c (Fformat_time_string):
14878         * editfns.c (Fcurrent_time_string):
14879         * gui-x.c (button_item_to_widget_value):
14880         * database.c (Fopen_database):
14881         * event-Xt.c (x_to_emacs_keysym):
14882         * event-Xt.c (x_event_to_emacs_event):
14883         * event-Xt.c (describe_event_window):
14884         * event-msw.c (mswindows_wnd_proc):
14885         * glyphs-eimage.c (jpeg_instantiate):
14886         * glyphs-eimage.c (gif_instantiate):
14887         * glyphs-eimage.c (png_instantiate):
14888         * glyphs-eimage.c (tiff_instantiate):
14889         * glyphs-x.c (xbm_instantiate_1):
14890         * glyphs-x.c (x_xbm_instantiate):
14891         * glyphs-x.c (x_xface_instantiate):
14892         * glyphs-x.c (autodetect_instantiate):
14893         * glyphs-x.c (cursor_font_instantiate):
14894         * glyphs-x.c (x_widget_instantiate):
14895         * glyphs-x.c (x_widget_set_property):
14896         * glyphs-x.c (x_widget_property):
14897         * glyphs-x.c (BUILD_GLYPH_INST):
14898         * print.c (write_string_to_stdio_stream):
14899         * print.c (output_string):
14900         * print.c (Falternate_debugging_output):
14901         * print.c (Fexternal_debugging_output):
14902         * glyphs-msw.c (extract_xpm_color_names):
14903         * glyphs-msw.c (mswindows_xpm_instantiate):
14904         * glyphs-msw.c (bmp_instantiate):
14905         * glyphs-msw.c (resource_name_to_resource):
14906         * glyphs-msw.c (mswindows_resource_instantiate):
14907         * glyphs-msw.c (xbm_instantiate_1):
14908         * glyphs-msw.c (mswindows_xbm_instantiate):
14909         * glyphs-msw.c (mswindows_xface_instantiate):
14910         * glyphs-msw.c (mswindows_widget_instantiate):
14911         * glyphs-msw.c (add_tree_item):
14912         * glyphs-msw.c (add_tab_item):
14913         * glyphs-msw.c (mswindows_combo_box_instantiate):
14914         * glyphs-msw.c (mswindows_widget_property):
14915         * glyphs-msw.c (mswindows_combo_box_property):
14916         * glyphs-msw.c (mswindows_widget_set_property):
14917         * console.c (stuff_buffered_input):
14918         * objects-msw.c (mswindows_initialize_color_instance):
14919         * objects-msw.c (mswindows_valid_color_name_p):
14920         * objects-msw.c (mswindows_list_fonts):
14921         * objects-msw.c (mswindows_font_instance_truename):
14922         * bytecode.c (optimize_compiled_function):
14923         * select-x.c (symbol_to_x_atom):
14924         * select-x.c (x_atom_to_symbol):
14925         * select-x.c (hack_motif_clipboard_selection):
14926         * select-x.c (selection_data_to_lisp_data):
14927         * select-x.c (lisp_data_to_selection_data):
14928         * select-x.c (Fx_get_cutbuffer_internal):
14929         * select-x.c (Fx_store_cutbuffer_internal):
14930         * buffer.h (TO_EXTERNAL_FORMAT): New function.
14931         * buffer.h (TO_INTERNAL_FORMAT): New function.
14932         * emacs.c (make_arg_list_1):
14933         * emacs.c (make_argc_argv):
14934         * emacs.c (main_1):
14935         * emacs.c (Fdump_emacs):
14936         * emacs.c (split_string_by_emchar_1):
14937         * file-coding.h:
14938         * lisp.h:
14939         * lstream.h:
14940         * symsinit.h:
14941         * device-x.c (x_init_device):
14942         * device-x.c (Fx_valid_keysym_name_p):
14943         * device-x.c (Fx_get_font_path):
14944         * device-x.c (Fx_set_font_path):
14945         * glyphs.c (bitmap_to_lisp_data):
14946         * glyphs.c (pixmap_to_lisp_data):
14947         * alloc.c (make_ext_string): Use coding system arguments.  Update
14948         all callers.
14949         * alloc.c (build_string):
14950         * callproc.c (child_setup):
14951         * callproc.c (init_callproc):
14952         * fileio.c (lisp_strerror):
14953         * fileio.c (directory_file_name):
14954         * fileio.c (Fexpand_file_name):
14955         * fileio.c (Ffile_truename):
14956         * fileio.c (Fsysnetunam):
14957         * fileio.c (Fdo_auto_save):
14958         * sysdep.c (sys_readdir):
14959         * tests.c: New file.  Allow adding C tests.
14960         Replace GET_* macros with a more comprehensible and flexible
14961         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
14962         Modify all calls.
14963         Any coding system can be used to do format conversion.
14964         Eliminate enum external_data_format.
14965         Eliminate convert_to_external_format.
14966         Eliminate convert_to_internal_format.
14967         Make sure file-name, keyboard, terminal, and ctext are always
14968         defined as coding systems or aliases.  Make
14969         file-name-coding-system, terminal-coding-system, and
14970         keyboard-coding-system magical variables that are equivalent to
14971         defining the corresponding coding system aliases.
14972
14973         * file-coding.c (Fcoding_system_canonical_name_p): New function.
14974         * file-coding.c (Fcoding_system_alias_p): New function.
14975         * file-coding.c (Fcoding_system_aliasee): New function.
14976         * file-coding.c (append_suffix_to_symbol): New function.
14977         * file-coding.c (dangling_coding_system_alias_p): New function.
14978         * file-coding.c (Ffind_coding_system):
14979         * file-coding.c (Fcopy_coding_system):
14980         * file-coding.c (encode_coding_no_conversion):
14981         * file-coding.c (syms_of_file_coding):
14982         * file-coding.c (vars_of_file_coding):
14983         Rewrite coding system alias code.
14984         Allow nested aliases, like symbolic links.
14985         Allow redefinition of coding system aliases.
14986         Prevent existence of dangling coding system aliases.
14987
14988         * dired.c (Fuser_name_completion_1):
14989         * dired.c (Fuser_name_all_completions):
14990         A crash would happen if user did QUIT in the middle of building
14991         user_name_cache.  Remove redundant code in mainline and unwind_protect.
14992
14993         * lisp.h:
14994         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
14995
14996         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
14997         an unsigned char *.  Update all callers.
14998
14999 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15000
15001         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
15002
15003 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15004
15005         * elhash.c (hentry_description): Use more portable definition.
15006         (resize_hash_table): Initialize new hentries using
15007         xnew_array_and_zero, thereby simplifying the code.
15008
15009         * mule-charset.c (make_charset): Make sure entire object is
15010         initialized, to avoid Purify warnings.
15011
15012         * alloc.c (resize_string): Fix unlikely crash with big strings.
15013
15014 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15015
15016         * realpath.c (xrealpath):
15017         Don't call getwd().
15018
15019 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15020
15021         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
15022
15023 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
15024
15025         * unexelfsgi.c (unexec): Change the way we decide which segment
15026         should be extended.
15027
15028         Assumption that .bss section should be outside the PT_LOADable
15029         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
15030         it's present) is inside the 'data' segment. This would fail the
15031         test which was used to find a segment to grow and cover new
15032         heap. Instead of this assumption, I created another one - on IRIX
15033         the segment to grow should start below .bss and it's address
15034         should extent above the end of .bss. Once this segment is
15035         identified, it's grown to accommodate the new heap and new
15036         zero-length .bss section is added at the end of .data2.
15037
15038 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15039
15040         * eval.c (Feval): Wrong number of arguments should use original
15041         function, not the indirect_function version of it.
15042
15043 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
15044
15045         * glyphs-x.c (x_button_instantiate): Don't add image if
15046         it is not a pixmap.
15047         (x_locate_pixmap_file): Call Fexpand_file_name when file name
15048         is relative.
15049
15050 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
15051
15052         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
15053         declaration.
15054         (DEFVAR_INT_MAGIC): Ditto.
15055         (DEFVAR_BOOL_MAGIC): Ditto.
15056         * glyphs.h: Reindent backslash.
15057
15058 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15059
15060         * glyphs-widget.c (layout_query_geometry):
15061         (layout_layout): Use correct types for gheight, gwidth.
15062
15063 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15064
15065         * EmacsManager.c (QueryGeometry): Purified.
15066
15067 2000-01-23  Martin Buchholz  <martin@xemacs.org>
15068
15069         * alloc.c (make_float): Make sure entire object is initialized, to
15070         avoid Purify warnings.
15071         (pdump_register_sub): Remove useless assignment.
15072         (pdump): Use xmalloc, not malloc.
15073         (pdump_load): Use xmalloc, not malloc.
15074
15075 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15076
15077         * callproc.c:
15078         * dired-msw.c:
15079         * fileio.c:
15080         * process-nt.c:
15081         * redisplay-msw.c:
15082         * sysdep.c: Removed redundant #include <windows.h>
15083
15084 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15085
15086         * frame.c (delete_frame_internal): Do not delete device when its
15087         implementation so declares.
15088         (delete_frame_internal): Set device selected frame to nil when
15089         last frame goes away.
15090
15091         * device-msw.c (msprinter_device_system_metrics): Implemented.
15092         (mswindows_device_system_metrics): Added 'device-dpi property.
15093
15094         * device.c: (Fdevice_printer_p): Added.
15095         Added 'offset-workspace device metric.
15096
15097         * console.h (device_metrics): Declared DM_offset_workspace.
15098
15099 2000-01-23  Martin Buchholz  <martin@xemacs.org>
15100
15101         * fileio.c (Ffile_truename): Remove pointless and confusing
15102         initialization of elen.
15103
15104         * glyphs-widget.c: Compiler warning fixes.
15105
15106 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
15107
15108         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
15109         instead of a Lisp_Object as argument to make it consistent with
15110         the other LIVE_P macros.
15111         (CHECK_LIVE_PROCESS): New macro.
15112
15113         * process.c: Declare Qprocess_live_p.
15114         (Fprocess_live_p): New function.
15115         (create_process): Use PROCESS_LIVE_P.
15116         (read_process_output): Ditto.
15117         (set_process_filter): Ditto.
15118         (Fdelete_process): Ditto.
15119         (kill_buffer_processes): Ditto
15120         (process_send_signal): Use CHECK_LIVE_PROCESS.
15121         (Fprocess_input_coding_system): Check whether process is still
15122         alive (fix PR#1061).
15123         (Fprocess_output_coding_system): Ditto.
15124         (Fprocess_coding_system): Ditto.
15125         (Fset_process_input_coding_system): Ditto.
15126         (Fset_process_output_coding_system): Ditto.
15127
15128 2000-01-23  Andy Piper  <andy@xemacs.org>
15129
15130         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
15131         layout and widget.
15132
15133         * glyphs.c (mark_image_instance): take into account changed
15134         image_instance format.
15135         (image_instance_equal): ditto.
15136         (image_instance_hash): ditto.
15137
15138         * glyphs-widget.c (widget_instantiate): Incorporate layout
15139         instantiation here. Delay layout of the layout until later.
15140         (layout_instantiate): deleted.
15141         (layout_query_geometry): new function. get the geometry of a
15142         layout.
15143         (layout_layout): layout a layout dynamically.
15144         (image_instantiator_widget): New function - splitting up
15145         image_instantiator_format_create_glyphs_widget for netwinder
15146         compilation.
15147         (image_instantiator_buttons):
15148         (image_instantiator_edit_fields):
15149         (image_instantiator_combo_box):
15150         (image_instantiator_scrollbar):
15151         (image_instantiator_progress_guage):
15152         (image_instantiator_tree_view):
15153         (image_instantiator_tab_control):
15154         (image_instantiator_labels):
15155         (image_instantiator_layout): ditto.
15156         (image_instantiator_format_create_glyphs_widget): Call preceding
15157         functions.
15158
15159 2000-01-22  Martin Buchholz  <martin@xemacs.org>
15160
15161         * process.c (Fset_process_coding_system):
15162         * device-x.c (Fx_keysym_hash_table):
15163         Docstring fixes.
15164
15165         * lstream.c (Lstream_write): Return documented value, not 0.
15166
15167         * fileio.c (directory_file_name):
15168         (Fsubstitute_in_file_name):
15169         (Fsubstitute_insert_file_contents_internal):
15170         (Fwrite_region_internal):
15171         * emacs.c:
15172         * sysdep.c:
15173         * getloadavg.c:
15174         * systty.h:
15175         Remove vestigial APOLLO-conditional code.
15176
15177 2000-01-21  Martin Buchholz  <martin@xemacs.org>
15178
15179         * getpagesize.h: Add guard macros.
15180         * libsst.h: Add guard macros.
15181         * libst.h: Add guard macros.
15182         * line-number.h: Add guard macros.
15183         * ndir.h: Add guard macros.
15184         * sysfloat.h: Add guard macros.
15185         * sysfile.h: Add guard macros.
15186         * sysproc.h: Add guard macros.
15187         * syswait.h: Add guard macros.
15188         * xintrinsic.h: Add guard macros.
15189         * xintrinsicp.h: Add guard macros.
15190         * xmmanager.h: Add guard macros.
15191         * xmmanagerp.h: Add guard macros.
15192         * xmprimitive.h: Add guard macros.
15193         * xmu.h: Add guard macros.
15194         * gpmevent.h: Add copyright statement. Add guard macros.
15195         * miscplay.h: Add guard macros.
15196         * *.h: Use consistent C-standards-approved guard macro names.
15197
15198         * opaque.c (make_opaque): Switch parameter order.
15199         * opaque.h (make_opaque): Switch parameter order.
15200         Update all callers.
15201         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
15202
15203         * config.h.in (type_checking_assert): Added.
15204         (bufpos_checking_assert): Added.
15205
15206 2000-01-21  Martin Buchholz  <martin@xemacs.org>
15207
15208         * alloc.c: Harmless pdump changes.
15209         - Use countof().
15210         - spell alignment correctly.
15211         * sysdep.c: Use countof()
15212
15213 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15214
15215         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
15216         initially_selected_for_input() console method, default to 0.
15217         (semi_canonicalize_console_connection): Try to delegate to
15218         canonicalize_console_connection if no such console method.
15219         (canonicalize_console_connection): Vice versa.
15220         (print_console): Do not print nil connection.
15221
15222         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
15223         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
15224         (XDEVIMPF_FRAMELESS_OK): Added.
15225         (CONSOLE_INHERITS_METHOD): Added.
15226
15227         * console-msw.c (mswindows_canonicalize_console_connection):
15228         Added.
15229         (mswindows_canonicalize_device_connection): Added.
15230
15231         * console-msw.h (struct msprinter_device): Added this struct and
15232         accessor macros.
15233         (mswindows_device): Made fontlist a lisp object.
15234
15235         * device.c (semi_canonicalize_device_connection):  Try to delegate
15236         to canonicalize_device_connection if no such console method.
15237         (canonicalize_device_connection): Vice versa.
15238         (print_device): Do not print nil connection.
15239
15240         * device-msw.c (mswindows_init_device): Call InitCommonControls
15241         when have widgets.
15242         (mswindows_delete_device): Removed fontlist deallocation.
15243         (mswindows_mark_device): Added.
15244
15245         * events.c (event_equal): Added abort() at unreached code.
15246         (event_hash): Ditto.
15247
15248         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
15249         fallback tags of Windows devices.
15250
15251         * general.c (syms_of_general): Initialized Qmsprinter.
15252
15253         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
15254         of fallback tags of Windows devices.
15255
15256         * lisp.h: Declared Qmsprinter.
15257
15258         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
15259         of strings.
15260         (mswindows_list_fonts): Ditto.
15261         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
15262         that it can be used by both mswindows and msprinter devices.
15263         (initialize_font_instance): Added.
15264         (mswindows_initialize_font_instance): Use it.
15265         (msprinter_initialize_font_instance): Added.
15266
15267         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
15268         and implementation flags check.
15269         (redisplay_without_hooks): Changed the call to the above.
15270         (Fredraw_device): Ditto.
15271         (Fredisplay_device): Ditto.
15272
15273         * redisplay-msw.c (get_frame_dc): Implemented.
15274         (get_frame_compdc): Implemented.
15275         (many functions): Use the two functions above to get device
15276         contexts, ether for a window or a printer.
15277
15278 2000-01-21  Olivier Galibert  <galibert@pobox.com>
15279
15280         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
15281         initialization here.
15282         (init_symbols_once_early): Call it.
15283         * emacs.c (main_1): Call it.
15284         * symsinit.h: Declare it.
15285
15286 2000-01-19  Olivier Galibert  <galibert@pobox.com>
15287
15288         * alloc.c: Use a lrecord_header * in the backtrace instead of a
15289         Lisp_Object.
15290         (pdump_backtrace): Ditto.
15291         (pdump_register_object): Ditto.  Cleanup use of the pointers.
15292         (pdump_get_entry): Abort if trying to register a null pointer.
15293         (pdump_dump_data): Cleanup types when relocating.
15294         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
15295         (pdump_dump_rtables): Remove bad casts.
15296         (pdump_load): Cleanup relocation w.r.t union type.  Use a
15297         Lisp_Object instead of a EMACS_INT for the hashtable
15298         reorganization.
15299
15300 2000-01-20  Martin Buchholz  <martin@xemacs.org>
15301
15302         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
15303
15304         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
15305
15306         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
15307
15308         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
15309
15310 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15311
15312         * faces.h (FACE_STRIKETHRU_P): Added.
15313
15314         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
15315         of font variants.
15316
15317         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
15318         (mswindows_set_dc_font): New function, aware of font variants,
15319         separated from mswindows_update_dc.
15320
15321         * objects-msw.h (struct mswindows_font_instance_data): Added
15322         definition.
15323
15324         * objects-msw.c (mswindows_finalize_font_instance): Delete all
15325         cached fonts and the data structure.
15326         (mswindows_initialize_font_instance): Added creation of font data
15327         structure.
15328         (mswindows_print_font_instance): Print at least something.
15329         (mswindows_create_font_variant): Implemented.
15330         (mswindows_get_hfont): Implemented.
15331
15332 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
15333
15334         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
15335         prototyping problem with msvc.
15336
15337         * emacs.c (main_1): added syms_of_gui_mswindows() call
15338
15339         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
15340         syms_of_gui_mswindows() function
15341
15342         * symsinit.h: added the prototype for syms_of_gui_mswindows()
15343
15344 2000-01-18  Martin Buchholz <martin@xemacs.org>
15345
15346         * XEmacs 21.2.27 is released.
15347
15348 2000-01-18  Martin Buchholz  <martin@xemacs.org>
15349
15350         * glyphs-eimage.c (struct tiff_error_struct):
15351         (tiff_error_func):
15352         (tiff_warning_func):
15353         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
15354
15355         * unexmips.c:
15356         * unexhp9k3.c:
15357         * unexfreebsd.c:
15358         * unexec.c: Remove vestigial Lucid C code.
15359         * unexalpha.c:
15360         * unexaix.c:
15361         * termcap.c:
15362         * libsst.c: Ansify.
15363         Remove declarations of errno and strerror().
15364
15365         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
15366
15367         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
15368
15369 2000-01-16  Martin Buchholz  <martin@xemacs.org>
15370
15371         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
15372         Optimize.
15373
15374 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15375
15376         * md5.c:
15377         * file-coding.c:
15378         * file-coding.h:
15379         Change enum eol_type to eol_type_t.
15380
15381 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15382
15383         * gui.c (get_gui_callback): Check cons before accessing car.
15384
15385 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15386
15387         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
15388         (XSETSPECIFIER_TYPE): Ditto.
15389
15390 2000-01-17  Didier Verna  <didier@xemacs.org>
15391
15392         * redisplay.c (generate_fstring_runes): compute string size in
15393         characters, not bytes.
15394
15395 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
15396
15397         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
15398
15399 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
15400
15401         * print.c (print_error_message): Call print_prepare().
15402
15403 2000-01-14  Martin Buchholz  <martin@xemacs.org>
15404
15405         * .dbxrc: Renamed from dbxrc.
15406
15407         * events.c (event_to_character):
15408         Use `assert (foo)' instead of `if (!foo) abort()'
15409
15410         * .gdbinit (xtype): Add documentation.
15411         * .gdbinit (check-temacs): New function.
15412         * .gdbinit (check-xemacs): New function.
15413         * dbxrc (check-xemacs): New function.
15414         * dbxrc (check-xemacs): New function.
15415
15416 2000-01-14  Andy Piper  <andy@xemacs.org>
15417
15418         * glyphs-widget.c (widget_query_geometry): Make sure that we
15419         calculate default dimensions correctly.
15420
15421 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15422
15423         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
15424
15425         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
15426         pdump_wire'd variable.
15427
15428         * emacs.c: (main_1): Conditionalized calls to
15429         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
15430
15431 2000-01-13  Martin Buchholz  <martin@xemacs.org>
15432
15433         * window.c (Fset_window_configuration):
15434         * sysdep.c (_start):
15435         * input-method-motif.c (res):
15436         * event-Xt.c (Xt_process_to_emacs_event):
15437         Simple compiler warning fixes.
15438
15439         * bytecode.c (funcall_compiled_function): Use the original
15440         function symbol on the backtrace list in preference to the
15441         compiled_function object in error messages.
15442
15443 2000-01-13  Andy Piper  <andy@xemacs.org>
15444
15445         * glyphs-x.c (update_widget_face): Make sure we update the widget
15446         background as well as foreground.
15447
15448 2000-01-13  Andy Piper  <andy@xemacs.org>
15449
15450         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
15451         fields to subwindow.
15452         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
15453         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
15454         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
15455         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
15456
15457         * glyphs-widget.c (check_valid_tab_orientation): new function.
15458         (initialize_widget_image_instance): zero orientation and
15459         justification.
15460         (widget_instantiate): pick up orientation.
15461         (tab_control_query_geometry): return appropriate values for
15462         vertical tabs.
15463
15464         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
15465         appropriate creation flags for left, right and bottom tabs.
15466
15467         * s/cygwin32.h: add tab definitions.
15468
15469 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15470
15471         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
15472         frame upon hiding a subwindow.
15473         (mswindows_button_instantiate): Changed the push button style to
15474         BS_PUSHBUTTON.
15475         (mswindows_button_instantiate): Removed button BS_NOTIFY
15476         style.
15477         (mswindows_button_instantiate): Removed redundant check for
15478         a disabled gui item.
15479         (mswindows_button_instantiate): Made use of WS_TABSTOP
15480         consistent: "operable" controls (edit, button, tree, scroll) have
15481         this style, "display-only" ones (static, progress gauge) do
15482         not. This style is currently ignored by XEmacs though. Also,
15483         removed the WS_EX_CONTROLPARENT style - it is not for children,
15484         it is for their parents!
15485         (mswindows_edit_field_instantiate): Ditto.
15486         (mswindows_progress_gauge_instantiate): Ditto.
15487         (mswindows_tree_view_instantiate): Ditto.
15488         (mswindows_tab_control_instantiate): Ditto.
15489         (mswindows_scrollbar_instantiate): Ditto.
15490         (mswindows_combo_box_instantiate): Ditto.
15491         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
15492         style to the "clip" window.
15493         (mswindows_button_instantiate): Removed compilation warning by
15494         equally typing terms of the ?: operator.
15495
15496 2000-01-12  Didier Verna  <didier@xemacs.org>
15497
15498         * redisplay.c (generate_fstring_runes): new parameter holding the
15499         last modeline-format extent.
15500         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
15501         extent, fill the glyph block with it.
15502         (generate_fstring_runes): handle these parameters.
15503         (generate_formatted_string_db): ditto.
15504
15505         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
15506         glyphs'extents in the modeline.
15507
15508 1999-01-11  Mike Woolley  <mike@bulsara.com>
15509
15510         * ntheap.c: Reduced the reserved heap space from 1Gb down to
15511         256Mb, as a workaround for the non-starting problem many people
15512         have experienced.
15513
15514 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15515
15516         * console-tty.c (Fset_console_tty_output_coding_system):
15517         Force redrawing tty frame.
15518
15519 2000-01-10  Didier Verna  <didier@xemacs.org>
15520
15521         * redisplay.c (generate_fstring_runes): fix size computation bug.
15522
15523 2000-01-09  William M. Perry <wmperry@aventail.com>
15524
15525         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
15526
15527 2000-01-09  Andy Piper  <andy@xemacs.org>
15528
15529         * glyphs-msw.c: index -> i to avoid shadows.
15530         (xbm_create_bitmap_from_data): make static.
15531         (check_valid_string_or_int): deleted.
15532         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
15533
15534         * glyphs-x.c (x_update_subwindow): remove unused args.
15535
15536         * glyphs.c (glyph_image_instance): return the thing. Don't set the
15537         back pointer - this is done in allocate_image_instance.
15538         (query_string_font): return Qnil to make the compiler happy.
15539         (unmap_subwindow): set to ~0 to make the compiler happy.
15540         (glyph_query_geometry): comment out until used.
15541         (glyph_layout): ditto.
15542
15543 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
15544
15545         * insdel.c (signal_after_change): Remove extraneous unbind_to().