update.
[chise/xemacs-chise.git] / src / ChangeLog
1 2003-03-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2
3         * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
4         (Qideograph_daikanwa_2): Deleted.
5         (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
6         (complex_vars_of_mule_charset): Likewise.
7
8         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
9         (LEADING_BYTE_DAIKANWA_1): Deleted.
10         (LEADING_BYTE_DAIKANWA_2): Deleted.
11         (MIN_CHAR_DAIKANWA): Deleted.
12         (MAX_CHAR_DAIKANWA): Deleted.
13
14 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
15
16         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
17         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
18         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
19
20         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
21         (Vcharset_ideograph_daikanwa): Deleted.
22         (Qideograph_hanziku_{1..12}): Deleted.
23         (Qideograph_daikanwa): Deleted.
24         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
25         Vcharset_ideograph_daikanwa.
26         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
27         `ideograph-hanziku-{1..12}'.
28         (complex_vars_of_mule_charset): Likewise.
29
30 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
31
32         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
33
34         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
35         (Qideograph_gt_pj_{1..11}): Deleted.
36         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
37         (complex_vars_of_mule_charset): Likewise.
38
39 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
40
41         * mule-charset.c (Vcharset_ucs_big5): Deleted.
42         (Vcharset_ideograph_gt): Deleted.
43         (Qucs_big5): Deleted.
44         (Qideograph_gt): Deleted.
45         (syms_of_mule_charset): Delete symbol `ucs-big5' and
46         `ideograph-gt'.
47         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
48         and `ideograph-gt'.
49
50         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
51         (LEADING_BYTE_GT): Deleted.
52         (MIN_CHAR_GT): Deleted.
53         (MAX_CHAR_GT): Deleted.
54
55 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
56
57         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
58
59 2003-01-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
60
61         * chartab.c (save_uint8_byte_table): Add new argument `filter'.
62         (save_uint16_byte_table): Likewise.
63         (save_byte_table): Likewise; convert values by it.
64         (Fput_char_attribute): Don't use `char-refs-simplify-char-specs'
65         for `ideographic-structure'.
66         (Fsave_char_attribute_table): Use `char-refs-simplify-char-specs'
67         as the filter for `ideographic-structure'.
68
69 2003-01-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
70
71         * chartab.c (put_char_composition): New function.
72         (Fput_char_attribute): Use `put_char_composition'; use
73         `Fchar_refs_simplify_char_specs' for `ideographic-structure'.
74
75         * fns.c (simplify_char_spec): New function.
76         (char_ref_simplify_spec): New function.
77         (Fchar_refs_simplify_char_specs): New function.
78         (syms_of_fns): Add new builtin function
79         `char-refs-simplify-char-specs'.
80
81 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
82
83         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
84         (Qideograph_cbeta): Deleted.
85         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
86         (complex_vars_of_mule_charset): Likewise.
87
88         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
89         (MIN_CHAR_CBETA): Comment out.
90         (MAX_CHAR_CBETA): Likewise.
91
92 2002-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
93
94         * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
95         `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
96         CHISE client feature.
97
98 2002-12-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
99
100         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
101
102 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
103
104         * mule-charset.c (charset_lookup_description_1): Use
105         `NUM_LEADING_BYTES' in UTF-2000.
106
107 2002-12-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
108
109         * char-ucs.h (GC_CHARSETP): Deleted.
110
111 2002-12-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
112
113         * char-ucs.h (MAX_CHAR_GT): Updated.
114
115 2002-12-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
116
117         * text-coding.c: Sync with XEmacs 21.4.10.
118
119 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
120
121         * mule-charset.c (Vcharset_china3_jef): Deleted.
122         (Qchina3_jef): Deleted.
123         (syms_of_mule_charset): Don't define `china3-jef'.
124         (complex_vars_of_mule_charset): Likewise.
125
126         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
127         (MIN_CHAR_CHINA3_JEF): Comment out.
128         (MAX_CHAR_CHINA3_JEF): Comment out.
129
130 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
131
132         * mule-charset.c (Vcharset_ucs_gb): New variable.
133         (Qucs_gb): New variable.
134         (syms_of_mule_charset): Add new symbol `ucs-gb'.
135         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
136
137         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
138
139 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
140
141         * mule-charset.c (charset_code_point): if a coded-charset has a
142         final-byte, don't inherit the builtin range of the mother CCS.
143
144 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
145
146         * mule-charset.c (charset_code_point): Fix problem about
147         inheritance.
148
149 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
150
151         * mule-charset.c (decode_builtin_char): Reorganized.
152
153 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
154
155         * text-coding.c (char_encode_as_entity_reference): Modify for
156         `charset_code_point'.
157         (char_encode_shift_jis): Likewise.
158         (char_encode_big5): Likewise.
159         (char_encode_utf8): Likewise.
160         (char_encode_iso2022): Likewise.
161
162         * mule-charset.c (charset_code_point): Add new argument
163         `defined_only'.
164         (Fencode_char): Add new optional argument `defined_only'.
165
166         * chartab.c (put_char_table): Modify for `charset_code_point'.
167
168         * char-ucs.h (charset_code_point): Add new argument
169         `defined_only'.
170         (encode_char_1): Modify for `charset_code_point'.
171
172 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
173
174         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
175         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
176
177 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
178
179         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
180         (Qjis_x0208): Likewise.
181         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
182         XCHARSET_FINAL(charset).
183         (charset_code_point): Modify condition for final-byte based
184         builtin-chars.
185         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
186         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
187         in UTF-2000; specify `=jis-x0208' as the mother of
188         `japanese-jisx0208-1978', `japanese-jisx0208' and
189         `japanese-jisx0208-1990' in UTF-2000.
190
191 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
192
193         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
194
195 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
196
197         * text-coding.c (decode_coding_utf16): Support UTF-16.
198         (char_encode_utf16): Fixed.
199
200 2002-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
201
202         * text-coding.c (Qutf16): New variable in MULE.
203         (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
204         (Fcoding_system_type): Add `utf-16' in MULE.
205         (struct detection_state): Add a structure for utf16 in MULE.
206         (detect_coding_type): Setup st->utf16.mask in MULE.
207         (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
208         MULE.
209         (reset_encoding_stream): Use `char_encode_utf16' and
210         `char_finish_utf16' for `CODESYS_UTF16' in MULE.
211         (detect_coding_utf16): New function [incomplete].
212         (decode_coding_utf16): New function [support only UCS-2].
213         (char_encode_utf16): New function.
214         (char_finish_utf16): New function.
215         (syms_of_file_coding): Add new symbol `utf-16'; setup
216         `coding_category_symbol[CODING_CATEGORY_UTF16]'.
217
218         * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
219         UTF-2000.
220         (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
221         (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
222
223 2002-10-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
224
225         * chartab.c (put_char_table): When a charset is specified as a
226         range in UTF-2000, don't support builtin characters.
227
228 2002-09-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
229
230         * mule-charset.c (decode_defined_char): Don't refer external
231         database if Qunbound or Qnil are found.
232         (Fsave_charset_mapping_table): Don't define it if
233         HAVE_CHISE_CLIENT is not defined.
234         (Freset_charset_mapping_table): New function.
235         (load_char_decoding_entry_maybe): Store Qnil if a character is not
236         found in external database.
237         (syms_of_mule_charset): Don't define `save-charset-mapping-table'
238         if HAVE_CHISE_CLIENT is not defined; add new builtin function
239         `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
240
241 2002-09-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
242
243         * text-coding.c (decode_coding_utf8): Check CCS is specified or
244         not.
245
246 2002-08-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
247
248         * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
249         Q_lowercase, Q_uppercase in UTF-2000.
250
251         * chartab.c (get_char_table): Add special code for the standard
252         case table to use character attribute `->downcase' and
253         `->uppercase' for case operations in UTF-2000.
254
255         * casetab.c (Qflippedcase): New variable in UTF-2000.
256         (Q_lowercase): Likewise.
257         (Q_uppercase): Likewise.
258         (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
259         and `->uppercase' in UTF-2000.
260         (complex_vars_of_casetab): Assign attribute name `downcase' to
261         downcase and CANON table of Vstandard_case_table in UTF-2000;
262         assign attribute name `flippedcase' to upcase and EQV table of
263         Vstandard_case_table in UTF-2000.
264
265 2002-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
266
267         * text-coding.c (decode_add_er_char): Support isolated-chars.
268         (char_encode_as_entity_reference): Likewise.
269
270 2002-08-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
271
272         * emacs.c (Vutf_2000_lisp_directory): New variable.
273         (Vconfigure_utf_2000_lisp_directory): Likewise.
274         (complex_vars_of_emacs): Add new variable
275         `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
276
277 2002-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
278
279         * char-ucs.h (DECODE_CHAR): Delete special code for
280         `chinese-big5-1' and `chinese-big5-2'.
281
282         * mule-charset.c (Qbig5_1): New variable in UTF-2000.
283         (Qbig5_2): Likewise.
284         (decode_defined_char): Support CONVERSION_BIG5_1 and
285         CONVERSION_BIG5_2.
286         (decode_builtin_char): Likewise.
287         (charset_code_point): Likewise.
288         (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
289         'conversion in UTF-2000.
290         (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
291         (complex_vars_of_mule_charset): Define `chinese-big5-1' and
292         `chinese-big5-2' as children of `chinese-big5'.
293
294         * char-ucs.h (CONVERSION_BIG5_1): New macro.
295         (CONVERSION_BIG5_2): New macro.
296
297 2002-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
298
299         * text-coding.c (char_encode_big5): Support entity-reference.
300
301 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
302
303         * text-coding.c (char_encode_as_entity_reference): New function.
304         (char_encode_utf8): Use `char_encode_as_entity_reference'.
305
306 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
307
308         * text-coding.c (decode_coding_big5): Support entity-reference
309         decoding feature.
310
311 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
312
313         * text-coding.c (allocate_coding_system): Initialize initial
314         charsets for CODESYS_UTF8.
315         (Fmake_coding_system): Accept charset-g0, charset-g1 and
316         charset-g2 for CODESYS_UTF8.
317         (decode_coding_utf8): Use charset-g0.
318         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
319         to force variants to map to UCS.
320
321 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
322
323         * text-coding.c (Qutf_8_mcs): New variable.
324         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
325         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
326         instead of `utf-8' in UTF-2000.
327
328 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
329
330         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
331         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
332         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
333         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
334         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
335         CONVERSION_96x96x96x96 are introduced.
336         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
337         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
338         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
339
340         * char-ucs.h (CONVERSION_94): New macro.
341         (CONVERSION_96): New macro.
342         (CONVERSION_94x94): New macro.
343         (CONVERSION_96x96): New macro.
344         (CONVERSION_94x94x94): New macro.
345         (CONVERSION_96x96x96): New macro.
346         (CONVERSION_94x94x94x60): New macro.
347         (CONVERSION_94x94x94x94): New macro.
348         (CONVERSION_96x96x96x96): New macro.
349
350 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
351
352         * chartab.c (Vcharacter_variant_table): Deleted.
353         (Fchar_variants): Use character-attribute `->ucs-variants' instead
354         of `Vcharacter_variant_table'.
355         (Fput_char_attribute): Likewise.
356         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
357         (complex_vars_of_chartab): Likewise.
358
359 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
360
361         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
362
363         * fns.c (Qideographic_structure): New variable.
364         (Qkeyword_char): New variable.
365         (ids_format_unit): New function.
366         (Fideographic_structure_to_ids): New function.
367         (syms_of_fns): Add new symbols `ideographic-structure' and
368         `:char'; add new builtin function `ideographic-structure-to-ids'.
369
370         * data.c (Fchar_ref_p): New function.
371         (syms_of_data): Add new builtin function `char-ref-p'.
372
373         * chartab.h: Add an EXFUN for `Ffind_char'.
374
375 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
376
377         * text-coding.c (Vcharacter_composition_table): Deleted.
378         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
379         in every UTF-2000.
380
381         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
382         UTF-2000.
383         (Vcharacter_composition_table): Deleted.
384         (Fget_composite_char): Use the implementation for external-DB
385         support in every UTF-2000.
386         (Fput_char_attribute): Likewise.
387         (char_attribute_system_db_file): Don't define if external-DB
388         feature is not available.
389         (Fsave_char_attribute_table): Likewise.
390         (Fmount_char_attribute_table): Likewise.
391         (Fclose_char_attribute_table): Likewise.
392         (Freset_char_attribute_table): Likewise.
393         (Fload_char_attribute_table): Likewise.
394         (syms_of_chartab): Don't define `save-char-attribute-table',
395         `mount-char-attribute-table', `reset-char-attribute-table',
396         `close-char-attribute-table' and `load-char-attribute-table' if
397         external-DB feature is not available.
398         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
399
400 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
401
402         * text-coding.c (Qcomposition): Add extern if external-DB feature
403         is supported.
404         (Vcharacter_composition_table): Don't add extern if external-DB
405         feature is supported.
406         (COMPOSE_ADD_CHAR): Modify for new data-representation of
407         character composition rule if external-DB feature is supported.
408
409         * chartab.c (Vcharacter_composition_table): Don't define if
410         external-DB feature is supported.
411         (Qcomposition): New variable.
412         (Fget_composite_char): New implementation for external-DB support.
413         (Fput_char_attribute): Use `composition' property of each
414         character instead of `Vcharacter_composition_table' to store
415         character-composition rules if external-DB feature is supported.
416         (syms_of_chartab): Add new symbol `composition'.
417         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
418         external-DB feature is supported.
419
420 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
421
422         * chartab.c (Vchar_db_stingy_mode): New variable.
423         (load_char_attribute_maybe): Close database if
424         Vchar_db_stingy_mode is not NIL.
425         (Fload_char_attribute_table_map_function): Use
426         `get_char_id_table_0' instead of `get_char_id_table'.
427         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
428
429         * chartab.h (get_char_id_table_0): New inline function.
430         (get_char_id_table): Use `get_char_id_table_0'.
431
432 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
433
434         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
435         and `COMPOSE_ADD_CHAR'.
436         (decode_coding_iso2022): Use `decode_flush_er_chars'.
437
438 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
439
440         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
441         instead of `DECODE_ADD_UCS_CHAR'.
442         (COMPOSE_ADD_CHAR): Likewise.
443
444 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
445
446         * text-coding.c (decode_flush_er_chars): New inline function.
447         (decode_add_er_char): New function.
448         (decode_coding_utf8): Use `decode_flush_er_chars' and
449         `decode_add_er_char'.
450
451 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
452
453         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
454         done before `decode_output_utf8_partial_char'.
455
456         * mule-charset.c (complex_vars_of_mule_charset): Specify
457         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
458         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
459
460 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
461
462         * mule-charset.c (decode_defined_char): New function; search
463         mother.
464         (decode_builtin_char): Don't search mother if
465         XCHARSET_MAX_CODE(charset) == 0.
466         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
467         == 0 even if code >= XCHARSET_MAX_CODE(charset).
468         (Fdecode_char): Use `decode_defined_char' instead of
469         `DECODE_DEFINED_CHAR'.
470         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
471         mother of `Vcharset_ucs_jis'.
472
473         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
474         instead of `DECODE_DEFINED_CHAR'.
475
476         * char-ucs.h (decode_defined_char): Renamed from
477         `DECODE_DEFINED_CHAR'; changed to normal function.
478         (DECODE_CHAR): Use `decode_defined_char' instead of
479         `DECODE_DEFINED_CHAR'.
480
481         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
482
483 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
484
485         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
486
487         * text-coding.c (Vcoded_charset_entity_reference_alist): New
488         variable.
489         (Quse_entity_reference): New variable.
490         (Qd): New variable.
491         (Qx): New variable.
492         (QX): New variable.
493         (coding_system_description): Add description for
494         `ccs_priority_list'.
495         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
496         (allocate_coding_system): Initialize `ccs_priority_list' in
497         UTF-2000.
498         (Fmake_coding_system): Add description about
499         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
500         (codesys).
501         (Fcoding_system_property): Accept `disable-composition' and
502         `use-entity-reference' in UTF-2000.
503         (struct decoding_stream): Add new member `er_counter' and `er_buf'
504         in UTF-2000.
505         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
506         (decode_coding_utf8): Decode entity-reference if
507         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
508         (char_encode_utf8): Encode non-Unicode characters as
509         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
510         (str->codesys).
511         (syms_of_file_coding): Add new symbols `use-entity-reference',
512         `d', `x', `X'.
513         (vars_of_file_coding): Add new variable
514         `coded-charset-entity-reference-alist'.
515         (complex_vars_of_file_coding): Declare `disable-composition' and
516         `use-entity-reference' to be coding-system-properties in UTF-2000.
517
518         * file-coding.h (struct Lisp_Coding_System): Add new member
519         `use_entity_reference' and `ccs_priority_list'.
520         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
521         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
522         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
523
524 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
525
526         * chartab.c (save_uint8_byte_table): Don't clear the table.
527         (save_uint16_byte_table): Likewise.
528         (save_byte_table): Likewise.
529         (Fmount_char_attribute_table): New function.
530         (syms_of_chartab): Add new builtin function
531         `mount-char-attribute-table'.
532
533 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
534
535         * mule-charset.c (Fsave_charset_mapping_table): Open database as
536         "w+" mode.
537         (load_char_decoding_entry_maybe): Open database as read-only mode.
538
539         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
540         open database as "w+" mode.
541         (load_char_attribute_maybe): Open database as read-only mode.
542         (Fload_char_attribute_table): Likewise.
543
544 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
545
546         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
547         (char_table_description): Delete member `db_file'.
548         (Fmake_char_table): Don't refer `ct->db_file'.
549         (Fcopy_char_table): Likewise.
550         (Fsave_char_attribute_table): Likewise.
551         (Fclose_char_attribute_table): Likewise.
552         (Freset_char_attribute_table): Likewise.
553         (load_char_attribute_maybe): Likewise.
554         (Fload_char_attribute_table): Likewise.
555
556         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
557
558 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
559
560         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
561         (Fsave_char_attribute_table): Don't check `ct->db_file' if
562         `ct->db' is living.
563         (load_char_attribute_maybe): Likewise.
564         (Fload_char_attribute_table): Likewise.
565
566 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
567
568         * chartab.c (Fclose_char_attribute_table): Set Qnil on
569         `ct->db_file' unconditionally.
570
571 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
572
573         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
574         UTF-2000.
575         (char_table_description): Add description for `db_file' and `db'
576         in UTF-2000.
577         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
578         UTF-2000.
579         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
580         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
581         (Fclose_char_attribute_table): New function.
582         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
583         (load_char_attribute_maybe): Change interface; use `cit->db_file'
584         and `cit->db'.
585         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
586         (syms_of_chartab): Add new builtin function
587         `Fclose_char_attribute_table'.
588
589 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
590
591         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
592         `db' in UTF-2000.
593         (load_char_attribute_maybe): Change interface.
594         (get_char_id_table): Modify for `load_char_attribute_maybe'.
595
596 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
597
598         * database.h: Add an EXFUN for `Fdatabase_live_p'.
599
600 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
601
602         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
603         instead of `DECODE_CHAR' for mother; don't use special code for
604         chinese-big5 to use code space of chinese-big5-1 and
605         chinese-big5-2.
606         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
607         `MAX_CHAR_BIG5_CDP' for chinese-big5.
608
609         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
610         (MAX_CHAR_BIG5_CDP): Revival.
611
612 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
613
614         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
615         the XLFD registry-encoding name of `chinese-big5'.
616
617 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
618
619         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
620         (Qchinese_big5_cdp): Deleted.
621         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
622         (complex_vars_of_mule_charset): Delete coded-charset
623         `chinese-big5-cdp'.
624
625         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
626         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
627         `CHARSET_ID_OFFSET - n' for private CCS.
628         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
629         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
630         of `MIN_LEADING_BYTE'.
631         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
632         `(CHARSET_ID_OFFSET - 97)'.
633         (MIN_CHAR_BIG5_CDP): Deleted.
634         (MAX_CHAR_BIG5_CDP): Deleted.
635
636 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
637
638         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
639
640 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
641
642         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
643         (vars_of_mule): Add new variable `utf-2000-version' [moved from
644         chartab.c].
645
646         * chartab.c (Vutf_2000_version): Moved to mule.c.
647         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
648
649 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
650
651         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
652         when HAVE_CHISE_CLIENT is not defined.
653
654         * mule.c (vars_of_mule): Provide feature `chise' when
655         HAVE_CHISE_CLIENT is defined.
656
657 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
658
659         * config.h.in (UTF2000): Add comment.
660         (HAVE_CHISE_CLIENT): New macro.
661
662 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
663
664         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
665         CONSP.
666         (Fput_char_attribute): Likewise.
667         (char_attribute_system_db_file): Encode file-name of attribute.
668         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
669         the initial value.
670
671 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
672
673         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
674         (Fsave_charset_mapping_table): Use
675         `char_attribute_system_db_file'.
676         (load_char_decoding_entry_maybe): Likewise.
677
678         * chartab.h (Qsystem_char_id): New external variable.
679         (char_attribute_system_db_file): New prototype.
680
681         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
682         (char_attribute_system_db_file): New function.
683         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
684         (Freset_char_attribute_table): Likewise.
685         (load_char_attribute_maybe): Likewise.
686         (Fload_char_attribute_table): Likewise.
687         (syms_of_chartab): Add new symbol `system-char-id'.
688
689 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
690
691         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
692         `XCHARSET_GRAPHIC(ccs)'.
693
694 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
695
696         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
697
698 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
699
700         * chartab.c (Q_ucs_variants): New variable.
701         (syms_of_chartab): Add new symbol `->ucs-variants'.
702         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
703         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
704         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
705
706         * mule-charset.c (load_char_decoding_entry_maybe): New function.
707
708         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
709         `HAVE_DATABASE' is defined.
710         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
711         `HAVE_DATABASE' is defined.
712
713 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
714
715         * chartab.c (Fsave_char_attribute_table): Don't clear internal
716         attribute-table.
717         (Freset_char_attribute_table): New function.
718         (syms_of_chartab): Add new builtin function
719         `reset-char-attribute-table'.
720
721 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
722
723         * chartab.c (load_char_attribute_maybe): Don't make directories.
724
725 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
726
727         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
728
729         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
730         for decoding-table.
731
732 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
733
734         * mule-charset.c (Fsave_charset_mapping_table): Use
735         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
736
737         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
738         instead of `XCHARSET_CHARS'.
739
740 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
741
742         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
743         (XCHARSET_BYTE_SIZE): Likewise.
744
745         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
746         mule-charset.c].
747         (XCHARSET_BYTE_SIZE): Likewise.
748
749 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
750
751         * chartab.c (Fput_char_attribute): Use exec-directory instead of
752         data-directory to store database.
753         (Fsave_char_attribute_table): Likewise.
754         (load_char_attribute_maybe): Likewise.
755         (Fload_char_attribute_table): Likewise.
756
757 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
758
759         * mule-charset.c (Fsave_charset_mapping_table): New function.
760         (syms_of_mule_charset): Add new builtin function
761         `save-charset-mapping-table'.
762
763 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
764
765         * char-ucs.h (decoding_table_check_elements): Delete prototype.
766         (get_ccs_octet_table): New inline function.
767         (put_ccs_octet_table): Likewise.
768         (decoding_table_put_char): Use `get_ccs_octet_table' and
769         `put_ccs_octet_table'.
770         (decoding_table_remove_char): Use `decoding_table_put_char'.
771         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
772
773         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
774         into encoding_table.
775         (make_charset): Use Qunbound instead Qnil as initial value of
776         decoding_table.
777
778 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
779
780         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
781         element is Qunloaded.
782         (map_over_uint16_byte_table): Likewise.
783         (map_over_byte_table): Likewise.
784         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
785         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
786         database support, load encoding-table of the specified
787         coded-charset if it is not loaded yet.
788         (save_uint8_byte_table): New function of UTF-2000 with external
789         database support.
790         (save_uint16_byte_table): Likewise.
791         (save_byte_table): Likewise.
792         (Fput_char_attribute): Don't store value into external database
793         even if the external database feature is supported in UTF-2000;
794         set `attribute' as name of char-table if the external database
795         feature is supported.
796         (Fsave_char_attribute_table): New function in UTF-2000.
797         (syms_of_chartab): Add new builtin function
798         `save-char-attribute-table' in UTF-2000.
799
800 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
801
802         * chartab.c (char_attribute_table_to_put): New variable in
803         UTF-2000.
804         (Qput_char_table_map_function): Likewise.
805         (value_to_put): Likewise.
806         (Fput_char_table_map_function): New function in UTF-2000.
807         (put_char_table): Use `Fmap_char_attribute' for
808         CHARTAB_RANGE_CHARSET in UTF-2000.
809         (Fput_char_attribute): Store symbol instead of string in
810         `XCHAR_TABLE_NAME (table)'.
811         (load_char_attribute_maybe): Likewise.
812         (syms_of_chartab): Add new symbol/function
813         `put-char-table-map-function'.
814
815 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
816
817         * database.h: Add new EXFUN for `Fmap_database'.
818
819         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
820         (syms_of_database): Likewise.
821
822         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
823         UTF-2000.
824         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
825         (XCHAR_TABLE_UNLOADED): Likewise.
826
827         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
828         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
829         HAVE_DATABASE is defined.
830         (char_attribute_table_to_load): New variable of UTF-2000 with
831         external database support.
832         (Qload_char_attribute_table_map_function): Likewise.
833         (Fload_char_attribute_table_map_function): New function of
834         UTF-2000 with external database support.
835         (Fload_char_attribute_table): New function of UTF-2000.
836         (Fmap_char_attribute): Call Fload_char_attribute_table if
837         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
838         (syms_of_chartab): Add new symbol and function
839         `load-char-attribute-table-map-function' in UTF-2000 with external
840         database support; add new function `load-char-attribute-table' in
841         UTF-2000.
842
843 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
844
845         * chartab.h (load_char_attribute_maybe): New prototype for
846         UTF-2000 with DATABASE support.
847         (get_char_id_table): Use `load_char_attribute_maybe' if
848         HAVE_DATABASE is defined.
849
850         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
851         with DATABASE support.
852
853 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
854
855         * chartab.c (Fput_char_attribute): Use S-expression as key of
856         external database.
857
858         * chartab.h (get_char_id_table): Use S-expression as key of
859         external database.
860
861 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
862
863         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
864         if an element is not loaded, load the corresponding attributes
865         from an external database.
866         (map_over_uint16_byte_table): Likewise.
867         (map_over_byte_table): Likewise.
868         (map_char_table): Modify for `map_over_uint8_byte_table',
869         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
870         element is not loaded, load the corresponding attributes from an
871         external database.
872         (Fput_char_attribute): Change initial values to Qunloaded.
873
874         * chartab.h (get_char_id_table): If a character attribute is not
875         loaded and the attribute value is not found in an external
876         database, store Qunbound as the attribute value.
877
878 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
879
880         * chartab.c (BT_UINT8_unloaded): New macro.
881         (UINT8_VALUE_P): Accept Qunloaded.
882         (UINT8_ENCODE): Likewise.
883         (UINT8_DECODE): Likewise.
884         (BT_UINT16_unloaded): New macro.
885         (UINT16_VALUE_P): Accept Qunloaded.
886         (UINT16_ENCODE): Likewise.
887         (UINT16_DECODE): Likewise.
888         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
889         BT_UINT16_unloaded.
890         (mark_char_table): Mark `ct->name' in UTF-2000.
891         (char_table_description): Add `name' in UTF-2000.
892         (Fmake_char_table): Initialize `ct->name'.
893         (Fcopy_char_table): Copy `ct->name'.
894         (Fput_char_attribute): Store value into an external database if
895         HAVE_DATABASE is defined.
896
897         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
898         UTF-2000.
899         (CHAR_TABLE_NAME): New macro in UTF-2000.
900         (XCHAR_TABLE_NAME): New macro in UTF-2000.
901         (get_char_id_table): Try to read an external database if Qunloaded
902         is stored in a table.
903
904         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
905         Qunloaded.
906
907 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
908
909         * database.h: Add EXFUN definitions for Fopen_database,
910         Fput_database, Fget_database and Fclose_database.
911
912         * data.c (Qunloaded): New variable in UTF-2000.
913
914         * lisp.h (Qunloaded): New variable in UTF-2000.
915
916 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
917
918         * mule-charset.c (put_char_ccs_code_point): Modify for
919         `decoding_table_remove_char' and `decoding_table_put_char'.
920         (remove_char_ccs): Modify for `decoding_table_remove_char'.
921
922         * char-ucs.h (decoding_table_remove_char): Change arguments to
923         hide decoding_table vector.
924         (decoding_table_put_char): Likewise.
925
926 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
927
928         * mule-charset.c (decoding_table_remove_char): Moved to
929         char-ucs.h.
930         (decoding_table_put_char): Likewise.
931
932         * char-ucs.h (decoding_table_check_elements): New prototype [moved
933         from mule-charset.c].
934         (decoding_table_remove_char): New inline function [moved from
935         mule-charset.c].
936         (decoding_table_put_char): Likewise.
937
938 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
939
940         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
941         extension.
942
943 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
944
945         * mule-charset.c (decode_builtin_char): Support mother charsets.
946
947 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
948
949         * mule-charset.c (Q94x94x60): New variable.
950         (charset_code_point): Support conversion `94x94x60'.
951         (Fmake_charset): Likewise.
952         (syms_of_mule_charset): Add new symbol `94x94x60'.
953
954         * char-ucs.h (CONVERSION_94x94x60): New macro.
955
956 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
957
958         * mule-charset.c (charset_code_point): Unify code about
959         `code-offset'.
960
961 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
962
963         * mule-charset.c (charset_code_point): Merge code about builtin
964         characters into code about mother charsets; don't use
965         `range_charset_code_point'.
966         (range_charset_code_point): Deleted.
967
968 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
969
970         * mule-charset.c (Qcode_offset): New variable.
971         (Fmake_charset): Use `XUINT' to get value of `min-code' and
972         `max-code'; accept new property `code-offset'.
973         (syms_of_mule_charset): Add new symbol `code-offset'.
974
975 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
976
977         * mule-charset.c (range_charset_code_point): Fixed.
978
979 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
980
981         * mule-charset.c (decode_builtin_char): Change semantics of
982         code-offset of coded-charset.
983         (charset_code_point): Likewise.
984         (range_charset_code_point): Likewise.
985         (complex_vars_of_mule_charset): Modify for the change.
986
987 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
988
989         * mule-charset.c (Fencode_char): Reverse arguments.
990
991         * mule-charset.c (charset_code_point): Fixed.
992
993 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
994
995         * mule-charset.c (Vcharset_mojikyo): Deleted.
996         (Vcharset_mojikyo_2022_1): Deleted.
997         (Vcharset_mojikyo_pj_{1..21}): Deleted.
998         (Qmin_code): New variable in UTF-2000.
999         (Qmax_code): Likewise.
1000         (Qmother): Likewise.
1001         (Qconversion): Likewise.
1002         (Q94x60): Likewise.
1003         (Qmojikyo): Deleted.
1004         (Qmojikyo_2022_1): Deleted.
1005         (Qmojikyo_pj_{1..22}): Deleted.
1006         (mark_charset): Mark `cs->mother'.
1007         (charset_description): Add description for `mother'.
1008         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
1009         new arguments `mother' and `conversion'; use
1010         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
1011         (charset_code_point): Moved from char-ucs.h; support `mother'
1012         charset feature.
1013         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
1014         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
1015         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
1016         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
1017         allow 2 as the value of `graphic' in UTF-2000; add new properties
1018         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
1019         require `final' in UTF-2000; modify for `make_charset'.
1020         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
1021         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
1022         (Fcharset_property): Support `mother', `min-code' and `max-code'.
1023         (Fencode_char): New function.
1024         (syms_of_mule_charset): Add new builtin function `encode-char' in
1025         UTF-2000; add new symbols `min-code', `max-code', `mother',
1026         `conversion' and `94x60'; delete symbols `mojikyo',
1027         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
1028         (complex_vars_of_mule_charset): Modify for `make_charset' change;
1029         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
1030         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
1031
1032         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
1033         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
1034
1035         * char-ucs.h (Vcharset_mojikyo): Deleted.
1036         (Vcharset_mojikyo_2022_1): Deleted.
1037         (LEADING_BYTE_MOJIKYO): Deleted.
1038         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
1039         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
1040         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
1041         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
1042         add new member `mother'; add new member `conversion'.
1043         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
1044         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
1045         (CHARSET_MOTHER): New macro.
1046         (CHARSET_CONVERSION): New macro.
1047         (CONVERSION_IDENTICAL): New macro.
1048         (CONVERSION_94x60): New macro.
1049         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
1050         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
1051         (XCHARSET_MOTHER): New macro.
1052         (XCHARSET_CONVERSION): New macro.
1053         (MIN_CHAR_MOJIKYO): Deleted.
1054         (MAX_CHAR_MOJIKYO): Deleted.
1055         (DECODE_MOJIKYO_2022): Deleted.
1056         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
1057         (charset_code_point): Changed to non-inline function.
1058         (encode_char_1): Use `charset_code_point'.
1059         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
1060
1061 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1062
1063         * lread.c (read_compiled_function): Fix prototype.
1064         (read_vector): Likewise.
1065
1066 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1067
1068         * lrecord.h (struct lrecord_header): Delete `older'.
1069         (set_lheader_implementation): Delete code for `older'.
1070         (set_lheader_older_implementation): Deleted.
1071         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
1072         (OLDER_RECORD_P): Deleted.
1073         (OLDER_RECORD_HEADER_P): Deleted.
1074         (alloc_older_lcrecord): Deleted.
1075         (alloc_older_lcrecord_type): Deleted.
1076
1077         * alloc.c (all_older_lcrecords): Deleted.
1078         (alloc_older_lcrecord): Deleted.
1079         (disksave_object_finalization_1): Delete code for older objects.
1080         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
1081         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
1082
1083 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1084
1085         * mule-charset.c (decoding_table_put_char): Use `make_vector'
1086         instead of `make_older_vector'.
1087         (put_char_ccs_code_point): Likewise.
1088         (mark_charset): Mark `cs->decoding_table'.
1089         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
1090
1091         * lisp.h (make_older_vector): Deleted.
1092         (make_vector_newer): Deleted.
1093
1094         * config.h.in (HAVE_GGC): Deleted.
1095
1096         * alloc.c (make_older_vector): Deleted.
1097         (make_vector_newer_1): Deleted.
1098         (make_vector_newer): Deleted.
1099
1100 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1101
1102         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
1103         (Qideograph_daikanwa_2): New variable.
1104         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
1105         (complex_vars_of_mule_charset): Add new coded-charset
1106         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
1107         `LEADING_BYTE_DAIKANWA'.
1108
1109         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
1110         (LEADING_BYTE_DAIKANWA_1): New macro.
1111         (LEADING_BYTE_DAIKANWA_2): New macro.
1112         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
1113
1114 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1115
1116         * mule-charset.c (complex_vars_of_mule_charset): Change
1117         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
1118         the second revised version.
1119
1120 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1121
1122         * mule-charset.c (Vcharset_ucs_smp): New variable.
1123         (Vcharset_ucs_sip): New variable.
1124         (Qucs_smp): New variable.
1125         (Qucs_sip): New variable.
1126         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
1127         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
1128         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
1129         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
1130         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
1131         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
1132
1133         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
1134         (LEADING_BYTE_UCS_SIP): New macro.
1135         (MIN_CHAR_SMP): New macro.
1136         (MAX_CHAR_SMP): New macro.
1137         (MIN_CHAR_SIP): New macro.
1138         (MAX_CHAR_SIP): New macro.
1139
1140 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
1141
1142         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
1143         utf-2000.
1144
1145 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1146
1147         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
1148         value; don't store value into `encoding_table' of `Lisp_Charset'.
1149         (mark_charset): `encoding_table' was deleted.
1150         (charset_description): Likewise.
1151         (make_charset): Likewise.
1152         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
1153         `put_char_ccs_code_point'.
1154
1155         * chartab.h (Fput_char_attribute): New EXFUN.
1156
1157         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
1158         is unified with normal symbol space.
1159         (Fget_char_attribute): Likewise.
1160         (Fput_char_attribute): Likewise; behavior of
1161         `put_char_ccs_code_point' is changed.
1162
1163         * char-ucs.h: Include "elhash.h".
1164         (Vchar_attribute_hash_table): New external variable.
1165         (struct Lisp_Charset): Delete `encoding_table'.
1166         (CHARSET_ENCODING_TABLE): New implementation; refer
1167         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
1168         `Lisp_Charset'.
1169
1170 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1171
1172         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
1173         (cs) == 0.
1174
1175 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1176
1177         * text-coding.c (char_encode_big5): Prefer charset-g1 than
1178         `chinese-big5'.
1179
1180 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1181
1182         * chartab.c (uint8_byte_table_description): New constant.
1183         (uint8-byte-table): Use `uint8_byte_table_description'.
1184         (uint16_byte_table_description): New constant.
1185         (uint16-byte-table): Use `uint16_byte_table_description'.
1186
1187 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1188
1189         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
1190         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
1191
1192 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1193
1194         * mule-charset.c (Vcharset_ucs_ks): New variable.
1195         (Qucs_ks): New variable.
1196         (syms_of_mule_charset): Add new symbol `ucs-ks'.
1197         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
1198
1199         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
1200
1201 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1202
1203         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
1204         (Fdecode_char): Likewise.
1205
1206         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
1207         chartab.h.
1208         (Fdefine_char): Modify for Fdecode_char.
1209         (Ffind_char): Likewise.
1210
1211         * mule-charset.c (Fdecode_char): Add new optional argument
1212         `defined-only'.
1213         (Fdecode_builtin_char): Modify for `Fdecode_char'.
1214
1215 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1216
1217         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
1218         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
1219         (allocate_coding_system): Initialize initial-charsets of
1220         CODESYS_BIG5 in XEmacs UTF-2000.
1221         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
1222         CODESYS_BIG5 in XEmacs UTF-2000.
1223         (decode_coding_big5): Use initial-charset-g0 and -g1 of
1224         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
1225
1226         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
1227         variables.
1228         (Qideograph_hanziku_{1 .. 12}): Likewise.
1229         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
1230         .. 12}'.
1231         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
1232         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
1233         `ideograph-hanziku-{1 .. 12}'.
1234
1235         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
1236         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
1237         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
1238         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
1239         (DECODE_DEFINED_CHAR): New inline function.
1240         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
1241
1242 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1243
1244         * mule-charset.c (Vcharset_china3_jef): Renamed from
1245         `Vcharset_japanese_jef_china3'.
1246         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
1247         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
1248         `{MIN|MAX}_CHAR_JEF_CHINA3'..
1249         (syms_of_mule_charset): Rename `china3-jef' from
1250         `japanese-jef-china3'.
1251         (complex_vars_of_mule_charset): Likewise; rename
1252         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
1253
1254         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
1255         `LEADING_BYTE_JEF_CHINA3'.
1256         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
1257         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
1258
1259 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1260
1261         * mule-charset.c (encode_builtin_char_1): Comment out special code
1262         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
1263
1264         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
1265         (MAX_CHAR_MOJIKYO_0): Comment out.
1266         (MIN_CHAR_CBETA): Changed to 0x00E20000.
1267         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
1268         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
1269         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
1270
1271 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1272
1273         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
1274         (Qideograph_cbeta): New variable.
1275         (encode_builtin_char_1): Comment out special code for
1276         coded-charset `mojikyo' and `japanese-jef-china3'.
1277         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
1278         (complex_vars_of_mule_charset): Add new coded-charset
1279         `ideograph-cbeta'.
1280
1281         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
1282         (MIN_CHAR_CBETA): New macro.
1283         (MAX_CHAR_CBETA): New macro.
1284
1285 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1286
1287         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
1288         (LEADING_BYTE_JEF_CHINA3): New macro.
1289         (MIN_CHAR_JEF_CHINA3): New macro.
1290         (MAX_CHAR_JEF_CHINA3): Likewise.
1291         (DECODE_CHAR): Fixed.
1292
1293 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1294
1295         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
1296         (Qjapanese_jef_china3): New variable.
1297         (encode_builtin_char_1): Support `japanese-jef-china3'.
1298         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
1299         (complex_vars_of_mule_charset): Add new coded-charset
1300         `japanese-jef-china3'.
1301
1302 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1303
1304         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
1305         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
1306         94^4, 96^3, 96^4, 128^n and 256^n set.
1307         (put_char_table): Use `XCHARSET_CELL_RANGE'.
1308         (map_char_table): Likewise.
1309
1310 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1311
1312         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
1313         UTF-2000.
1314
1315 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1316
1317         * chartab.h (get_char_id_table): New inline function.
1318
1319         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
1320         function.
1321
1322 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1323
1324         * chartab.h (decode_char_table_range): New prototype in XEmacs
1325         UTF-2000.
1326         (put_char_id_table): New inline function in XEmacs UTF-2000.
1327
1328         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
1329         function.
1330         (decode_char_table_range): Delete static declaration in XEmacs
1331         UTF-2000.
1332
1333 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1334
1335         * chartab.c (put_char_id_table): Use `put_char_table'.
1336
1337 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1338
1339         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
1340         (map_over_uint16_byte_table): Likewise.
1341         (map_over_byte_table): Likewise.
1342         (map_char_table): Modify for `map_over_uint8_byte_table',
1343         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
1344         UTF-2000.
1345
1346 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1347
1348         * chartab.c (struct map_char_table_for_charset_arg): New
1349         structure.
1350         (map_char_table_for_charset_fun): New function.
1351         (map_char_table): Use `map_char_table' for encoding_table of
1352         `range->charset'.
1353
1354 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1355
1356         * chartab.c (map_char_table): Check a character is found in
1357         range->charset instead of non default value is defined in
1358         char-table when range is CHARTAB_RANGE_ROW.
1359
1360 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1361
1362         * chartab.c (map_char_id_table): Deleted.
1363         (Fmap_char_attribute): Use `map_char_table' instead of
1364         `map_char_id_table'.
1365
1366 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1367
1368         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
1369         UTF-2000.
1370         (update_syntax_table): Deleted in XEmacs UTF-2000.
1371
1372         * syntax.c (find_defun_start): Use `syntax_table' instead of
1373         `mirror_syntax_table' in XEmacs UTF-2000.
1374         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
1375         UTF-2000.
1376         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
1377         XEmacs UTF-2000.
1378         (Fmatching_paren): Likewise.
1379         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
1380         in XEmacs UTF-2000.
1381         (find_start_of_comment): Likewise.
1382         (find_end_of_comment): Likewise.
1383         (Fforward_comment): Likewise.
1384         (scan_lists): Likewise.
1385         (char_quoted): Likewise.
1386         (Fbackward_prefix_chars): Likewise.
1387         (scan_sexps_forward): Likewise.
1388         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
1389         (update_syntax_table): Likewise.
1390
1391         * search.c (skip_chars): Use `syntax_table' instead of
1392         `mirror_syntax_table' in XEmacs UTF-2000.
1393         (wordify): Likewise.
1394         (Freplace_match): Likewise.
1395
1396         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
1397         `mirror_syntax_table' in XEmacs UTF-2000.
1398         (WORDCHAR_P_UNSAFE): Likewise.
1399         (re_match_2_internal): Likewise.
1400
1401         * font-lock.c (find_context): Use `buf->syntax_table' instead of
1402         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1403
1404         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
1405         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
1406
1407         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
1408         XEmacs UTF-2000.
1409
1410         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
1411         UTF-2000.
1412         (print_char_table): Print `default_value' in XEmacs UTF-2000.
1413         (char_table_description): Delete `mirror_table' in XEmacs
1414         UTF-2000.
1415         (fill_char_table): Don't call `update_syntax_table' in XEmacs
1416         UTF-2000.
1417         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
1418         (Fcopy_char_table): Likewise.
1419         (put_char_table): Don't call `update_syntax_table' in XEmacs
1420         UTF-2000.
1421
1422         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
1423         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1424         (casify_region_internal): Likewise.
1425
1426         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
1427
1428         * buffer.c (common_init_complex_vars_of_buffer): Don't use
1429         `mirror_syntax_table' in XEmacs UTF-2000.
1430
1431         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
1432         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1433         (Fexpand_abbrev): Likewise.
1434
1435 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1436
1437         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
1438
1439 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1440
1441         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
1442         (map_over_uint16_byte_table): Likewise.
1443         (map_over_byte_table): Likewise.
1444         (get_char_id_table): Refer `cit->default_value'.
1445         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1446         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
1447         of character-id ranges.
1448         (mark_char_table): Mark `ct->default_value'.
1449         (char_table_description): Add `default_value'.
1450         (fill_char_table): Use `default_value'.
1451         (decode_char_table_range): Decode `nil' as
1452         `CHARTAB_RANGE_DEFAULT'.
1453         (get_char_id_table): Refer `cit->default_value'.
1454         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1455         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
1456         temporary hack; check value of char-table is bound or not.
1457         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
1458
1459         * chartab.h (struct Lisp_Char_Table): Add new member
1460         `default_value' in XEmacs UTF-2000.
1461         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
1462         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
1463         UTF-2000.
1464
1465 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1466
1467         * chartab.h (Lisp_Char_ID_Table): Deleted.
1468
1469         * chartab.c (char_table_description): Fix typo.
1470         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
1471         `Lisp_Char_ID_Table'.
1472
1473 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1474
1475         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
1476         `CHAR_ID_TABLE_P'.
1477
1478         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
1479         `CHAR_ID_TABLE_P'.
1480
1481         * chartab.h (XCHAR_ID_TABLE): Deleted.
1482         (XSETCHAR_ID_TABLE): Deleted.
1483         (CHAR_ID_TABLE_P): Deleted.
1484
1485         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
1486         `CHAR_ID_TABLE_P'.
1487         (Fget_composite_char): Likewise.
1488         (put_char_table): Likewise.
1489         (add_char_attribute_alist_mapper): Fixed.
1490         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
1491         `CHAR_ID_TABLE_P'.
1492         (Fget_char_attribute): Likewise.
1493         (Fget_char_attribute): Likewise.
1494         (Fmap_char_attribute): Likewise.
1495
1496         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
1497         `CHAR_ID_TABLE_P'.
1498         (encode_char_1): Likewise.
1499
1500 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1501
1502         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
1503         `XCHAR_ID_TABLE'.
1504
1505         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
1506         instead of `XCHAR_ID_TABLE'.
1507         (remove_char_ccs): Likewise.
1508
1509         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
1510         `XCHAR_ID_TABLE'.
1511         (Fget_composite_char): Likewise.
1512         (Fchar_variants): Likewise.
1513         (put_char_table): Likewise.
1514         (add_char_attribute_alist_mapper): Likewise.
1515         (Fchar_attribute_alist): Likewise.
1516         (Fget_char_attribute): Likewise.
1517         (Fput_char_attribute): Likewise.
1518         (Fmap_char_attribute): Likewise.
1519         (Fmap_char_attribute): Likewise.
1520
1521         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
1522         `XCHAR_ID_TABLE'.
1523         (encode_char_1): Likewise.
1524
1525 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1526
1527         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
1528         `Lisp_Char_ID_Table'.
1529         (mark_char_id_table): Deleted.
1530         (print_char_id_table): Likewise.
1531         (char_id_table_equal): Likewise.
1532         (char_id_table_hash): Likewise.
1533         (char_id_table_description): Likewise.
1534         (char_id_table): Likewise.
1535         (make_char_id_table): Use `Fmake_char_table' and
1536         `fill_char_table'.
1537         (get_char_id_table): Use `Lisp_Char_Table' instead of
1538         `Lisp_Char_ID_Table'.
1539         (put_char_id_table): Likewise.
1540         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
1541         `XCHAR_ID_TABLE'.
1542         (Fremove_char_attribute): Likewise.
1543         (syms_of_chartab): Don't define type `char-id-table'.
1544
1545         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
1546         (char_id_table): Likewise.
1547         (GC_CHAR_ID_TABLE_P): Likewise.
1548         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
1549         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
1550         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
1551         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
1552         (get_char_id_table): Use `Lisp_Char_Table' instead of
1553         `Lisp_Char_ID_Table'.
1554         (put_char_id_table_0): Likewise.
1555         (put_char_id_table): Likewise.
1556
1557 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1558
1559         * chartab.h: Lisp_Byte_Table related codes are moved from
1560         chartab.h.
1561
1562         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
1563
1564 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1565
1566         * chartab.h: Don't include "chartab.h".
1567         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
1568         (Lisp_Char_ID_Table): Likewise.
1569         (char_id_table): Likewise.
1570         (XCHAR_ID_TABLE): Likewise.
1571         (XSETCHAR_ID_TABLE): Likewise.
1572         (CHAR_ID_TABLE_P): Likewise.
1573         (GC_CHAR_ID_TABLE_P): Likewise.
1574         (get_char_id_table): Likewise.
1575
1576         * char-ucs.h: Include "chartab.h".
1577         (struct Lisp_Char_ID_Table): Moved to chartab.h.
1578         (Lisp_Char_ID_Table): Likewise.
1579         (char_id_table): Likewise.
1580         (XCHAR_ID_TABLE): Likewise.
1581         (XSETCHAR_ID_TABLE): Likewise.
1582         (CHAR_ID_TABLE_P): Likewise.
1583         (GC_CHAR_ID_TABLE_P): Likewise.
1584         (get_char_id_table): Likewise.
1585
1586 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1587
1588         * chartab.c (copy_uint8_byte_table): New function.
1589         (copy_uint16_byte_table): New function.
1590         (copy_byte_table): New function.
1591         (map_over_uint8_byte_table): Modify to avoid huge numbers of
1592         characters to call.
1593         (map_over_uint16_byte_table): Likewise.
1594         (map_over_byte_table): Likewise.
1595         (get_byte_table): Move prototype to chartab.h.
1596         (put_byte_table): Likewise.
1597         (put_char_id_table_0): Moved to chartab.h.
1598         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
1599         (char_table_entry_equal): Likewise.
1600         (char_table_entry_hash): Likewise.
1601         (char_table_entry_description): Likewise.
1602         (char_table_entry): Likewise.
1603         (make_char_table_entry): Likewise.
1604         (copy_char_table_entry): Likewise.
1605         (get_non_ascii_char_table_value): Likewise.
1606         (map_over_charset_ascii): Likewise.
1607         (map_over_charset_control_1): Likewise.
1608         (map_over_charset_row): Likewise.
1609         (map_over_other_charset): Likewise.
1610         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
1611         (print_char_table): Likewise.
1612         (char_table_equal): Likewise.
1613         (char_table_hash): Likewise.
1614         (char_table_description): Likewise.
1615         (fill_char_table): Likewise.
1616         (Fcopy_char_table): Likewise.
1617         (get_char_table): Likewise.
1618         (Fget_range_char_table): Likewise.
1619         (put_char_table): Likewise.
1620         (map_char_table): Likewise.
1621         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
1622         UTF-2000.
1623
1624 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1625
1626         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
1627         `Vauto_fill_chars' in XEmacs UTF-2000.
1628
1629         * chartab.h (get_byte_table): New prototype [moved from
1630         chartab.c].
1631         (put_byte_table): Likewise [moved from chartab.c].
1632         (put_char_id_table_0): New inline function [moved from chartab.c].
1633         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
1634         (Lisp_Char_Table_Entry): Likewise.
1635         (char_table_entry): Likewise.
1636         (XCHAR_TABLE_ENTRY): Likewise.
1637         (XSETCHAR_TABLE_ENTRY): Likewise.
1638         (CHAR_TABLE_ENTRYP): Likewise.
1639         (CHECK_CHAR_TABLE_ENTRY): Likewise.
1640         (NUM_ASCII_CHARS): Likewise.
1641         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
1642         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
1643
1644 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1645
1646         * chartab.c (get_char_id_table): Change interface.
1647         (put_char_id_table_0): New function.
1648         (put_char_id_table): Change interface; new implementation.
1649         (Fget_composite_char): Modify for interface change of
1650         `get_char_id_table'.
1651         (Fchar_variants): Likewise.
1652         (add_char_attribute_alist_mapper): Likewise.
1653         (Fchar_attribute_alist): Likewise.
1654         (Fget_char_attribute): Likewise.
1655         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
1656         as same as character as the first argument like `put-char-table';
1657         modify for interface change of `put_char_id_table'.
1658         (Fremove_char_attribute): Modify for interface change of
1659         `put_char_id_table'.
1660
1661 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1662
1663         * text-coding.c: Sync up with XEmacs 21.2.41.
1664         (COMPOSE_ADD_CHAR): Modify for interface change of
1665         `get_char_id_table'.
1666
1667         * mule-charset.c (put_char_ccs_code_point): Modify for interface
1668         change of `put_char_id_table'.
1669         (remove_char_ccs): Likewise.
1670
1671         * chartab.h (put_char_id_table): Change interface.
1672
1673         * char-ucs.h (get_char_id_table): Change interface.
1674         (charset_code_point): Modify for interface change of
1675         `get_char_id_table'.
1676         (encode_char_1): Likewise.
1677
1678 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1679
1680         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
1681         argument `ccs'.
1682         (map_over_uint16_byte_table): Likewise.
1683         (map_over_byte_table): Likewise.
1684         (map_char_id_table): Add new argument `range' like
1685         `map_char_table'.
1686         (Fmap_char_attribute): Add new argument `range' like
1687         `Fmap_char_table'.
1688
1689 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1690
1691         * chartab.c (map_over_uint8_byte_table): Change interface of
1692         mapping function to use struct chartab_range instead of Emchar.
1693         (map_over_uint16_byte_table): Likewise.
1694         (map_over_byte_table): Likewise.
1695         (map_char_id_table): Likewise.
1696         (struct slow_map_char_id_table_arg): Deleted.
1697         (slow_map_char_id_table_fun): Deleted.
1698         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
1699         function `slow_map_char_table_fun' instead of struct
1700         `slow_map_char_id_table_arg' and function
1701         `slow_map_char_id_table_fun'.
1702
1703 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1704
1705         * mule-charset.c: Move char-it-table related codes to chartab.c.
1706         (Vutf_2000_version): Moved to chartab.c.
1707         (Fdefine_char): Likewise.
1708         (Ffind_char): Likewise.
1709         (syms_of_mule_charset): Move types `uint8-byte-table',
1710         `uint16-byte-table', `byte-table' and `char-id-table' to
1711         chartab.c; move functions `char_attribute_list,
1712         `find_char_attribute_table, `char_attribute_alist,
1713         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
1714         `map_char_attribute, `define_char, `find_char, `char_variants and
1715         `get_composite_char to chartab.c; move symbols `=>ucs',
1716         `->decomposition', `compat', `isolated', `initial', `medial',
1717         `final', `vertical', `noBreak', `fraction', `super', `sub',
1718         `circle', `square', `wide', `narrow', `small' and `font' to
1719         chartab.c.
1720         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
1721         setting codes for `Vcharacter_composition_table' and
1722         `Vcharacter_variant_table' to chartab.c.
1723         (complex_vars_of_mule_charset): Move setting code for
1724         `Vchar_attribute_hash_table' to chartab.c.
1725
1726         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
1727         (make_char_id_table): New prototype.
1728         (put_char_id_table): Likewise.
1729         (Fget_char_attribute): Likewise.
1730
1731         * chartab.c: Move char-id-table related code from mule-charset.c.
1732         (Vutf_2000_version): Moved from mule-charset.c.
1733
1734         * char-ucs.h (Qucs): New external variable.
1735         (put_char_ccs_code_point): New prototype.
1736         (remove_char_ccs): Likewise.
1737
1738 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1739
1740         * mule-charset.c (Vcharset_ucs_jis): New variable.
1741         (Qucs_jis): Likewise.
1742         (syms_of_mule_charset): Add new symbol `ucs-jis'.
1743         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
1744
1745         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
1746
1747 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1748
1749         * mule-charset.c (map_over_uint8_byte_table): New function.
1750         (map_over_uint16_byte_table): Likewise.
1751         (map_over_byte_table): Likewise.
1752         (map_char_id_table): Likewise.
1753         (slow_map_char_id_table_fun): Likewise.
1754         (Fmap_char_attribute): Likewise.
1755         (syms_of_mule_charset): Add new function `map-char-attribute'.
1756
1757 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1758
1759         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
1760         (syms_of_mule_charset): Add new function `find-char'.
1761
1762 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1763
1764         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
1765         XEmacs UTF-2000.
1766         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
1767         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
1768         XEmacs UTF-2000.
1769         (complex_vars_of_mule_charset): Add new coded-charset
1770         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
1771         `ideograph-gt-pj-*'.
1772
1773         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
1774
1775 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1776
1777         * mule-charset.c (encode_builtin_char_1): Purge codes about
1778         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
1779         {MIN|MAX}_CHAR_HEBREW.
1780         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
1781         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
1782
1783         * char-ucs.h (MIN_CHAR_GREEK): Purged.
1784         (MAX_CHAR_GREEK): Purged.
1785         (MIN_CHAR_CYRILLIC): Purged.
1786         (MAX_CHAR_CYRILLIC): Purged.
1787         (MIN_CHAR_HEBREW): Commented out.
1788         (MAX_CHAR_HEBREW): Likewise.
1789
1790 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1791
1792         * mule-charset.c (Qto_ucs): New variable.
1793         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
1794         (Fdefine_char): Likewise.
1795         (syms_of_mule_charset): Add new symbol `=>ucs'.
1796
1797 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1798
1799         * mule-charset.c (Fdecode_char): Fixed.
1800
1801 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1802
1803         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
1804         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
1805         "tcvn5712-1".
1806
1807 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1808
1809         * mule-charset.c (Vcharset_ucs_big5): New variable.
1810         (Qucs_big5): Likewise.
1811         (syms_of_mule_charset): Add new symbol `ucs-big5'.
1812         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
1813
1814         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
1815
1816 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1817
1818         * mule-charset.c (decode_builtin_char): Check Big5 code range
1819         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
1820
1821 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1822
1823         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
1824         (Qchinese_gb12345): Likewise.
1825         (Fdecode_builtin_char): Fixed.
1826         (syms_of_mule_charset): Add `chinese-gb12345'.
1827         (complex_vars_of_mule_charset): Add coded-charset
1828         `chinese-gb12345'.
1829
1830         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
1831         (LEADING_BYTE_CHINESE_GB12345): New macro.
1832
1833 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1834
1835         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
1836         and `latin-viscii-upper' for `latin-viscii'.
1837
1838 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1839
1840         * mule-charset.c (Fdecode_builtin_char): Comment out
1841         regularization code for ISO-IR GR representation.
1842
1843 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1844
1845         * mule-charset.c (decode_builtin_char): New function; renamed from
1846         `make_builtin_char'; return -1 instead of signal.
1847         (Fdecode_builtin_char): Use `decode_builtin_char'.
1848
1849         * char-ucs.h (decode_builtin_char): New prototype; renamed from
1850         `make_builtin_char'.
1851         (DECODE_CHAR): Use `decode_builtin_char' instead of
1852         `make_builtin_char'; use mapping table of `chinese-big5' for
1853         `chinese-big5-{1,2}'.
1854
1855 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1856
1857         * text-coding.c (char_encode_big5): New function.
1858         (char_finish_big5): Likewise.
1859         (reset_encoding_stream): Use `char_encode_big5' and
1860         `char_finish_big5' for CODESYS_BIG5.
1861         (mule_encode): Don't use `encode_coding_big5'.
1862         (encode_coding_big5): Deleted.
1863
1864 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1865
1866         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
1867         0x81- in XEmacs UTF-2000.
1868         (detect_coding_big5): Likewise.
1869
1870 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1871
1872         * mule-charset.c (Fdefine_char): Don't use a CCS property to
1873         generate character-id if the CCS property does not have
1874         corresponding predefined character.
1875         (make_builtin_char): Return -1 if corresponding predefined
1876         character is not found.
1877         (Fdecode_char): Return nil if corresponding character is not
1878         found.
1879         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
1880         don't map to builtin ucs space.
1881
1882 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1883
1884         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
1885         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
1886
1887 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1888
1889         * mule-charset.c (Vcharset_ideograph_gt): New variable.
1890         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
1891         (Qideograph_gt): Likewise.
1892         (Qideograph_gt_pj_{1..11}): Likewise.
1893         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
1894         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
1895         `ideograph-gt-pj-11'.
1896         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
1897         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
1898         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
1899
1900         * char-ucs.h (LEADING_BYTE_GT): New macro.
1901         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
1902         (MIN_CHAR_GT): Likewise.
1903         (MAX_CHAR_GT): Likewise.
1904
1905 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1906
1907         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
1908         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
1909
1910         * doprnt.c (unsigned_int_converters): Add `c'.
1911         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
1912
1913         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
1914         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
1915         `MIN_CHAR_MOJIKYO'.
1916         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
1917         (MAX_CHAR_MOJIKYO_0): New macro.
1918         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
1919
1920 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1921
1922         * mule-charset.c (Fdefine_char): Delete cemented out code.
1923         (encode_builtin_char_1): Modify for new allocation of builtin
1924         Mojikyo characters.
1925
1926         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
1927
1928 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1929
1930         * mule-charset.c (Vcharset_ucs_cns): New variable.
1931         (Qucs_cns): New variable.
1932         (syms_of_mule_charset): Add new symbol `ucs-cns'.
1933         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
1934
1935 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1936
1937         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
1938
1939 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
1940
1941         * search.c (search_buffer): Make `charset_base_code' as
1942         character-id >> 6 to eliminate the corresponding last byte in
1943         UTF-8 representation [I'm not sure it is right thing].
1944         (boyer_moore): Likewise.
1945
1946 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
1947
1948         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
1949         representation in MULE.
1950
1951 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1952
1953         * text-coding.c (Fmake_coding_system): Use
1954         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
1955         `EXTERNAL_PROPERTY_LIST_LOOP'.
1956
1957 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1958
1959         * text-coding.c (decode_output_utf8_partial_char): New function.
1960         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
1961
1962 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1963
1964         * text-coding.c (decode_coding_utf8): Output original byte
1965         sequence if it is broken; change order of conditions.
1966
1967         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
1968         of conditions.
1969
1970         * mb-multibyte.h (BYTE_ASCII_P):
1971         Use bit ops for char-signedness safety.
1972         (BYTE_C0_P): Use bit ops for char-signedness safety.
1973         (BYTE_C1_P): Use bit ops for char-signedness safety.
1974
1975         * character.h: (XCHAR_OR_CHAR_INT):
1976         Always use inline function.
1977         Remove redundant type checking assert() - XINT will abort quite
1978         nicely.
1979
1980 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1981
1982         * text-coding.c: (Fencode_shift_jis_char):
1983         (Fencode_big5_char):
1984         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
1985         Replace 0 with '\0' when working with bytes.
1986         Replace initial "(" with "\(" in docstrings.
1987
1988         (Fmake_coding_system):
1989         When type is ccl and value is vector, register it with a proper
1990         symbol.  And checks whether the given ccl program is valid.
1991         (mule_decode): When calling ccl_driver, if src indicates
1992         NULL pointer, set an empty string instead.
1993         (mule_encode): Likewise.
1994
1995         (detect_eol_type):
1996         (detect_coding_sjis):
1997         (decode_coding_sjis):
1998         (detect_coding_big5):
1999         (decode_coding_big5):
2000         (detect_coding_ucs4):
2001         (decode_coding_ucs4):
2002         (detect_coding_utf8):
2003         (decode_coding_utf8):
2004         (detect_coding_iso2022):
2005         (decode_coding_iso2022):
2006         (decode_coding_no_conversion):
2007         (mule_decode):
2008         Make all detecting and decoding functions take an Extbyte * arg.
2009         (text_encode_generic):
2010         (encode_coding_big5):
2011         (encode_coding_no_conversion):
2012         (mule_encode):
2013         Make all encoding functions take a Bufbyte * arg.
2014         Use size_t instead of unsigned int for memory sizes.
2015         Only cast to unsigned char whenever dereferencing Extbyte *.
2016
2017         (struct lrecord_description fcd_description_1): Use countof.
2018         (complex_vars_of_file_coding):
2019         Use countof instead of sizeof.
2020         Use CHECK_NATNUM instead of CHECK_INT.
2021
2022 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2023
2024         * mule-charset.c (Fget_char_attribute): Add new optional argument
2025         `default-value'.
2026         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
2027         (remove_char_ccs): Likewise.
2028
2029 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2030
2031         * text-coding.c (char_encode_shift_jis): New implementation in
2032         UTF-2000.
2033         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
2034         ...)'.
2035
2036         * mule-charset.c (Vcharset_chinese_big5): New variable in
2037         UTF-2000.
2038         (Qchinese_big5): New variable in UTF-2000.
2039         (BIG5_SAME_ROW): New macro in UTF-2000.
2040         (make_builtin_char): Use builtin characters of
2041         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
2042         characters of `Vcharset_chinese_big5'.
2043         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
2044         (complex_vars_of_mule_charset): Add new coded-charset
2045         `chinese-big5' in UTF-2000.
2046
2047         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
2048         (Vcharset_chinese_big5): New external variable declaration.
2049         (Vcharset_japanese_jisx0208_1990): Likewise.
2050
2051 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2052
2053         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
2054         function.
2055         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
2056
2057 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2058
2059         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
2060         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
2061         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
2062         `mojikyo-pj-*'.
2063
2064 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2065
2066         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
2067
2068 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2069
2070         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2071         to 0.17.
2072
2073 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2074
2075         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
2076         for `CHARSET_BY_ATTRIBUTES'.
2077         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2078         `CHARSET_BY_ATTRIBUTES'.
2079
2080         * text-coding.c (struct decoding_stream): Rename member `CH' to
2081         `CPOS'.
2082         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
2083         (decode_coding_sjis): Likewise.
2084         (decode_coding_big5): Likewise.
2085         (decode_coding_ucs4): Likewise.
2086         (decode_coding_utf8): Likewise.
2087         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2088         `CHARSET_BY_ATTRIBUTES'.
2089         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
2090         `str->counter'; decode 3, 4 bytes sets.
2091         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
2092         sets.
2093         (decode_coding_no_conversion): Use `str->cpos' instead of
2094         `str->ch'.
2095
2096         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
2097         (Qmojikyo_2022_1): New variable.
2098         (make_charset): Don't use `CHARSET_TYPE_*'.
2099         (range_charset_code_point): Support coded-charset
2100         `mojikyo-2022-1'.
2101         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
2102         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
2103         `CHARSET_BY_ATTRIBUTES'.
2104         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
2105         `CHARSET_BY_ATTRIBUTES'.
2106         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
2107         (complex_vars_of_mule_charset): Add new coded-charset
2108         `mojikyo-2022-1'.
2109
2110         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
2111         interface; changed to inline function.
2112
2113         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
2114         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
2115         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
2116         (CHARSET_TYPE_94): Deleted.
2117         (CHARSET_TYPE_94X94): Deleted.
2118         (CHARSET_TYPE_96): Deleted.
2119         (CHARSET_TYPE_96X96): Deleted.
2120         (CHARSET_TYPE_128): Deleted.
2121         (CHARSET_TYPE_128X128): Deleted.
2122         (CHARSET_TYPE_256): Deleted.
2123         (CHARSET_TYPE_256X256): Deleted.
2124         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
2125         to inline function.
2126         (DECODE_MOJIKYO_2022): New inline function.
2127         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
2128         `Vcharset_mojikyo_2022_1'.
2129
2130 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2131
2132         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
2133         instead of `EQ'.
2134         (put_byte_table): Likewise.
2135         (char_id_table_equal): Use `get_byte_table' [new implementation].
2136
2137 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2138
2139         * mule-charset.c: Include <limits.h> in UTF-2000.
2140         (BT_UINT8_MIN): New macro in UTF-2000.
2141         (BT_UINT8_MAX): New macro in UTF-2000.
2142         (BT_UINT8_t): New macro in UTF-2000.
2143         (BT_UINT8_nil): New macro in UTF-2000.
2144         (BT_UINT8_unbound): New macro in UTF-2000.
2145         (INT_UINT8_P): New inline function in UTF-2000.
2146         (UINT8_VALUE_P): New inline function in UTF-2000.
2147         (UINT8_ENCODE): New inline function in UTF-2000.
2148         (UINT8_DECODE): New inline function in UTF-2000.
2149         (mark_uint8_byte_table): New function in UTF-2000.
2150         (print_uint8_byte_table): New function in UTF-2000.
2151         (uint8_byte_table_equal): New function in UTF-2000.
2152         (uint8_byte_table_hash): New function in UTF-2000.
2153         (make_uint8_byte_table): New function in UTF-2000.
2154         (uint8_byte_table_same_value_p): New function in UTF-2000.
2155         (BT_UINT16_MIN): New macro in UTF-2000.
2156         (BT_UINT16_MAX): New macro in UTF-2000.
2157         (BT_UINT16_t): New macro in UTF-2000.
2158         (BT_UINT16_nil): New macro in UTF-2000.
2159         (BT_UINT16_unbound): New macro in UTF-2000.
2160         (INT_UINT16_P): New inline function in UTF-2000.
2161         (UINT16_VALUE_P): New inline function in UTF-2000.
2162         (UINT16_ENCODE): New inline function in UTF-2000.
2163         (UINT16_DECODE): New inline function in UTF-2000.
2164         (UINT8_TO_UINT16): New inline function in UTF-2000.
2165         (mark_uint16_byte_table): New function in UTF-2000.
2166         (print_uint16_byte_table): New function in UTF-2000.
2167         (uint16_byte_table_equal): New function in UTF-2000.
2168         (uint16_byte_table_hash): New function in UTF-2000.
2169         (make_uint16_byte_table): New function in UTF-2000.
2170         (uint16_byte_table_same_value_p): New function in UTF-2000.
2171         (print_byte_table): New function in UTF-2000.
2172         (byte-table): Use `print_byte_table' as printer.
2173         (make_byte_table): Delete second argument `older'.
2174         (byte_table_same_value_p): New function in UTF-2000.
2175         (copy_byte_table): Deleted.
2176         (get_byte_table): New function in UTF-2000.
2177         (put_byte_table): New function in UTF-2000.
2178         (print_char_id_table): New function in UTF-2000.
2179         (char-id-table): Use `print_char_id_table' as printer.
2180         (make_char_id_table): Delete second argument `older'.
2181         (get_char_id_table): Use `get_byte_table [new implementation].
2182         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
2183         implementation].
2184         (Ffind_char_attribute_table): New function in UTF-2000.
2185         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2186         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
2187         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
2188         (syms_of_mule_charset): Add new function
2189         `find-char-attribute-table' in UTF-2000.
2190
2191         * lrecord.h (enum lrecord_type): Add
2192         `lrecord_type_uint16_byte_table' and
2193         `lrecord_type_uint8_byte_table'.
2194
2195         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
2196         (Lisp_Uint8_Byte_Table): New type.
2197         (XUINT8_BYTE_TABLE): New macro.
2198         (XSETUINT8_BYTE_TABLE): New macro.
2199         (UINT8_BYTE_TABLE_P): New macro.
2200         (GC_UINT8_BYTE_TABLE_P): New macro.
2201         (struct Lisp_Uint16_Byte_Table): New structure.
2202         (Lisp_Uint16_Byte_Table): New type.
2203         (XUINT16_BYTE_TABLE): New macro.
2204         (XSETUINT16_BYTE_TABLE): New macro.
2205         (UINT16_BYTE_TABLE_P): New macro.
2206         (GC_UINT16_BYTE_TABLE_P): New macro.
2207
2208 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2209
2210         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
2211         (Vcharacter_ideographic_strokes_table): Deleted.
2212         (Vcharacter_total_strokes_table): Deleted.
2213         (Vcharacter_morohashi_daikanwa_table): Deleted.
2214         (Vcharacter_decomposition_table): Deleted.
2215         (Qname): Deleted because it is duplicated.
2216         (Qideographic_radical): Deleted.
2217         (Qideographic_strokes): Deleted.
2218         (Qtotal_strokes): Deleted.
2219         (Qmorohashi_daikanwa): Deleted.
2220         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
2221         `ideographic-radical', `ideographic-strokes', `total-strokes',
2222         `morohashi-daikanwa' and `->decomposition'.
2223         (Fget_char_attribute): Likewise.
2224         (Fput_char_attribute): Likewise; use `make-vector' instead of
2225         `make_older_vector' for `->decomposition' value.
2226         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
2227         `ideograph-daikanwa'.
2228         (syms_of_mule_charset): Delete builtin symbols `name',
2229         `ideographic-radical', `ideographic-strokes', `total-strokes' and
2230         `morohashi-daikanwa'.
2231         (vars_of_mule_charset): Don't setup
2232         `Vcharacter_ideographic_radical_table',
2233         `Vcharacter_ideographic_strokes_table',
2234         `Vcharacter_total_strokes_table',
2235         `Vcharacter_morohashi_daikanwa_table' and
2236         `Vcharacter_decomposition_table'.
2237
2238 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2239
2240         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
2241         `make_older_vector', `make_vector_newer_1' and
2242         `make_vector_newer'.
2243
2244         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
2245         `make_older_vector' and `make_vector_newer'.
2246
2247         * config.h.in (HAVE_GGC): New macro.
2248
2249 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2250
2251         * mule-charset.c (struct char_attribute_list_closure): New
2252         structure in UTF-2000.
2253         (add_char_attribute_to_list_mapper): New function in UTF-2000.
2254         (Fchar_attribute_list): Likewise.
2255         (Fset_charset_mapping_table): Use `make_vector_newer'.
2256         (Fdecode_builtin_char): New function in UTF-2000.
2257         (syms_of_mule_charset): Add new function `char-attribute-list' and
2258         `decode-builtin-char' in UTF-2000.
2259
2260         * lisp.h (make_vector_newer): New prototype.
2261
2262         * alloc.c (make_vector_newer_1): New function.
2263         (make_vector_newer): New function.
2264
2265 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2266
2267         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
2268         50100)'.
2269
2270 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2271
2272         * mule-charset.c (Vchar_attribute_hash_table): New variable.
2273         (Vcharacter_attribute_table): Deleted.
2274         (Vcharacter_name_table): Deleted.
2275         (put_char_attribute): Deleted.
2276         (remove_char_attribute): Deleted.
2277         (struct char_attribute_alist_closure): New structure.
2278         (add_char_attribute_alist_mapper): New function.
2279         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
2280         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
2281         (Fget_char_attribute): Likewise.
2282         (Fput_char_attribute): Likewise.
2283         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
2284         of `remove_char_attribute'.
2285         (Fdefine_char): Return character.
2286         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
2287         and `Vcharacter_name_table'.
2288         (complex_vars_of_mule_charset): Likewise
2289         `Vchar_attribute_hash_table'.
2290
2291 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2292
2293         * character.h (CHARC_CHARSET): New macro.
2294         (CHARC_CHARSET_ID): New macro.
2295         (CHARC_CODE_POINT): New macro.
2296         (CHARC_COLUMNS): New macro.
2297         (CHARC_TO_CHAR): New inline function.
2298         (CHARC_EQ): New inline function.
2299         (CHARC_ASCII_EQ): New inline function.
2300         (CHARC_IS_SPACE): New inline function.
2301         (ASCII_TO_CHARC): New inline function.
2302
2303         * char-ucs.h (encode_char_2): Deleted.
2304         (ENCODE_CHAR): Use `encode_char_1' again.
2305         (breakup_char_1): Likewise.
2306         (CHAR_TO_CHARC): New inline function.
2307
2308         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
2309
2310 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2311
2312         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
2313         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
2314         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
2315         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
2316         (create_string_text_block): Use `CHARC_ASCII_EQ' and
2317         `CHARC_IS_SPACE'.
2318         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
2319
2320         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
2321         `CHARC_CODE_POINT'.
2322         (x_output_display_block): Use `CHARC_CHARSET' and
2323         `CHARC_ASCII_EQ'.
2324
2325         * redisplay-tty.c (tty_output_display_block): Use
2326         `CHARC_ASCII_EQ'.
2327         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
2328
2329         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
2330
2331         * insdel.c (find_charsets_in_charc_string): Use
2332         `CHARC_CHARSET_ID'.
2333         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
2334         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
2335         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
2336         (convert_charc_string_into_malloced_string): Likewise.
2337
2338 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2339
2340         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
2341         instead of <Emchar_dynarr *> for buf; use
2342         `convert_bufbyte_string_into_charc_dynarr' instead of
2343         `convert_bufbyte_string_into_emchar_dynarr'; use
2344         `find_charsets_in_charc_string' instead of
2345         `find_charsets_in_emchar_string'.
2346
2347         * redisplay.h:
2348         - Include "character.h".
2349         (struct rune): New member `cglyph'; delete member `chr'.
2350
2351         * redisplay.c (redisplay_text_width_charc_string): New function;
2352         delete `redisplay_text_width_emchar_string'.
2353         (rtw_charc_dynarr): New variable; renamed from
2354         `rtw_emchar_dynarr'.
2355         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
2356         `rtw_emchar_dynarr'; use
2357         `convert_bufbyte_string_into_charc_dynarr' instead of
2358         `convert_bufbyte_string_into_emchar_dynarr'; use
2359         `redisplay_text_width_charc_string' instead of
2360         `redisplay_text_width_emchar_string'.
2361         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
2362         instead of `rtw_emchar_dynarr'; use
2363         `convert_bufbyte_string_into_charc_dynarr' instead of
2364         `convert_bufbyte_string_into_emchar_dynarr'.
2365         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
2366         `redisplay_text_width_charc_string' instead of
2367         `redisplay_text_width_emchar_string'.
2368         (create_text_block): Modify for <struct rune> change.
2369         (generate_formatted_string_db): Likewise.
2370         (create_string_text_block): Likewise.
2371         (pixel_to_glyph_translation): Likewise.
2372
2373         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
2374         instead of <const Emchar *>.
2375         (x_text_width): Likewise.
2376         (x_output_display_block): Use <Charc_dynarr *> instead
2377         <Emchar_dynarr *>; modify for <structure rune> change.
2378         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
2379         *>.
2380
2381         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
2382         <const Emchar *>; use `charc_string_displayed_columns' instead of
2383         `emchar_string_displayed_columns'.
2384         (tty_output_display_block): Use <Charc_dynarr *> instead of
2385         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
2386         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
2387         (tty_output_charc_dynarr_dynarr): New variable; renamed from
2388         `tty_output_emchar_dynarr_dynarr'.
2389         (tty_output_charc_dynarr): New function; delete
2390         `tty_output_charc_dynarr'.
2391
2392         * redisplay-output.c (compare_runes): Modify for `struct rune'.
2393         (redisplay_output_layout): Use <Charc_dynarr *> instead of
2394         <Emchar_dynarr *> for buf; use
2395         `convert_bufbyte_string_into_charc_dynarr' instead of
2396         `convert_bufbyte_string_into_emchar_dynarr'.
2397
2398         * frame.c (title_string_charc_dynarr): New variable; renamed from
2399         `title_string_emchar_dynarr'.
2400         (generate_title_string): Use `title_string_charc_dynarr' instead
2401         of `title_string_emchar_dynarr'; use
2402         `convert_charc_string_into_malloced_string' instead of
2403         `convert_emchar_string_into_malloced_string'.
2404         (init_frame): Use `title_string_charc_dynarr' instead of
2405         `title_string_emchar_dynarr'.
2406
2407         * console.h:
2408         - Include "character.h".
2409         (struct console_methods): Use <const Charc *> instead of <const
2410         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
2411         <Emchar_dynarr *> in output_string_method.
2412
2413         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
2414         <Emchar_dynarr *>.
2415
2416         * console-stream.c (stream_text_width): Use <const Charc *>
2417         instead of <const Emchar *>.
2418
2419         * character.h (Charc_dynarr): New type.
2420
2421         * char-ucs.h (structure Charc): New structure; define new type
2422         `Charc'.
2423
2424         * char-lb.h (DECODE_CHAR): New inline function.
2425         (encode_char_1): New inline function.
2426         (ENCODE_CHAR): New macro.
2427         (structure Charc): New structure; define new type `Charc'.
2428
2429         * char-1byte.h (Vcharset_control_1): New macro.
2430         (Vcharset_latin_iso8859_1): New macro.
2431         (DECODE_CHAR): New inline function.
2432         (encode_char_1): New inline function.
2433         (ENCODE_CHAR): New macro.
2434         (structure Charc): New structure; define new type `Charc'.
2435
2436         * insdel.c (find_charsets_in_charc_string): New function; delete
2437         `find_charsets_in_emchar_string'.
2438         (charc_string_displayed_columns): New function; delete
2439         `emchar_string_displayed_columns'.
2440         (convert_bufbyte_string_into_charc_dynarr): New function; delete
2441         `convert_bufbyte_string_into_emchar_dynarr'.
2442         (convert_charc_string_into_bufbyte_dynarr): New function; delete
2443         `convert_charc_string_into_bufbyte_dynarr'.
2444         (convert_charc_string_into_malloced_string): New function; delete
2445         `convert_charc_string_into_malloced_string'.
2446
2447         * buffer.h (find_charsets_in_charc_string): New prototype; delete
2448         `find_charsets_in_emchar_string'.
2449         (charc_string_displayed_columns): New prototype; delete
2450         `emchar_string_displayed_columns'.
2451         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
2452         `convert_charc_string_into_bufbyte_dynarr'.
2453         (convert_charc_string_into_malloced_string): New prototype; delete
2454         `convert_charc_string_into_malloced_string'.
2455
2456 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2457
2458         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
2459
2460 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2461
2462         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
2463
2464         * char-ucs.h: Use <short> for <Charset_ID>.
2465
2466         * mule-charset.h, char-1byte.h: Use <unsigned char> for
2467         <Charset_ID>.
2468
2469 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2470
2471         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2472         to 0.16.
2473
2474 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2475
2476         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
2477         variable.
2478         (Qmorohashi_daikanwa): New variable.
2479         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
2480         for `morohashi-daikanwa' attribute.
2481         (Fget_char_attribute): Likewise.
2482         (Fput_char_attribute): Likewise.
2483         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
2484         has the same value of `ideograph-daikanwa'.
2485         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
2486         (vars_of_mule_charset): Setup
2487         `Vcharacter_morohashi_daikanwa_table'.
2488
2489 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2490
2491         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
2492         attributes.
2493         (add_charset_to_list_mapper): Add `key' instead of
2494         `XCHARSET_NAME (value)' to return aliases.
2495
2496 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2497
2498         * mule-charset.c (Vcharacter_ideographic_radical_table): New
2499         variable.
2500         (Vcharacter_ideographic_strokes_table): New variable.
2501         (Qideographic_radical): New variable.
2502         (Qideographic_strokes): New variable.
2503         (Fchar_attribute_alist): Use
2504         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
2505         attribute; use `Vcharacter_ideographic_strokes_table' for
2506         `ideographic-strokes' attribute.
2507         (Fget_char_attribute): Likewise.
2508         (Fput_char_attribute): Likewise.
2509         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
2510         `ideographic-strokes'.
2511         (vars_of_mule_charset): Setup
2512         `Vcharacter_ideographic_radical_table' and
2513         `Vcharacter_ideographic_strokes_table'.
2514
2515 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2516
2517         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
2518         (Qtotal_strokes): New variable.
2519         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
2520         `total-strokes' attribute.
2521         (Fget_char_attribute): Likewise.
2522         (Fput_char_attribute): Likewise.
2523         (syms_of_mule_charset): Add new symbol `total-strokes'.
2524         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
2525
2526 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2527
2528         * mule-charset.c (Vcharacter_decomposition_table): New variable.
2529         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
2530         are found.
2531         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
2532         `->decomposition' attribute.
2533         (Fput_char_attribute): Likewise.
2534         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
2535
2536 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2537
2538         * mule-charset.c (decoding_table_check_elements): New function.
2539         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
2540
2541 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2542
2543         * mule-charset.c (Fset_charset_mapping_table): Use
2544         `put_char_ccs_code_point'.
2545
2546 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2547
2548         * mule-charset.c (decoding_table_put_char): New inline function.
2549         (put_char_ccs_code_point): Use `decoding_table_put_char'.
2550
2551 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2552
2553         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
2554         (XCHARSET_BYTE_SIZE): New macro.
2555         (decoding_table_remove_char): New inline function.
2556         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
2557         `decoding_table_remove_char'.
2558         (remove_char_ccs): Use `decoding_table_remove_char'.
2559         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
2560
2561 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2562
2563         * mule-charset.c (Vcharacter_name_table): New variable.
2564         (Qname): New variable.
2565         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
2566         attribute.
2567         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
2568         `Vcharacter_name_table' for `name' attribute.
2569         (Fremove_char_attribute): Use function `remove_char_ccs'.
2570         (put_char_ccs_code_point): New function.
2571         (remove_char_ccs): New function.
2572         (syms_of_mule_charset): Add new symbol `name'.
2573         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
2574
2575 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2576
2577         * mule-charset.c (make_byte_table): Add new argument `older'.
2578         (make_char_id_table): Likewise.
2579         (copy_char_id_table): Comment out because it is not used.
2580         (put_char_id_table): Modify for `make_byte_table'.
2581         (Fput_char_attribute): Make encoding_table as older object;
2582         inherit older bit of `Vcharacter_composition_table'.
2583         (mark_charset): Don't mark `cs->encoding_table'.
2584         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
2585         normal object; make `Vcharacter_composition_table' as an older
2586         object; delete staticpro for `Vcharacter_composition_table'; make
2587         `Vcharacter_variant_table' as a normal object.
2588
2589         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
2590         (mark_object): Don't check older object in UTF-2000.
2591
2592         * lrecord.h (struct lrecord_header): Add new member `older' in
2593         UTF-2000.
2594         (set_lheader_implementation): Setup `SLI_header->older' in
2595         UTF-2000.
2596         (set_lheader_older_implementation): New macro in UTF-2000.
2597         (OLDER_RECORD_P): New macro in UTF-2000.
2598         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
2599         (alloc_older_lcrecord): New prototype in UTF-2000.
2600         (alloc_older_lcrecord_type): New macro in UTF-2000.
2601
2602 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2603
2604         * mule-charset.c (byte_table_description): Use
2605         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
2606         (char_id_table_description): Delete bogus `, 1'.
2607         (Fget_char_attribute): Refer encoding_table of each coded-charset
2608         to get value of coded-charset attribute of a character.
2609         (Fput_char_attribute): Use `make_older_vector' instead of
2610         `make_vector'; use encoding_table of each coded-charset to store
2611         value of coded-charset attribute of a character.
2612         (Fremove_char_attribute): Use encoding_table of each coded-charset
2613         to store value of coded-charset attribute of a character.
2614         (mark_charset): Mark `cs->encoding_table'; don't mark
2615         `cs->decoding_table'.
2616         (charset_description): Add description of new member
2617         `encoding_table'.
2618         (make_charset): Initialize `encoding_table'.
2619
2620         * char-ucs.h (struct Lisp_Charset): Add new member
2621         `encoding_table'.
2622         (CHARSET_ENCODING_TABLE): New macro.
2623         (XCHARSET_ENCODING_TABLE): New macro.
2624         (charset_code_point): New implementation.
2625         (encode_char_1): Likewise.
2626
2627         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
2628         (disksave_object_finalization_1): Call finalizers of
2629         `all_older_lcrecords' in UTF-2000.
2630         (make_older_vector): New function in UTF-2000.
2631         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
2632         UTF-2000.
2633
2634         * lisp.h (make_older_vector): New prototype in UTF-2000.
2635
2636 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2637
2638         * lrecord.h (enum lrecord_type): Rename
2639         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
2640
2641         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
2642         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
2643         `get_char_code_table'.
2644
2645         * mule-charset.c (mark_char_id_table): Renamed from
2646         `mark_char_code_table'.
2647         (char_id_table_equal): Renamed from `char_code_table_equal'.
2648         (char_id_table_hash): Renamed from `char_code_table_hash'.
2649         (make_char_id_table): Renamed from `make_char_code_table'.
2650         (copy_char_id_table): Renamed from `copy_char_code_table'.
2651         (get_char_id_table): Renamed from `get_char_code_table'.
2652         (put_char_id_table): Renamed from `put_char_code_table'.
2653         (to_char_id): Renamed from `to_char_code'.
2654
2655         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
2656         `Lisp_Char_Code_Table'.
2657         (char_id_table): Renamed from `char_code_table'.
2658         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
2659         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
2660         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
2661         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
2662         (get_char_id_table): Renamed from `get_char_code_table'.
2663
2664 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2665
2666         * lrecord.h (enum lrecord_type): Rename
2667         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
2668
2669         * mule-charset.c (mark_byte_table): Renamed from
2670         `mark_char_byte_table'.
2671         (byte_table_equal): Renamed from `char_byte_table_equal'.
2672         (byte_table_hash): Renamed from `byte_table_hash'.
2673         (make_byte_table): Renamed from `make_byte_table'.
2674         (copy_byte_table): Renamed from `copy_char_byte_table'.
2675
2676         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
2677         `Lisp_Char_Byte_Table'.
2678         (byte_table): Renamed from `char_byte_table'.
2679         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
2680         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
2681         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
2682         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
2683
2684 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2685
2686         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
2687         (dfc_convert_to_internal_format): Likewise.
2688         
2689         * text-coding.c (Fcoding_system_canonical_name_p): New function.
2690         * text-coding.c (Fcoding_system_alias_p): New function.
2691         * text-coding.c (Fcoding_system_aliasee): New function.
2692         * text-coding.c (append_suffix_to_symbol): New function.
2693         * text-coding.c (dangling_coding_system_alias_p): New function.
2694         * text-coding.c (Ffind_coding_system):
2695         * text-coding.c (Fcopy_coding_system):
2696         * text-coding.c (encode_coding_no_conversion):
2697         * text-coding.c (syms_of_file_coding):
2698         * text-coding.c (vars_of_file_coding):
2699         Rewrite coding system alias code.
2700         Allow nested aliases, like symbolic links.
2701         Allow redefinition of coding system aliases.
2702         Prevent existence of dangling coding system aliases.
2703         Eliminate convert_to_external_format.
2704         Eliminate convert_to_internal_format.
2705         
2706         * text-coding.c: Change enum eol_type to eol_type_t.
2707
2708 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2709
2710         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
2711         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2712
2713         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
2714         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2715
2716 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2717
2718         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
2719         `ideograph-daikanwa'.
2720
2721         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
2722         (Vcharset_ucs_bmp): Likewise.
2723         (Vcharset_mojikyo): Add new extern variable definition.
2724         (Vcharset_latin_iso8859_2): Deleted because it is not used.
2725         (Vcharset_latin_iso8859_3): Likewise.
2726         (Vcharset_latin_iso8859_4): Likewise.
2727         (Vcharset_latin_iso8859_9): Likewise.
2728         (Vcharset_latin_viscii_lower): Likewise.
2729         (Vcharset_latin_viscii_upper): Likewise.
2730         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
2731         `mojikyo' code-point is used to decode.
2732         (encode_char_2): New function [to convert `mojikyo' code-point to
2733         Mojikyo font encoding].
2734         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
2735         (breakup_char_1): Likewise.
2736         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
2737
2738 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2739
2740         * text-coding.c (Fmake_coding_system): Add document about
2741         `disable-composition' property.
2742
2743 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2744
2745         * text-coding.c (Qdisable_composition): New variable; delete
2746         `Qcomposite'.
2747         (Fmake_coding_system): Add new property `disable-composite';
2748         delete property `composite'.
2749         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
2750         instead of `!CODING_SYSTEM_COMPOSITE'.
2751         (syms_of_file_coding): Add new symbol `disable-composition';
2752         delete symbol `composite'.
2753
2754         * file-coding.h (struct Lisp_Coding_System): Add
2755         `disable_composition'; delete `enable_composition'.
2756         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2757         `CODING_SYSTEM_COMPOSITE'.
2758         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2759         `XCODING_SYSTEM_COMPOSITE'.
2760
2761 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2762
2763         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2764         to 0.15.
2765
2766 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2767
2768         * text-coding.c (Qcomposite): New variable.
2769         (Fmake_coding_system): Add new property `composite'.
2770         (struct decoding_stream): Add `combined_char_count',
2771         `combined_chars' and `combining_table' in UTF-2000.
2772         (COMPOSE_FLUSH_CHARS): New macro.
2773         (COMPOSE_ADD_CHAR): New macro.
2774         (reset_decoding_stream): Reset `str->combined_char_count' and
2775         `str->combining_table' in UTF-2000.
2776         (decode_coding_iso2022): Modify for character-decomposition.
2777         (syms_of_file_coding): Add new symbol `composite'.
2778
2779 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2780
2781         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
2782         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
2783         of `Vcharacter_composition_table' if `->decomposition' property
2784         has only 1 element.
2785         (Qlatin_tcvn5712): New variable.
2786         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
2787         (complex_vars_of_mule_charset): Add new coded-charset
2788         `latin-tcvn5712'.
2789
2790         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
2791
2792 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2793
2794         * file-coding.h (struct Lisp_Coding_System): Add
2795         `enable_composition'.
2796         (CODING_SYSTEM_COMPOSITE): New macro.
2797         (XCODING_SYSTEM_COMPOSITE): New macro.
2798
2799 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
2800
2801         * mule-canna.c (c2mu): Fix problem with UTF-2000.
2802
2803 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
2804
2805         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
2806         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
2807
2808 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
2809
2810         * mule-charset.c (Vcharset_mojikyo): New variable.
2811         (Fdefine_char): Don't use coded-charset which does not have
2812         non-builtin character range to allocate character-id.
2813         (Qmojikyo): New variable.
2814         (syms_of_mule_charset): Add new symbol `mojikyo'.
2815         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
2816
2817         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
2818         (LEADING_BYTE_MOJIKYO): New macro.
2819         (MIN_CHAR_MOJIKYO): New macro.
2820         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
2821         (MAX_CHAR_MOJIKYO): New macro.
2822
2823 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
2824
2825         * mule-charset.c (remove_char_attribute): Fixed.
2826
2827 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
2828
2829         * mule-charset.c (remove_char_attribute): New function.
2830         (Fremove_char_attribute): New function.
2831         (encode_builtin_char_1): Comment out builtin-support for
2832         greek-iso8859-7 and cyrillic-iso8859-5.
2833         (Fdecode_char): Check `code' is an integer.
2834         (syms_of_mule_charset): Add `remove-char-attribute'.
2835         (MIN_CHAR_GREEK): Deleted.
2836         (MAX_CHAR_GREEK): Likewise.
2837         (MIN_CHAR_CYRILLIC): Likewise.
2838         (MAX_CHAR_CYRILLIC): Likewise.
2839         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
2840         MAX_CHAR_GREEK for `greek-iso8859-7'.
2841
2842         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
2843         (MAX_CHAR_GREEK): Likewise.
2844         (MIN_CHAR_CYRILLIC): Likewise.
2845         (MAX_CHAR_CYRILLIC): Likewise.
2846
2847 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
2848
2849         * mule-charset.c (Fdefine_char): Fix problem when new code-point
2850         format is used without `ucs' property.
2851         (Fdecode_char): Fix problem with GR representation.
2852         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
2853         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
2854
2855 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
2856
2857         * mule-charset.c (make_builtin_char): New function.
2858         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
2859         (Fset_charset_mapping_table): Modify for new representation of
2860         code-point.
2861         (Fdecode_char): New function.
2862         (syms_of_mule_charset): Add new builtin function `decode-char' in
2863         UTF-2000.
2864
2865         * char-ucs.h (make_builtin_char): New prototype.
2866         (DECODE_CHAR): New inline function.
2867         (MAKE_CHAR): Use `DECODE_CHAR'.
2868
2869 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
2870
2871         * text-coding.c (parse_charset_conversion_specs): Use
2872         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
2873         `XCHARSET_TYPE'.
2874         (iso2022_designate): Likewise.
2875
2876         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
2877         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
2878
2879         * mule-charset.c (Vcharset_ucs): New variable.
2880         (print_charset): Change design; use `CHARSET_CHARS' and
2881         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
2882         (make_charset): Change signature to specify `chars' and
2883         `dimension' instead of `type'.
2884         (range_charset_code_point): Modify for 256^n-set.
2885         (encode_builtin_char_1): Encode as `ucs' in default.
2886         (Fmake_charset): Modify for `make_charset'.
2887         (Fmake_reverse_direction_charset): Likewise.
2888         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
2889         UTF-2000.
2890         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
2891         for `make_charset'.
2892
2893         * char-ucs.h (Vcharset_ucs): New variable.
2894         (LEADING_BYTE_UCS): New macro.
2895         (struct Lisp_Charset): Delete `type'; change type of `dimension'
2896         and `chars' to `unsigned short' from `unsigned int'.
2897         (CHARSET_TYPE): Deleted.
2898         (XCHARSET_TYPE): Deleted.
2899
2900 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
2901
2902         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
2903
2904         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
2905         (ENCODE_CHAR): New macro.
2906
2907 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
2908
2909         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2910         to 0.14 (Kawachi-Katakami).
2911
2912 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
2913
2914         * text-coding.c (char_encode_shift_jis): Modify for
2915         `charset_code_point'.
2916         (char_encode_iso2022): Likewise.
2917
2918         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
2919         (integer) instead of list of <Lisp_Object>s (integers) as the
2920         format of code-point of a coded-charset.
2921         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2922         (encode_builtin_char_1): New function; delete
2923         `split_builtin_char'.
2924         (charset_code_point): Return <int> instead of <Lisp_Object>.
2925         (Fsplit_char): Don't use `SPLIT_CHAR'.
2926
2927         * char-ucs.h (encode_builtin_char_1): New prototype; delete
2928         prototype for `split_builtin_char'.
2929         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2930         (charset_code_point): Likewise.
2931         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
2932         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
2933
2934 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
2935
2936         * mule-charset.c (complex_vars_of_mule_charset): Don't define
2937         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
2938
2939 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2940
2941         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
2942
2943         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
2944         (MAX_CHAR_OBS_94x94): Deleted.
2945
2946 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2947
2948         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
2949
2950         * char-ucs.h (MAX_CHAR_BMP): New macro.
2951
2952 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2953
2954         * text-coding.c: Sync with r21-2-24.
2955
2956 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
2957
2958         * file-coding.c: Modify for UTF-2000.
2959
2960 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2961
2962         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2963         to 0.13 (Takaida).
2964
2965 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
2966
2967         * mule-charset.c (split_builtin_char): Delete builtin support for
2968         `katakana-jisx0201'.
2969         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
2970         BMP area in builtin representation.
2971
2972         * char-ucs.h (MAKE_CHAR): Delete builtin support for
2973         `Vcharset_katakana_jisx0201'.
2974
2975 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
2976
2977         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
2978         (Qisolated): New variable.
2979         (Qinitial): New variable.
2980         (Qmedial): New variable.
2981         (Qfinal): New variable.
2982         (Qvertical): New variable.
2983         (Qsmall): New variable.
2984         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
2985         `Qvertical' and `Qsmall'.
2986         (Qmojikyo_pj_[1 .. 21]): New variable.
2987         (syms_of_mule_charset): Add new symbols `isolated', `initial',
2988         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
2989         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
2990         .. 21]'.
2991
2992 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
2993
2994         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
2995         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
2996         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
2997
2998 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2999
3000         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
3001         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
3002         BMP.
3003         (Qjapanese_jisx0208_1990): New variable.
3004         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
3005         (complex_vars_of_mule_charset): Add new coded-charset
3006         `japanese-jisx0208-1990'.
3007
3008         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
3009         (MIN_CHAR_JIS_X0208_1990): New macro.
3010         (MAX_CHAR_JIS_X0208_1990): New macro.
3011
3012 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3013
3014         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
3015         coded-charset is not found.
3016
3017 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3018
3019         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
3020         (Fdefine_char): Use `Fmake_char'.
3021
3022 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3023
3024         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
3025         (Vcharset_hiragana_jisx0208): Deleted.
3026         (Vcharset_katakana_jisx0208): Deleted.
3027         (Qideograph_daikanwa): New variable.
3028         (Qhiragana_jisx0208): Deleted.
3029         (Qkatakana_jisx0208): Deleted.
3030         (split_builtin_char): Split `ideograph-daikanwa'.
3031         (Fsplit_char): New implementation for UTF-2000.
3032         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
3033         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
3034         (complex_vars_of_mule_charset): Add new coded-charset
3035         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
3036         `katakana-jisx0208'.
3037
3038         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
3039         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
3040         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
3041         (MIN_CHAR_DAIKANWA): New macro.
3042         (MAX_CHAR_DAIKANWA): New macro.
3043
3044 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3045
3046         * data.c (Fstring_to_number): Don't recognize floating point if
3047         base is not 10.
3048
3049 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3050
3051         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
3052
3053 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3054
3055         * mule-charset.c (Qsquare): New variable.
3056         (to_char_code): Add `Qsquare'.
3057         (syms_of_mule_charset): Add new symbol `square'.
3058
3059 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3060
3061         * mule-charset.c (Qcircle): New variable.
3062         (to_char_code): Add `Qcircle'.
3063         (syms_of_mule_charset): Add new symbol `circle'.
3064
3065 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3066
3067         * mule-charset.c (Qfont): New variable.
3068         (to_char_code): Add `Qfont'.
3069         (syms_of_mule_charset): Add new symbol `font'.
3070
3071 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3072
3073         * mule-charset.c (Qsub): New variable.
3074         (to_char_code): Add `Qsub'.
3075         (syms_of_mule_charset): Add new symbol `sub'.
3076
3077 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3078
3079         * mule-charset.c (Fput_char_attribute): Convert each element of
3080         VALUE to GL position if ATTRIBUTE is a GR-set,
3081
3082 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3083
3084         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
3085         coded-charset is a GR-set.
3086
3087 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3088
3089         * mule-charset.c (Fput_char_attribute): Check each element of
3090         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
3091
3092 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3093
3094         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
3095         UTF-2000.
3096         (Qethiopic_ucs): New variable in UTF-2000.
3097         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
3098         (complex_vars_of_mule_charset): Add new coded-charset
3099         `ethiopic-ucs' in UTF-2000.
3100
3101         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
3102         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3103         9)'.
3104         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3105         10)'.
3106         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
3107
3108 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
3109
3110         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
3111         `ascii'.
3112
3113 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3114
3115         * mule-charset.c (Vcharacter_variant_table): New variable.
3116         (Q_ucs): New variable.
3117         (Fchar_variants): New function.
3118         (Fput_char_attribute): Register `->ucs' value to
3119         `Vcharacter_variant_table'.
3120         (syms_of_mule_charset): Add new function `char-variants' and new
3121         symbol `->ucs'.
3122         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
3123
3124 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3125
3126         * mule-charset.c (get_char_code_table): Allow negative character
3127         code.
3128         (put_char_code_table): Likewise.
3129         (Vcharacter_composition_table): New variable.
3130         (Q_decomposition): New variable.
3131         (Qwide): New variable.
3132         (Qnarrow): New variable.
3133         (Qcompat): New variable.
3134         (QnoBreak): New variable.
3135         (Qsuper): New variable.
3136         (Qfraction): New variable.
3137         (to_char_code): New function.
3138         (Fget_composite_char): New function.
3139         (Fput_char_attribute): Register `->decomposition' value to
3140         `Vcharacter_composition_table'.
3141         (syms_of_mule_charset): Add new function `get-composite-char', new
3142         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
3143         `super' and `fraction'.
3144         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
3145
3146 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3147
3148         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
3149         character; copy the return value.
3150
3151 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3152
3153         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
3154
3155         * mule-charset.c (range_charset_code_point): Must use make_int.
3156         (split_builtin_char): New function.
3157
3158 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3159
3160         * mule-charset.c (char_byte_table): Change name from
3161         "char-code-table" to "char-byte-table".
3162         (mark_char_code_table): New function.
3163         (char_code_table_equal): New function.
3164         (char_code_table_hash): New function.
3165         (char_code_table_description): New constant.
3166         (char_code_table): New type.
3167         (make_char_code_table): New function.
3168         (copy_char_code_table): New function.
3169         (get_char_code_table): Modify for `char_code_table' type.
3170         (put_char_code_table): Likewise.
3171         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
3172         (Kashiwara).
3173
3174         * char-ucs.h (char_code_table): New type.
3175         (XCHAR_CODE_TABLE): New macro.
3176         (XSETCHAR_CODE_TABLE): New macro.
3177         (CHAR_CODE_TABLE_P): New macro.
3178         (GC_CHAR_CODE_TABLE_P): New macro.
3179         (struct Lisp_Char_Code_Table): New structure.
3180
3181 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3182
3183         * mule-charset.c (Fmake_charset): Setup byte_offset for
3184         {94|96}^n-set.
3185
3186 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3187
3188         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
3189         character.
3190
3191 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3192
3193         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
3194         is found.
3195
3196 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3197
3198         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
3199         charset, it is regarded as a charset.
3200         (put_char_attribute): New function in UTF-2000.
3201         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
3202         charset, mapping-table of the charset is modified.
3203         (Fdefine_char): New function in UTF-2000.
3204         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
3205         `Fput_char_attribute'.
3206         (syms_of_mule_charset): Add new function `define-char' and new
3207         symbol `ucs' in UTF-2000.
3208         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
3209
3210 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3211
3212         * mule-charset.c (Fcharset_name): Define `byte_offset' in
3213         non-UTF-2000 configuration.
3214
3215 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3216
3217         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
3218         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
3219
3220         * mule-charset.c (mark_charset): `cs->encoding_table' has been
3221         deleted.
3222         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
3223         (Fset_charset_mapping_table): Likewise.
3224
3225         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
3226         (CHARSET_ENCODING_TABLE): Delete.
3227         (XCHARSET_ENCODING_TABLE): Delete.
3228         (charset_code_point): New interface.
3229
3230 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3231
3232         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
3233         instead of `charset_get_byte1' and `charset_get_byte2'.
3234
3235         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
3236         (charset_get_byte2): Deleted.
3237
3238 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3239
3240         * char-ucs.h (SPLIT_CHAR): New inline function.
3241         (breakup_char_1): Use `SPLIT_CHAR'.
3242
3243         * mule-charset.c (range_charset_code_point): New function.
3244         (charset_code_point): New function.
3245
3246         * char-ucs.h (range_charset_code_point): New interface.
3247         (breakup_char_1): Use `range_charset_code_point'.
3248
3249 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3250
3251         * mule-charset.c (Fmake_charset): Delete unused local variable
3252         `code_offset'.
3253
3254         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
3255         (breakup_char_1): Find a charset and code-point in
3256         `Vcharacter_attribute_table'.
3257
3258 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3259
3260         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3261         to 0.10 (Yao).
3262
3263 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
3264
3265         * mule-charset.c (Vcharacter_attribute_table): New variable.
3266         (Fchar_attribute_alist): New function.
3267         (Fget_char_attribute): New function.
3268         (Fput_char_attribute): New function.
3269         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
3270         too.
3271         (syms_of_mule_charset): Add new function `char-attribute-alist',
3272         `get-char-attribute' and `put-char-attribute'.
3273         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
3274
3275 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
3276
3277         * mule-charset.c (Fmake_charset): Just use
3278         `get_unallocated_leading_byte'.
3279
3280         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
3281         sets; don't use final-byte based number for private sets.
3282
3283 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3284
3285         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
3286         integer.
3287
3288 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3289
3290         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3291         to 0.9.
3292
3293 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3294
3295         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
3296         of `CHAR_LEADING_BYTE' in UTF-2000.
3297
3298         * insdel.c (find_charsets_in_bufbyte_string): Use
3299         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
3300         (find_charsets_in_emchar_string): Likewise.
3301
3302         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
3303         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
3304
3305         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
3306         (CHAR_CHARSET_ID): New macro.
3307
3308 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3309
3310         * chartab.c (get_char_table): Don't use type `Charset_ID' for
3311         charset-id - MIN_LEADING_BYTE.
3312         (put_char_table): Likewise.
3313
3314 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3315
3316         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
3317         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
3318         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
3319         (CHARSET_ID_OFFSET): New macro.
3320         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
3321         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
3322         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
3323         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
3324         4).
3325         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
3326         5).
3327         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
3328         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
3329         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
3330         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
3331         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
3332
3333 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3334
3335         * mule-charset.c (next_allocated_leading_byte): New variable in
3336         UTF-2000.
3337         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
3338         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
3339         (get_unallocated_leading_byte): Simply use
3340         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
3341         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
3342         UTF-2000.
3343
3344         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
3345         (MAX_LEADING_BYTE_PRIVATE): New macro.
3346         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
3347         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
3348
3349 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3350
3351         * mule-charset.c (Fmake_charset): Allocate final-byte based
3352         charset-id for 94-set, 96-set and 94x94-set.
3353
3354 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3355
3356         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
3357         ambiguous `else'.
3358         (Fmake_charset): Likewise.
3359         (complex_vars_of_mule_charset): Modify the font registry of
3360         `ucs-bmp' not to match `Ethiopic-Unicode'.
3361
3362 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3363
3364         * mule-charset.c (complex_vars_of_mule_charset): Add font
3365         registory of `ucs-bmp'.
3366
3367 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3368
3369         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
3370         coded-charsets in `default-coded-charset-priority-list' when
3371         breaking up a character.
3372
3373         * mule-charset.c (Vcharset_latin_viscii): New variable.
3374         (Qlatin_viscii): New variable.
3375         (make_charset): Don't use `decoding_table'.
3376         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
3377         byte_offset.
3378         (Fset_charset_mapping_table): New implementation.
3379         (syms_of_mule_charset): Add new symbol `latin-viscii'.
3380         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
3381         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
3382         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
3383         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
3384         charset `latin_viscii'.
3385
3386         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
3387         (CHARSET_TYPE_94X94): Change to 1 from 2.
3388         (CHARSET_TYPE_96): Change to 2 from 1.
3389         (CHARSET_TYPE_128): New macro.
3390         (CHARSET_TYPE_128X128): Change to 5 from 4.
3391         (CHARSET_TYPE_256): New macro.
3392         (CHARSET_TYPE_256X256): Change to 7 from 5.
3393         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
3394
3395 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3396
3397         * text-coding.c (char_encode_shift_jis): Refer
3398         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
3399         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
3400
3401         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
3402         (char_byte_table_equal): New function in UTF-2000.
3403         (char_byte_table_hash): New function in UTF-2000.
3404         (char_byte_table_description): New constant in UTF-2000.
3405         (char_byte_table): New type in UTF-2000.
3406         (make_char_byte_table): New function in UTF-2000.
3407         (copy_char_byte_table): New function in UTF-2000.
3408         (make_char_code_table): New macro in UTF-2000.
3409         (get_char_code_table): New function in UTF-2000.
3410         (put_char_code_table): New function in UTF-2000.
3411         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3412         (charset_description): Add setting in UTF-2000.
3413         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
3414         `CHARSET_TO_BYTE1_TABLE(cs)'.
3415         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
3416         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
3417         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
3418         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
3419         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
3420         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
3421         `CHARSET_TO_BYTE2_TABLE(cs)'.
3422
3423         * char-ucs.h (char_byte_table): New type.
3424         (XCHAR_BYTE_TABLE): New macro.
3425         (XSETCHAR_BYTE_TABLE): New macro.
3426         (CHAR_BYTE_TABLE_P): New macro.
3427         (GC_CHAR_BYTE_TABLE_P): New macro.
3428         (struct Lisp_Char_Byte_Table): New structure.
3429         (get_char_code_table): New interface.
3430         (Emchar_to_byte_table): Deleted.
3431         (get_byte_from_character_table): Deleted.
3432         (struct Lisp_Charset): Add `encoding_table'; delete
3433         `to_byte1_table' and `to_byte2_table'.
3434         (CHARSET_ENCODING_TABLE): New macro.
3435         (CHARSET_TO_BYTE1_TABLE): Deleted.
3436         (CHARSET_TO_BYTE2_TABLE): Deleted.
3437         (XCHARSET_ENCODING_TABLE): New macro.
3438         (XCHARSET_TO_BYTE1_TABLE): Deleted.
3439         (XCHARSET_TO_BYTE2_TABLE): Deleted.
3440
3441 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3442
3443         * mule-charset.c (syms_of_mule_charset): Delete charset alias
3444         `vietnamese-viscii-*'.
3445
3446 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3447
3448         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
3449         (Qvietnamese_viscii_upper): New variable.
3450         (Fdefine_charset_alias): New function.
3451         (syms_of_mule_charset): Add new function `define-charset-alias'.
3452         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
3453         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
3454         `latin-viscii-*'.
3455
3456 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
3457
3458         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
3459         (MAX_CHAR_OBS_94x94): New macro.
3460         (breakup_char_1): Support obsolete XEmacs-UCS private code space
3461         for 94x94 sets.
3462
3463         * mule-charset.c (put_byte_from_character_table): Change unit size
3464         from 128 to 256.
3465         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
3466         not defined.
3467         (Fmake_reverse_direction_charset): Modify dummy argument of
3468         `make_charset' for non-UTF-2000 environment.
3469
3470 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3471
3472         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
3473
3474         * mule-charset.c (destroy_byte_from_character_table): New macro.
3475         (latin_jisx0201_to_ucs): Deleted.
3476         (latin_iso8859_2_to_ucs): Deleted.
3477         (latin_iso8859_3_to_ucs): Deleted.
3478         (latin_iso8859_4_to_ucs): Deleted.
3479         (latin_iso8859_9_to_ucs): Deleted.
3480         (latin_viscii_lower_to_ucs): Deleted.
3481         (latin_viscii_upper_to_ucs): Deleted.
3482         (mark_charset): Mark `cs->decoding_table'.
3483         (Fcharset_mapping_table): Fix DOC-string.
3484         (Fset_charset_mapping_table): New function.
3485         (syms_of_mule_charset): Add nwe function
3486         `set-charset-mapping-table'.
3487         (complex_vars_of_mule_charset): Don't setup and use
3488         `latin_*_to_ucs'.
3489
3490 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3491
3492         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
3493         charset.
3494
3495 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3496
3497         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
3498         (Vcharset_katakana_jisx0208): New variable.
3499         (Qhiragana_jisx0208): New variable.
3500         (Qkatakana_jisx0208): New variable.
3501         (make_charset): Add new argument `byte_offset'.
3502         (charset_get_byte1): Modify for new coded-charset definition; use
3503         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3504         `XCHARSET_BYTE_OFFSET'.
3505         (Fmake_charset): Modify for `make_charset'.
3506         (Fmake_reverse_direction_charset): Likewise.
3507         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
3508         `katakana-jisx0208'.
3509         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
3510         `.'  in font registry of charset `katakana-jisx0201',
3511         `latin-jisx0201', `vietnamese-viscii-lower' and
3512         `vietnamese-viscii-upper'; modify DOC-string of charset
3513         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
3514         registry of charset `japanese-jisx0208' not to use font for JIS
3515         X0208:1990; add new charset `hiragana-jisx0208' and
3516         `katakana-jisx0208'.
3517
3518         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
3519         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
3520         (struct Lisp_Charset): Add `byte_offset'.
3521         (CHARSET_BYTE_OFFSET): New macro.
3522         (XCHARSET_UCS_MIN): New macro.
3523         (XCHARSET_UCS_MAX): New macro.
3524         (XCHARSET_CODE_OFFSET): New macro.
3525         (XCHARSET_BYTE_OFFSET): New macro.
3526         (MIN_CHAR_HIRAGANA): New macro.
3527         (MAX_CHAR_HIRAGANA): New macro.
3528         (MIN_CHAR_KATAKANA): New macro.
3529         (MAX_CHAR_KATAKANA): New macro.
3530         (MAKE_CHAR): Modify for new coded-charset definition; use
3531         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3532         `XCHARSET_BYTE_OFFSET'.
3533
3534 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3535
3536         * mule-charset.c (CHAR96): Deleted.
3537         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
3538         <Lisp_Object>.
3539         (latin_iso8859_2_to_ucs): Likewise.
3540         (latin_iso8859_3_to_ucs): Likewise.
3541         (latin_iso8859_4_to_ucs): Likewise.
3542         (latin_iso8859_9_to_ucs): Likewise.
3543         (latin_viscii_lower_to_ucs): Likewise.
3544         (latin_viscii_upper_to_ucs): Likewise.
3545         (latin_tcvn5712_to_ucs): Commented out.
3546         (make_charset): Change type of argument `decoding_table' from
3547         <Emchar*> to <Lisp_Object> [vector of characters].
3548         (Fmake_charset): Modify for `make_charset'.
3549         (Fmake_reverse_direction_charset): Likewise.
3550         (Fcharset_mapping_table): New function in UTF-2000.
3551         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
3552         UTF-2000.
3553         (complex_vars_of_mule_charset): Modify for type change of
3554         `*_to_ucs'; modify for `make_charset'.
3555
3556         * char-ucs.h (struct Lisp_Charset): Change type of
3557         `decoding_table' from <Emchar*> to <Lisp_Object>.
3558         (MAKE_CHAR): Modify for new specification of `decoding_table'.
3559
3560 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
3561
3562         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
3563         error with non-UTF-2000-Mule.
3564
3565 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
3566
3567         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
3568         in lisp again].
3569         (Vcharset_chinese_cns11643_4): Likewise.
3570         (Vcharset_chinese_cns11643_5): Likewise.
3571         (Vcharset_chinese_cns11643_6): Likewise.
3572         (Vcharset_chinese_cns11643_7): Likewise.
3573         (Qchinese_cns11643_3): Likewise.
3574         (Qchinese_cns11643_4): Likewise.
3575         (Qchinese_cns11643_5): Likewise.
3576         (Qchinese_cns11643_6): Likewise.
3577         (Qchinese_cns11643_7): Likewise.
3578         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
3579         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3580         and `chinese-cns11643-7' to lisp/mule/chinese.el.
3581         (complex_vars_of_mule_charset): Likewise.
3582
3583 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3584
3585         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
3586         96-set.
3587         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
3588         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
3589
3590 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3591
3592         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
3593         0xFF60.
3594         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
3595         (breakup_char_1): Likewise.
3596
3597         * text-coding.c (char_encode_iso2022): Keep designated charsets if
3598         one of them includes the specified character.
3599
3600 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3601
3602         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
3603
3604 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3605
3606         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
3607
3608 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3609
3610         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
3611         definition for non-UTF-2000 Mule.
3612         (latin_iso8859_3_to_ucs): Likewise.
3613         (latin_iso8859_4_to_ucs): Likewise.
3614         (latin_iso8859_9_to_ucs): Likewise.
3615         (latin_jisx0201_to_ucs): Likewise.
3616         (MIN_CHAR_THAI): Likewise.
3617         (MAX_CHAR_THAI): Likewise.
3618         (MIN_CHAR_GREEK): Likewise.
3619         (MAX_CHAR_GREEK): Likewise.
3620         (MIN_CHAR_HEBREW): Likewise.
3621         (MAX_CHAR_HEBREW): Likewise.
3622         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
3623         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
3624         (MIN_CHAR_CYRILLIC): Likewise.
3625         (MAX_CHAR_CYRILLIC): Likewise.
3626
3627 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3628
3629         * char-ucs.h (breakup_char_1): Use
3630         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
3631         thai-tis620 and katakana-jisx0201 area.
3632
3633 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3634
3635         * char-ucs.h (breakup_char_1): Use
3636         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
3637         area.
3638
3639         * text-coding.c (reset_encoding_stream): Fixed.
3640         (char_encode_ucs4): Delete `& 255'.
3641
3642         * char-ucs.h (breakup_char_1): Use
3643         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
3644
3645 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3646
3647         * file-coding.c (Fmake_coding_system): Don't set up
3648         `codesys->fixed.size'.
3649         (encode_coding_no_conversion): Don't refer
3650         `str->codesys->fixed.size'.
3651
3652 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3653
3654         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
3655         (latin_a_char_to_byte1): Deleted.
3656         (latin_a_char_to_byte2): Deleted.
3657
3658 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3659
3660         * mule-charset.c (make_charset): Add new argument `ucs_min',
3661         `ucs_max' and `code_offset'.
3662         (charset_get_byte1): New implementation [delete specific charset
3663         depended implementations].
3664         (Fmake_charset): Modify for `make_charset'.
3665         (Fmake_reverse_direction_charset): Likewise.
3666         (complex_vars_of_mule_charset): Likewise.
3667
3668         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
3669         `code_offset'.
3670         (CHARSET_UCS_MIN): New macro.
3671         (CHARSET_UCS_MAX): New macro.
3672         (CHARSET_CODE_OFFSET): New macro.
3673         (MAKE_CHAR): Delete charset depended definitions [except
3674         katakana-jisx0201].
3675
3676 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
3677
3678         * char-ucs.h (breakup_char_1): Use
3679         `Vdefault_coded_charset_priority_list' for C0-Controls,
3680         Basic-Latin, C1-Controls and Latin-1-Supplement area.
3681
3682 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3683
3684         * char-ucs.h (charset_get_byte1): New function.
3685         (XCHARSET_GET_BYTE1): Deleted.
3686         (charset_get_byte2): New function.
3687         (XCHARSET_GET_BYTE2): Deleted.
3688         (Vdefault_coded_charset_priority_list): New external variable.
3689         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
3690         `Vdefault_preferred_coded_charset_list'.
3691
3692         * mule-charset.c (charset_get_byte1): New function.
3693         (charset_get_byte2): New function.
3694         (Vdefault_coded_charset_priority_list): New variable.
3695         (vars_of_mule_charset): Add new variable
3696         `default-coded-charset-priority-list'.
3697
3698 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3699
3700         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
3701         (XCHARSET_GET_BYTE2): New inline function.
3702         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
3703         `XCHARSET_GET_BYTE2'.
3704
3705 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3706
3707         * mule-charset.c (make_charset): Initialize
3708         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
3709         NULL if table is not defined.
3710
3711 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3712
3713         * text-coding.c (char_encode_shift_jis): Use
3714         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
3715         `ucs_to_latin_jisx0201'.
3716
3717         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
3718         (ucs_to_latin_iso8859_2): Deleted.
3719         (ucs_to_latin_iso8859_3): Deleted.
3720         (ucs_to_latin_iso8859_4): Deleted.
3721         (ucs_to_latin_iso8859_9): Deleted.
3722         (ucs_to_latin_viscii_lower): Deleted.
3723         (ucs_to_latin_viscii_upper): Deleted.
3724         (ucs_to_latin_tcvn5712): Deleted.
3725         (make_charset): Add new argument `decoding_table'; set up
3726         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
3727         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
3728         `decoding_table' is defined in UTF-2000.
3729         (Fmake_charset): Modify for `make_charset'.
3730         (Fmake_reverse_direction_charset): Likewise.
3731         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
3732         and `GENERATE_96_SET'.
3733
3734         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
3735         (ucs_to_latin_jisx0201): Deleted.
3736         (latin_iso8859_2_to_ucs): Deleted.
3737         (ucs_to_latin_iso8859_2): Deleted.
3738         (latin_iso8859_3_to_ucs): Deleted.
3739         (ucs_to_latin_iso8859_3): Deleted.
3740         (latin_iso8859_4_to_ucs): Deleted.
3741         (ucs_to_latin_iso8859_4): Deleted.
3742         (latin_iso8859_9_to_ucs): Deleted.
3743         (ucs_to_latin_iso8859_9): Deleted.
3744         (latin_viscii_lower_to_ucs): Deleted.
3745         (ucs_to_latin_viscii_lower): Deleted.
3746         (latin_viscii_upper_to_ucs): Deleted.
3747         (ucs_to_latin_viscii_upper): Deleted.
3748         (struct Lisp_Charset): Renamed `encoding_table' to
3749         `to_byte1_table'; add `to_byte2_table'.
3750         (CHARSET_DECODING_TABLE): New macro.
3751         (CHARSET_TO_BYTE1_TABLE): New macro.
3752         (CHARSET_TO_BYTE2_TABLE): New macro.
3753         (XCHARSET_DECODING_TABLE): New macro.
3754         (XCHARSET_TO_BYTE1_TABLE): New macro.
3755         (XCHARSET_TO_BYTE2_TABLE): New macro.
3756         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
3757         tables.
3758         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
3759         don't use `ucs_to_*' tables.
3760
3761 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3762
3763         * text-coding.c (Fmake_coding_system): Don't set up
3764         `codesys->fixed.size'.
3765         (encode_coding_no_conversion): Use `if' instead of `switch'.
3766
3767         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
3768
3769 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3770
3771         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
3772         (Fmake_charset): Modify for `make_charset'.
3773         (Fmake_reverse_direction_charset): Likewise.
3774         (complex_vars_of_mule_charset): Likewise.
3775
3776 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3777
3778         * text-coding.c (char_encode_shift_jis): Use table
3779         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
3780
3781 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3782
3783         * text-coding.c (text_encode_generic): Use `if' instead of
3784         `switch'.
3785         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
3786         decode JIS-Latin.
3787
3788 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3789
3790         * text-coding.c (encode_coding_sjis): Deleted.
3791         (char_encode_shift_jis): New function.
3792         (char_finish_shift_jis): New function.
3793         (reset_encoding_stream): Set up `encode_char' and `finish' for
3794         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
3795         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
3796         (char_encode_utf8): Treat `eol_type'.
3797
3798 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3799
3800         * file-coding.c (decode_coding_iso2022): Use
3801         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
3802
3803 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3804
3805         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3806         to 0.7 (Hirano).
3807
3808 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3809
3810         * char-lb.h (CHAR_COLUMNS): New macro.
3811
3812 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3813
3814         * text-coding.c (char_encode_ucs4): New function.
3815         (char_finish_ucs4): New function.
3816         (encode_coding_ucs4): Deleted.
3817         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
3818         (text_encode_generic): Delete local variable `charset' and `half'.
3819         (ucs_to_mule_table): Deleted.
3820         (mule_to_ucs_table): Deleted.
3821         (Fset_ucs_char): Deleted.
3822         (ucs_to_char): Deleted.
3823         (Fucs_char): Deleted.
3824         (Fset_char_ucs): Deleted.
3825         (Fchar_ucs): Deleted.
3826         (decode_ucs4): Deleted.
3827         (mule_char_to_ucs4): Deleted.
3828         (encode_ucs4): Deleted.
3829         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
3830         (decode_coding_utf8): Likewise.
3831         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
3832         (char_encode_iso2022): Fixed.
3833         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
3834         `Fset_char_ucs' and `Fchar_ucs'.
3835         (complex_vars_of_file_coding): Don't initialize
3836         `ucs_to_mule_table'.
3837
3838         * objects-tty.c (tty_initialize_font_instance): Don't use
3839         `XCHARSET_COLUMNS'.
3840
3841         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
3842         UTF-2000.
3843
3844         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
3845         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3846
3847         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
3848         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3849         (emchar_string_displayed_columns): Likewise.
3850
3851         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
3852         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3853         (string_column_at_point): Likewise.
3854         (Fmove_to_column): Likewise.
3855
3856         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
3857         `encoding_table' and `decoding_table'.
3858         (CHARSET_REP_BYTES): Deleted.
3859         (XCHARSET_REP_BYTES): Deleted.
3860         (XCHARSET_COLUMNS): Deleted.
3861         (CHAR_COLUMNS): New macro.
3862         (lookup_composite_char): Deleted unconditionally.
3863         (composite_char_string): Likewise.
3864
3865 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3866
3867         * char-ucs.h (Emchar_to_byte_table): New type.
3868         (get_byte_from_character_table): New function interface.
3869         (Vcharset_latin_jisx0201): New variable.
3870         (latin_jisx0201_to_ucs): New variable.
3871         (ucs_to_latin_jisx0201): New variable.
3872         (Vcharset_latin_iso8859_2): New variable.
3873         (latin_iso8859_2_to_ucs): New variable.
3874         (ucs_to_latin_iso8859_2): New variable.
3875         (Vcharset_latin_iso8859_3): New variable.
3876         (latin_iso8859_3_to_ucs): New variable.
3877         (ucs_to_latin_iso8859_3): New variable.
3878         (Vcharset_latin_iso8859_4): New variable.
3879         (latin_iso8859_4_to_ucs): New variable.
3880         (ucs_to_latin_iso8859_4): New variable.
3881         (Vcharset_latin_iso8859_9): New variable.
3882         (latin_iso8859_9_to_ucs): New variable.
3883         (ucs_to_latin_iso8859_9): New variable.
3884         (Vcharset_latin_viscii_lower): New variable.
3885         (latin_viscii_lower_to_ucs): New variable.
3886         (ucs_to_latin_viscii_lower): New variable.
3887         (Vcharset_latin_viscii_upper): New variable.
3888         (latin_viscii_upper_to_ucs): New variable.
3889         (ucs_to_latin_viscii_upper): New variable.
3890         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
3891         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
3892         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
3893         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
3894         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
3895         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
3896         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
3897         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
3898         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
3899         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
3900
3901         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
3902         (Vcharset_latin_viscii_upper): New variable.
3903         (make_byte_from_character_table): New function.
3904         (put_byte_from_character_table): New function.
3905         (get_byte_from_character_table): New function.
3906         (CHAR96): New macro.
3907         (ucs_to_latin_jisx0201): New variable.
3908         (latin_jisx0201_to_ucs): New variable.
3909         (ucs_to_latin_iso8859_2): New variable.
3910         (latin_iso8859_2_to_ucs): New variable.
3911         (ucs_to_latin_iso8859_3): New variable.
3912         (latin_iso8859_3_to_ucs): New variable.
3913         (ucs_to_latin_iso8859_4): New variable.
3914         (latin_iso8859_4_to_ucs): New variable.
3915         (ucs_to_latin_iso8859_9): New variable.
3916         (latin_iso8859_9_to_ucs): New variable.
3917         (ucs_to_latin_viscii_lower): New variable.
3918         (latin_viscii_lower_to_ucs): New variable.
3919         (ucs_to_latin_viscii_upper): New variable.
3920         (latin_viscii_upper_to_ucs): New variable.
3921         (ucs_to_latin_tcvn5712): New variable.
3922         (latin_tcvn5712_to_ucs): New variable.
3923         (Qlatin_viscii_lower): New variable.
3924         (Qlatin_viscii_upper): New variable.
3925         (syms_of_mule_charset): Set up new symbol
3926         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
3927         (complex_vars_of_mule_charset): Set up new charset
3928         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
3929         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
3930         `ucs_to_<CHARSET>' tables.
3931
3932 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
3933
3934         * text-coding.c: New file.
3935
3936 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3937
3938         * mule-charset.c (Fmake_char): Fix problem of 256-set.
3939
3940         * char-ucs.h (Vcharset_ucs_bmp): New variable.
3941         (MAKE_CHAR): Modify for `ucs-bmp'.
3942         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
3943         non-MULE characters of BMP.
3944
3945 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
3946
3947         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3948         to 0.6.
3949
3950 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3951
3952         * lstream.h:
3953         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
3954         - Include character.h for `CHAR_ASCII_P'.
3955
3956         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
3957
3958         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
3959         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
3960
3961         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
3962         (BYTE_C0_P): Likewise.
3963         (BYTE_C1_P): Likewise.
3964         (Lstream_get_emchar_1): Likewise.
3965         (Lstream_fput_emchar): Likewise.
3966         (Lstream_funget_emchar): Likewise.
3967         (copy_internal_to_external): Likewise.
3968         (copy_external_to_internal): Likewise.
3969
3970         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
3971         (BYTE_C0_P): Likewise.
3972         (BYTE_C1_P): Likewise.
3973         (Lstream_get_emchar_1): Likewise.
3974         (Lstream_fput_emchar): Likewise.
3975         (Lstream_funget_emchar): Likewise.
3976         (copy_internal_to_external): Likewise.
3977         (copy_external_to_internal): Likewise.
3978
3979         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
3980         (REP_BYTES_BY_FIRST_BYTE): Likewise.
3981
3982         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
3983         (BYTE_ASCII_P): Moved to mb-1byte.h.
3984
3985 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3986
3987         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
3988
3989         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
3990         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
3991         (VALID_CHARPTR_P): Moved to mb-*byte.h.
3992         (VALIDATE_CHARPTR_BACKWARD): Likewise.
3993         (VALIDATE_CHARPTR_FORWARD): Likewise.
3994         (simple_charptr_emchar): Moved to mb-multibyte.h.
3995         (simple_set_charptr_emchar): Likewise.
3996         (simple_charptr_copy_char): Likewise.
3997         (non_ascii_charptr_emchar): Likewise.
3998         (non_ascii_set_charptr_emchar): Likewise.
3999         (non_ascii_charptr_copy_char): Likewise.
4000         (charptr_emchar): Moved to mb-*byte.h.
4001         (set_charptr_emchar): Likewise.
4002         (charptr_copy_char): Likewise.
4003
4004         * mb-1byte.h, mb-multibyte.h: New files.
4005
4006 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4007
4008         * mb-utf-8.h (MULTIBYTE): New macro.
4009         (MAX_EMCHAR_LEN): Moved from buffer.h.
4010         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
4011
4012         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
4013
4014         * mb-lb.h, multibyte.h: New files.
4015
4016         * char-1byte.h (Charset_ID): Moved from buffer.h.
4017         (MIN_LEADING_BYTE): Likewise.
4018         (LEADING_BYTE_ASCII): Likewise.
4019         (NUM_LEADING_BYTES): Likewise.
4020         (CHARSETP): Likewise.
4021         (CHARSET_BY_LEADING_BYTE): Likewise.
4022         (XCHARSET_LEADING_BYTE): Likewise.
4023         (XCHARSET_GRAPHIC): Likewise.
4024         (XCHARSET_COLUMNS): Likewise.
4025         (XCHARSET_DIMENSION): Likewise.
4026         (CHAR_CHARSET): Likewise.
4027         (CHAR_LEADING_BYTE): Likewise.
4028         (BREAKUP_CHAR): Likewise.
4029         (Vcharset_ascii): Likewise.
4030
4031         * buffer.h: Include multibyte.h unconditionally.
4032         (VALID_CHARPTR_P): Moved to multibyte.h.
4033         (ASSERT_VALID_CHARPTR): Likewise.
4034         (REAL_INC_CHARPTR): Likewise.
4035         (REAL_INC_CHARBYTIND): Likewise.
4036         (REAL_DEC_CHARPTR): Likewise.
4037         (INC_CHARPTR): Likewise.
4038         (INC_CHARBYTIND): Likewise.
4039         (DEC_CHARPTR): Likewise.
4040         (VALIDATE_CHARPTR_BACKWARD): Likewise.
4041         (VALIDATE_CHARPTR_FORWARD): Likewise.
4042         (charptr_n_addr): Likewise.
4043         (MAX_EMCHAR_LEN): Moved to mb-*.h.
4044         (simple_charptr_emchar): Moved to multibyte.h.
4045         (simple_set_charptr_emchar): Likewise.
4046         (simple_charptr_copy_char): Likewise.
4047         (non_ascii_charptr_emchar): Likewise.
4048         (non_ascii_set_charptr_emchar): Likewise.
4049         (non_ascii_charptr_copy_char): Likewise.
4050         (charptr_emchar): Likewise.
4051         (set_charptr_emchar): Likewise.
4052         (charptr_copy_char): Likewise.
4053         (charptr_emchar_n): Likewise.
4054         (Charset_ID): Moved to char-1byte.h.
4055         (Vcharset_ascii): Likewise.
4056         (CHAR_CHARSET): Likewise.
4057         (CHAR_LEADING_BYTE): Likewise.
4058         (LEADING_BYTE_ASCII): Likewise.
4059         (NUM_LEADING_BYTES): Likewise.
4060         (MIN_LEADING_BYTE): Likewise.
4061         (CHARSETP): Likewise.
4062         (CHARSET_BY_LEADING_BYTE): Likewise.
4063         (XCHARSET_LEADING_BYTE): Likewise.
4064         (XCHARSET_GRAPHIC): Likewise.
4065         (XCHARSET_COLUMNS): Likewise.
4066         (XCHARSET_DIMENSION): Likewise.
4067         (BREAKUP_CHAR): Likewise.
4068
4069 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4070
4071         * character.h: Add document about interface for characters.
4072
4073         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
4074         (MAKE_CHAR): Delete comment about
4075         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
4076         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
4077         (BREAKUP_CHAR): Modify name of arguments.
4078         (CHAR_CHARSET): Modify name of argument.
4079
4080         * buffer.h: Delete document about Emchar accessors.
4081
4082 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4083
4084         * character.h (CHAR_INTP): Moved from buffer.h
4085         (CHAR_OR_CHAR_INTP): Likewise.
4086         (XCHAR_OR_CHAR_INT): Likewise.
4087         (CHECK_CHAR_COERCE_INT): Likewise.
4088
4089         * buffer.h (CHAR_INTP): Moved to character.h
4090         (CHAR_OR_CHAR_INTP): Likewise.
4091         (XCHAR_OR_CHAR_INT): Likewise.
4092         (CHECK_CHAR_COERCE_INT): Likewise.
4093
4094 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4095
4096         * character.h:
4097         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
4098         - Include char-1byte.h, char-lb.h or char-ucs.h.
4099
4100         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
4101
4102         * buffer.h: Include character unconditionally.
4103         (valid_char_p): Moved to char-*.h.
4104         (non_ascii_valid_char_p): Moved to char-lb.h.
4105
4106         * char-1byte.h, char-lb.h, char-ucs.h: New files.
4107
4108 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4109
4110         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
4111         in UTF-2000 because it is not ported yet and not to use
4112         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
4113         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
4114         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
4115
4116         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
4117         (CHAR_ASCII_P): Moved from character.h.
4118
4119         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
4120         (CHAR_ASCII_P): Likewise.
4121         (CHAR_FIELD1_MASK): Deleted.
4122         (CHAR_FIELD2_MASK): Deleted.
4123         (CHAR_FIELD3_MASK): Deleted.
4124         (MAX_CHAR_BASIC_LATIN): New macro.
4125         (CHAR_FIELD1): Deleted.
4126         (CHAR_FIELD2_INTERNAL): Deleted.
4127         (CHAR_FIELD3_INTERNAL): Deleted.
4128         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
4129         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
4130         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
4131         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
4132         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
4133         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
4134         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
4135         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
4136         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
4137         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
4138         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
4139         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
4140         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
4141         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
4142         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
4143         (MIN_CHAR_COMPOSITION): Deleted.
4144         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
4145         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
4146
4147 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
4148
4149         * buffer.h: Include mb-utf-8.h in UTF-2000.
4150
4151         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
4152
4153         * mb-utf-8.h: New file.
4154
4155 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
4156
4157         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
4158         instead of `int'.
4159
4160         * mule-charset.h, buffer.h (Charset_ID): New type.
4161
4162 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
4163
4164         * mule-canna.c (c2mu): Use `MAKE_CHAR',
4165         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
4166         instead of `MULE_CHAR_PRIVATE_OFFSET',
4167         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
4168         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
4169         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
4170
4171         * character.h (Vcharset_japanese_jisx0212): New variable
4172         definition.
4173
4174 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
4175
4176         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
4177         (charset_by_attributes): Delete array about direction.
4178         (latin_a_char_to_charset): New variable in UTF-2000.
4179         (latin_a_char_to_byte1): New variable in UTF-2000.
4180         (latin_a_char_to_byte2): New variable in UTF-2000.
4181         (Qucs_bmp): New variable.
4182         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
4183         `Bufbyte'.
4184         (next_allocated_2_byte_leading_byte): Likewise.
4185         (non_ascii_set_charptr_emchar): Likewise.
4186         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
4187         `CHARSET_TYPE_256X256' in UTF-2000; modify for
4188         `charset_by_attributes'.
4189         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
4190         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
4191         and `CHARSET_BY_LEADING_BYTE'.
4192         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
4193         `utf-2000-version' to `vars_of_mule_charset'.
4194         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
4195         define `leading-code-private-11' in UTF-2000; move setting of
4196         `utf-2000-version' from `syms_of_mule_charset'.
4197         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
4198         UTF-2000.
4199
4200         * character.h (Charset_ID): New type.
4201         (LEADING_BYTE_UCS_BMP): New macro.
4202         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
4203         (CHARSET_ID_OFFSET_94): New macro.
4204         (MIN_CHARSET_ID_PRIVATE_94): New macro.
4205         (MAX_CHARSET_ID_PRIVATE_94): New macro.
4206         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
4207         final-byte.
4208         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
4209         (LEADING_BYTE_LATIN_JISX0201): Likewise.
4210         (CHARSET_ID_OFFSET_96): New macro.
4211         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
4212         CHARSET_ID_OFFSET_96 and final-byte.
4213         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
4214         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
4215         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
4216         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
4217         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
4218         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
4219         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
4220         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
4221         (LEADING_BYTE_THAI_TIS620): Likewise.
4222         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
4223         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
4224         (CHARSET_ID_OFFSET_94x94): New macro.
4225         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
4226         CHARSET_ID_OFFSET_94x94 and final-byte.
4227         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
4228         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
4229         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
4230         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
4231         (LEADING_BYTE_CHINESE_GB2312): Likewise.
4232         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
4233         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
4234         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
4235         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
4236         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
4237         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
4238         (CHARSET_TYPE_128X128): New macro.
4239         (CHARSET_TYPE_256X256): New macro.
4240         (XCHARSET_PRIVATE_P): Delete unconditionally.
4241         (charset_by_attributes): Delete array about direction.
4242         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
4243         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
4244         (MIN_CHAR_94): New macro.
4245         (MAX_CHAR_94): New macro.
4246         (MIN_CHAR_96): New macro.
4247         (MAX_CHAR_96): New macro.
4248         (MIN_CHAR_94x94): New macro.
4249         (MAX_CHAR_94x94): New macro.
4250         (MIN_CHAR_96x96): New macro.
4251         (MAX_CHAR_96x96): New macro.
4252         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
4253         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
4254         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
4255         - 32)'.
4256         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
4257         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
4258         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
4259         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
4260         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
4261         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
4262         `XCHARSET_LEADING_BYTE' to make code-point.
4263         (latin_a_char_to_charset): New variable.
4264         (latin_a_char_to_byte1): New variable.
4265         (latin_a_char_to_byte2): New variable.
4266         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
4267         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
4268         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
4269
4270         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
4271         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
4272         (find_charsets_in_emchar_string): Likewise.
4273         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
4274
4275         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
4276         `int'.
4277         (decode_coding_iso2022): Likewise.
4278
4279         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
4280         of `unsigned char'.
4281
4282         * redisplay.c (redisplay_text_width_emchar_string): Use
4283         `Charset_ID' instead of `unsigned char'.
4284         (redisplay_frame_text_width_string): Likewise.
4285
4286         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
4287         `unsigned char'.
4288
4289         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
4290         instead of `unsigned char'.
4291         (face_cachel_charset_font_metric_info): Likewise.
4292
4293         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
4294         (get_non_ascii_char_table_value): Likewise.
4295         (get_char_table): Likewise.
4296         (put_char_table): Likewise.
4297         (map_over_other_charset): Likewise.
4298         (map_char_table): Likewise.
4299
4300         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
4301         instead of `unsigned char'.
4302
4303 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
4304
4305         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
4306         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
4307
4308         * mule-charset.c (leading_code_private_11): Don't define in
4309         UTF-2000.
4310
4311         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
4312         in UTF-2000 because it is not ported yet and not to use
4313         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
4314
4315 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
4316
4317         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
4318
4319 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4320
4321         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
4322         in UTF-2000.
4323
4324         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
4325         of unsigned char to store leading-byte.
4326
4327         * chartab.c (get_non_ascii_char_table_value): Don't use
4328         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
4329
4330         * file-coding.c (encode_coding_big5): Delete bogus implementation
4331         in UTF2000.
4332
4333         * character.h (LEADING_BYTE_*): Delete definition for
4334         non-UTF-2000.
4335         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
4336         (LEADING_BYTE_PREFIX_P): Deleted.
4337         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
4338         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
4339         (BUFBYTE_LEADING_BYTE_P): Deleted.
4340         (CHARSET_PRIVATE_P): Deleted unconditionally.
4341         (rep_bytes_by_first_byte): Deleted unconditionally.
4342         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
4343         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
4344         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
4345         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
4346         (CHAR_FIELD2): Deleted.
4347         (CHAR_FIELD3): Deleted.
4348         (MAKE_CHAR): Delete definition for non-UTF-2000.
4349         (BREAKUP_CHAR_1_UNSAFE): Deleted.
4350         (breakup_char_1): New implementation.
4351         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
4352         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
4353
4354 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4355
4356         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
4357         condition.
4358
4359 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4360
4361         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
4362         (CHARSET_PRIVATE_P): Likewise.
4363         (XCHARSET_PRIVATE_P): Likewise.
4364         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
4365
4366         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
4367         UTF2000.
4368         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
4369
4370 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4371
4372         * character.h (LEADING_BYTE_*): Changed in UTF2000.
4373         (NUM_LEADING_BYTES): Changed from 128 to 256.
4374         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
4375         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
4376         UTF2000.
4377         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
4378
4379         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
4380         UTF2000.
4381         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
4382         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
4383         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
4384         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
4385         (Qchinese_cns11643_3): New variable in UTF2000.
4386         (Qchinese_cns11643_4): New variable in UTF2000.
4387         (Qchinese_cns11643_5): New variable in UTF2000.
4388         (Qchinese_cns11643_6): New variable in UTF2000.
4389         (Qchinese_cns11643_7): New variable in UTF2000.
4390         (syms_of_mule_charset): Define `chinese-cns11643-3',
4391         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4392         and `chinese-cns11643-7' in UTF2000.
4393         (vars_of_mule_charset): Initialize
4394         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
4395         + 1 in UTF2000.
4396         (complex_vars_of_mule_charset): Setup charset
4397         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
4398         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
4399
4400 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4401
4402         * mule-charset.c: Move setting for `leading-code-private-11' from
4403         `syms_of_mule_charset' to `vars_of_mule_charset'.
4404
4405 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4406
4407         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
4408         and `NUM_LEADING_BYTES' in assert.
4409
4410 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4411
4412         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
4413         instead of 128.
4414         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
4415         `NUM_LEADING_BYTES' instead of 128.
4416
4417 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4418
4419         * mule-charset.h (charset_by_leading_byte): Use
4420         `NUM_LEADING_BYTES' instead of 128.
4421         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
4422
4423         * mule-charset.c (charset_by_leading_byte): Use
4424         `NUM_LEADING_BYTES' instead of 128.
4425         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
4426
4427         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
4428         128.
4429
4430 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
4431
4432         * mule-charset.c (syms_of_mule_charset): Update to
4433         0.4 (Shin-Imamiya).
4434
4435 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
4436
4437         * file-coding.c (encode_coding_sjis): New implementation for
4438         UTF2000.  (decode_coding_sjis): Ditto.
4439
4440 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4441
4442         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
4443         Don't define in UTF2000.
4444
4445         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
4446         defined.
4447
4448         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4449         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
4450         MULE.
4451
4452 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4453
4454         * config.h.in (CHAR_IS_UCS4): New macro.
4455
4456         * mule-charset.c (rep_bytes_by_first_byte): Modify for
4457         conventional MULE representation.
4458         (syms_of_mule_charset): Update to 0.3 (Imamiya).
4459
4460         * mule-charset.h: Reverted to original.
4461
4462         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4463         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
4464         "mule-charset.h" if CHAR_IS_UCS4 is defined.
4465
4466         * character.h: New file.
4467
4468         * file-coding.c (Fmake_coding_system): Set 1 to
4469         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
4470         defined.
4471         (encode_coding_no_conversion): New implementation for UTF2000.
4472
4473         * file-coding.h (struct Lisp_Coding_System): Add new member
4474         `fixed.size'.
4475
4476 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
4477
4478         * file-coding.c (decode_coding_iso2022): Code-point arguments of
4479         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
4480         (encode_coding_iso2022): New implementation for UTF2000.
4481
4482 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4483
4484         * mule-canna.c (c2mu): New implementation for UTF2000.
4485         (m2c): Likewise.
4486
4487 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4488
4489         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
4490
4491 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4492
4493         * file-coding.c (reset_encoding_stream): Set 0 to
4494         `str->iso2022.current_char_boundary' in UTF2000.
4495         (encode_utf8): Don't define in UTF2000.
4496         (encode_coding_utf8): New implementation for UTF-8 representation
4497         of UTF2000.
4498         (complex_vars_of_file_coding): Define coding-system `utf-8'.
4499
4500 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4501
4502         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
4503
4504         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
4505         UTF2000.
4506         (REP_BYTES_BY_FIRST_BYTE): Likewise.
4507
4508         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
4509
4510         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
4511         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
4512         as UTF-8 in UTF2000.
4513         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
4514         (non_ascii_valid_char_p): Don't define in UTF2000.
4515         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
4516         (Lstream_get_emchar_1): Likewise.
4517         (utf-2000-version): New variable in UTF2000.
4518
4519         * lread.c (read_escape): Add new reader `u'.
4520
4521         * insdel.c (three_to_one_table): Don't define in UTF2000.
4522         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
4523         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4524         UTF2000.
4525         (bytind_to_bufpos_func): Likewise.
4526         (buffer_mule_signal_inserted_region): Likewise.
4527         (vars_of_insdel): Don't initialize `three_to_one_table'.
4528         (init_buffer_text): Use `buf->text->mule_size' instead of
4529         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4530         UTF2000.
4531
4532         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
4533         UTF-8 representation in UTF2000.
4534         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
4535         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
4536         (decode_coding_iso2022): Don't define local variable `lb' in
4537         UTF2000; don't use LEADING_BYTE in UTF2000; use
4538         `DECODE_ADD_UCS_CHAR' in UTF2000.
4539         (convert_to_external_format): Decode as UTF-8 in UTF2000.
4540
4541         * config.h.in (UTF2000): New macro.
4542
4543         * buffer.h (struct buffer_text): Add new member `mule_size' and
4544         don't add `mule_shifter' and `mule_three_p' in UTF2000.
4545         (valid_char_p): Return always 1 in UTF2000.
4546         (MAX_EMCHAR_LEN): 6 in UTF2000.
4547         (three_to_one_table): Don't define in UTF2000.
4548         (real_bufpos_to_bytind): Modify for UTF-8 representation in
4549         UTF2000.
4550         (real_bytind_to_bufpos): Likewise.
4551
4552         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
4553
4554 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4555
4556         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
4557         representation change.
4558         (Vutf_2000_version): New variable.
4559         (leading_code_private_11): New variable.
4560         (syms_of_mule_charset): Add new variables `utf-2000-version' and
4561         `leading-code-private-11'.
4562
4563         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
4564         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
4565         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
4566         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
4567         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
4568         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
4569         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
4570         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
4571         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
4572         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
4573         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
4574         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
4575         (MIN_CHAR_GREEK): New macro.
4576         (MAX_CHAR_GREEK): New macro.
4577         (MIN_CHAR_CYRILLIC): New macro.
4578         (MAX_CHAR_CYRILLIC): New macro.
4579         (MIN_CHAR_HEBREW): New macro.
4580         (MAX_CHAR_HEBREW): New macro.
4581         (MIN_CHAR_THAI): New macro.
4582         (MAX_CHAR_THAI): New macro.
4583         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
4584         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
4585         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
4586         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
4587         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
4588         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
4589         (CHAR_FIELD2): New inline function.
4590         (CHAR_FIELD3): New inline function.
4591         (MULE_CHAR_PRIVATE_OFFSET): New macro.
4592         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
4593         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
4594         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
4595         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
4596         (MIN_CHAR_COMPOSITION): Likewise.
4597         (CHAR_LEADING_BYTE): Modified for character representation change.
4598         (MAKE_CHAR): Likewise.
4599
4600         * lisp.h (Vcharset_latin_iso8859_1): New variable.
4601         (Vcharset_greek_iso8859_7): Likewise.
4602         (Vcharset_cyrillic_iso8859_5): Likewise.
4603         (Vcharset_hebrew_iso8859_8): Likewise.
4604         (Vcharset_thai_tis620): Likewise.
4605         (Vcharset_katakana_jisx0201): Likewise.
4606
4607 2002-11-02  Stephen J. Turnbull  <stephen@xemacs.org>
4608
4609         * XEmacs 21.4.10 "Military Intelligence" is released.
4610
4611 2002-10-17  Raymond Toy  <toy@rtp.ericsson.se>
4612
4613         * nas.c: Update for NAS 1.6 and later, from Jon Trulson.  Was
4614         using the NAS private array SoundFileInfo that no longer exists in
4615         NAS 1.6 and later.  Preserve backward compatibility with NAS 1.5a
4616         and earlier.  This is broken for some versions between 1.5a and
4617         1.5f.
4618
4619 2002-10-10  Stephen J. Turnbull  <stephen@xemacs.org>
4620
4621         * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
4622
4623         * emacs.c (shut_down_emacs): Improve crash message.
4624
4625 2002-10-09  Stephen J. Turnbull  <stephen@xemacs.org>
4626
4627         * file-coding.c (determine_real_coding_system): Check for coding
4628         cookie in first LINES_TO_CHECK lines (currently 2).  Cater to
4629         shebangs and Python PEP 263.
4630
4631 2002-10-08  Andy Piper  <andy@xemacs.org>
4632
4633         * glyphs-widget.c (layout_query_geometry): only resize dynamically
4634         if static sizes haven't been set.
4635
4636 2002-08-30  Mike Alexander  <mta@arbortext.com>
4637
4638         * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
4639         to close a socket.
4640
4641 2002-10-03  Stephen J. Turnbull  <stephen@xemacs.org>
4642
4643         * callproc.c (child_setup): 21.4 doesn't have retry_close.
4644
4645 2002-09-20  Mike Sperber <mike@xemacs.org>
4646
4647         (This partially gets back my patch from 2002-07-20 without the
4648         bug.)
4649         * callproc.c (child_setup): Remove Ben's comment noting confusion
4650         over the file descriptors >= 3: close_process_descs() doesn't
4651         close those.  Fix fd range to go up to MAXDESC-1 instead of 64.
4652         * process-unix.c (unix_create_process): Call
4653         begin_dont_check_for_quit to inhibit unwanted interaction (and
4654         thus breaking of X event synchronicity) in the child.
4655
4656 2002-09-26  Golubev I. N.  <gin@mo.msk.ru>
4657
4658         * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
4659         widget.
4660
4661 2002-08-20  Ben Sigelman  <bhsigelm@cs.brown.edu>
4662
4663         * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
4664         instead of while(XtAppPending()&XtIMXEvent).  Upon a gdm logout,
4665         the xemacs process did not exit, but looped infinitely here.  This
4666         fixes that problem.
4667
4668 2002-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
4669
4670         * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
4671         (find_context): Improve comments.
4672
4673         * regex.c (re_compile_fastmap):  Gratuitous #ifdef comment fixes.
4674         (re_match_2): An XCHAR_TABLE operation was missing.
4675
4676         Many of the following changes were inspired by Andy Piper's (now
4677         obsolete) patch to make syntax-table text property lookup optional.
4678
4679         [Documentation]
4680
4681         * syntax.h (top level): Document semantics of syntax flags.
4682         * syntax.c (comstr_start, Fforward_comment): Improve comments.
4683         * syntax.c, syntax.h (top level): Document syntax cache better in
4684         comments.
4685
4686         [Instrument syntax caching (temporary change)]
4687
4688         * syntax.h (enum syntax_cache_statistics_functions, struct
4689         syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
4690         SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
4691         * syntax.c (scan_words, Fforward_comment, scan_lists,
4692         Fbackward_prefix_characters):
4693         * font-lock.c (find_context):
4694         Use them to instrument syntax caching. 
4695         * syntax.c (struct syntax_cache_statistics, scs_statistics,
4696         syntax_cache_statistics_function_names): New type and variables.
4697         * syntax.c (update_syntax_cache): Update and report statistics.
4698
4699         [Major syntax cache optimizations]
4700
4701         syntax.c (lookup_syntax_properties): Default off.
4702
4703         * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
4704         * syntax.c (update_syntax_cache):
4705         Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
4706
4707         [Minor syntax cache optimizations and code clarifications]
4708
4709         * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
4710         SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
4711         SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
4712         SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
4713         SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
4714         (Code clarification.)
4715
4716         * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
4717         scan_lists): Compute code from syncode, use Boolean macros instead
4718         of redundant masking operations.  (Code clarification; any decent
4719         compiler can do this optimization.)
4720
4721         * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
4722         for clarity.
4723
4724         * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
4725         PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
4726         use F*_single_property_change instead of F*_extent_change.
4727         Currently F*_single_property_change is _much_ less efficient.
4728
4729         * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
4730         * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT):  Initialize
4731         syntax_cache.object properly, don't leave Qt or Qnil.
4732         (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
4733         * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
4734         tests for Qt or Qnil.
4735
4736 2002-09-21  Stephen J. Turnbull  <stephen@xemacs.org>
4737
4738         * redisplay.c (point_in_line_start_cache): 
4739         * extents.c (print_extent_1):
4740         Fix warnings.
4741
4742         * extents.c (Fset_extent_property): Document `syntax-table' property.
4743
4744         * extents.h (Fnext_single_property_change): EXFUN it.
4745
4746 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
4747
4748         * search.c (clear_unused_search_regs): New static function.
4749         (search_buffer): 
4750         (simple_search): 
4751         (boyer_moore):
4752         Use it.  Fixes "stale match data" bug reported by Martin Stjernholm.
4753         Minor clarifications in comments.
4754
4755         * regex.c (re_match_2_internal): Ensure no stale submatches.
4756
4757 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
4758
4759         * event-Xt.c (enqueue_focus_event): Add missing prototype.
4760
4761 2002-08-29  Jerry James  <james@xemacs.org>
4762
4763         * lisp.h: structrures -> structures.
4764
4765 2002-06-03  Andy Piper  <andy@xemacs.org>
4766
4767         * frame.c (frame_conversion_internal): add conversion appropriate
4768         for setting frame dimensions in pixels.
4769
4770         * console.h (struct console_methods): add device-specific widget
4771         layout functions.
4772
4773         * emacs.c (main_1): initialize glyph vars.
4774
4775         * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
4776         (handle_focus_event_2): new function. Allow focus to
4777         be set to a particular window and widget.
4778         (enqueue_focus_event): new function. Create a
4779         synthetic focus event.
4780         (emacs_Xt_handle_magic_event): call
4781         handle_focus_event_2.
4782
4783         * frame.c (Fset_frame_pixel_height): new function. Allow
4784         pixel-based sizing. Does the right thing on character-oriented
4785         displays.
4786         (Fset_frame_pixel_width): ditto.
4787         (Fset_frame_pixel_size): ditto.
4788         (syms_of_frame): declare.
4789
4790         * general-slots.h: add :vertically-justify and
4791         :horizontally-justify.
4792
4793         * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
4794         (mswindows_widget_border_width): new function.
4795         (mswindows_combo_box_instantiate): set border widths.
4796         (console_type_create_glyphs_mswindows): declare.
4797
4798         * glyphs-widget.c:
4799         (check_valid_justification): allow vertical and horizontal
4800         justification.
4801         (widget_border_width): new function. Call device methods.
4802         (widget_instance_border_width): ditto.
4803         (logical_unit_height): new function. Determine the height of a
4804         logical-unit. Logical units are intended to provide grid-like
4805         layout for subcontrols in a layout. If the layout is
4806         :vertically-justify top then subcontrols will be positioned on
4807         logical-unit boundaries, thus allowing adjacent subcontrols to
4808         line up.
4809         (widget_logical_unit_height): ditto for widgets.
4810         (redisplay_widget): misc cleanup.
4811         (widget_spacing): new function. Call device specific
4812         methods. Intended to be the default gap between adjacent widgets.
4813         (widget_query_geometry): use new spacing functions to determine
4814         appropriate geometry.
4815         (initialize_widget_image_instance): initialize horizontal and
4816         vertical justification.
4817         (widget_instantiate): use logica-units where appropriate for
4818         sizing large widgets.
4819         (button_query_geometry): use widget_instance_border_width.
4820         (tree_view_query_geometry): ditto.
4821         (tab_control_query_geometry): ditto.
4822         (edit_field_query_geometry): new function.
4823         (layout_update): pick up :justify, :horizontally-justify and
4824         :vertically-justify none of which worked previously. :justify is
4825         used as a fallback for both horizontal and vertical justification.
4826         (layout_query_geometry): use logical units to size appropriately.
4827         (layout_layout): ditto.
4828         (Fwidget_logical_to_character_width): new function. Allow users to
4829         convert from logical units to characters so that frame sizes can
4830         be set appropriately.
4831         (Fwidget_logical_to_character_height): ditto.
4832         (syms_of_glyphs_widget): declare.
4833         (image_instantiator_edit_fields): add edit_field_query_geometry.
4834         (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
4835         :horizontally-justify.
4836         (specifier_vars_of_glyphs_widget): new function. Declare
4837         Vwidget_border_width which is not yet used.
4838
4839         * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
4840         (x_widget_border_width): new function.
4841         (x_widget_instantiate): create a sensible name for widgets.
4842         (console_type_create_glyphs_x): declare x_widget_border_width.
4843
4844         * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
4845         (struct Lisp_Image_Instance): add :vertically-justify and
4846         :horizontally-justify.
4847         (LAYOUT_JUSTIFY_TOP): new.
4848         (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
4849         (ROUND_UP): new macro. Round argument up to next integral
4850         interval.
4851
4852         * redisplay-output.c (redisplay_output_layout): misc formatting.
4853
4854         * symsinit.h: declare specifier_vars_of_glyphs_widget.
4855
4856 2002-08-23  Stephen J. Turnbull  <stephen@xemacs.org>
4857
4858         * XEmacs 21.4.9 "Informed Management" is released.
4859
4860 2002-08-19  Andy Piper  <andy@xemacs.org>
4861
4862         * fileio.c (Ffile_truename): on cygwin using win32 normalize to
4863         win32 format.
4864
4865         * realpath.c (xrealpath): normalize drive spec also so that dir
4866         sep chars are not mixed on cygwin.
4867
4868 2002-08-06  Jerry James  <james@xemacs.org>
4869
4870         * window.c (Fsplit_window): Count only half of the divider width
4871         against the left window when splitting horizontally. 
4872
4873 2002-06-24  Andy Piper  <andy@xemacs.org>
4874
4875         * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
4876         toolbar was cleared.
4877
4878         * toolbar-msw.c (mswindows_clear_frame_toolbars): new
4879         function. Split out from mswindows_output_frame_toolbars.
4880         (mswindows_output_frame_toolbars): move clear pieces to
4881         mswindows_output_frame_toolbars.
4882
4883         * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
4884         out from gtk_output_frame_toolbars.
4885         (gtk_output_frame_toolbars): move clear pieces to
4886         gtk_clear_frame_toolbars.
4887
4888         * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
4889         the frame is cleared. How this ever worked before is a mystery.
4890         (x_output_frame_toolbars): Only output toolbars.
4891         (x_clear_frame_toolbars): new. Clear previous toolbar locations.
4892
4893         * gutter.c (update_gutter_geometry):
4894         Mark frame layout changed.
4895         (update_frame_gutter_geometry, update_frame_gutters):
4896         Respect frame_layout_changed.
4897
4898         * console.h (struct console_methods): add
4899         clear_frame_toolbars_method.
4900
4901         * redisplay.c (redisplay_frame): call
4902         update_frame_toolbars_geometry and re-order update_frame_toolbars.
4903
4904         * toolbar.h: declare update_frame_toolbars_geometry.
4905
4906         * toolbar.c (update_frame_toolbars_geometry): new function. Split
4907         out from update_frame_toolbars.  Call clear_frame_toolbars.
4908         (update_frame_toolbars): only output, do not change geometry.
4909
4910         * redisplay.c: add frame_layout_changed.
4911
4912         * redisplay.h: add frame_layout_changed.
4913         (CLASS_RESET_CHANGED_FLAGS): set it.
4914         (GLOBAL_RESET_CHANGED_FLAGS): ditto.
4915         (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
4916         (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
4917
4918         * device.h (struct device): add frame_layout_changed.
4919         (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
4920
4921         * frame.h (struct frame): add frame_layout_changed.
4922         (MARK_FRAME_LAYOUT_CHANGED): new.
4923
4924 2002-06-30  Mike Alexander  <mta@arbortext.com>
4925
4926         * event-msw.c (mswindows_need_event): Don't wait for a new message
4927         if the queue is not empty.  Suggested by Paul Moore.
4928
4929 2002-06-12  Andy Piper  <andy@xemacs.org>
4930
4931         * frame-msw.c (msprinter_init_frame_3): calculate the frame size
4932         for printing on accurately.
4933
4934 2002-06-09  Rick Rankin <rick_rankin@yahoo.com>
4935
4936         * event-msw.c (mswindows_wnd_proc): Add a handler for the
4937         WM_ACTIVATE message. Make sure that the frame is visible if the
4938         window is visible. This seemss to fix the problem where XEmacs
4939         appears to freeze after switching desktops with certain virtual
4940         window managers.
4941         (debug_output_mswin_message): Added code to output message
4942         parameters for WM_WINDOWPOSCHANGED, 
4943         WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
4944
4945 2002-05-25  Andy Piper  <andy@xemacs.org>
4946
4947         * select-x.c (vars_of_select_x): Fix docstring of
4948         x-selection-strict-motif-ownership
4949
4950 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
4951
4952         * keymap.c (get_keymap):
4953         Add comment about do_autoload GCPROs own args.
4954
4955 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
4956
4957         * bytecode.c (execute_optimized_program): check_opcode ifdef
4958         ERROR_CHECK_BYTE_CODE.
4959
4960 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
4961
4962         Thanks to Ben Wing and Michael Sperber.
4963
4964         * eval.c (Fcommand_execute):
4965         (Feval):
4966         (Ffuncall):
4967         (Fmacroexpand_internal):
4968         (function_argcount):
4969         callint.c (Fcall_interactively):
4970         Add comment about do_autoload GCPROs own args.
4971
4972         * (do_autoload): GCPRO both args as well as local Lisp_Object.
4973
4974         * eval.c (Ffuncall): Extra braces to placate GCC.
4975
4976 2002-08-10  Stephen J. Turnbull  <stephen@xemacs.org>
4977
4978         * backtrace.h (grow_specpdl):
4979         (SPECPDL_RESERVE):
4980         * EmacsFrame.c (EmacsFrameSetValues):
4981         * eval.c (grow_specpdl):
4982         * ExternalShell.c (hack_event_masks_1):
4983         * glyphs-x.c (convert_EImage_to_XImage): 
4984         (x_finalize_image_instance):
4985         * ralloc.c (page_size):
4986         (r_alloc_sbrk):
4987         * xgccache.c (gc_cache_hash):
4988         Fix unsigned comparison warnings.
4989
4990 2002-07-29  Jerry James  <james@xemacs.org>
4991
4992         * lread.c (locate_file): Any nonnegative return value indicates
4993         success if MODE is nonnegative.
4994
4995 2002-08-03  Brian A Palmer  <bpalmer@rescomp.Stanford.EDU>
4996
4997         * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
4998         argument. 
4999
5000 2002-07-17  Stephen J. Turnbull  <stephen@xemacs.org>
5001
5002         * process-unix.c (unix_send_process): #ifdef the coding_stream member.
5003
5004         * dumper.c (pdump_get_indirect_count):
5005         (pdump_scan_by_alignment):
5006         (pdump_dump_root_struct_ptrs):
5007         (pdump_dump_rtables):
5008         (pdump_dump_root_objects):
5009         (pdump):
5010         * nas.c (WaveOpenDataForReading):
5011         * fns.c (print_bit_vector):
5012         * font-lock.c (SINGLE_SYNTAX_STYLE):
5013         * glyphs.c (check_for_ignored_expose):
5014         (find_matching_subwindow):
5015         * glyphs-eimage.c:
5016         * imgproc.c (get_histogram):
5017         * redisplay.c (point_in_line_start_cache):
5018         * redisplay-output.c (redisplay_unmap_subwindows):
5019         * symbols.c (defsymbol_massage_name_1):
5020         (defkeyword_massage_name):
5021         (deferror_massage_name_and_message):
5022         * redisplay-x.c (x_output_string): 
5023         * emacs.c (run_temacs_argv_size, run_temacs_args_size):
5024         * frame.h (struct frame):
5025         * filelock.c (current_lock_owner):
5026         * doprnt.c (emacs_doprnt_1):
5027         * lisp.h (struct Lisp_Bit_Vector):
5028         (DO_REALLOC):
5029         Fix warnings.
5030
5031 2002-02-13  Ben Wing  <ben@xemacs.org>
5032
5033         * event-stream.c (reset_key_echo):
5034         * event-stream.c (reset_this_command_keys):
5035         * event-stream.c (execute_command_event):
5036         If console is dead as a result of C-x 5 0, then post-command stuff
5037         needs to be careful and do only non-console-specific stuff.
5038
5039 2002-07-01  Mike Sperber <mike@xemacs.org>
5040
5041         * process-unix.c (unix_send_process): Mark coding_outstream as
5042         non-open upon SIGPIPE.
5043
5044         * event-stream.c (Fnext_event): Reorder switch cases to something
5045         that makes sense.
5046
5047 2001-08-13  Dmitry Astapov  <adept@umc.com.ua>
5048
5049         * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
5050         Don't bogusly reinitialize ascii_character property.
5051
5052 2002-07-08  Mike Sperber <mike@xemacs.org>
5053
5054         * process.c (Fstart_process_internal): Do error checking before we
5055         fork off the child, so the child can't muck with the state of the
5056         parent.
5057
5058 2002-07-08  Mike Sperber <mike@xemacs.org>
5059
5060         * ralloc.c (init_ralloc): Allocate properly for pdump.
5061
5062 2002-06-12  Andy Piper  <andy@xemacs.org>
5063
5064         * glyphs.c (query_string_geometry): check the string.
5065
5066         * glyphs-widget.c (widget_logical_unit_height): cope with nil
5067         widget names.
5068
5069 2002-06-17  Jerry James  <james@xemacs.org>
5070
5071         * sysdll.c: Remove RTLD_GLOBAL initialization.
5072         * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
5073
5074 2002-06-25  Stephen J. Turnbull  <stephen@xemacs.org>
5075
5076         * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
5077
5078 2002-05-16  Mathias Grimmberger  <mgri@zaphod.sax.de>
5079
5080         * sysdep.c (sys_rename): Make sys_rename work for the case where
5081         Windows rename sets errno to EACCES if target file exists.
5082
5083 2002-05-21  Jonathan Harris  <jonathan@xemacs.org>
5084
5085         * device-msw.c (mswindows_handle_page_setup_dialog_box):
5086         Fix detection of metric units to work on Win95
5087
5088 2002-05-21  Stephen J. Turnbull  <stephen@xemacs.org>
5089
5090         * syswindows.h: #define LOCALE_RETURN_NUMBER.  Why, I don't know.
5091
5092 2002-04-25  Andy Piper  <andy@xemacs.org>
5093
5094         * redisplay.c (create_text_block): Remove extra comment trailer.
5095
5096 2002-04-24  Andy Piper  <andy@xemacs.org>
5097
5098         * redisplay.c (create_text_block): Don't actually add propagation
5099         data if the line ends after we have added a glyph.
5100
5101 2002-04-22  Andy Piper  <andy@xemacs.org>
5102
5103         * extents.c (extent_fragment_update): check for glyphs we have
5104         previously displayed.
5105         * extents.c (print_extent_1): warning removal.
5106         * extents.h: change prototype.
5107         * redisplay-output.c (redisplay_normalize_glyph_area): calculate
5108         widths correctly for wide glyphs.
5109         * redisplay.c (position_redisplay_data_type): add end_glyph_width.
5110         * redisplay.c (prop_type): add PROP_GLYPH.
5111         * redisplay.c (struct prop_block): add glyph type
5112         * redisplay.c (add_glyph_rune): when adding part of a glyph add it
5113         to the propagation data.
5114         * redisplay.c (create_text_block): if there is a glyph in the
5115         propagation data use it to salt extent_fragment_update.
5116         * redisplay.c (create_string_text_block): ditto.
5117
5118 2002-04-13  Nix  <nix@esperi.demon.co.uk>
5119
5120         * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
5121         * redisplay-output.c (compare_runes): Compare them.
5122         * redisplay.c: Update copyright date.
5123         * redisplay.c (pos_data): Add need_baseline_computation field.
5124         * redisplay.c (add_glyph_rune): Update ascent, descent, and
5125         need_baseline_computation; zero yoffset. Set max_pixmap_height
5126         for all pixmaps, not just automatically positioned ones.
5127         * redisplay.c (calculate_yoffset): New, compute yoffset values.
5128         * redisplay.c (calculate_baseline): New, compute textual baseline.
5129         * redisplay.c (add_glyph_rune): Call them.
5130         * redisplay.c (create_text_block): Likewise.
5131         * redisplay.c (create_overlay_glyph_block): Likewise.
5132         * redisplay.c (add_margin_runes): Likewise.
5133         * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
5134
5135         * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
5136         * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
5137         * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
5138         * redisplay-msw.c (mswindows_output_string): Likewise.
5139         * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
5140         * redisplay-gtk.c (gtk_output_display_block): Likewise.
5141         * redisplay-x.c (x_output_display_block): Likewise.
5142
5143 2002-03-28  Ben Wing  <ben@xemacs.org>
5144
5145         * redisplay.c: Fixed bug in redisplay
5146         w.r.t. hscroll/truncation/continuation glyphs causing jumping up
5147         and down of the lines, since they're bigger than the line
5148         size. (It was seen most obviously when there's a horizontal scroll
5149         bar, e.g. do C-h a glyph or something like that.) The problem was
5150         that the glyph-contrib-p setting on glyphs was ignored even if it
5151         was set properly, which it wasn't until now.
5152
5153 2002-04-24  Andy Piper  <andy@xemacs.org>
5154
5155         * lisp.h (Dynarr_end): Fix definition.
5156
5157 2002-02-06  Adrian Aichner  <adrian@xemacs.org>
5158
5159         * redisplay.c (mark_redisplay): Remove call to
5160         update_frame_window_mirror.
5161
5162 2001-11-15  Andy Piper  <andy@xemacs.org>
5163
5164         * win32.c (Fmswindows_shell_execute): fix handling of URL's under
5165         cygwin (again).
5166
5167 2002-02-13  Andy Piper  <andy@xemacs.org>
5168
5169         * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
5170         we did in fact enqueue the XM_MAPFRAME event.
5171
5172 2002-01-15  Adrian Aichner  <adrian@xemacs.org>
5173
5174         * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
5175         to fix problem switching between virtual desktops under virtuawin
5176         virtual window manager.
5177
5178 2001-07-30  Adrian Aichner  <adrian@xemacs.org>
5179
5180         * event-msw.c: Typo fix.
5181         * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
5182         magic XM_MAPFRAME event has been sent.
5183
5184 2001-11-23  Andy Piper  <andy@xemacs.org>
5185
5186         * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
5187
5188 2001-11-21  Andy Piper  <andy@xemacs.org>
5189
5190         * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
5191         mouse events outside the frame.
5192
5193 2002-03-20  Andy Piper  <andy@xemacs.org>
5194
5195         * menubar-msw.c (mswindows_popup_menu): warning removal.
5196         * dialog-msw.c (dialog_popped_down): ditto.
5197
5198 2001-12-11  Andy Piper  <andy@xemacs.org>
5199
5200         * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
5201         * dialog-msw.c (mswindows_make_dialog_box_internal): set
5202         popup_up_p.
5203         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
5204         * menubar-msw.c (mswindows_handle_wm_command): ditto.
5205         * menubar-msw.c (mswindows_popup_menu): ditto.
5206
5207 2001-10-29  Andy Piper  <andy@xemacs.org>
5208
5209         * dialog-msw.c (handle_directory_dialog_box): quit if the user
5210         cancels.
5211
5212 2002-01-03  Andy Piper  <andy@xemacs.org>
5213
5214         * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
5215         letters.
5216         (xrealpath): ditto.
5217
5218 2002-03-29  Jonathan Harris  <jonathan@xemacs.org>
5219
5220         * device-msw.c (plist_get_margin): Add arg specifying mm or inches
5221         * device-msw.c (plist_set_margin): Fix multiplicand used for mm
5222         * device-msw.c (mswindows_handle_page_setup_dialog_box):
5223         Detect and handle case where machine is set up for metric units
5224
5225 2002-04-02  Andy Piper  <andy@xemacs.org>
5226
5227         * dired-msw.c (mswindows_get_files): 
5228         * nt.c (mswindows_stat): SetErrorMode() so that file errors are
5229         completely handled by XEmacs. Suggested by Thomas Vogler
5230         <mail@thomas-vogler.de>.
5231
5232 2001-11-14  Andy Piper  <andy@xemacs.org>
5233
5234         * nt.c (REG_ROOT): change registry key to XEmacs.
5235
5236 2002-04-27  Andy Piper  <andy@xemacs.org>
5237
5238         * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
5239
5240 2002-04-26  Andy Piper  <andy@xemacs.org>
5241
5242         * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
5243         behavior.
5244
5245 2002-03-14  Mike Alexander  <mta@arbortext.com>
5246
5247         * event-msw.c (mswindows_unwait_process): New, remove process from
5248         wait list
5249         * process-nt.c (nt_finalize_process_data): Call
5250         mswindows_unwait_process
5251         * console-msw.h: Declare mswindows_unwait_process
5252
5253 2002-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
5254
5255         * editfns.c (Fdecode_time):
5256         (Fformat_time_string):
5257         Check for invalid time.  Thanks to Nick Pakoulin <npak@ispras.ru>.
5258         (make_time): Warning elimination (change arg name).
5259
5260 2001-11-24  Andy Piper  <andy@xemacs.org>
5261
5262         * window.c (Fsplit_window): Doc return type.
5263
5264 2002-04-01  Andy Piper  <andy@xemacs.org>
5265
5266         * emacs.c (Fkill_emacs): Only output message box in interactive
5267         mode.
5268
5269 2002-04-26  Andy Piper  <andy@xemacs.org>
5270  
5271         * config.h.in: pull in 21.5.x change to stop alloca warnings under
5272         cygwin.
5273
5274 2002-03-18  Gregory Steuck  <greg-xemacs-patch@nest.cx>
5275
5276         * unexelf.c:  Use ELFSIZE or define from _LP64 to indicate a 64
5277         bit platform.
5278
5279 2002-05-09  Stephen J. Turnbull  <stephen@xemacs.org>
5280
5281         * XEmacs 21.4.8 "Honest Recruiter" is released.
5282
5283 2002-05-07  Nix  <nix@esperi.demon.co.uk>
5284
5285         Supersedes 2002-04-17 patch.
5286
5287         * process.h (PROCESS_LIVE_P): Use the process status as
5288         evidence of health, not the state of the input stream.
5289         (PROCESS_READABLE_P): Say if the process is readable
5290         from. (It may be dead nonetheless.)
5291         (CHECK_READABLE_PROCESS): Test for that condition.
5292
5293         * process.c (create_process): Use PROCESS_READABLE_P.
5294         (read_process_output, set_process_filter): Likewise.
5295
5296         * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
5297         (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
5298
5299         This code is #if 0'd, this is not the time to add new functions:
5300
5301         * process.c (Fprocess_readable_p): Report readability status.
5302         * process.c (Qprocess_readable_p): New, associated symbol...
5303         * process.c (syms_of_process): ... initialize it.
5304
5305 2002-05-04  Stephen J. Turnbull  <stephen@xemacs.org>
5306
5307         * XEmacs 21.4.7 "Economic Science" is released.
5308
5309 2002-04-17  Nix  <nix@esperi.demon.co.uk>
5310
5311         * process.h (PROCESS_LIVE_P): Use the process status as
5312         evidence of health, not the state of the input stream.
5313
5314 2002-04-30  Charles G. Waldman <cgw@xemacs.org>
5315
5316         * sysdep.c (sys_siglist): change "signum" to "signal"
5317
5318 2001-04-21  Martin Buchholz  <martin@xemacs.org>
5319
5320         * s/darwin.h: New file.
5321         Thanks to Greg Parker <gparker@cs.stanford.edu>.
5322         
5323 2002-04-23  Andreas Jaeger  <aj@suse.de>
5324
5325         * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
5326         which use lib64 for 64-bit libs.
5327         (START_FILES): Likewise.
5328
5329 2002-02-11  Mike Sperber  <mike@xemacs.org>
5330
5331         * device-x.c: 
5332         (x_IO_error_handler):
5333         (x_init_device): Temporarily keep device in static variable
5334         `device_being_initialized' so we can recover gracefully from
5335         internal XOpenDevice failure.  (XOpenDevice is documented to
5336         return NULL on failure, but sometimes calls the IO error handler
5337         instead.)
5338
5339 2002-01-31  John H. Palmieri  <palmieri@math.washington.edu>
5340
5341         * dired.c (Ffile_name_all_completions): Change documentation --
5342         remove reference to completion-ignored-extensions.
5343         * dired.c (vars_of_dired): Change documentation for
5344         completion-ignored-extensions -- remove reference to
5345         file-name-all-completions.
5346
5347 2002-03-06  Jerry James  <james@xemacs.org>
5348
5349         * emodules.c (emodules_load): Fix multiple loading of same module.
5350
5351 2002-01-25  Andrew Begel <abegel@cs.berkeley.edu>
5352         * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
5353         RTLD_LAZY to avoid incorrect symbol binding when using nested
5354         shared libraries on Solaris.
5355
5356 2002-02-12  Stephen J. Turnbull  <stephen@xemacs.org>
5357
5358         * fileio.c (Ffind_file_name_handler): Improve docstring.
5359
5360 2002-01-20  Stephen J. Turnbull  <stephen@xemacs.org>
5361
5362         * fns.c (Fmapconcat): Improve docstring.
5363
5364 2002-01-03  Eric Gillespie, Jr.  <epg@pretzelnet.org>
5365
5366         * device-gtk.c: Add prototype for
5367         emacs_gtk_selection_clear_event_handle.
5368         (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
5369         selection.  Setup signal handler for "selection_clear_event"
5370         (emacs_gtk_selection_clear_event_handle).
5371
5372         * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
5373         other applications owning the clipboard (based on
5374         x_handle_selection_clear).
5375
5376 2001-12-23  William M. Perry  <wmperry@gnu.org>
5377
5378         * menubar-gtk.c (gtk_popup_menu)  Add sanity checks, fix crash.
5379         
5380 2002-01-04  Martin Buchholz  <martin@xemacs.org>
5381
5382         * keymap.c (define_key_alternate_name): Parenthesize EQ.
5383
5384 2001-12-17  Stephen J. Turnbull  <stephen@xemacs.org>
5385
5386         * XEmacs 21.4.6 "Common Lisp" is released.
5387
5388 2001-12-16  Torsten Duwe  <duwe@caldera.de>
5389
5390         * search.c (Freplace_match): Add missing sub-expression functionality.
5391
5392         * buffer.c (decode_buffer): Add a check for pointer type to
5393         decode_buffer, before gcc's CSE optimization reorders a
5394         dereference in front of the allow_string test.
5395
5396 2001-11-16  Darryl Okahata  <darrylo@xemacs.org>
5397
5398         * window.c (window_loop): Fix bug that sometimes prevented
5399         window_loop() from iterating across multiple devices.  Also, at
5400         Ben's request, changed infloop-detecting code to abort() instead
5401         of silently terminating window_loop().
5402
5403 2001-11-21  Stephen J. Turnbull  <stephen@xemacs.org>
5404
5405         Based on analysis and patch by Simon Josefson <jas@extundo.com>.
5406         * editfns.c (make_time): New function.
5407         (Fencode_time): Use it instead of wasteful_word_to_lisp.
5408         * lisp.h (make_time): Prototype and comment it.
5409         * dired.c (wasteful_word_to_lisp): Deprecate.
5410         (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
5411
5412 2001-10-31  Kyle Jones  <kyle_jones@wonderworks.com>
5413
5414         * fileio.c (auto_save_1): Use current coding system, not
5415         escape-quoted.
5416
5417 2001-11-13  Ben Wing  <ben@xemacs.org>
5418
5419         * window.c:
5420         * window.c (window_truncation_on):
5421         * window.c (syms_of_window):
5422         truncate-partial-width-windows should respect the buffer being
5423         displayed, like other redisplay vars.
5424
5425 2001-11-13  Hirokazu FUKUI  <hfukui@sannet.ne.jp>
5426
5427         * event-stream.c (Fread_key_sequence): save current buffer.
5428
5429 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
5430
5431         * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
5432
5433 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
5434
5435         * alloc.c (lcrecord_stats): Add space for types defined in modules.
5436
5437 2001-10-26  Mike Alexander  <mta@arbortext.com>
5438
5439         * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
5440
5441 2001-10-25  Andy Piper  <andy@xemacs.org>
5442
5443         * ChangeLog:
5444         * dialog-msw.c (handle_directory_proc): new function.
5445          (handle_directory_dialog_box): new fucntion.
5446          (handle_file_dialog_box): use new directory dialog support.
5447          (mswindows_make_dialog_box_internal): ditto.
5448         * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
5449         handling.
5450         (mswindows_find_frame): make global.
5451         * fileio.c (Fexpand_file_name): build fix.
5452         * general-slots.h: add Qdirectory.
5453         * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
5454         handling.
5455         * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
5456         cygwin not leaving win32 paths unchanged.
5457         * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
5458         cygwin runtime to do path conversion.
5459         (Fmswindows_shell_execute): fix cygwin handling of URLs.
5460         (syms_of_win32): add new function.
5461         * window.c (window_loop): build fix.
5462
5463 2001-10-15  Andy Piper  <andy@xemacs.org>
5464
5465         (Fmswindows_shell_execute): fix handling of URL's under cygwin.
5466
5467 2001-10-23  Stephen J. Turnbull  <stephen@xemacs.org>
5468
5469         * XEmacs 21.4.5 "Civil Service" is released.
5470
5471 2001-04-08  Danny Colascione  <qtmstr@optonline.net>
5472
5473         * glyphs-x.c: Force buffer-tab highlight update when moving the
5474         buffer, avoiding an ugly black border, used for keyboard focus
5475         indication, on a widget that can never have keyboard focus, the
5476         buffer tab.
5477
5478 2001-08-30  Daiki Ueno  <ueno@unixuser.org>
5479
5480         * process-unix.c (unix_open_multicast_group): Remove too much
5481         conversion between host and network byte order.
5482
5483 2001-09-10  Nix  <nix@esperi.demon.co.uk>
5484
5485         * src/buffer.c (kill_buffer): Undedicate windows showing BUF
5486         before replacing them.
5487
5488         * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
5489         operation.
5490
5491         * src/window.c (undedicate_windows): Use it.
5492         * src/window.h: Add prototype.
5493
5494 2001-09-17  Ben Wing  <ben@xemacs.org>
5495
5496         * fileio.c (normalize_filename):
5497         * fileio.c (Fexpand_file_name):
5498         Fix various C++ compile errors in Andy's recent code.
5499         
5500         * callint.c (Fcall_interactively):
5501         * editfns.c (Ftemp_directory):
5502         * editfns.c (Fuser_full_name):
5503         * emacs.c (argmatch):
5504         * lread.c (locate_file_map_suffixes):
5505         * redisplay-x.c (x_ring_bell):
5506         Fix sign-compare warnings.
5507         
5508 2001-09-08  Andy Piper  <andy@xemacs.org>
5509
5510         * fileio.c (normalize_filename): copied from nt.c
5511         * (Ffile_name_directory): enable win32 paths under cygwin.
5512         * (Ffile_name_nondirectory): ditto.
5513         * (directory_file_name): ditto.
5514         * (Fexpand_file_name): ditto.
5515         * (Ffile_truename): ditto.
5516         * (Fsubstitute_in_file_name): ditto.
5517         * (Ffile_name_absolute_p): ditto.
5518         * (Ffile_readable_p): ditto.
5519
5520 2001-09-08  Andy Piper  <andy@xemacs.org>
5521
5522         * device-msw.c (mswindows_finish_init_device): remove dde
5523         initialization.
5524         * device-msw.c (mswindows_init_dde): factor out from
5525         mswindows_finish_init_device()
5526         * device-msw.c (init_mswindows_very_early): new function
5527         initialize but don't enable dde.
5528         * emacs.c (main_1): call init_mswindows_very_early.
5529         * event-msw.c:
5530         * event-msw.c (mswindows_dde_callback): only execute when we are
5531         ready.
5532         * symsinit.h: declare init_mswindows_very_early.
5533
5534 2001-05-02  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
5535
5536         [sjt: This has been in 21.5 for months with no complaints.]
5537
5538         * console.h (struct console_methods): Added flags member.
5539         (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
5540         (CONMETH_IMPL_FLAG):
5541         (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
5542         Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
5543
5544         * device.c (window_system_pixelated_geometry): Use the above macros.
5545
5546         * device.h (DEVICE_IMPL_FLAG): Macro to check a device
5547         implememntation flag.
5548         * device.h (DEVICE_DISPLAY_P): Use it.
5549
5550         * frame.c (delete_frame_internal): Use the above macro.
5551
5552         * redisplay.c (redisplay_device): Use it.
5553         (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
5554         (redisplay_frame): Ditto.
5555
5556         * device-msw.c (mswindows_device_implementation_flags): Removed.
5557         (msprinter_device_implementation_flags): Removed.
5558         (console_type_create_device_mswindows): Removed references to
5559         implementation_flags methods, set implementation flags here.
5560         (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
5561
5562         * device-gtk.c (gtk_device_implementation_flags): Removed method.
5563         (console_type_create_device_gtk): Removed method declaration.
5564         Added commented out statement which semantically matches the
5565         commented out statement in the above removed method.
5566
5567 2001-04-14  Gordon Sadler  <gbsadler1@lcisp.com>
5568
5569         The attached patch fixes a few warnings. 
5570
5571         * src/emacs.c: prototype console_type_create_select_gtk for GTK only
5572         * src/frame-gtk.c: guard against GNOME calls in GTK only
5573         * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
5574         * src/select-gtk.c: prototype lisp_to_time
5575
5576 2001-06-08  Ben Wing  <ben@xemacs.org>
5577
5578         ------ gc-in-window-procedure fixes ------
5579         
5580         * alloc.c:
5581         * alloc.c (struct post_gc_action):
5582         * alloc.c (register_post_gc_action):
5583         * alloc.c (run_post_gc_actions):
5584         * alloc.c (garbage_collect_1):
5585         Create "post-gc actions", to avoid those dreaded "GC during window
5586         procedure" problems.
5587
5588         * event-msw.c:
5589         Abort, clean and simple, when GC in window procedure.  We want
5590         to flush these puppies out.
5591
5592         * glyphs-msw.c:
5593         * glyphs-msw.c (finalize_destroy_window):
5594         * glyphs-msw.c (mswindows_finalize_image_instance):
5595         Use a post-gc action when destroying subwindows.
5596
5597         * lisp.h:
5598         Declare register_post_gc_action().
5599
5600         * scrollbar-msw.c:
5601         * scrollbar-msw.c (unshow_that_mofo):
5602         Use a post-gc action when unshowing scrollbar windows, if in gc.
5603
5604         * redisplay.c (mark_redisplay):
5605         Add comment about the utter evilness of what's going down here.
5606
5607         ------ cygwin setitimer fixes ------
5608         
5609         * Makefile.in.in (sheap_objs):
5610         * Makefile.in.in (profile_objs):
5611         * Makefile.in.in (objs):
5612         Compile profile.c only when HAVE_SETITIMER.
5613         
5614         * nt.c (mswindows_sigset):
5615         * nt.c (mswindows_sighold):
5616         * nt.c (mswindows_sigrelse):
5617         * nt.c (mswindows_sigpause):
5618         * nt.c (mswindows_raise):
5619         * nt.c (close_file_data):
5620         Style fixes.
5621         
5622         * nt.c:
5623         Move setitimer() emulation to win32.c, because Cygwin needs it too.
5624         
5625         * profile.c:
5626         * profile.c (Fstart_profiling):
5627         * profile.c (Fstop_profiling):
5628         Make sure we don't compile if no setitimer().  Use qxe_setitimer()
5629         instead of just plain setitimer().
5630         
5631         * signal.c:
5632         * signal.c (set_one_shot_timer):
5633         * signal.c (alarm):
5634         Define qxe_setitimer() as an encapsulation around setitimer() --
5635         call setitimer() directly unless Cygwin or MS Win, in which case
5636         we use our simulated version in win32.c.
5637         
5638         * systime.h:
5639         * systime.h (struct itimerval):
5640         * systime.h (ITIMER_REAL):
5641         Prototype mswindows_setitimer() and qxe_setitimer().  Long
5642         comment about "qxe" and the policy regarding encapsulation.
5643
5644         * win32.c:
5645         * win32.c (setitimer_helper_proc):
5646         * win32.c (setitimer_helper_period):
5647         * win32.c (setitimer_helper):
5648         * win32.c (mswindows_setitimer):
5649         Move setitimer() emulation here, so Cygwin can use it.
5650         Rename a couple of functions and variables to be longer and more
5651         descriptive.  In setitimer_helper_proc(), send the signal
5652         using either mswindows_raise() or (on Cygwin) kill().  If for
5653         some reason we are still getting lockups, we'll change the kill()
5654         to directly invoke the signal handlers.
5655
5656         ------ windows shell fixes ------
5657         
5658         * callproc.c:
5659         * ntproc.c:
5660         Comments about how these two files must die.
5661
5662         * callproc.c (init_callproc):
5663         On MS Windows, init shell-file-name from SHELL, then COMSPEC,
5664         not just COMSPEC. (more correct and closer to FSF.) Don't
5665         force a value for SHELL into the environment. (Comments added
5666         to explain why not.)
5667         
5668         * nt.c (init_user_info):
5669         Don't shove a fabricated SHELL into the environment.  See above.
5670
5671 2001-06-01  Ben Wing  <ben@xemacs.org>
5672
5673         * Makefile.in.in (ldflags):
5674         eliminate that pesky "defaulting to 00401000" warning.
5675         * nt.h:
5676         eliminate warnings.
5677
5678 2001-06-15  Golubev I. N.  <gin@mo.msk.ru>
5679
5680         * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
5681         * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
5682
5683 2001-04-24  Jerry James <james@xemacs.org>
5684
5685         * faces.h: pass parameters to Fadd_spec_to_specifier in the
5686         correct order.
5687
5688 2001-06-01  Ben Wing  <ben@xemacs.org>
5689
5690         * event-msw.c (debug_mswin_messages):
5691         conditionalize the messages that were causing compile errors.
5692         (if only macros could generate #ifdef statements ...)
5693
5694 2001-07-28  Stephen J. Turnbull  <stephen@xemacs.org>
5695
5696         * XEmacs 21.4.4 "Artificial Intelligence" is released.
5697
5698 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
5699
5700         * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
5701
5702 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
5703
5704         * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
5705         * process-unix.c (unix_canonicalize_host_name):
5706         sysdep.c (init_system_name):
5707         Use it to conditionally support IPv6 canonicalization.
5708
5709 2001-05-31  Paul Stodghill  <stodghil@cs.cornell.edu>
5710
5711         * event-msw.c:
5712         Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
5713
5714 2001-05-19  Paul Krause  <paulkrause1@mediaone.net>
5715
5716         * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
5717         attempt is made to scroll when no scroll bar is available.
5718
5719 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
5720
5721         * input-method-motif.c (XIM_delete_frame): New callback.
5722         (XIM_init_frame): Register it.  (Reapplied by SJT, it somehow
5723         got deleted from 21.4.3.)
5724
5725 2001-06-01  Ben Wing  <ben@xemacs.org>
5726
5727         * nt.c (mswindows_utime):
5728         * nt.c (close_file_data):
5729         fix off-by-one-indirection error.
5730
5731 2001-05-29  Adrian Aichner  <adrian@xemacs.org>
5732
5733         * fileio.c: Include nt.h.  Remove lisp_string_set_file_times()
5734         because set_file_times() now takes Lisp_Object path, instead of
5735         char*.
5736         * nt.c: Include buffer.h.
5737         * nt.c (convert_from_time_t): New.
5738         * nt.c (mswindows_utime): New.  Use utime, since SetFileTime does
5739         not set mtime correctly.
5740         * nt.h: Declare mswindows_utime().
5741         * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
5742         path, instead of char*.
5743         * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
5744
5745 2001-05-30  Ben Wing  <ben@xemacs.org>
5746
5747         For 21.4:
5748
5749         (Stephen, just take all event-msw.c patches.  This includes
5750         the "iconify" fix below.)
5751
5752         * event-msw.c:
5753         * event-msw.c (mswindows_dequeue_dispatch_event):
5754         * event-msw.c (assert):
5755         * event-msw.c (emacs_mswindows_quit_p):
5756         * event-msw.c (debug_mswin_messages):
5757         * event-msw.c (debug_output_mswin_message):
5758         * event-msw.c (vars_of_event_mswindows):
5759         Fix yet more problems with C-g handling.
5760         Implement debug-mswindows-events.
5761         
5762 2001-05-24  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
5763
5764         * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
5765         
5766 2001-05-23  Ben Wing  <ben@xemacs.org>
5767
5768         * event-msw.c (winsock_writer):
5769         * event-msw.c (winsock_closer):
5770         prior kludgy code was clobbering the buffer, thinking it was
5771         "unused" space to store an unneeded return value; instead, use
5772         the variable we've already got staring us in the face.
5773
5774 2001-05-17  Andy Piper  <andy@xemacs.org>
5775
5776         * sysfile.h: don't assume that file attributes are boolean
5777
5778 2001-05-23  Ben Wing  <ben@xemacs.org>
5779
5780         * device-msw.c (msprinter_init_device):
5781         signal an error rather than crash with an unavailable network
5782         printer (from Mike Alexander).
5783         
5784         * event-msw.c:
5785         * event-msw.c (struct winsock_stream):
5786         * event-msw.c (winsock_writer):
5787         * event-msw.c (winsock_closer):
5788         * event-msw.c (make_winsock_stream_1):
5789         cleanup headers.  fix (hopefully) an error with data corruption
5790         when sending to a network connection.
5791
5792         * fileio.c (Fexpand_file_name): Fix evil code that attempts
5793         to handle the ~user prefix by (a) always assuming we're referencing
5794         ourselves and not even verifying the user -- hence any file with
5795         a tilde as its first char is invalid! (b) if there wasn't a slash
5796         following the filename, the pointer was set *past* the end of
5797         file and we started reading from uninitialized memory.  Now we
5798         simply treat these as files, always.
5799
5800         * buffer.c (common_init_complex_vars_of_buffer): comment change.
5801         
5802 2001-05-19  Ben Wing  <ben@xemacs.org>
5803
5804         * eval.c: doc comment about gcpro'ing in record_unwind_protect.
5805
5806         * process-nt.c:
5807         * process-nt.c (vars_of_process_nt):
5808         remove unused mswindows-quote-process-args.  rec for 21.4.
5809         
5810 2001-05-12  Ben Wing  <ben@xemacs.org>
5811
5812         * event-msw.c (mswindows_dde_callback):
5813         * event-msw.c (mswindows_wnd_proc):
5814         eliminate cygwin warnings.
5815
5816 2001-05-06  Ben Wing  <ben@xemacs.org>
5817
5818         * console-msw.h:
5819         * device-msw.c:
5820         * device-msw.c (print_dialog_worker):
5821         * device-msw.c (mswindows_handle_print_dialog_box):
5822         * device-msw.c (syms_of_device_mswindows):
5823         * dialog-msw.c (mswindows_make_dialog_box_internal):
5824         * general-slots.h:
5825         implement printing the selection when it's selected.
5826
5827 2001-05-20  Drazen Kacar  <dave@arsdigita.com>
5828
5829         * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
5830
5831 2001-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
5832
5833         * lisp.h (EMACS_INT_MAX): This should be one bit less since
5834         EMACS_INT is signed.
5835
5836 2001-04-15  Michael Lausch  <mla@1012surf.net>
5837
5838         * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
5839         gtk_widget_request_size() to give scrollbar >0 width for
5840         GTK >1.2.8.
5841
5842 2001-05-30  William M. Perry  <wmperry@gnu.org>
5843
5844         * event-gtk.c: Check for buttons as modifier keys.
5845
5846 2001-05-25  Craig Lanning  <CraigL@Knology.net>
5847
5848         * s\mingw32.h:
5849         Properly find MinGW's <process.h> inside Cygwin's restructured
5850         include directories.  Don't try to include <cygwin/version.h>
5851         since we are dropping support for MinGW in versions of Cygwin
5852         earlier than b21.
5853         * nt.c:
5854         Drop support for MinGW in versions of Cygwin before b21.
5855         * sysdep.c:
5856         Properly find MinGW's <process.h> inside Cygwin's restructured
5857         include directories.
5858         * syswindows.h:
5859         Drop support for MinGW in versions of Cygwin before b21.
5860         * unexcw.c:
5861         Even though a.out.h is no longer detected by configure, allow
5862         MinGW to use it until we figure out how to do the job with Win32.
5863
5864 2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
5865
5866         * syntax.c (find_start_of_comment):
5867         Fix `unbalanced parentheses' bug when dealing with mixed comment
5868         styles in c++/java/etc. mode
5869
5870 2001-05-29  Mike Alexander  <mta@arbortext.com>
5871
5872         * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
5873         FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
5874
5875 2001-05-17  Andrew Begel  <abegel@eecs.berkeley.edu>
5876
5877         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
5878
5879 2001-03-31  Mike Sperber <mike@xemacs.org>
5880
5881         * search.c (Freplace_match): Support FSF-style specification of
5882         match subexpression when applied to a buffer.
5883
5884 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
5885
5886         * event-stream.c (is_scrollbar_event): add missing semicolon
5887
5888 2001-05-22  Isaac Hollander  <ysh@mindspring.com>
5889
5890         * Makefile.in.in: Use TAR macro instead of hardcoding
5891           tar.  Allows use of GNU tar instead of system tar
5892
5893 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
5894
5895         * event-stream.c (is_scrollbar_event): add missing semicolon
5896
5897 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
5898
5899         * XEmacs 21.4.3 "Academic Rigor" is released.
5900
5901 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
5902
5903         * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
5904
5905 2001-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
5906
5907         * buffer.c (Vcase_fold_search): Remove obsolete
5908           comment about non ASCII case-fold-search.  This
5909           bug has been fixed by case-table changes.
5910
5911 2001-05-11  Stephen J. Turnbull  <stephen@xemacs.org>
5912
5913         * event-msw.c: Restore include of events-mod.h.
5914
5915 2001-04-22   zhaoway  <zw@debian.org>
5916
5917         * event-stream.c (is_scrollbar_event): Noop returning 0 if
5918         !HAVE_SCROLLBARS.
5919
5920 2001-05-10  Stephen J. Turnbull  <stephen@xemacs.org>
5921
5922         * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
5923
5924 2001-05-08  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>
5925
5926         * mule-charset.c (Fmake_charset): Add missing else.
5927
5928 2001-04-23  Ben Wing  <ben@xemacs.org>
5929
5930         * event-msw.c (FAKE_MOD_QUIT):
5931         * event-msw.c (mswindows_dequeue_dispatch_event):
5932         * event-msw.c (mswindows_wnd_proc):
5933         * event-msw.c (emacs_mswindows_quit_p):
5934         Get critical quit working.
5935
5936 2001-05-05  Ben Wing  <ben@xemacs.org>
5937
5938         * console-msw.h:
5939         * device-msw.c:
5940         * device-msw.c (mswindows_get_default_margin):
5941         * frame-msw.c (mswindows_size_frame_internal):
5942         * frame-msw.c (msprinter_init_frame_1):
5943         * frame-msw.c (vars_of_frame_mswindows):
5944         Change top/bottom margin defaults to 0.5 inches.
5945
5946 2001-05-01  Martin Buchholz  <martin@xemacs.org>
5947
5948         Fix link error with gcc 3.0 on Linux.
5949         * terminfo.c (UP): Remove.
5950         * terminfo.c (BC): Remove.
5951         * terminfo.c (PC): Remove.
5952         They weren't used, and in any case, these symbols should be
5953         defined in the *library*.
5954
5955 2001-05-03  Martin Buchholz  <martin@xemacs.org>
5956
5957         * s/aix4.h: Fix crash with xlc -O3.
5958         Improve comment explaining how -O3 works.
5959
5960 2001-04-15  Ben Wing  <ben@xemacs.org>
5961
5962         * event-stream.c:
5963         * event-stream.c (Fnext_event):
5964         * event-stream.c (is_scrollbar_event):
5965         * event-stream.c (execute_command_event):
5966         Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
5967         crash' problem.  His fix introduces other problems.  We filter
5968         out scrollbar events specifically, making them somewhat invisible
5969         to command-building, and not appearing in `this-command-keys'.
5970         More work is still needed (see comments in event-stream.c), but
5971         this fixes all the major problems.
5972
5973 2001-04-20  Ben Wing  <ben@xemacs.org>
5974
5975         * .cvsignore: Added stuff for Windows.
5976
5977 2001-04-28  Ben Wing  <ben@xemacs.org>
5978
5979         * buffer.c (Ferase_buffer):
5980         * editfns.c (buffer_insert1):
5981         * editfns.c (Finsert_before_markers):
5982         * editfns.c (Finsert_string):
5983         * editfns.c (Finsert_char):
5984         * editfns.c (Fdelete_region):
5985         * editfns.c (Fwiden):
5986         * editfns.c (Fnarrow_to_region):
5987         remove bogus lines setting zmacs_region_stays to 0.
5988         
5989 2001-04-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
5990
5991         * process-unix.c (unix_open_network_stream): If connect() fails
5992         invalidate file descriptor after closing it.
5993
5994 2001-03-08  Mike Alexander  <mta@arbortext.com>
5995
5996         * event-msw.c (mswindows_need_event_in_modal_loop):
5997         Don't dispatch a message if we didn't get one.
5998         (mswindows_need_event):
5999         Terminate the correct process when one exits instead of the first
6000         one on Vprocess_list and look for process termination when in
6001         mswindows_protect_modal_loop.
6002
6003 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
6004
6005         * XEmacs 21.4.1 "Copyleft" is released.
6006
6007 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
6008
6009         * input-method-motif.c (XIM_delete_frame): New callback.
6010         (XIM_init_frame): Register it.
6011
6012 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
6013
6014         * XEmacs 21.4.0 "Solid Vapor" is released.
6015
6016 2001-04-15  Ben Wing  <ben@xemacs.org>
6017
6018         * cmdloop.c (call_command_loop):
6019         Fix braino in bit-rotting code.
6020         
6021 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
6022
6023         * extents.c (Fset_extent_endpoints): Force creation of extent info
6024         in buffer_or_string.
6025
6026         * extents.c (process_extents_for_insertion_mapper): Correctly
6027         check for open-open zero-length extents.
6028
6029 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
6030
6031         * lisp.h: New typedefs Memory_count, Element_count.
6032         * regex.c:
6033         * regex.h:
6034         Sign-compare warning elimination: several unsigned -> signed.
6035         Based on work by Ben Wing <ben@xemacs.org>.
6036
6037 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
6038
6039         * XEmacs 21.2.47 "Zephir" is released.
6040
6041 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
6042
6043         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
6044
6045 2001-04-03  Mike Sperber <mike@xemacs.org>
6046
6047         * search.c: Revert previous patch due because of release.
6048
6049 2001-03-30  Ben Wing  <ben@xemacs.org>
6050
6051         * s\cygwin32.h:
6052         Add missing killpg prototype.
6053
6054         * elhash.c:
6055         Add a comment about fixing problems when a new entry is added
6056         while mapping.
6057
6058         * frame-msw.c (mswindows_init_frame_1):
6059         Fix compile warnings.
6060
6061         * menubar.c (vars_of_menubar):
6062         Provide `menu-accelerator-support' to indicate that we properly
6063         support %_ in menu specifications, so that package code can
6064         conditionalize on this (and remove %_ from menu specifications
6065         on older versions).
6066
6067         * event-msw.c:
6068         * scrollbar-msw.c:
6069         * scrollbar-msw.c (can_scroll):
6070         * scrollbar-msw.h:
6071         Fix handling of mouse wheel under Windows to follow standards --
6072         now scrolls window under pointer, not selected window.
6073
6074 2001-03-31  Mike Sperber <mike@xemacs.org>
6075
6076         * search.c (Freplace_match): Support FSF-style specification of
6077         match subexpression when applied to a buffer.
6078
6079 2001-03-15  Martin Buchholz  <martin@xemacs.org>
6080
6081         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
6082         function to modify KEYMAP, so map over a copy of the hash table.
6083
6084 2001-03-21  Martin Buchholz <martin@xemacs.org>
6085
6086         * XEmacs 21.2.46 "Urania" is released.
6087
6088 2001-03-20  Dan Holmsand  <dan@eyebee.com>
6089
6090         * realpath.c (xrealpath): Make file-truename work with symlinks to
6091         /cygdrive paths on cygwin. Always lowercase drive-letters on
6092         native windows.
6093         (cygwin_readlink): Don't try to find canonical filename unless
6094         file exists.
6095
6096 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
6097
6098         * ChangeLog: Log GTK merge.
6099
6100         * dumper.c:
6101         * select-x.c:
6102         * specifier.c:
6103         * symeval.h:
6104         Revert gratuitous whitespace changes from GTK merge.
6105
6106         * emacs.c: Document end of complex #ifdef @ l. 1495.
6107
6108
6109 2001-03-12  Andy Piper  <andy@xemacs.org>
6110
6111         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
6112         have to do likewise.
6113
6114 2001-03-12  Andy Piper  <andy@xemacs.org>
6115
6116         * sysdep.c: we only support mingw now.
6117
6118 2001-03-09  Andy Piper  <andy@xemacs.org>
6119
6120         * unexcw.c (copy_executable_and_dump_data_section): making approx
6121         overrun a warning only.
6122
6123 2001-03-10  William M. Perry  <wmperry@aventail.com>
6124
6125         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
6126         satisfy Stephen's identical-after-cpp plea.
6127
6128 2001-03-02  Ben Wing  <ben@xemacs.org>
6129
6130         * cmds.c:
6131         * cmds.c (Fforward_char):
6132         * syntax.c:
6133         * window.c:
6134
6135         Augment documentation of the most common motion commands to make
6136         note of the shifted-motion support.
6137         
6138 2001-03-02  Ben Wing  <ben@xemacs.org>
6139
6140         * nt.c (mswindows_fstat):
6141         * nt.c (mswindows_stat):
6142         * search.c (boyer_moore):
6143         Fix compile warnings under Windows.
6144         
6145         * sysdep.c (sys_readdir):
6146         Fix buggy filename-conversion code under Mule.
6147
6148 2001-03-09  William M. Perry  <wmperry@aventail.com>
6149
6150         * Makefile.in.in:
6151         * config.h.in:
6152         * console.c:
6153         * console.h:
6154         * device.c:
6155         * device.h:
6156         * dragdrop.c:
6157         * emacs.c:
6158         * event-stream.c:
6159         * events.c:
6160         * events.h:
6161         * faces.c:
6162         * frame.h:
6163         * general-slots.h:
6164         * glyphs.c:
6165         * gutter.c:
6166         * inline.c:
6167         * lisp.h:
6168         * lrecord.h:
6169         * make-src-depend:
6170         * redisplay-output.c:
6171         * redisplay.c:
6172         * symsinit.h:
6173         * sysfile.h:
6174         * toolbar.c:
6175         * window.c:
6176         The Great GTK Merge.
6177
6178         * ChangeLog.GTK:
6179         * console-gtk.c:
6180         * console-gtk.h:
6181         * device-gtk.c:
6182         * emacs-marshals.c:
6183         * emacs-widget-accessors.c:
6184         * event-gtk.c:
6185         * frame-gtk.c:
6186         * gccache-gtk.c:
6187         * gccache-gtk.h:
6188         * glade.c:
6189         * glyphs-gtk.c:
6190         * glyphs-gtk.h:
6191         * gtk-glue.c:
6192         * gtk-xemacs.c:
6193         * gtk-xemacs.h:
6194         * gui-gtk.c:
6195         * gui-gtk.h:
6196         * menubar-gtk.c:
6197         * native-gtk-toolbar.c:
6198         * objects-gtk.c:
6199         * objects-gtk.h:
6200         * redisplay-gtk.c:
6201         * scrollbar-gtk.c:
6202         * scrollbar-gtk.h:
6203         * select-gtk.c:
6204         * toolbar-gtk.c:
6205         * ui-byhand.c:
6206         * ui-gtk.c:
6207         * ui-gtk.h:
6208         The Great GTK Merge: new files.
6209
6210 2001-02-26  Ben Wing  <ben@xemacs.org>
6211
6212         Reapplied Lstream change.
6213
6214 2001-02-26  Ben Wing  <ben@xemacs.org>
6215
6216         Undid the last change, since it is more controversial than I
6217         thought.  It should be back in at some point soon.
6218         
6219 2001-02-25  Ben Wing  <ben@xemacs.org>
6220
6221         * buffer.c:
6222         * callproc.c (Fold_call_process_internal):
6223         * event-msw.c (ntpipe_slurp_reader):
6224         * event-msw.c (ntpipe_shove_writer):
6225         * event-msw.c (winsock_reader):
6226         * event-msw.c (winsock_writer):
6227         * file-coding.c:
6228         * file-coding.c (detect_eol_type):
6229         * file-coding.c (detect_coding_type):
6230         * file-coding.c (determine_real_coding_system):
6231         * file-coding.c (Fdetect_coding_region):
6232         * file-coding.c (decoding_reader):
6233         * file-coding.c (decoding_writer):
6234         * file-coding.c (mule_decode):
6235         * file-coding.c (Fdecode_coding_region):
6236         * file-coding.c (encoding_reader):
6237         * file-coding.c (encoding_writer):
6238         * file-coding.c (mule_encode):
6239         * file-coding.c (Fencode_coding_region):
6240         * file-coding.c (detect_coding_sjis):
6241         * file-coding.c (decode_coding_sjis):
6242         * file-coding.c (encode_coding_sjis):
6243         * file-coding.c (detect_coding_big5):
6244         * file-coding.c (decode_coding_big5):
6245         * file-coding.c (encode_coding_big5):
6246         * file-coding.c (detect_coding_ucs4):
6247         * file-coding.c (decode_coding_ucs4):
6248         * file-coding.c (encode_coding_ucs4):
6249         * file-coding.c (detect_coding_utf8):
6250         * file-coding.c (decode_coding_utf8):
6251         * file-coding.c (encode_coding_utf8):
6252         * file-coding.c (detect_coding_iso2022):
6253         * file-coding.c (decode_coding_iso2022):
6254         * file-coding.c (encode_coding_iso2022):
6255         * file-coding.c (decode_coding_no_conversion):
6256         * file-coding.c (encode_coding_no_conversion):
6257         * glyphs-x.c (write_lisp_string_to_temp_file):
6258         * gpmevent.c (tty_get_foreign_selection):
6259         * lisp.h:
6260         * lstream.c:
6261         * lstream.c (Lstream_flush_out):
6262         * lstream.c (Lstream_adding):
6263         * lstream.c (Lstream_write_1):
6264         * lstream.c (Lstream_write):
6265         * lstream.c (Lstream_raw_read):
6266         * lstream.c (Lstream_read_more):
6267         * lstream.c (Lstream_read):
6268         * lstream.c (Lstream_unread):
6269         * lstream.c (Lstream_fputc):
6270         * lstream.c (stdio_reader):
6271         * lstream.c (stdio_writer):
6272         * lstream.c (filedesc_reader):
6273         * lstream.c (filedesc_writer):
6274         * lstream.c (lisp_string_reader):
6275         * lstream.c (struct fixed_buffer_stream):
6276         * lstream.c (make_fixed_buffer_input_stream):
6277         * lstream.c (make_fixed_buffer_output_stream):
6278         * lstream.c (fixed_buffer_reader):
6279         * lstream.c (fixed_buffer_writer):
6280         * lstream.c (struct resizing_buffer_stream):
6281         * lstream.c (resizing_buffer_writer):
6282         * lstream.c (dynarr_writer):
6283         * lstream.c (lisp_buffer_reader):
6284         * lstream.c (lisp_buffer_writer):
6285         * lstream.h:
6286         * lstream.h (lstream_implementation):
6287         * lstream.h (struct lstream):
6288         * md5.c (Fmd5):
6289         * process-nt.c (nt_send_process):
6290         * process-unix.c (unix_send_process):
6291         
6292         Correct Lstream lossage due to mixing of signed and unsigned
6293         quantities.  All Lstream uses of size_t and ssize_t are now a
6294         single signed data type Lstream_data_count.  This fixes problems
6295         under Windows with sending large quantities of data to a process,
6296         and may well fix other subtle bugs.
6297
6298 2001-02-23  Martin Buchholz <martin@xemacs.org>
6299
6300         * XEmacs 21.2.45 "Thelxepeia" is released.
6301
6302 2001-02-21  Martin Buchholz  <martin@xemacs.org>
6303
6304         * lisp-union.h (XSETINT): 
6305         (XSETCHAR):
6306         (XSETOBJ): 
6307         Reverse previous change of 2001-02-06.
6308
6309 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
6310
6311         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
6312         buffers.
6313         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
6314         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
6315         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
6316         * regex.c (POS_AS_IN_BUFFER): removed
6317         * regex.c (re_search_2):
6318         * regex.c (re_match_2):
6319         Don't use an offset of 1 when calculating buffer positions, since
6320         `BI_BUF_BEGV' does it already.
6321
6322 2001-02-18  Wim Dumon  <wim@easics.be>
6323
6324         * insdel.c (prepare_to_modify_buffer): Also check for
6325         supersession when clash-detection is enabled. 
6326
6327 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
6328
6329         * regex.c (re_match_2_internal):
6330         Convert temp characters from 'const unsigned char' to 're_char'.
6331         Fix crashing bug with extended characters under mule.
6332         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
6333         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
6334         font-lock, pdump, and new syntax-table code.
6335         * syntax.c (find_start_of_comment):
6336         (find_end_of_comment):
6337         (forward-comment):
6338         Fix crashing bugs involving moving beyond end of buffer.
6339         * syntax.c (find_start_of_comment):
6340         Fixed logic to allow proper detection of cases where the same
6341         character is used to end both a two-char comment start and a
6342         two-char comment end sequence. Fixes `(forward-comment -1)'.
6343         * syntax.c (find_start_of_comment):
6344         Return position just past last comment-end character for all cases
6345         (previously was only done for two-char comment-end sequences).
6346         * syntax.c (forward-comment):
6347         Take value returned from `find_end_of_comment', rather than
6348         incrementing it.
6349         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
6350         Properly deal with BUFFERP (syntax_cache.object)
6351
6352 2001-02-17  Martin Buchholz  <martin@xemacs.org>
6353
6354         * alloc.c (Fgarbage_collect): 
6355         * alloc.c (make_bit_vector_from_byte_vector):
6356         -Wsign-compare-correctness.
6357
6358 2001-02-16  Martin Buchholz  <martin@xemacs.org>
6359
6360         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
6361         (XSETCHAR): Likewise.
6362         (XSETOBJ): Likewise.
6363
6364 2001-02-15  Martin Buchholz  <martin@xemacs.org>
6365
6366         * mule-canna.c (canna-func-delete_previous): 
6367         Rename to canna-func-delete-previous.
6368
6369 2001-02-14  Martin Buchholz  <martin@xemacs.org>
6370
6371         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
6372
6373 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
6374
6375         * font-lock.c (find_context): Fix C++ compile errors introduced by
6376         recent patch
6377
6378 2001-02-13  Martin Buchholz  <martin@xemacs.org>
6379
6380         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
6381         pragma, but earlier ones barf on the same pragma.
6382
6383 2001-02-06  Mike Sperber <mike@xemacs.org>
6384
6385         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
6386         `configure-mule-lisp-directory'.
6387
6388 2001-02-12  Martin Buchholz  <martin@xemacs.org>
6389
6390         Make sure dump-id.c is compiled in the same way as other .c's.
6391         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
6392         * dump-id.h: Remove.
6393         * emacs.c: Move dump-id.h into dumper.h.
6394         * dumper.h: Move dump-id.h into dumper.h.
6395         * Makefile.in.in:
6396         Use standard .c.o rule for building dump-id.o.
6397         Remove preprocessor flags from link command.
6398         Add dump-id.o to ${otherobjs} if PDUMP.
6399
6400 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
6401
6402         Port FSF 20.7 syntax table improvements.
6403         * syntax.c.
6404         * syntax.h.
6405
6406         Fixups for new syntax table stuff.
6407         * dired.c: Include syntax.c.
6408         (Fdirectory_files): Initialize regex_match_object and
6409         regex_emacs_buffer.
6410         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
6411         and Fget_char_property.
6412
6413         Use ported FSF 20.7 syntax table improvements.
6414         * font-lock.c.
6415         * regex.c.
6416         * search.c.
6417         
6418 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6419
6420         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
6421         Unixware's enum boolean from sys/types.h.
6422
6423 2001-02-10  Martin Buchholz  <martin@xemacs.org>
6424
6425         Fix support for building with latest Purify.
6426         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
6427         (PURIFY_FLAGS): Likewise.
6428
6429 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6430
6431         * fileio.c (lisp_string_set_file_times): New.
6432         * fileio.c (Fcopy_file): Use it.
6433         Fixes bug:
6434         (copy-file filename non-ascii-filename t t)
6435         ==> No such file or directory, non-ascii-filename
6436
6437 2001-02-10  Martin Buchholz  <martin@xemacs.org>
6438
6439         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
6440         USHRT_MAX seems clearer than ~0 anyways.
6441
6442 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6443
6444         dumper improvements.  Inspired by Olivier.
6445         * dumper.c (pdump_max_align): New.
6446         * dumper.c (pdump_add_entry): Use pdump_max_align.
6447         * dumper.c (pdump_get_entry_list): Likewise.
6448         * dumper.c (pdump_scan_by_alignment): Likewise.
6449         Don't iterate through unnecessary alignments.
6450         * dumper.c (pdump_file_get): No need to align result of malloc().
6451         * dumper.c (pdump_mallocadr): Remove.  
6452         The result of malloc() is guaranteed to be maximally aligned.
6453         * dumper.c: s/elmt/elt/g;
6454         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
6455         * dumper.c (pdump_alert_undump_object): Likewise.
6456         * dumper.c (pdump_align_table): 
6457         Don't support alignments > 64.
6458         Store ALIGNOF's, not shift counts, in table.
6459
6460 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6461
6462         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
6463         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
6464         * systime.h: Use HAVE_UTIME.
6465         * sysdep.c (struct utimbuf): Remove.
6466         * sysdep.c (set_file_times): Prefer utime() to utimes().
6467         * config.h.in (HAVE_UTIME): New.
6468         * config.h.in (HAVE_UTIME_H): Remove.
6469         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
6470
6471 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6472
6473         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
6474
6475 2001-02-08  Martin Buchholz  <martin@xemacs.org>
6476
6477         * s/irix6-0.h: Use the standard system memmove, not bcopy.
6478
6479 2001-02-08  Martin Buchholz <martin@xemacs.org>
6480
6481         * XEmacs 21.2.44 "Thalia" is released.
6482
6483 2001-02-06  Martin Buchholz  <martin@xemacs.org>
6484
6485         Fixes crashes in kill-emacs on some systems.
6486         * process-unix.c (unix_kill_child_process):
6487         It's OK for kill() to fail with ESRCH.
6488
6489 2001-02-07  Martin Buchholz  <martin@xemacs.org>
6490
6491         Contortions to make .gdbinit tricks work on most systems.
6492         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
6493         * alloc.c (dbg_valmask): Make non-const.
6494         * alloc.c (dbg_typemask): Make non-const.
6495         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
6496         * alloc.c (dbg_valbits): Make non-const.
6497         * alloc.c (dbg_gctypebits): Make non-const.
6498         * .gdbinit (decode_object): Make it work with AIX cc.
6499
6500 2001-02-06  Martin Buchholz  <martin@xemacs.org>
6501
6502         * elhash.c (make_general_lisp_hash_table):
6503         Use simpler and more efficient calloc to clear entries.
6504
6505 2001-02-07  Martin Buchholz  <martin@xemacs.org>
6506
6507         * window.c (window_scroll): Work around an AIX C compiler bug.
6508         Fixes 'scroll-up' does nothing problem with xlC.
6509
6510 2001-02-05  Martin Buchholz  <martin@xemacs.org>
6511
6512         * .gdbinit: Remove obsolete comment.
6513
6514 2001-01-31  Mike Alexander  <mta@arbortext.com>
6515
6516         * select.c (Fown_selection_internal): Set owned_p for device
6517         method correctly.
6518
6519 2001-02-01  Martin Buchholz  <martin@xemacs.org>
6520
6521         Port to g++ 2.97.
6522         "not" cannot be used as a macro name as it is an operator in C++
6523         * config.h.in: Stop #defining `not'.
6524         * chartab.c (check_category_char): not ==> not_p
6525         * chartab.h: Likewise.
6526         * regex.c (re_match_2_internal): Likewise.
6527
6528 2001-02-02  Martin Buchholz  <martin@xemacs.org>
6529
6530         * lisp-disunion.h: Fix up comments.
6531
6532 2001-01-31  Martin Buchholz  <martin@xemacs.org>
6533
6534         * keymap.c (define_key_check_and_coerce_keysym):
6535         (syms_of_keymap):
6536         Support mouse-6 and mouse-7 bindings in the obvious way.
6537
6538 2001-02-01  Martin Buchholz  <martin@xemacs.org>
6539
6540         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
6541
6542 2001-01-30  Martin Buchholz  <martin@xemacs.org>
6543
6544         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
6545         Previous patch missed DEFVAR_INT_MAGIC.
6546         Make sure future DEFVAR_foo use correct types.
6547         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
6548         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
6549         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
6550         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
6551         * (DEFVAR_INT): Likewise.
6552         * redisplay.c (vertical_clip): Should be of type Fixnum.
6553         * redisplay.c (horizontal_clip): Likewise.
6554         * lisp.h (dump_add_opaque_int): New.
6555         (dump_add_opaque_fixnum): New.
6556
6557 2001-01-29  Andy Piper  <andy@xemacs.org>
6558
6559         * glyphs-widget.c (check_valid_int_or_function): allow symbols
6560         since they can be eval'ed
6561
6562 2001-01-29  Martin Buchholz  <martin@xemacs.org>
6563
6564         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
6565         Oops, XEmacs redefines `class'.  Use `typename' instead.
6566
6567 2001-01-28  Martin Buchholz  <martin@xemacs.org>
6568
6569         * dumper.c: Fix C++ compile errors.
6570
6571 2001-01-29  Martin Buchholz  <martin@xemacs.org>
6572
6573         * tparam.c: Use correct prototypes.
6574
6575 2001-01-28  Martin Buchholz  <martin@xemacs.org>
6576
6577         * sysproc.h: #include util.h for NetBSD's openpty.
6578
6579 2001-01-27  Martin Buchholz  <martin@xemacs.org>
6580
6581         More 64-bit correctness.
6582         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
6583         Use a typedef `fixnum' for the type used for DEFVAR_INT.
6584         Fix up comments.
6585         This finally finishes the 64-bit SGI port.
6586         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
6587         * symbols.c: Fix up comments and type casts.
6588         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
6589         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
6590         * symeval.h (Fixnum): New type.
6591         * symeval.h (symbol_value_type): Fix up comment.
6592
6593         * commands.h:
6594         * nt.c:
6595         * emacs.c:
6596         * data.c:
6597         * redisplay.c:
6598         * abbrev.c:
6599         * dired-msw.c:
6600         * event-Xt.c:
6601         * eldap.c:
6602         * window.c:
6603         * sound.c:
6604         * event-stream.c:
6605         * eval.c:
6606         * buffer.c:
6607         * mule-canna.c: A million DEFVAR_INTs here...
6608         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
6609         * extents.c:
6610         * cmdloop.c:
6611         * lisp.h:
6612         * select-x.c:
6613         * console-x.h:
6614         * event-msw.c:
6615         * mule-wnnfns.c:
6616         * hpplay.c:
6617         * ralloc.c:
6618         * alloc.c:
6619         * keymap.c:
6620         * profile.c:
6621         s/int/Fixnum/g in DEFVAR_INT declarations.
6622
6623 2001-01-26  Martin Buchholz  <martin@xemacs.org>
6624
6625         Port pdump to SGI alignment-sensitive environment.
6626         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
6627         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
6628         properly aligned.
6629         Define and use aligned reading and writing macros.
6630         Use buffered stdio instead of posix i/o for faster dumping.
6631         Eliminate kludgy 256 byte space for header.
6632         Read and write from dump file using structs for alignment safety.
6633         * dumper.c (pdump_align_stream): New.
6634         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
6635         * dumper.c (PDUMP_READ_ALIGNED): New.
6636         * dumper.c (PDUMP_WRITE_ALIGNED): New.
6637         * dumper.c (pdump_static_Lisp_Object): New struct.
6638         * dumper.c (pdump_static_pointer): New struct.
6639         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
6640         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
6641         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
6642         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
6643
6644         * dumper.c (pdump_backtrace):
6645         * dumper.c (pdump_get_indirect_count):
6646         * dumper.c (pdump_register_object):
6647         * dumper.c (pdump_register_struct):
6648         * dumper.c (pdump_reloc_one):
6649         * dumper.c (pdump_scan_by_alignment):
6650         * dumper.c (pdump_dump_from_root_struct_ptrs):
6651         * dumper.c (pdump_dump_opaques):
6652         * dumper.c (pdump_dump_rtables):
6653         * dumper.c (pdump_dump_from_root_objects):
6654         * dumper.c (pdump):
6655         * dumper.c (pdump_load_finish):
6656         Use aligned reading and writing.
6657
6658         * dumper.c (pdump_free): Make static.
6659         * dumper.c (pdump_hFile): Likewise.
6660         * dumper.c (pdump_hMap): Likewise.
6661
6662 2001-01-26  Martin Buchholz <martin@xemacs.org>
6663
6664         * XEmacs 21.2.43 "Terspichore" is released.
6665
6666 2001-01-25  Martin Buchholz  <martin@xemacs.org>
6667
6668         Type fiddling for window_config.saved_windows_count
6669         * window.c (struct window_config): 
6670         Make saved_windows_count member unsigned.
6671         * window.c (sizeof_window_config_for_n_windows): 
6672         Make parameter unsigned.
6673         * window.c (mark_window_config):
6674         * window.c (window_config_equal):
6675         * window.c (free_window_configuration):
6676         * window.c (Fset_window_configuration):
6677         * window.c (count_windows):
6678         * window.c (Fcurrent_window_configuration):
6679         * window.c (reinit_vars_of_window):
6680         Update all callers and users.
6681
6682 2001-01-25  Martin Buchholz  <martin@xemacs.org>
6683
6684         Alignment correctness for flexible arrays.
6685         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
6686         Make alignment-correct. Add interesting comments.
6687         * alloc.c (size_vector):
6688         * alloc.c (make_vector_internal):
6689         * alloc.c (make_bit_vector_internal):
6690         * alloc.c (sweep_bit_vectors_1):
6691         * fns.c (size_bit_vector):
6692         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
6693         * window.c (sizeof_window_config_for_n_windows): 
6694         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
6695
6696 2001-01-24  Martin Buchholz  <martin@xemacs.org>
6697
6698         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
6699
6700 2001-01-23  Andy Piper  <andy@xemacs.org>
6701
6702         * select.c (Fown_selection_internal): pass owned_p
6703
6704         * select-msw.c (mswindows_own_selection): New Signature.
6705
6706         * console.h (struct console_methods): add owned_p to
6707         _own_selection.
6708
6709         * select-x.c (x_own_selection): pass owned_p
6710         (hack_motif_clipboard_selection): use owned_p
6711         (vars_of_select_x): new variable -
6712         x_selection_strict_motif_ownership.
6713
6714 2001-01-23  Martin Buchholz  <martin@xemacs.org>
6715
6716         * specifier.h (specifier_data_offset): Remove pointless parens.
6717         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
6718
6719 2001-01-24  Martin Buchholz  <martin@xemacs.org>
6720
6721         Make Lisp_Object sizeof methods be alignment-correct.
6722         pdump must restore objects to the same alignment as the C compiler
6723         assumes.  It really matters on SGIs.
6724         * lstream.c (aligned_sizeof_lstream): New.
6725         (sizeof_lstream): Use aligned_sizeof_lstream.
6726         (Lstream_new): Likewise.
6727         * opaque.c (aligned_sizeof_opaque): New.
6728         (sizeof_opaque): Use aligned_sizeof_opaque.
6729         (make_opaque): Likewise.
6730         * specifier.c (aligned_sizeof_specifier): New.
6731         (sizeof_specifier): Use aligned_sizeof_specifier.
6732         (make_specifier_internal): Likewise.
6733
6734 2001-01-23  Martin Buchholz  <martin@xemacs.org>
6735
6736         * lstream.h (struct lstream): Use max_align_t for trailing data.
6737         * specifier.h (struct Lisp_Specifier): Likewise.
6738
6739 2001-01-22  Martin Buchholz  <martin@xemacs.org>
6740
6741         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
6742         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
6743         (CCL_SUSPEND): Likewise.
6744         (CCL_INVALID_CMD): Likewise.
6745         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
6746         (ccl_driver): Likewise.
6747         (CCL_WRITE_CHAR): Macro hygiene.
6748         (CCL_WRITE_STRING): Macro hygiene.
6749
6750 2001-01-22  Martin Buchholz  <martin@xemacs.org>
6751
6752         Port "portable" dumper to SunOS 4 and HP-UX.
6753         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
6754         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
6755         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
6756
6757 2001-01-22  Martin Buchholz  <martin@xemacs.org>
6758
6759         * lisp.h (ALIGNOF): A better definition for C++.
6760
6761 2001-01-20  Martin Buchholz  <martin@xemacs.org>
6762
6763         Macro hygiene.
6764         Fix printf warnings: int format, long int arg.
6765         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
6766         (PUSH_FAILURE_POINT): Use correct printf formats.
6767         (POP_FAILURE_POINT): Use correct printf formats.  
6768         Use do {...} while (0)
6769
6770 2001-01-20  Martin Buchholz <martin@xemacs.org>
6771
6772         * XEmacs 21.2.42 "Poseidon" is released.
6773
6774 2001-01-20  Martin Buchholz  <martin@xemacs.org>
6775
6776         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
6777
6778 2001-01-19  Martin Buchholz  <martin@xemacs.org>
6779
6780         De-kludgify FIXED_TYPE free list frobbing.
6781         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
6782         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
6783         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
6784         * alloc.c (Lisp_Free): New pseudo lisp object definition.
6785         * alloc.c (LRECORD_FREE_P): New.
6786         * alloc.c (MARK_LRECORD_AS_FREE): New.
6787         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
6788         * alloc.c (STRUCT_FREE_P): Deleted.
6789         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
6790         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
6791         * alloc.c (STRING_CHARS_FREE_P): New.
6792         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
6793         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
6794         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
6795         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
6796         * alloc.c (resize_string): Use new definitions.
6797         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
6798         * alloc.c (verify_string_chars_integrity): Use new definitions.
6799         * alloc.c (compact_string_chars): Use new definitions.
6800         * alloc.c: Update monster comments.
6801         * lrecord.h (lrecord_type): Add some new lrecord types for
6802         alloc.c's use.
6803
6804 2001-01-18  Martin Buchholz  <martin@xemacs.org>
6805
6806         Improve alignment hackery.
6807         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
6808         (max_align_t): Moved from opaque.h - general purpose.
6809         (ALIGN_PTR): Use size_t, not long.
6810         * opaque.h (max_align_t): Move to lisp.h.
6811
6812 2001-01-18  Norbert Koch  <nk@LF.net>
6813
6814         * gui.h: Fix and add prototypes to fix build problems.
6815
6816 2001-01-18  Martin Buchholz  <martin@xemacs.org>
6817
6818         temacs is going away, so `dump-temacs' is now a bad name.
6819         * .dbxrc (dump-temacs): Rename to `dmp'.
6820         * .gdbinit (dump-temacs): Rename to `dmp'.
6821
6822 2001-01-17  Andy Piper  <andy@xemacs.org>
6823
6824         * glyphs.c (print_image_instance): comment to make martin happy.
6825
6826         * glyphs-x.c (x_redisplay_widget): update faces after a frame
6827         change.
6828
6829         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
6830         activation.
6831         (mswindows_tab_control_redisplay): warning suppression.
6832
6833         * glyphs-widget.c (widget_update): re-write to cope with updated
6834         items.
6835         (widget_instantiate): use new gui_item functions.
6836         (tab_control_update): deleted.
6837         (progress_gauge_update): deleted.
6838         (image_instantiator_progress_guage): take out update reference.
6839         (image_instantiator_tree_view): ditto.
6840         (image_instantiator_tab_control): ditto.
6841
6842         * gui.c (widget_gui_parse_item_keywords): new function. Do things
6843         Right the new way.
6844         (gui_item_add_keyval_pair): re-write to cope with descriptors and
6845         return whether anything was changed.
6846         (update_gui_item_keywords): as it sounds.
6847
6848         * gui.h: declare widget_gui_parse_item_keywords.
6849
6850         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
6851         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
6852
6853 2001-01-17  Martin Buchholz <martin@xemacs.org>
6854
6855         * XEmacs 21.2.41 "Polyhymnia" is released.
6856
6857 2001-01-16  Didier Verna  <didier@xemacs.org>
6858
6859         * glyphs.c (image_instantiate): don't use fallbacks when
6860         instantiating a face's background pixmap by inheritance.
6861
6862 2001-01-14  Mike Sperber <mike@xemacs.org>
6863
6864         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
6865         Conditionalize accordingly.
6866
6867 2001-01-16  Martin Buchholz  <martin@xemacs.org>
6868
6869         * dumper.c (pdump_file_get): Fix a compiler warning.
6870
6871 2001-01-15  Martin Buchholz  <martin@xemacs.org>
6872
6873         Make Purify happy when pdumping.
6874         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
6875         iniitalizing all bits of new lisp object memory.
6876         * symbols.c (Fmake_local_variable): Likewise.
6877         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
6878         * symbols.c (Fdefvaralias): Likewise.
6879         * mule-charset.c (vars_of_mule_charset): Likewise.
6880
6881 2001-01-15  Martin Buchholz  <martin@xemacs.org>
6882         Add the `-nd' flag when running pre-dump operations under the debugger.
6883         * .dbxrc (run-temacs): Add `-nd'.
6884         * .dbxrc (update-elc): Likewise.
6885         * .dbxrc (dump-temacs): Likewise.
6886         * .gdbinit (run-temacs): Likewise.
6887         * .gdbinit (check-temacs): Likewise.
6888         * .gdbinit (update-elc): Likewise.
6889         * .gdbinit (dump-temacs): Likewise.
6890
6891 2001-01-14  Martin Buchholz  <martin@xemacs.org>
6892
6893         Allow building 64-bit executables on AIX with GNU malloc, e.g.
6894         export OBJECT_MODE=64
6895         configure --pdump --use-union-type=no
6896         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
6897         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
6898
6899         * miscplay.c (sndcnv8U_2mono):
6900         Avoid two uses of `++' in the same expression.
6901         Suppresses a GCC warning.
6902
6903 2001-01-13  Martin Buchholz  <martin@xemacs.org>
6904
6905         Make sure future compilers don't miscompile alloc.c.
6906         * alloc.c:
6907         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
6908         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
6909
6910 2001-01-12  Martin Buchholz  <martin@xemacs.org>
6911
6912         * dumper.c: A little post-pdump-rename comment fixup.
6913
6914 2001-01-09  Jerry James  <james@eecs.ku.edu>
6915
6916         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
6917
6918 2001-01-13  Martin Buchholz  <martin@xemacs.org>
6919
6920         * *.[ch]: Globally rename symbols using the following `pdump-rename'
6921         script:
6922         #!/bin/sh
6923         replace_symbol () {
6924           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
6925         }
6926
6927         replace_symbol pdump_wire_lists pdump_weak_object_chains
6928         replace_symbol pdump_wire_list dump_add_weak_object_chain
6929
6930         replace_symbol pdump_wires pdump_root_objects
6931         replace_symbol pdump_wire dump_add_root_object
6932
6933         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
6934         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
6935
6936         replace_symbol dumpstructinfos pdump_root_struct_ptrs
6937         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
6938         replace_symbol dumpstructinfo pdump_root_struct_ptr
6939         replace_symbol dumpstruct dump_add_root_struct_ptr
6940
6941         replace_symbol dumpopaque dump_add_opaque
6942         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
6943         replace_symbol dumpopaqueinfos pdump_opaques
6944         replace_symbol dumpopaqueinfo pdump_opaque
6945
6946         replace_symbol nb_structdump nb_root_struct_ptrs
6947         replace_symbol nb_opaquedump nb_opaques
6948
6949         replace_symbol align_table pdump_align_table
6950         replace_symbol dump_header pdump_header
6951
6952         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
6953         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
6954
6955
6956 2001-01-12  Martin Buchholz  <martin@xemacs.org>
6957
6958         * s/aix4.h: Keep the C for AIX compiler from overaggressively
6959         optimizing bytecount_to_charcount().
6960
6961 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
6962
6963         * config.h.in:
6964         (HAVE_DLFCN_H): Removed.
6965         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
6966
6967 2001-01-06  Martin Buchholz  <martin@xemacs.org>
6968
6969         Portable dumper maintainability improvements.
6970         * alloc.c (staticpro):
6971         * alloc.c (staticpro_nodump):
6972         * alloc.c (garbage_collect_1):
6973         * alloc.c (reinit_alloc_once_early):
6974         * alloc.c (init_alloc_once_early):
6975         * alloc.c: Move dumper functions to alloc.c.
6976         * dumper.c (pdump_backtrace):
6977         * dumper.c (pdump_dump_structs):
6978         * dumper.c (pdump_dump_opaques):
6979         * dumper.c (pdump_dump_rtables):
6980         * dumper.c (pdump_dump_wired):
6981         * dumper.c (pdump):
6982         * dumper.c (pdump_load_check):
6983         * dumper.c (pdump_load_finish):
6984         * dumper.c (pdump_file_unmap):
6985         * dumper.c (pdump_file_get):
6986         * dumper.c (pdump_resource_free):
6987         * dumper.c (pdump_resource_get):
6988         * dumper.c (pdump_file_free):
6989         * dumper.c (pdump_file_try):
6990         * dumper.c (pdump_load):
6991         Remove fixed size limits on staticpro(), staticpro_nodump(),
6992         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
6993         Remove custom code for dumping lrecord_implementations_table - use
6994         dumpopaque instead.
6995         Remove (most of the) custom code for dumping staticpros - dump it
6996         like any other dynarr.
6997
6998         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
6999         * dumper.c: Moved functions from alloc.c.
7000         * alloc.c (dumpstruct): Moved to dumper.c.
7001         * alloc.c (dumpopaque): Likewise.
7002         * alloc.c (pdump_wire): Likewise.
7003         * alloc.c (pdump_wire_list): Likewise.
7004
7005         * lisp.h (Dynarr_sizeof): New.
7006         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
7007         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
7008         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
7009
7010         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
7011         * lisp.h (dumpopaque): ditto.
7012         * lisp.h (pdump_wire): ditto.
7013         * lisp.h (pdump_wire_list): ditto.
7014
7015 2001-01-09  Martin Buchholz  <martin@xemacs.org>
7016
7017         * make-src-depend (PrintPatternDeps):
7018         Use `sort' to make output independent of perl version.
7019
7020 2001-01-08  Martin Buchholz  <martin@xemacs.org>
7021
7022         Port to Netbsd 1.5.
7023         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
7024         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
7025
7026 2001-01-03  Didier Verna  <didier@xemacs.org>
7027
7028         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
7029         that `focus_frame' is alive before thinking of calling
7030         `redisplay_redraw_cursor' on it.
7031
7032 2001-01-08  Martin Buchholz <martin@xemacs.org>
7033
7034         * XEmacs 21.2.40 is released.
7035
7036 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
7037
7038         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
7039
7040 2001-01-06  Martin Buchholz  <martin@xemacs.org>
7041
7042         * alloc.c (dbg_valmask): Make const.
7043         * alloc.c (dbg_typemask): Make const.
7044         * alloc.c (dbg_USE_UNION_TYPE): Make const.
7045         * alloc.c (dbg_valbits): Make const.
7046         * alloc.c (dbg_gctypebits): Make const.
7047
7048 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
7049
7050         * redisplay-x.c (x_bevel_area):
7051         redisplay.h (struct rune):
7052         Typo fixes in comments.
7053
7054 2001-01-05  Andy Piper  <andy@xemacs.org>
7055
7056         * glyphs-x.c (x_redisplay_widget): use size changed for offset
7057         adjustment.
7058
7059         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
7060
7061 2001-01-05  Martin Buchholz  <martin@xemacs.org>
7062
7063         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
7064
7065         * mule-ccl.c (stack_idx_of_map_multiple):
7066         Non const global data must not be initialized!
7067         Found by MIYASHITA Hisashi.
7068
7069 2001-01-02  Andy Piper  <andy@xemacs.org>
7070
7071         * frame.c (change_frame_size): make sure frame size is always
7072         marked as changed.
7073
7074         * glyphs.c (image_instance_layout): minor code reuse.
7075
7076         * window.c (Fcurrent_window_configuration): revert previous
7077         change.
7078
7079 2001-01-02  Martin Buchholz  <martin@xemacs.org>
7080
7081         * glyphs.h:
7082         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
7083
7084 2000-12-31  Andy Piper  <andy@xemacs.org>
7085
7086         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
7087         when widget gets unmapped.
7088
7089         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
7090         function. Make sure widgets losing focus don't just drop it.
7091         (handle_focus_event_1): record the widget with focus.
7092
7093 2000-12-31  Andy Piper  <andy@xemacs.org>
7094
7095         * window.c (allocate_window): use
7096         make_image_instance_cache_hash_table.
7097         (make_dummy_parent): ditto.
7098         (Fset_window_configuration): ditto.
7099
7100         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
7101
7102         * glyphs.c (process_image_string_instantiator): use
7103         INSTANTIATOR_TYPE.
7104         (get_image_instantiator_governing_domain): ditto.
7105         (normalize_image_instantiator): ditto.
7106         (instantiate_image_instantiator): ditto.
7107         (make_image_instance_1): ditto.
7108         (image_instantiate): ditto. Key on glyph *and* instantiator type.
7109         (instantiator_eq_equal): new function for use with instance hash
7110         tables.
7111         (instantiator_eq_hash): ditto.
7112         (make_image_instance_cache_hash_table): create a suitable hash
7113         table for storing image instances.
7114
7115         * elhash.h (hash_table_weakness): new internal weakness type
7116         HASH_TABLE_KEY_CAR_VALUE_WEAK.
7117         declare new functions.
7118
7119         * elhash.c (finish_marking_weak_hash_tables): introduce yet
7120         another weakness type for glyphs.
7121         (make_standard_lisp_hash_table): new function split out from
7122         make_general_lisp_hash_table.
7123         (make_lisp_hash_table): call make_standard_lisp_hash_table.
7124         (hash_table_instantiate): ditto.
7125         (Fmake_hash_table): ditto.
7126
7127 2000-12-31  Martin Buchholz <martin@xemacs.org>
7128
7129         * XEmacs 21.2.39 is released.
7130
7131 2000-12-29  Andy Piper  <andy@xemacs.org>
7132
7133         * menubar.c (menubar_visible_p_changed): signal the frame changed.
7134
7135         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
7136         the frame has changed so that we pick up geometry changes such as
7137         menubar visibility.
7138
7139 2000-12-28  Andy Piper  <andy@xemacs.org>
7140
7141         * lastfile.c (my_ebss): make a char array so we can pad the
7142         bss. Fixes cygwin unexec.
7143
7144         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
7145
7146 2000-12-26  Andy Piper  <andy@xemacs.org>
7147
7148         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
7149         comments and try and be more precise about a non-/SIGIO world.
7150         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
7151         SIGIO.
7152
7153         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
7154         we don't normalize to zero width or height.
7155
7156 2000-12-24  Andy Piper  <andy@xemacs.org>
7157
7158         * Makefile.in.in (ldflags): add -mwindows when appropriate.
7159
7160 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
7161
7162         * s/sco5.h: SCO 5 has pty support.
7163
7164 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
7165
7166         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
7167         input-method-xlib.c contains whole contents of input-method-xfs.c,
7168         so we can use input-method-xlib.c's code for USE_XFONTSET
7169         using #ifdefs.
7170         * input-method-xfs.c: removed.
7171
7172 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
7173
7174         * file-coding.h (enum coding_category_type): reorder enumerators to
7175         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
7176         (now one greater than largest real coding_category_type enumerator).
7177         * file-coding.c (coding_category_symbol, coding_category_by_priority,
7178         coding_category_system, fcd_descriptihon_1, decode_coding_category,
7179         Fcoding_category_list, Fset_coding_priority_list,
7180         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
7181         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
7182
7183 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
7184
7185         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
7186         * redisplay-output.c (redisplay_output_window): Clear top of window
7187         when face is changed.
7188         * redisplay-x.c (x_redraw_exposed_window): Call
7189         redisplay_clear_top_of_window.
7190         * redisplay.h: Publish redisplay_clear_top_of_window.
7191
7192 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
7193
7194         * buffer.c (Fkill_buffer): Map over all devices.
7195         * window.c (window_loop): Remove UNSHOW_BUFFER code.
7196         (list_windows): New function.
7197         (list_all_windows): Ditto.
7198         (Freplace_buffer_in_windows): Use them.
7199
7200 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
7201
7202         * database.c (berkdb_subtype): Recognize new subtype `queue'.
7203         (Fopen_database): Use `db_create' instead of `db_open'.
7204         (syms_of_database): Initialize Qqueue.
7205
7206 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
7207
7208         * buffer.c (common_init_complex_vars_of_buffer): Initialize
7209         buffer_local_face_property.
7210         * buffer.h (struct buffer): New member buffer_local_face_property.
7211         * window.c (Fset_window_buffer):  Mark window's face as changed
7212         when buffer has buffer local face.
7213         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
7214         * objects.c (color_after_change): Set buffer_local_face_property
7215         when locale of face specifier is buffer.
7216         * objects.c (font_after_change): Ditto.
7217         * objects.c (face_boolean_after_change): Ditto.
7218         * glyphs.c (image_after_change): Ditto.
7219
7220 2000-12-09  Dan Holmsand  <dan@eyebee.com>
7221
7222         * nt.c (mswindows_fstat): Report file permissions, volume serial
7223         number, etc. Code adapted from FSF Emacs 20.7.
7224
7225 2000-12-09  Dan Holmsand  <dan@eyebee.com>
7226
7227         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
7228         of stat when we don't have symbolic links, to make sure
7229         mswindows_stat is called on mswindows.
7230
7231 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
7232
7233         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
7234
7235 2000-12-12  Martin Buchholz  <martin@xemacs.org>
7236
7237         * doprnt.c (emacs_doprnt_1): More printing fixes.
7238         Make printing of numbers compatible with libc and FSF Emacs.
7239         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
7240         Use the system printf to do most of the hard work of formatting,
7241         instead of doprnt_1().
7242         Calculate memory to allocate for format string.
7243         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
7244         (doprnt_1): Cleaner code and documentation.
7245
7246 2000-12-01  Jerry James  <james@eecs.ukans.edu>
7247
7248         * Makefile.in.in: Use the loop variable to install headers.
7249
7250 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
7251
7252         * window.c (Fsplit_window): Don't invalidate face cache.
7253
7254 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
7255
7256         * minibuf.c (Fall_completions): Undo the previous change
7257         which removed checking elements start with space.
7258
7259 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
7260
7261         * mule-canna.c: Didier suppression.
7262
7263 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
7264
7265         * mule-canna.c: rename static unsigned char buf[] to key_buffer
7266         (warning suppression).  Add English comment translations.
7267
7268 2000-12-05  Martin Buchholz  <martin@xemacs.org>
7269
7270         * unexelfsgi.c (unexec): Better test for mmap failure.
7271
7272 2000-12-05  Martin Buchholz <martin@xemacs.org>
7273
7274         * XEmacs 21.2.38 is released.
7275
7276 2000-12-05  Martin Buchholz  <martin@xemacs.org>
7277
7278         * redisplay.c (bar-cursor): Make a user variable.
7279
7280         * symsinit.h: Add init_postgresql_from_environment.
7281
7282 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
7283
7284         * regex.c: Convert to clean C.
7285
7286 2000-12-05  Dan Holmsand  <dan@eyebee.com>
7287
7288         * realpath.c:
7289         Don't #include sysfile.h. Revert to duplicating PATH_MAX
7290         initialization.
7291         (sys_readlink): renamed to system_readlink to avoid conflict with
7292         the other sys_readlink.
7293
7294 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
7295
7296         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
7297
7298 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
7299
7300         * postgresql.c (init_postgresql_from_environment): new function.
7301         (vars_of_postgresql): Move code initializing Lisp variables out and
7302         into init_postgresql_from_environment.
7303         emacs.c (main_1): Call init_postgresql_from_environment if and only
7304         if running a dumped XEmacs.
7305
7306 2000-08-31  Dan Holmsand  <dan@eyebee.com>
7307
7308         * buffer.c: Make find-file-compare-truenames default to true on
7309         windows.
7310
7311         * realpath.c (win32_abs_start):
7312         (cygwin_readlink):
7313         (win32_readlink): New functions.
7314         (xrealpath): Return really real filenames on windows.
7315
7316         * fileio.c (Ffile_truename): Make file-truename work on windows.
7317
7318 2000-11-29  Didier Verna  <didier@xemacs.org>
7319
7320         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
7321         * faces.c (update_face_cachel_data): use it.
7322         * faces.c (add_face_cachel): use it. Complete background pixmap
7323         frobbing in face cache if `update_face_cachel_data' has not done so.
7324
7325 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
7326
7327         * search.c (string_match_1): Don't set last_thing_searched
7328         when search failed.
7329
7330 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
7331
7332         * buffer.c: Include casetab.h
7333         (common_init_complex_vars_of_buffer): Use new case-table object.
7334         * buffer.h: Include casetab.h
7335         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
7336         (DOWNCASE_TABLE_OF): Ditto.
7337         * bufslots.h: Remove char-tables and add case-table.
7338         * casetab.c: Include casetab.h
7339         (CASE_TABLE_P): Removed.
7340         (mark_case_table): New function.
7341         (allocate_case_table): New function.
7342         (Fcase_table_p): Use new case-table.
7343         (case_table_char): New function.
7344         (Fget_case_table): Ditto.
7345         (Fput_case_table): Ditto.
7346         (Fput_case_table_pair): Ditto.
7347         (Fcopy_case_table): Ditto.
7348         (Fcurrent_case_table): Return case-table.
7349         (Fstandard_case_table): Return case-table.
7350         (Fset_case_table): Fix doc-string.
7351         (set_case_table): Use case-table
7352         (syms_of_casetab): DEFSUBR new functions.
7353         (complex_vars_of_casetab): Set up standard case-table.
7354         * casetab.h: New file.
7355         * editfns.c: Include casetab.h
7356         (Fcompare_buffer_substrings): Use case-table.
7357         * inline.c: Include casetab.h
7358         * lisp.h: Remove bogus extern.
7359         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
7360         * search.c: Include casetab.h
7361         (TRANSLATE_ASCII): Removed.
7362         (TRANSLATE): Unconditionally translate character.
7363         (looking_at_1): Use case-table.
7364         (string_match_1): Ditto.
7365         (fast_string_match): Ditto.
7366         (search_command): Ditto.
7367         (search_buffer): Separate boyer_moore.  Check whether
7368         boyer_moore is possible.
7369         (simple_search): New function.
7370         (boyer_moore): Separated from search_buffer. Translate char.
7371
7372 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
7373
7374         * regex.c (RE_TR_ASCII): Removed.
7375         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
7376         (PATFETCH): Call PATFETCH_RAW.
7377         (PATFETCH_RAW): Fetch Emchar.
7378         (PATUNFETCH): Decrement charptr.
7379         (GET_BUFFER_SPACE): Rename b to buf_end.
7380         (BUF_PUSH): Ditto.
7381         (BUF_PUSH_2): Ditto.
7382         (BUF_PUSH_3): Ditto.
7383         (EXTEND_BUFFER): Ditto.
7384         (SET_LIST_BIT): Ditto.
7385         (regex_compile): Ditto.  Translate non ASCII char.
7386         (compile_range): Ditto.
7387         (re_search_2): Ditto.
7388         (re_match_2_internal): Compare Emchar.
7389         (bcmp_translate): Ditto.
7390
7391 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
7392
7393         * lisp.h (basic char/int typedefs):  comment improvement.
7394
7395 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
7396
7397         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
7398         unstomp inhibit_site_lisp.  Improve comments.
7399
7400 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
7401
7402         * mule-charset.c (Fcharset_property):  improve type checking, comments.
7403
7404 2000-11-28  Andy Piper  <andy@xemacs.org>
7405
7406         * redisplay-output.c (redisplay_output_subwindow): make sure we do
7407         clipped display for windows in the gutter also.
7408         (redisplay_display_boxes_in_window_p): change semantics of return
7409         codes to be more intuitive.
7410
7411         * gutter.h: declare display_boxes_in_gutter_p.
7412
7413         * gutter.c (display_boxes_in_gutter_p): new function for
7414         redisplay.
7415
7416 2000-11-22  Andy Piper  <andy@xemacs.org>
7417
7418         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
7419         autodetect domain.
7420
7421 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
7422
7423         * callproc.c (Fold_call_process_internal):
7424         * gpm.c (Freceive_gpm_event):
7425         (tty_get_foreign_selection): Might be just warning supression.
7426         * fileio.c (Fwrite_region_internal):
7427         (Fset_visited_file_modtime):
7428         * keymap.c (event_matches_key_specifier_p):
7429         Initialize GCPROed variable.
7430
7431         * menubar-x.c (command_builder_find_menu_accelerator):
7432         Initialize before use.
7433
7434 2000-11-23  Andy Piper  <andy@xemacs.org>
7435
7436         * unexcw.c (unexec): make the resulting executable executable.
7437
7438 2000-11-21  Martin Buchholz  <martin@xemacs.org>
7439
7440         * doc.c (get_doc_string):
7441         Use size_t, not int, for result of XSTRING_LENGTH.
7442
7443         * cmds.c (Fdelete_char):
7444         * cmds.c (Fpoint_at_eol):
7445         * cmds.c (Fself_insert_command):
7446         Use EMACS_INT, not int, for result of XINT.
7447         Someday, someone will want to insert more than 2**31 identical characters.
7448
7449         * cmds.c (Fdelete_char):
7450         * cmds.c (Fdelete_backward_char):
7451         * syntax.c (Fforward_word):
7452         * syntax.c (Fforward_comment):
7453         Make COUNT argument optional, for consistency with forward-char et al.
7454
7455 2000-11-22  Martin Buchholz  <martin@xemacs.org>
7456
7457         * lisp.h:
7458         * print.c (long_to_string):
7459         Return a useful value: the pointer at end of data written.
7460
7461         * doprnt.c:
7462         Use `static const char * const' for constant strings.
7463         (union printf_arg): Delete `i', `ui' members.
7464         (get_doprnt_args):
7465         (emacs_doprnt_1):
7466         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
7467         Do all printf-ing via the `l' specifier.
7468         Use EMACS_INT instead of int.
7469         Optimize.
7470
7471 2000-11-20  Didier Verna  <didier@xemacs.org>
7472
7473         * faces.c (update_face_cachel_data): don't frob the background
7474         pixmap when the window is being created. The face is needed but
7475         does not exist yet.
7476
7477 2000-11-20  Andy Piper  <andy@xemacs.org>
7478
7479         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
7480         messing with a debug environment.
7481
7482 2000-11-20  Martin Buchholz  <martin@xemacs.org>
7483
7484         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
7485
7486 2000-11-20  Martin Buchholz  <martin@xemacs.org>
7487
7488         * casetab.c (Fcase_table_p): Fix compile error and crash.
7489
7490 2000-11-18  Philip Aston  <philipa@mail.com>
7491
7492         * s/cygwin32.h: Cygwin has SVR4-like pty support.
7493
7494 2000-11-18  Martin Buchholz  <martin@xemacs.org>
7495
7496         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
7497         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
7498
7499 2000-11-17  Martin Buchholz  <martin@xemacs.org>
7500
7501         * config.h.in: Define HAVE_ELF_H if elf.h exists.
7502         * unexelf.c: Use HAVE_ELF_H.
7503         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
7504         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
7505         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
7506         Greg Harrington <greg_harrington@hotmail.com> provided a machine
7507         for testing.
7508         So this is an unexelfsgi.c from a different line of development.
7509
7510 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
7511
7512         * regex.c (RE_TR_ASCII): New function.
7513         (RE_TRANSLATE): Call it.
7514
7515 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
7516
7517         * buffer.h (TRT_TABLE_OF): Remove assert.
7518         (IN_TRT_TABLE_DOMAIN): Removed.
7519
7520 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
7521
7522         * free-hook.c (log_gcpro):
7523         (show_gcprohist): Add support for GCPRO5.
7524
7525 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
7526
7527         * emacs.c (main_1): Improve -sd error message when --pdump=no.
7528
7529 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
7530
7531         * symeval.h: Declare flush_all_buffer_local_cache.
7532
7533         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
7534         (flush_buffer_local_cache): Added.
7535         (flush_all_buffer_local_cache): Added.
7536
7537         * lrecord.h: Remove unused XD_LO_RESET_NIL.
7538
7539         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
7540         (pdump_dump_data): Ditto.
7541         (pdump_reloc_one): Ditto.
7542         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
7543         before dumping.
7544
7545
7546 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
7547
7548         * buffer.c: Remove if 0'ed entry.
7549         * buffer.h: Rewrite TRT to use char-table.
7550         * bufslots.h: Remove mirror tables.
7551         * casetab.c: Remove mirror tables.
7552         (CASE_TABLE_P): New macro.
7553         (Fcase_table_p): Element of a case table is string or char-table.
7554         (make_mirror_trt_table): Removed.
7555         (set_case_table): Setup char-table from strings for backward
7556         compatibility.
7557         * dired.c (Fdirectory_files):
7558         * dired-msw.c: (mswindows_get_files):
7559         * lisp.h: Change prototype of re_pattern_buffer.
7560         * regex.c: (RE_TRANSLATE): New macro.
7561         (TRANSLATE_P): Ditto.
7562         Change translate to type RE_TRANSLATE_TYPE.
7563         * regex.h: Define RE_TRANSLATE_TYPE
7564         * search.c (TRANSLATE): New macro.
7565         (TRANSLATE_ASCII): New macro.
7566         Translate table is changed to Lisp_Object.
7567         (signal_failure): Inhibit return.
7568
7569 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
7570
7571         * device-msw.c:
7572         * eldap.c:
7573         * event-Xt.c:
7574         * event-stream.c:
7575         * print.c:
7576         Do UNGCPRO before return.
7577
7578 2000-11-14  Martin Buchholz <martin@xemacs.org>
7579
7580         * XEmacs 21.2.37 is released.
7581
7582 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
7583
7584         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
7585         Add comments about discarded return value.
7586
7587 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
7588
7589         * callint.c:
7590         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
7591
7592 2000-10-27  Andy Piper  <andy@xemacs.org>
7593
7594         * gutter.c (Fset_default_gutter_position): default left and right
7595         gutters to visible.
7596         (calculate_gutter_size): calculate resonable heuristic for left
7597         and right gutter sizes.
7598         (specifier_vars_of_gutter): change left and right gutter sizes to
7599         autodetect.
7600         (calculate_gutter_size_from_display_lines): new function.
7601         (output_gutter): check for resizing on left and right gutters.
7602         (clear_gutter): don't special case top and left gutters.
7603         (specifier_vars_of_gutter): use new signature for
7604         set_specifier_caching.
7605
7606         * glyphs-x.c (x_redisplay_widget): spelling fix.
7607         * glyphs.c (specifier_vars_of_glyphs):
7608         * menubar.c (specifier_vars_of_menubar):
7609         * redisplay.c (specifier_vars_of_redisplay):
7610         * toolbar.c (specifier_vars_of_toolbar):
7611         * window.c (specifier_vars_of_window):
7612         * scrollbar.c (specifier_vars_of_scrollbar):
7613         (complex_vars_of_scrollbar): use new signature for
7614         set_specifier_caching.
7615
7616         * specifier.c (set_specifier_caching): include recompute flag.
7617         (recompute_one_cached_specifier_in_window): always recompute if
7618         flag set.
7619         (recompute_one_cached_specifier_in_frame): ditto.
7620
7621         * specifier.h (struct specifier_caching): add recompute flag.
7622
7623 2000-10-24  Andy Piper  <andy@xemacs.org>
7624
7625         * unexcw.c (copy_executable_and_dump_data_section): add new
7626         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
7627         5.0 happy.
7628
7629 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
7630
7631         * console-x.h (x_device): New member modifier_release_time.
7632         * event-Xt.c (x_handle_sticky_modifiers):
7633         Bound interval modifier keys are sticky.
7634         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
7635         * events.h: extern it.
7636
7637 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
7638
7639         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
7640
7641 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
7642
7643         * event-stream.c (execute_command_event): Preserve current_events
7644         and the like when event is misc-user-event.
7645         Inhibit quit during the call to maybe_echo_keys.
7646
7647 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
7648
7649         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
7650         symlink when buffer is killed.
7651         (inhibit_clash_detection): New variable.
7652
7653 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
7654
7655         * console.c (Fset_input_method): Trigger redisplay on tty.
7656
7657 2000-11-07  Martin Buchholz  <martin@xemacs.org>
7658
7659         * process.c (Fprocess_status): Revert to previous behavior:
7660         (process-status "nosuchprocess") ==> nil
7661
7662 2000-11-06  Martin Buchholz  <martin@xemacs.org>
7663
7664         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
7665         Work around another GCC 2.95.2 optimizer bug.
7666
7667 2000-11-02  Martin Buchholz  <martin@xemacs.org>
7668
7669         * process.c (Fget_process): Use LIST_LOOP_2.
7670         (kill_buffer_processes): Use LIST_LOOP_2.
7671
7672         * minibuf.c (Fall_completions):
7673         Delete old non-functional code for FSF fourth argument.
7674
7675         * frame.c (frame_matches_frame_spec):
7676         Renamed from `frame_matches_frametype'.  Update all callers.
7677         (device_matches_device_spec):
7678         Renamed from 'device_matches_console_spec'.  Update all callers.
7679
7680         * doc.c (Fsubstitute_command_keys):
7681         Remove buffer overflow crash.  Small code cleanups.
7682
7683         * casetab.c (check_case_table): Simpler code.
7684
7685         * window.c (Freplace_buffer_in_windows):
7686         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
7687         (and similar implementation) as Fdelete_windows_on.
7688         Update all callers.
7689
7690         * alloc.c (Fmake_list):
7691         * alloc.c (make_vector):
7692         * alloc.c (Fmake_vector):
7693         * alloc.c (make_bit_vector):
7694         * alloc.c (Fmake_bit_vector):
7695         * alloc.c (Fbit_vector):
7696         * alloc.c (Fmake_string):
7697         * alloc.c (Fpurecopy):
7698         * alloc.c (Fmemory_limit):
7699         * buffer.c:
7700         * buffer.c (Fget_buffer):
7701         * buffer.c (Fkill_buffer):
7702         * buffer.c (complex_vars_of_buffer):
7703         * bytecode.c (Fcompiled_function_stack_depth):
7704         * callint.c (Fprefix_numeric_value):
7705         * event-stream.c:
7706         * event-stream.c (Fread_key_sequence):
7707         * casetab.c:
7708         * casetab.c (Fcase_table_p):
7709         * casetab.c (check_case_table):
7710         * casetab.c (Fset_case_table):
7711         * casetab.c (Fset_standard_case_table):
7712         * chartab.c:
7713         * chartab.c (Fchar_table_type):
7714         * chartab.c (Freset_char_table):
7715         * chartab.c (Fget_char_table):
7716         * chartab.c (Fget_range_char_table):
7717         * chartab.c (Fput_char_table):
7718         * chartab.c (Fmap_char_table):
7719         * chartab.c (Fcategory_table_p):
7720         * chartab.c (Fcheck_category_at):
7721         * chartab.c (Fchar_in_category_p):
7722         * chartab.c (Fcategory_table):
7723         * chartab.c (Fcopy_category_table):
7724         * chartab.c (Fset_category_table):
7725         * chartab.c (Fcategory_designator_p):
7726         * chartab.c (Fcategory_table_value_p):
7727         * cmds.c (Fdelete_char):
7728         * cmds.c (Fdelete_backward_char):
7729         * cmds.c (Fself_insert_command):
7730         * cmds.c (Fself_insert_internal):
7731         * console.c (Fvalid_console_type_p):
7732         * console.c (Fcdfw_console):
7733         * console.c (Fconsole_type):
7734         * console.c (Fconsole_name):
7735         * console.c (Fconsole_device_list):
7736         * console.c (Fconsole_on_window_system_p):
7737         * data.c:
7738         * data.c (Feq):
7739         * data.c (Fold_eq):
7740         * data.c (Fsubr_interactive):
7741         * data.c (Fchar_to_int):
7742         * data.c (Fint_to_char):
7743         * data.c (Fsetcar):
7744         * data.c (Fsetcdr):
7745         * data.c (Fnumber_to_string):
7746         * data.c (Fstring_to_number):
7747         * data.c (Frem):
7748         * database.c (mark_database):
7749         * database.c (finalize_database):
7750         * database.c (Fdatabase_live_p):
7751         * database.c (Fdatabasep):
7752         * device-x.c (Fx_get_resource):
7753         * device.c (Fdfw_device):
7754         * dired.c:
7755         * dired.c (Ffile_name_completion):
7756         * dired.c (Ffile_name_all_completions):
7757         * dired.c (Fuser_name_completion):
7758         * dired.c (Fuser_name_completion_1):
7759         * dired.c (Fuser_name_all_completions):
7760         * doc.c (Fdocumentation):
7761         * doc.c (Fdocumentation_property):
7762         * doc.c (Fsubstitute_command_keys):
7763         * editfns.c:
7764         * editfns.c (Fchar_to_string):
7765         * editfns.c (Fstring_to_char):
7766         * editfns.c (Ftemp_directory):
7767         * editfns.c (Finsert_char):
7768         * editfns.c (Fbuffer_substring_no_properties):
7769         * editfns.c (Fnarrow_to_region):
7770         * editfns.c (Fchar_equal):
7771         * editfns.c (Fchar_Equal):
7772         * editfns.c (Ftranspose_regions):
7773         * emacs.c (Fdump_emacs):
7774         * eval.c (Fthrow):
7775         * eval.c (Fcommand_execute):
7776         * eval.c (Fautoload):
7777         * eval.c (Fbacktrace):
7778         * eval.c (Fbacktrace_frame):
7779         * events.c:
7780         * events.c (Fcopy_event):
7781         * events.c (Fcharacter_to_event):
7782         * events.c (Fevent_button):
7783         * events.c (Fevent_process):
7784         * extents.c:
7785         * extents.c (Fnext_extent_change):
7786         * extents.c (Fextent_property):
7787         * faces.c (Ffacep):
7788         * faces.c (Fmake_face):
7789         * file-coding.c:
7790         * file-coding.c (Fencode_shift_jis_char):
7791         * file-coding.c (Fencode_big5_char):
7792         * fileio.c (Ffile_name_directory):
7793         * fileio.c (Ffile_name_nondirectory):
7794         * fileio.c (Ffile_name_as_directory):
7795         * fileio.c (Fdirectory_file_name):
7796         * fileio.c (Ffile_truename):
7797         * fileio.c (Fsubstitute_in_file_name):
7798         * fileio.c (Ffile_modes):
7799         * fileio.c (Fset_file_modes):
7800         * fileio.c (Fset_default_file_modes):
7801         * fileio.c (Fverify_visited_file_modtime):
7802         * floatfns.c (Facos):
7803         * floatfns.c (Fasin):
7804         * floatfns.c (Fatan):
7805         * floatfns.c (Fcos):
7806         * floatfns.c (Fsin):
7807         * floatfns.c (Ftan):
7808         * floatfns.c (Fbessel_j0):
7809         * floatfns.c (Fbessel_j1):
7810         * floatfns.c (Fbessel_jn):
7811         * floatfns.c (Fbessel_y0):
7812         * floatfns.c (Fbessel_y1):
7813         * floatfns.c (Fbessel_yn):
7814         * floatfns.c (Ferf):
7815         * floatfns.c (Ferfc):
7816         * floatfns.c (Flog_gamma):
7817         * floatfns.c (Fexp):
7818         * floatfns.c (Fexpt):
7819         * floatfns.c (Flog):
7820         * floatfns.c (Flog10):
7821         * floatfns.c (Fsqrt):
7822         * floatfns.c (Fcube_root):
7823         * floatfns.c (Facosh):
7824         * floatfns.c (Fasinh):
7825         * floatfns.c (Fatanh):
7826         * floatfns.c (Fcosh):
7827         * floatfns.c (Fsinh):
7828         * floatfns.c (Ftanh):
7829         * floatfns.c (Fabs):
7830         * floatfns.c (Ffloat):
7831         * floatfns.c (Flogb):
7832         * floatfns.c (Fceiling):
7833         * floatfns.c (Ffloor):
7834         * floatfns.c (Fround):
7835         * floatfns.c (Ftruncate):
7836         * floatfns.c (Ffceiling):
7837         * floatfns.c (Fffloor):
7838         * floatfns.c (Ffround):
7839         * floatfns.c (Fftruncate):
7840         * fns.c (Fstring_equal):
7841         * fns.c (Fstring_lessp):
7842         * fns.c (concat2):
7843         * fns.c (concat3):
7844         * fns.c (vconcat2):
7845         * fns.c (vconcat3):
7846         * fns.c (Fsubstring):
7847         * fns.c (Fassoc):
7848         * fns.c (Fold_assoc):
7849         * fns.c (assoc_no_quit):
7850         * fns.c (Fassq):
7851         * fns.c (Fold_assq):
7852         * fns.c (assq_no_quit):
7853         * fns.c (Frassoc):
7854         * fns.c (Fold_rassoc):
7855         * fns.c (Frassq):
7856         * fns.c (Fold_rassq):
7857         * fns.c (rassq_no_quit):
7858         * fns.c (Fremassoc):
7859         * fns.c (remassoc_no_quit):
7860         * fns.c (Fremassq):
7861         * fns.c (remassq_no_quit):
7862         * fns.c (Fremrassoc):
7863         * fns.c (Fremrassq):
7864         * fns.c (remrassq_no_quit):
7865         * fns.c (Fsort):
7866         * fns.c (Fplist_get):
7867         * fns.c (Fplist_put):
7868         * fns.c (Fplist_remprop):
7869         * fns.c (Fplist_member):
7870         * fns.c (Flax_plist_get):
7871         * fns.c (Flax_plist_put):
7872         * fns.c (Flax_plist_remprop):
7873         * fns.c (Flax_plist_member):
7874         * fns.c (Fequal):
7875         * fns.c (Fold_equal):
7876         * fns.c (Frequire):
7877         * fns.c (Fbase64_encode_region):
7878         * fns.c (Fbase64_encode_string):
7879         * fns.c (Fbase64_decode_region):
7880         * frame.c:
7881         * frame.c (frame_matches_frame_spec):
7882         * frame.c (device_matches_device_spec):
7883         * frame.c (next_frame):
7884         * frame.c (previous_frame):
7885         * frame.c (Fnext_frame):
7886         * frame.c (Fprevious_frame):
7887         * frame.c (Fframe_property):
7888         * frame.c (Fset_frame_height):
7889         * frame.c (Fset_frame_size):
7890         * frame.h:
7891         * glyphs.c:
7892         * glyphs.c (if):
7893         * glyphs.c (decode_error_behavior_flag):
7894         * glyphs.c (Fmake_image_instance):
7895         * indent.c (Findent_to):
7896         * intl.c (Fignore_defer_gettext):
7897         * keymap.c (Fkeymapp):
7898         * keymap.c (Flookup_key):
7899         * lread.c:
7900         * lread.c (Fload_internal):
7901         * lread.c (Feval_buffer):
7902         * lread.c (Feval_region):
7903         * macros.c (Fexecute_kbd_macro):
7904         * marker.c (set_marker_internal):
7905         * marker.c (Fset_marker):
7906         * marker.c (set_marker_restricted):
7907         * marker.c (Fcopy_marker):
7908         * marker.c (noseeum_copy_marker):
7909         * menubar.c:
7910         * menubar.c (Fpopup_menu):
7911         * minibuf.c:
7912         * mule-charset.c (Fcharset_name):
7913         * mule-charset.c (Fchar_charset):
7914         * mule-charset.c (Fchar_octet):
7915         * mule-charset.c (Fsplit_char):
7916         * mule-wnnfns.c (Fwnn_open):
7917         * mule-wnnfns.c (Fwnn_dict_comment):
7918         * mule-wnnfns.c (Fwnn_quit_henkan):
7919         * mule-wnnfns.c (Fwnn_word_toroku):
7920         * mule-wnnfns.c (Fwnn_word_sakujo):
7921         * mule-wnnfns.c (Fwnn_word_use):
7922         * mule-wnnfns.c (Fwnn_hindo_set):
7923         * objects.c:
7924         * objects.c (Fmake_color_instance):
7925         * objects.c (Fmake_font_instance):
7926         * print.c (Fwrite_char):
7927         * process.c:
7928         * process.c (mark_process):
7929         * process.c (print_process):
7930         * process.c (get_process_from_usid):
7931         * process.c (Fprocessp):
7932         * process.c (Fprocess_live_p):
7933         * process.c (Fget_process):
7934         * process.c (Fget_buffer_process):
7935         * process.c (get_process):
7936         * process.c (Fprocess_id):
7937         * process.c (Fprocess_name):
7938         * process.c (Fprocess_command):
7939         * process.c (init_process_io_handles):
7940         * process.c (start_process_unwind):
7941         * process.c (Fstart_process_internal):
7942         * process.c (Fopen_multicast_group_internal):
7943         * process.c (Fset_process_window_size):
7944         * process.c (read_process_output):
7945         * process.c (send_process):
7946         * process.c (Fprocess_tty_name):
7947         * process.c (Fset_process_buffer):
7948         * process.c (Fprocess_buffer):
7949         * process.c (Fprocess_mark):
7950         * process.c (set_process_filter):
7951         * process.c (Fset_process_filter):
7952         * process.c (Fprocess_filter):
7953         * process.c (Fprocess_send_region):
7954         * process.c (Fprocess_send_string):
7955         * process.c (exec_sentinel):
7956         * process.c (Fset_process_sentinel):
7957         * process.c (Fprocess_sentinel):
7958         * process.c (status_notify):
7959         * process.c (Fprocess_status):
7960         * process.c (Fprocess_exit_status):
7961         * process.c (process_send_signal):
7962         * process.c (Fprocess_send_eof):
7963         * process.c (deactivate_process):
7964         * process.c (remove_process):
7965         * process.c (Fdelete_process):
7966         * process.c (kill_buffer_processes):
7967         * process.c (Fprocess_kill_without_query):
7968         * process.c (Fprocess_kill_without_query_p):
7969         * rangetab.c:
7970         * rangetab.c (Fget_range_table):
7971         * rangetab.c (Fput_range_table):
7972         * rangetab.c (Fremove_range_table):
7973         * rangetab.c (Fclear_range_table):
7974         * search.c:
7975         * search.c (Fskip_chars_forward):
7976         * search.c (Fskip_chars_backward):
7977         * search.c (Fskip_syntax_forward):
7978         * search.c (Fskip_syntax_backward):
7979         * search.c (search_command):
7980         * search.c (Freplace_match):
7981         * search.c (Fregexp_quote):
7982         * select.c (Fown_selection_internal):
7983         * select.c (Fselection_owner_p):
7984         * select.c (Fselection_exists_p):
7985         * select.c (Fget_selection_internal):
7986         * specifier.c:
7987         * symbols.c:
7988         * symbols.c (Fintern):
7989         * symbols.c (Fintern_soft):
7990         * symbols.c (Funintern):
7991         * symbols.c (Fapropos_internal):
7992         * symbols.c (Fset_default):
7993         * syntax.c:
7994         * syntax.c (Fsyntax_table_p):
7995         * syntax.c (Fcopy_syntax_table):
7996         * syntax.c (Fset_syntax_table):
7997         * syntax.c (Fchar_syntax):
7998         * syntax.c (syntax_match):
7999         * syntax.c (Fmatching_paren):
8000         * syntax.c (Fforward_word):
8001         * syntax.c (scan_lists):
8002         * syntax.c (Fscan_lists):
8003         * syntax.c (Fscan_sexps):
8004         * syntax.c (Fparse_partial_sexp):
8005         * toolbar.c (Fcheck_toolbar_button_syntax):
8006         * tooltalk.doc:
8007         * window.c:
8008         * window.c (Fwindowp):
8009         * window.c (Fwindow_live_p):
8010         * window.c (Fwindow_point):
8011         * window.c (Fdelete_window):
8012         * window.c (Fnext_window):
8013         * window.c (Fprevious_window):
8014         * window.c (Fother_window):
8015         * window.c (window_loop):
8016         * window.c (Fget_lru_window):
8017         * window.c (Fsplit_window):
8018         * window.c (Fenlarge_window):
8019         * window.c (Fenlarge_window_pixels):
8020         * window.c (Fshrink_window):
8021         * window.c (Fshrink_window_pixels):
8022         * window.c (change_window_height):
8023         * window.c (Fwindow_configuration_p):
8024         * window.c (Fcurrent_window_configuration):
8025         * window.h:
8026         * casefiddle.c (casify_object):
8027         * casefiddle.c (Fupcase):
8028         * casefiddle.c (Fdowncase):
8029         * casefiddle.c (Fcapitalize):
8030         * casefiddle.c (Fupcase_initials):
8031         * casefiddle.c (casify_region_internal):
8032         * casefiddle.c (casify_region):
8033         * casefiddle.c (Fupcase_region):
8034         * casefiddle.c (Fdowncase_region):
8035         * casefiddle.c (Fcapitalize_region):
8036         * casefiddle.c (Fupcase_initials_region):
8037         * casefiddle.c (Fupcase_word):
8038         * casefiddle.c (Fdowncase_word):
8039         * casefiddle.c (Fcapitalize_word):
8040         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
8041         Replace 0 with '\0' when working with bytes.
8042         Replace initial "(" with "\(" in docstrings.
8043
8044 2000-11-01  Martin Buchholz  <martin@xemacs.org>
8045
8046         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
8047
8048         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
8049
8050 2000-10-31  Martin Buchholz  <martin@xemacs.org>
8051
8052         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
8053
8054 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
8055
8056         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
8057         correctly.
8058
8059 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
8060
8061         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
8062         (inhibit_auto_save_session): New variable.
8063         (vars_of_fileio): Declare and initialize them.
8064         * fileio.c (Fdo_auto_save): Don't create session file if
8065         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
8066
8067 2000-10-31  Martin Buchholz  <martin@xemacs.org>
8068
8069         * sgiplay.c (play_internal): C++ compilability.
8070         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
8071         * callproc.c (Fold_call_process_internal):
8072         Remove unused vars `env', `first'.
8073         * scrollbar.c (update_scrollbar_instance):
8074         #### unused var `current_window'.
8075         * redisplay-tty.c: Put currently unused vars insert_mode_on,
8076         etc. within #ifdef NOT_YET.
8077         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
8078         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
8079         * specifier.c (specifier_instance):
8080         #### unused var `tag'.
8081         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
8082
8083 2000-10-27  Martin Buchholz  <martin@xemacs.org>
8084
8085         * fns.c (Fbutlast):
8086         * fns.c (list_sort):
8087         * fns.c (Ffillarray):
8088         * fns.c (bytecode_nconc2):
8089         * fns.c (Fnconc):
8090         * fns.c (mapcar1):
8091         * fns.c (Fmapconcat):
8092         Be pedantically 64-bit correct.  For the time when someone will
8093         want to have a list with length > 2**32.
8094
8095         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
8096         Work around MIPSpro compiler bug.
8097
8098         * process-unix.c (unix_kill_child_process): Add snarky comment.
8099         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
8100
8101         * config.h.in: Oops, _getpt ==> _getpty
8102
8103 2000-10-26  Martin Buchholz  <martin@xemacs.org>
8104
8105         * config.h.in:
8106         * regex.c:
8107         Use void*, not char*, as return type of alloca().
8108
8109         * alloc.c (free_marker): Side effect inside assert expression!
8110
8111 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
8112
8113         * mule-charset.c (Fset_charset_ccl_program): To check
8114         if the given ccl program is valid, use setup_ccl_program()
8115         instead of CHECK_VECTOR().
8116         (Fmake_charset): Likewise.
8117
8118 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
8119
8120         * faces.c (get_extent_fragment_face_cache_index):
8121         Fix cachel.merged_faces memory leak.
8122
8123 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
8124
8125         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
8126         Reset MSB of octets obtained by DECODE_SJIS
8127         because of the incompatibility with Emacs.
8128         (ccl_driver)<CCL_ENCODE_SJIS>:
8129         Set MSB of octets before passing them to
8130         ENCODE_SJIS because of the incompatibility
8131         with Emacs.
8132
8133 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
8134
8135         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
8136         (DECLARE_LRECORD): Undo the last change.
8137         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
8138
8139 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
8140
8141         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
8142         the implementation to lrecord_implementations_table.
8143
8144 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
8145
8146         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
8147         initial value of `lrecord_type_##c_name' and
8148         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
8149         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
8150         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
8151         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
8152         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
8153
8154 2000-10-17  Martin Buchholz  <martin@xemacs.org>
8155
8156         * miscplay.c (sndcnv8S_2mono):
8157         (sndcnv2monounsigned):
8158         (sndcnvULaw_2linear):
8159         (sndcnv16swap):
8160         Remove implementation-defined behavior.
8161
8162 2000-10-12  Martin Buchholz  <martin@xemacs.org>
8163
8164         * input-method-xlib.c: Warning suppression.
8165
8166 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
8167
8168         * mule-ccl.c: Sync up with Emacs 21.0.90.
8169         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
8170         Do nothing.
8171         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
8172         Likewise.
8173         (ccl_driver[WriteMultibyteChar2]): Bug fix.
8174         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
8175         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
8176         leading char belongs to official 2-dimensional charset.
8177         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
8178         write the given character as is.  Otherwise,
8179         if it is a multibyte char, convert it by
8180         non_ascii_set_charptr_emchar, then write it.
8181         (CCL_WRITE_STRING): Likewise.
8182         (ccl_get_compiled_code): New function.
8183         (setup_ccl_program): When ccl_prog is invalid,
8184         return -1.
8185         (Fregister_code_conversion_map): New function.
8186         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
8187
8188         * mule-ccl.h: Sync up with Emacs 21.0.90.
8189         (Fregister_ccl_program): export it.
8190
8191         * redisplay-msw.c (separate_textual_runs):
8192         If ccl program is not valid, don't do ccl conversion.
8193
8194         * redisplay-x.c (separate_textual_runs): Ditto.
8195
8196         * file-coding.c (Fmake_coding_system):
8197         When type is ccl and value is vector, register it
8198         with a proper symbol.  And checks whether the
8199         given ccl program is valid.
8200         (mule_decode): When calling ccl_driver, if src indicates
8201         NULL pointer, set an empty string instead.
8202         (mule_encode): Likewise.
8203
8204 2000-10-11  Martin Buchholz  <martin@xemacs.org>
8205
8206         The following large batch of changes gets us back to a state of
8207         C++ compilability.  Extbyte is now a char, which means that
8208         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
8209
8210         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
8211
8212         * sound.c (Fplay_sound): Type correctness.
8213
8214         * select-x.c (hack_motif_clipboard_selection): Type correctness.
8215         (x_get_window_property): Type correctness.
8216         (receive_incremental_selection): unsigned char ==> Extbyte
8217         (selection_data_to_lisp_data): unsigned char ==> Extbyte
8218         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
8219         (Fx_store_cutbuffer_internal): Type correctness.
8220
8221         * process-unix.c (try_to_initialize_subtty): Type correctness.
8222
8223         * objects-x.c (x_print_color_instance): Type correctness.
8224         (x_print_font_instance): Type correctness.
8225         (x_list_fonts): SExtbyte ==> Extbyte.
8226         (valid_x_font_name_p): SExtbyte ==> Extbyte.
8227         (x_find_charset_font): SExtbyte ==> Extbyte.
8228         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
8229         (truename_via_XListFonts): SExtbyte ==> Extbyte.
8230         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
8231         Use bufbyte_strcmp.
8232
8233         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
8234         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
8235         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
8236         (BYTE_C0_P): Use bit ops for char-signedness safety.
8237         (BYTE_C1_P): Use bit ops for char-signedness safety.
8238         (CHARSET_BY_LEADING_BYTE):
8239         (CHARSET_BY_ATTRIBUTES):
8240         Always use inline function.
8241         Use type_checking_assert.
8242         Hide chlook.
8243
8244         * mule-charset.c (non_ascii_charptr_copy_char):
8245         Modify to work with both ASCII and non-ASCII characters.
8246         Improve docs and variable names.
8247         Replace over-clever fall-through switch with a simple loop.
8248         (Lstream_get_emchar_1):
8249         Replace over-clever fall-through switch with a simple loop.
8250
8251         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
8252         Warning suppression.
8253
8254         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
8255         the return value of Lstream_getc, which could be EOF as well.
8256
8257         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
8258
8259         * lisp.h: Make Extbyte a char, not unsigned char, so that external
8260         APIs can be used on Extbytes without casts.  Risky!
8261         (SExtbyte): Remove.
8262         (UExtbyte): Remove.
8263
8264         * input-method-xlib.c (XIM_init_device):
8265         Use Xlib.h instead of IntrinsicP.h.
8266         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
8267         which will break in X11R7.
8268         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
8269         to call XRegisterIMInstantiateCallback with correct types.
8270
8271         * gui-x.c (button_item_to_widget_value): Type correctness.
8272
8273         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
8274
8275         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
8276         (xbm_instantiate_1): Type correctness.
8277         (BUILD_GLYPH_INST):  Type correctness.
8278
8279         * fileio.c (Fsubstitute_in_file_name): Type correctness.
8280
8281         * file-coding.c:
8282         (decode_coding_sjis):
8283         (decode_coding_big5):
8284         (decode_coding_ucs4):
8285         (decode_coding_utf8):
8286         (decode_coding_iso2022):
8287         (decode_coding_no_conversion):
8288         Make all decoding functions take an Extbyte * arg.
8289         (encode_coding_sjis):
8290         (encode_coding_big5):
8291         (encode_coding_ucs4):
8292         (encode_coding_utf8):
8293         (encode_coding_iso2022):
8294         (encode_coding_no_conversion):
8295         Make all encoding functions take a Bufbyte * arg.
8296         Use size_t instead of unsigned int for memory sizes.
8297         Only cast to unsigned char whenever dereferencing Extbyte *.
8298
8299         * doc.c (unparesseuxify_doc_string): Type correctness.
8300
8301         * console-x.c (split_up_display_spec):
8302         Rewrite without using details of internal string representation.
8303         (x_semi_canonicalize_device_connection): Type correctness.
8304
8305         * config.h.in:
8306         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
8307         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
8308         (HAVE_XFREE386): Removed.
8309
8310         * buffer.h (DEC_CHARPTR): `const' correctness.
8311         (bufbyte_strcmp): New.
8312         (bufbyte_memcmp): New.
8313
8314         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
8315
8316         * buffer.h (XCHAR_OR_CHAR_INT):
8317         Always use inline function.
8318         Remove redundant type checking assert() - XINT will abort quite nicely.
8319
8320 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
8321
8322         * search.c (Freplace_match): Set newtext to an empty string.
8323
8324 2000-10-10  Martin Buchholz  <martin@xemacs.org>
8325
8326         * s/decosf1-3.h: Remove #include of stropts.h
8327         * s/ptx.h: Remove #include of stropts.h
8328         * s/usg5-4.h: Remove #include of stropts.h
8329         * sysproc.h:
8330         * config.h.in:
8331         Use stropts.h, not sys/stropts.h.
8332         Use strtio.h, not sys/strtio.h.
8333
8334 2000-10-04  Martin Buchholz <martin@xemacs.org>
8335
8336         * XEmacs 21.2.36 is released.
8337
8338 2000-09-21  Andy Piper  <andy@xemacs.org>
8339
8340         * glyphs-x.c (x_redisplay_widget): make sure non-structural
8341         changes still involve copying the widget tree.
8342         (update_widget_face): make sure a change is register in the widget
8343         tree. Call update_tab_widget_face appropriately.
8344         (update_tab_widget_face): ditto.
8345         (x_tab_control_redisplay): make sure non-structural changes still
8346         involve copying the widget tree.
8347
8348 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
8349
8350         * lread.c (locate_file): Check the path element is non-nil.
8351
8352 2000-10-02  Martin Buchholz  <martin@xemacs.org>
8353
8354         * lisp.h: Warning suppression for SCO compilers.
8355
8356         * redisplay-tty.c (reset_tty_modes): Fix crash.
8357         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
8358
8359 2000-09-27  Martin Buchholz  <martin@xemacs.org>
8360
8361         Big signal/process handling overhaul.  Bugs fixed:
8362         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
8363         M-x comint-kill-subjob should work for both values nil and t of
8364         process-connection-type. It was broken on most platforms.
8365         Testing on Irix and Cygwin still needed.  Other plaforms tested.
8366         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
8367         * process-unix.c: Signal/Process handling overhaul.
8368         (pty_name): make 64 bytes, as `expect' does, for paranoia.
8369         (allocate_pty): Use all available modern methods of allocating
8370         ptys, falling back to old style BSD allocation as a last resort.
8371         Use allegedly more secure Unix98 pty allocation by default.
8372         (allocate_pty_the_old_fashioned_way): New. the last resort.
8373         (unix_create_process): Push ptem, ldterm, ttcompat where
8374         available.  Autoconfiscate.
8375         (try_to_initialize_subtty): New.
8376         (unix_kill_child_process): Proper signal handling for ptys on most
8377         platforms, using special knowledge of AIX, BSD, etc...
8378         (unix_create_process): Always disconnect_controlling_terminal() for
8379         subprocesses, whether using ptys or not.
8380         * process.h: Remove old getpt-dependent PTY code.
8381         * process.c (Fprocess_send_signal): New, obvious generic function.
8382         (decode_signal): New.
8383         (Finterrupt_process):
8384         (Fkill_process):
8385         (Fquit_process):
8386         (Fstop_process):
8387         (Fcontinue_process):
8388         (Fsignal_process): Use decode_signal.
8389         (process_send_signal):
8390         Many docstring corrections.
8391         Allow any signal to be sent to a process object.
8392         * config.h.in: Add symbols for big signal/process overhaul.
8393         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
8394         * sysproc.h: Include process-related headers, where available:
8395         sys/stropts.h sys/strtio.h pty.h libutil.h
8396         * s/irix4-0.h:
8397         * s/irix5-0.h:
8398         * s/cygwin32.h:
8399         * s/gnu.h:
8400         * s/linux.h:
8401         * s/hpux.h:
8402         * s/aix3-1.h:
8403         Remove old S&M pty stuff.
8404         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
8405         * systty.h: Simplify cpp hackery, improve comments.
8406         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
8407
8408         * editfns.c (Fformat_time_string):
8409         Be a little more paranoid with the return value of ctime.
8410
8411         * fileio.c (check_executable):
8412         (check_writable):
8413         Use symbolic constants X_OK, W_OK.
8414
8415         * console-x.c (split_up_display_spec): Fix a warning.
8416
8417 2000-10-02  Martin Buchholz  <martin@xemacs.org>
8418
8419         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
8420         * ntproc.c (sys_spawnve): make_string ==> build_string
8421         Small clarity improvements.
8422
8423 2000-09-30  Martin Buchholz  <martin@xemacs.org>
8424
8425         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
8426
8427         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
8428
8429         * config.h.in (HAVE_STRCASECMP): Remove.
8430
8431 2000-09-29  Martin Buchholz  <martin@xemacs.org>
8432
8433         * redisplay-output.c (redisplay_output_pixmap):
8434         Cleaner and possibly more 64-bit correct code.
8435
8436 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
8437
8438         * dumper.c (pdump_load_finish): move restoration of
8439         `noninteractive1' to emacs.c (main_1).
8440         * emacs.c (main_1): protect LISP-visible command-line flags
8441         from pdump_load().
8442
8443 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
8444
8445         * Makefile.in.in (versionclean):  Use EXE_TARGET and
8446         DUMP_TARGET instead of literal program names.
8447
8448 2000-09-20  Martin Buchholz  <martin@xemacs.org>
8449
8450         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
8451
8452 2000-09-19  Martin Buchholz  <martin@xemacs.org>
8453
8454         * *: Spelling mega-patch
8455
8456 2000-09-19  Martin Buchholz  <martin@xemacs.org>
8457
8458         * fns.c (bad_bad_turtle):
8459         Delete "Eek!" comment, since we fixed the bug to which it refers.
8460
8461 2000-09-16  Martin Buchholz  <martin@xemacs.org>
8462
8463         * alloca.c: Replace REGISTER with register.
8464
8465 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
8466
8467         * file-coding.c (ucs_to_char): Use countof.
8468
8469 2000-09-16  Martin Buchholz  <martin@xemacs.org>
8470
8471         * file-coding.c: (ucs_to_char):
8472         (complex_vars_of_file_coding):
8473         Use countof instead of sizeof.
8474         Use CHECK_NATNUM instead of CHECK_INT.
8475
8476         * sysdep.c (strcasecmp): Remove.
8477         * device-x.c (ascii_strcasecmp): New.
8478         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
8479         Avoid using non-standard non-portable strcasecmp.
8480
8481 2000-09-16  Martin Buchholz  <martin@xemacs.org>
8482
8483         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
8484         * font-lock.c: remove reference to emacsfns.h.
8485         * search.c: small doc improvement.
8486         * event-Xt.c: correct file names in comments.
8487         * console-x.h Correct file names in comments.
8488         * frame.c: Correct file names in comments.
8489         * event-stream.c: remove Energize from comments.
8490
8491 2000-09-15  Martin Buchholz  <martin@xemacs.org>
8492
8493         * symeval.h (DEFERROR_STANDARD):
8494         (DEFERROR):
8495         (DEFSYMBOL):
8496         (DEFSYMBOL_NO_DUMP):
8497         (DEFSYMBOL_MULTIWORD_PREDICATE):
8498         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
8499         (DEFKEYWORD):
8500         The construct &##name is not sensible C.
8501         Fixes compilation errors with Unixware native compiler.
8502
8503 2000-09-14  Martin Buchholz  <martin@xemacs.org>
8504
8505         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
8506         (next_frame_internal): Removed.  We now just have next_frame.
8507         (next_frame):
8508         Write a simpler and cleaner one-pass algorithm.
8509         Remove called_from_delete_device arg and #ifdefed-out code.
8510         (previous_frame):
8511         Renamed from prev_frame.  Update callers.
8512         Cleaned up to have an analogous implementation to next_frame.
8513         (other_visible_frames_internal): Remove the
8514         called_from_delete_device bogus arg, and hence, remove this
8515         function.  Just use other_visible_frames().
8516
8517         * window.c (Fnext_window):
8518         Prettify docstring.
8519         Since next_frame() is guaranteed to return a frame, remove check
8520         for nil inserted in previous patch.
8521         (Fprevious_window):
8522         Prettify docstring.
8523         Make code look more like Fnext_window.
8524         (window_loop):
8525         Respect the `console' arg when iterating through windows.
8526         Fixes bug: (get-buffer-window buffer t device) not respecting
8527         the `device' arg.
8528         This function needs more work, as others have pointed out.
8529
8530         * frame.h: Rename prev_frame to previous_frame.
8531         device_matches_console_spec no longer takes a `frame' arg.
8532
8533         * s/gnu.h:
8534         * s/linux.h:
8535         * s/hpux.h:
8536         Use EMACS_BLOCK_SIGNAL instead of sigblock.
8537         From "Golubev I. N." <gin@mo.msk.ru>.
8538
8539         * make-src-depend: Fix typo.
8540
8541 2000-09-13  Martin Buchholz  <martin@xemacs.org>
8542
8543         * window.c (Fnext_window):
8544         next_frame() might return nil, not a frame.
8545         Fixes this crash:
8546         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
8547
8548         * frame.c (next_frame_internal):
8549         We've passed a frame if we've passed its device.
8550         Fixes this crash:
8551         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
8552 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
8553
8554 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
8555
8556         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
8557         Allow option to suppress accelerators in menu/dialog items.
8558         (populate_or_checksum_helper): Pass dialog title through above.
8559
8560 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
8561
8562         * event-msw.c (mswindows_key_to_emacs_keysym):
8563         Add "pause" key, fix "menu" key.
8564
8565 2000-09-09  Martin Buchholz  <martin@xemacs.org>
8566
8567         * eval.c (reinit_vars_of_eval):
8568         Increase max_lisp_eval_depth to 1000,
8569         required for thai-xtis.el to byte-compile under some circumstances.
8570
8571 2000-09-04  Martin Buchholz  <martin@xemacs.org>
8572
8573         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
8574         From Kenichi Handa.
8575
8576 2000-09-01  Martin Buchholz  <martin@xemacs.org>
8577
8578         * make-src-depend: Make the generated Makefiles smaller.
8579
8580         * s/hpux.h (SETUP_SLAVE_PTY):
8581         Provide a %d in the format string for the errno argument.
8582
8583         * editfns.c (Ftemp_directory):
8584         Warning fix.
8585         Avoid buffer overrun on very long file name.
8586
8587         * input-method-xlib.c (XIM_init_device):
8588         6th parameter of XRegisterIMInstantiateCallback has different
8589         pointer types on different OSes, so simply cast to (void *).
8590
8591         * unexhp9k800.c: Warning fixes.  Fiddly changes.
8592
8593         * sysdll.c (dll_open):
8594         shl_load will hang hard if passed a NULL filename.
8595         Simply return NULL for compatibility with dlopen.
8596         * sysdll.c: Conform to XEmacs coding standards.
8597
8598         * sysdep.c (get_pty_max_bytes):
8599         Support pty input lines longer than 512 bytes on HP-UX 10.20.
8600
8601 2000-08-31  Martin Buchholz  <martin@xemacs.org>
8602
8603         * tooltalk.c: Add #include <syssignal.h>
8604
8605 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
8606
8607         * s/hpux.h: Don't use undefined function sigunblock().
8608
8609 2000-08-31  Martin Buchholz  <martin@xemacs.org>
8610
8611         * config.h.in: Add HAVE_BALLOON_HELP.
8612         * emacs.c: Use HAVE_BALLOON_HELP.
8613         * Makefile.in.in (x_objs):
8614         Make Balloon Help conditional on finding shape.h.
8615
8616 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
8617
8618         * syntax.c (regex_emacs_buffer_p): New variable.
8619         * syntax.h (regex_emacs_buffer_p): extern.
8620         * search.c (looking_at_1):
8621         (string_match_1):
8622         (fast_string_match):
8623         (search_buffer): Set regex_emacs_buffer_p.
8624         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
8625         when before_dot, at_dot, after_dot.
8626
8627 2000-08-23  Andy Piper  <andy@xemacs.org>
8628
8629         * gui-x.c (popup_selection_callback): Only set action_occurred
8630         when we really have an image instance.
8631         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
8632
8633 2000-08-23  Andy Piper  <andy@xemacs.org>
8634
8635         * gui-msw.c (mswindows_handle_gui_wm_command): set
8636         action_occurred.
8637         * gui-x.c (popup_selection_callback): ditto.
8638
8639         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
8640         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
8641         (struct Lisp_Image_Instance): add action_occurred flag.
8642
8643         * glyphs.c (redisplay_subwindow): use action_occurred flag.
8644         (image_instance_changed): ditto.
8645         (reset_frame_subwindow_instance_cache): only unmap windows - do
8646         not remove them from the cache also.
8647
8648         * glyphs-widget.c (tab_control_update): better debug.
8649         (progress_gauge_update): ditto.
8650         (layout_update): ditto.
8651         (layout_instantiate): ditto.
8652         (tab_control_order_only_changed): cope with null pending items.
8653
8654         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
8655         debug. Force selection of an item when an action occurred. Cope
8656         with null pending_items.
8657         (mswindows_progress_gauge_redisplay): better debug.
8658         * glyphs-x.c (x_tab_control_redisplay): ditto.
8659
8660         * redisplay.c (redisplay_frame): reset the frame cache if the
8661         frame is garbaged.
8662
8663         * window.c (Fset_window_configuration): potentially re-enable
8664         frame cache reset.
8665         (window_unmap_subwindows): need to finalize instances here since
8666         it is only used in mark_window_as_deleted.
8667
8668 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
8669
8670         * nas.c (SndOpenDataForReading):
8671         nas.c (WaveOpenDataForReading):
8672         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
8673         Somehow escaped from the 2000-08-14 patch.
8674
8675 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
8676
8677         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
8678         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
8679
8680 2000-08-21  Andy Piper  <andy@xemacs.org>
8681
8682         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
8683         window if it is not already displayed.
8684
8685         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
8686         it is not already displayed.
8687
8688         * window.c (Fset_window_configuration): don't reset the frame
8689         cache.
8690
8691         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
8692         instances from the frame cache if we are actually finalizing them.
8693         (reset_frame_subwindow_instance_cache): reset frame cache only
8694         after unmapping everything.
8695         (map_subwindow): set displayed flag after mapping.
8696
8697 2000-08-21  Martin Buchholz  <martin@xemacs.org>
8698
8699         * data.c (indirect_function):
8700         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
8701
8702         * eval.c (function_argcount):
8703         Use original function when signaling errors.
8704
8705 2000-08-18  Andy Piper  <andy@xemacs.org>
8706
8707         * frame.c (delete_frame_internal): use new
8708         free_frame_subwindow_instances name.
8709
8710         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
8711         (add_tab_item): make return type correct.
8712         (mswindows_tab_control_instantiate): assert index of tab.
8713         (mswindows_tab_control_redisplay): Re-code to use
8714         gui_item_equal_sans_selected and gui_item_list_find_selected.
8715
8716         * glyphs-widget.c (tab_control_update): Correct comment.
8717
8718         * window.c (window_unmap_subwindows): use new
8719         unmap_subwindow_instance_cache_mapper.
8720         (window_unmap_subwindows_cache_mapper): deleted.
8721         (Fset_window_configuration): comparisons should now be with
8722         EQ. Preserve the subwindow instance cache across configuration
8723         changes.
8724         (allocate_window): ditto.
8725         (make_dummy_parent): ditto.
8726
8727         * glyphs.c (free_frame_subwindow_instances): rename from
8728         free_frame_subwindow_instance_cache. finalize all instances rather
8729         than just those in the display cache.
8730         (finalize_all_subwindow_instances): walk windows unmapping and
8731         finalizing subwindows.
8732         (unmap_subwindow_instance_cache_mapper): moved from
8733         window.c. Allow finalization as well as unmapping.
8734
8735         * gui.c (gui_item_list_find_selected): new function.
8736
8737         * gui.h (gui_item_list_find_selected): declare.
8738
8739         * glyphs-x.c (x_tab_control_redisplay): pick tab
8740         explicitly. Re-code to use gui_item_equal_sans_selected and
8741         gui_item_list_find_selected.
8742
8743         * glyphs-x.h: add lwlib-utils.h
8744
8745         * buffer.c (Frecord_buffer): undo previous change.
8746
8747 2000-08-09  Vin Shelton  <acs@xemacs.org>
8748
8749         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
8750         possible.  Create temporary files more securely.  The patch was
8751         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
8752         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
8753         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
8754         for details.
8755
8756 2000-08-07  Ben Wing  <ben@xemacs.org>
8757
8758         * getloadavg.c: remove duplicate (and windows-breaking)
8759         includes of fcntl.h and sys/file.h.
8760
8761         * nt.c: remove duplicate getloadavg() definition.
8762
8763         * sysdll.h (Qdll_filename_encoding): add missing stand-in
8764         encodings.
8765
8766 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
8767
8768         * eval.c (function_argcount): If function needs to be autoloaded
8769         actually use the loaded definition.
8770         GCPRO function.
8771
8772 2000-08-05  Ben Wing  <ben@xemacs.org>
8773
8774         * getloadavg.c: add prototype for getloadavg().  remove
8775         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
8776         of the code).  remove duplicate header includes.
8777
8778         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
8779
8780         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
8781         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
8782         useful load average.
8783
8784         * alloc.c (reinit_alloc_once_early): removed references to
8785         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
8786         the lisp vars are the only things referencing the malloc_sbrk_*
8787         vars, and they were already if 0'd out.  these vars only exist
8788         in the older malloc.c, which is basically unused, and they're
8789         only for informational purposes.
8790
8791         * m\*.h: removed useless VIRT_ADDR_VARIES.
8792
8793         * m\powerpc.h: removed stray NO_ARG_ARRAY.
8794
8795 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
8796
8797         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
8798         color if the image is a mono pixmap.
8799
8800 2000-07-30  Ben Wing  <ben@xemacs.org>
8801
8802         * Makefile.in.in (release):
8803         Remove stray @.
8804
8805         * buffer.c (directory_is_current_directory):
8806         * dired-msw.c (mswindows_get_files):
8807         * dired.c:
8808         * dired.c (Fdirectory_files):
8809         * dired.c (file_name_completion_stat):
8810         * dired.c (Ffile_attributes):
8811         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
8812         preprocessor tricks, to avoid problems on some machines
8813         (e.g. SCO).
8814
8815         * callproc.c (egetenv): GC docs.
8816
8817         * console-msw.h:
8818         * console-msw.h (struct mswindows_dialog_id):
8819         * lrecord.h (lrecord_type):
8820         New object for use with MSW dialogs.
8821
8822         * console.h (struct console_methods):
8823         New enable/disable frame methods, for proper modal dialogs.
8824
8825         * device-msw.c (msprinter_default_printer): Fix to follow
8826         proper Mule conventions.
8827
8828         * device-msw.c:
8829         * device-msw.c (signal_open_printer_error):
8830         * device-msw.c (msprinter_init_device):
8831         * device-msw.c (ensure_not_printing):
8832         * device-msw.c (plist_get_margin):
8833         * device-msw.c (Fmsprinter_select_settings):
8834         * device-msw.c (finalize_devmode):
8835         * device-msw.c (Fmsprinter_settings_despecialize):
8836         * device-msw.c (signal_enum_priner_error):
8837         * extents.c (decode_extent):
8838         * extents.c (decode_map_extents_flags):
8839         * extents.c (decode_extent_at_flag):
8840         * extents.c (Fextent_at):
8841         * extents.c (Fextents_at):
8842         * extents.c (symbol_to_glyph_layout):
8843         [[[[2]]]] Use structured errors.
8844
8845         * dialog-msw.c:
8846         * dialog-msw.c (mswindows_is_dialog_msg):
8847         * dialog-msw.c (mark_mswindows_dialog_id):
8848         * dialog-msw.c (dialog_proc):
8849         * dialog-msw.c (handle_question_dialog_box):
8850         * dialog-msw.c (syms_of_dialog_mswindows):
8851         Define new object to clean up marking; use it as a dialog identifier.
8852         Call new delete-dialog-box-hook.
8853
8854         * dialog-x.c (dbox_selection_callback):
8855         * dialog-x.c (dbox_descriptor_to_widget_value):
8856         * dialog-x.c (x_make_dialog_box_internal):
8857         Call new delete-dialog-box-hook.
8858         Return an id.
8859
8860         * dialog.c:
8861         * dialog.c (syms_of_dialog):
8862         * dialog.c (vars_of_dialog):
8863         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
8864
8865         * eval.c:
8866         * eval.c (signal_call_debugger):
8867         when noninteractive, output stack traces on the console instead
8868         of in a (never-seen) buffer.
8869
8870         * eval.c (signal_type_error):
8871         * eval.c (invalid_argument_2):
8872         * lisp.h:
8873         new funs for use w/structured errors.
8874
8875         * event-Xt.c:
8876         * event-Xt.c (x_to_emacs_keysym):
8877         * event-Xt.c (describe_event):
8878         * event-Xt.c (emacs_Xt_event_handler):
8879         * event-Xt.c (vars_of_event_Xt):
8880         * event-msw.c:
8881         * event-msw.c (mswindows_wnd_proc):
8882         * event-msw.c (vars_of_event_mswindows):
8883         rename {x,mswindows}-debug-events to debug-{}-events for
8884         consistency with other debug-foo variables.
8885
8886         * event-stream.c:
8887         document next-event more clearly.
8888
8889         * fileio.c (Ffile_name_directory):
8890         * fileio.c (Ffile_name_nondirectory):
8891         * fileio.c (Funhandled_file_name_directory):
8892         * fileio.c (file_name_as_directory):
8893         * fileio.c (Ffile_name_as_directory):
8894         * fileio.c (directory_file_name):
8895         * fileio.c (Fdirectory_file_name):
8896         * fileio.c (Fmake_temp_name):
8897         * fileio.c (Ffile_truename):
8898         * fileio.c (Fsubstitute_in_file_name):
8899         * fileio.c (expand_and_dir_to_file):
8900         * fileio.c (barf_or_query_if_file_exists):
8901         * fileio.c (check_executable):
8902         * fileio.c (Ffile_exists_p):
8903         * fileio.c (Ffile_writable_p):
8904         * fileio.c (Ffile_directory_p):
8905         * fileio.c (Ffile_regular_p):
8906         * fileio.c (Ffile_modes):
8907         * fileio.c (Ffile_newer_than_file_p):
8908         * fileio.c (Fverify_visited_file_modtime):
8909         * fileio.c (Fset_visited_file_modtime):
8910         * fileio.c (auto_save_1):
8911         (1). (2).
8912         fix up gcpro's.
8913
8914         * frame-msw.c:
8915         * frame-msw.c (mswindows_init_frame_1):
8916         * frame-msw.c (mswindows_enable_frame):
8917         * frame-msw.c (error_frame_unsizable):
8918         * frame-msw.c (msprinter_init_frame_1):
8919         * frame-msw.c (msprinter_init_frame_3):
8920         * frame-msw.c (console_type_create_frame_mswindows):
8921         (2).
8922         implement new enable/disable frame methods.
8923
8924         * frame-x.c:
8925         * frame-x.c (x_enable_frame):
8926         * frame-x.c (console_type_create_frame_x):
8927         implement new enable/disable frame methods.
8928
8929         * frame.c:
8930         * frame.c (Fdisable_frame):
8931         * frame.c (syms_of_frame):
8932         * frame.h (struct frame):
8933         implement new enable/disable frame methods/functions.
8934
8935         * general-slots.h:
8936         add initial-focus.
8937
8938         * glyphs-msw.c (mswindows_widget_instantiate):
8939         comment that initial-focus should be implemented.
8940
8941         * glyphs-widget.c:
8942         * glyphs-widget.c (check_valid_instantiator):
8943         * glyphs-widget.c (check_valid_orientation):
8944         * glyphs-widget.c (check_valid_tab_orientation):
8945         * glyphs-widget.c (check_valid_justification):
8946         * glyphs-widget.c (check_valid_border):
8947         * glyphs-widget.c (check_valid_callback):
8948         * glyphs-widget.c (check_valid_int_or_function):
8949         * glyphs-widget.c (check_valid_string_or_vector):
8950         * glyphs-widget.c (check_valid_item_list_1):
8951         * glyphs-widget.c (widget_validate):
8952         * glyphs-widget.c (combo_box_validate):
8953         * glyphs-widget.c (widget_instantiate):
8954         * glyphs-widget.c (syms_of_glyphs_widget):
8955         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
8956         * glyphs-widget.c (image_instantiator_combo_box):
8957         * glyphs-widget.c (image_instantiator_scrollbar):
8958         * glyphs-widget.c (image_instantiator_tab_control):
8959         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
8960         (2).
8961         support (unimplemented) keyword initial-focus.
8962         reindent long macros.
8963
8964         * glyphs-x.c (x_redisplay_widget):
8965         * glyphs-x.c (x_button_instantiate):
8966         * glyphs-x.c (x_button_redisplay):
8967         * glyphs-x.c (x_progress_gauge_instantiate):
8968         * glyphs-x.c (x_edit_field_instantiate):
8969         * glyphs-x.c (x_combo_box_instantiate):
8970         * glyphs-x.c (x_tab_control_instantiate):
8971         * glyphs-x.c (x_label_instantiate):
8972         * gui-x.c:
8973         * gui-x.c (button_item_to_widget_value):
8974         * gui-x.c (gui_items_to_widget_values_1):
8975         * gui-x.c (gui_item_children_to_widget_values):
8976         * gui-x.c (gui_items_to_widget_values):
8977         * gui-x.h:
8978         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
8979         add new flag to gui-parsing routines to indicate whether
8980         accelerator specs should be supported.
8981
8982         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
8983
8984         * glyphs.h (struct Lisp_Image_Instance):
8985         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
8986         add initial-focus flag.
8987
8988         * gui.c:
8989         * gui.c (syms_of_gui):
8990         * gui.c (vars_of_gui):
8991         clean up menu-no-selection-hook.
8992
8993         * gui.h:
8994         support delete-dialog-box-hook.
8995
8996         * lread.c (Fload_internal):
8997         * lread.c (locate_file_in_directory_mapper):
8998         (1).
8999
9000         * lrecord.h:
9001         * lrecord.h (struct toolbar_button):
9002         * lrecord.h (syms_of_toolbar):
9003         document how to create a new object.
9004
9005         * menubar-msw.c (mswindows_char_is_accelerator):
9006         may be called on frames w/o menus.
9007
9008         * menubar.c (vars_of_menubar):
9009         clean up :filter docs.
9010
9011         * nt.c (readdir):
9012         * ntproc.c:
9013         (1).
9014
9015         * process-nt.c:
9016         * process-nt.c (validate_signal_number):
9017         * process-nt.c (signal_cannot_launch):
9018         * process-nt.c (nt_create_process):
9019         * process-nt.c (nt_send_process):
9020         * process-nt.c (nt_kill_child_process):
9021         * process-nt.c (nt_open_network_stream):
9022         * process-nt.c (syms_of_process_nt):
9023         (2).
9024         delete quote-handling.  call new lisp code that does it better.
9025
9026         * process-unix.c (connect_to_file_descriptor):
9027         * process-unix.c (allocate_pty):
9028         * process-unix.c (unix_send_process):
9029         * process-unix.c (unix_kill_child_process):
9030         * process-unix.c (unix_open_network_stream):
9031         * process-unix.c (unix_open_multicast_group):
9032         (1). (2).
9033
9034         * process.c:
9035         * process.c (Fstart_process_internal):
9036         (2).  need to canonicalize process path even if absolute.
9037
9038         * select-msw.c (symbol_to_ms_cf):
9039         * select-msw.c (ms_cf_to_symbol):
9040         * select-msw.c (cf_is_autofreed):
9041         * select-msw.c (mswindows_destroy_selection):
9042         * select.c:
9043         * select.c (syms_of_select):
9044         * select.h:
9045         support dibv5, fix bugs. (from Mike Alexander)
9046
9047         * select.c (Fget_selection_internal):
9048         * select.c (select_convert_out):
9049
9050         * sysdep.c:
9051         * sysdep.c (xemacs_stat):
9052         renamed.
9053
9054         * sysdep.c (mkdir):
9055         * sysdep.c (rmdir):
9056         but keep original stat() here because we provide encapsulation
9057         around these funs.
9058
9059         * sysfile.h:
9060         * sysfile.h (fstat):
9061         remove stat garbage.
9062
9063         * syswindows.h:
9064         fix X/MSW conflict.
9065         don't include tchar.h.  it's inappropriate because it makes
9066         compile-time distinctions when we want runtime distinctions.
9067         (we provide our own tchar replacements)
9068
9069         * toolbar.c:
9070         use default object printer for toolbar-button.
9071
9072         * unexcw.c:
9073         make sure we don't encapsulate.
9074
9075         * window.c (vars_of_window):
9076         emphasize that temp-buffer-show-hook is obsolete.
9077
9078 2000-08-05  Martin Buchholz  <martin@xemacs.org>
9079
9080         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
9081         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
9082
9083         * events.c (Fevent_timestamp_lessp):
9084         Not 64-bit clean.  Use EMACS_INT, not int.
9085
9086 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
9087
9088         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
9089         unsigned int and changed the last enum to
9090         lrecord_type_last_built_in_type.
9091         (lrecord_implementations_table): changed prototype to know how
9092         long the array is supposed to be.
9093         (lrecord_type_count): new unsigned int to keep track of the
9094         current number of lisp lrecord types.
9095         (DEFINE_EXTERNAL_LRECORD):
9096         (DECLARE_EXTERNAL_LRECORD): Added these two for external
9097         dynamic-modules to declare new lisp types. They are the same
9098         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
9099         int for each new type, and increment lrecord_type_count by 1.
9100
9101         * alloc.c (lrecord_implementations_table): Changed to reference
9102         lrecord_type_last_built_in_type for the size of the array.
9103         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
9104
9105 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
9106
9107         * glyphs.h (check_valid_item_list): Renamed from
9108         check_valid_item_list_1.
9109
9110 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
9111
9112         * select.c (Qselect_coerce): New.
9113         * select.c (Vselection_coercion_alist): New.
9114         * select.c (syms_of_select): Declare.
9115         * select.c (get-selection-internal): Use it.
9116         Use the new select-coerce functionality.
9117
9118         * select.c (select_coerce): New.
9119         * select.h (select_coerce): Declare.
9120         New function to coerce one type of data into another.
9121
9122 2000-08-03  Martin Buchholz  <martin@xemacs.org>
9123
9124         * callproc.c (Fcall_process_internal):
9125         (Fcall_process_internal):
9126         * process-unix.c (unix_create_process):
9127         Save and restore the value of errno, so that error messages are accurate.
9128
9129 2000-08-01  Martin Buchholz  <martin@xemacs.org>
9130
9131         * elhash.c (print_hash_table):
9132         Fix printing of hash tables to also use `key-and-value' instead of `t'.
9133         Prettify docstrings and indentation.
9134
9135 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
9136
9137         * window.c (Fwindow_pixel_edges): Subtract frame border and
9138         gutter size.
9139
9140 2000-07-31  Andy Piper  <andy@xemacs.org>
9141
9142         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
9143         will acknowledge the change.
9144
9145         * glyphs.h: declare tab_control_order_only_changed.
9146
9147         * glyphs-x.c (x_tab_control_redisplay): use
9148         tab_control_order_only_changed.
9149
9150         * glyphs-widget.c (tab_control_order_only_changed): new function.
9151
9152         * glyphs-msw.c (mswindows_tab_control_redisplay): use
9153         tab_control_order_only_changed.
9154
9155         * gui.c (gui_item_equal_sans_selected): new function.
9156         (gui_item_equal): use it.
9157
9158         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
9159         :properties in favor of :items..
9160
9161         * glyphs-widget.c (check_valid_item_list): rename from
9162         check_valid_item_list_1.
9163         (check_valid_item_list_1): renamed.
9164         (combo_box_validate): deprecate :properties in favor of :items.
9165         (widget_instantiate): ditto.
9166         (tab_control_update): ditto.
9167         (image_instantiator_combo_box): ditto.
9168         (image_instantiator_tree_view): ditto.
9169         (image_instantiator_tab_control): ditto.
9170         (layout_post_instantiate): remove dead code.
9171
9172         * print.c (debug_print_no_newline): only write to debugger if in
9173         WIN32_NATIVE.
9174
9175         * elhash.c (Fmake_hash_table): update doc string.
9176
9177         * event-msw.c (mswindows_wnd_proc): don't allow processing of
9178         messages whilst in GC. This at least stops XEmacs crashing but has
9179         the potential for wierd behaviour.
9180
9181 2000-07-31  Martin Buchholz  <martin@xemacs.org>
9182
9183         * config.h.in:
9184         Make existence of s&m files optional.
9185
9186         * s/bsd386.h: Remove HAVE_GETLOADAVG.
9187         * s/freebsd.h: Remove HAVE_GETLOADAVG.
9188         * s/gnu.h: Remove HAVE_GETLOADAVG.
9189         * s/netbsd.h: Remove HAVE_GETLOADAVG.
9190         * s/sol2.h: Remove HAVE_GETLOADAVG.
9191         * lisp.h: Remove getloadavg() declaration.
9192         * fns.c:
9193         Include <sys/loadavg.h> if available.
9194         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
9195         * config.h.in:  Group together getloadavg()-related macros.
9196         Use only configure-time tests to detect getloadavg().
9197
9198 2000-07-30  Martin Buchholz  <martin@xemacs.org>
9199
9200         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
9201
9202 2000-07-25  Andy Piper  <andy@xemacs.org>
9203
9204         * syswindows.h: add tchar.h for native builds.
9205
9206         * frame.c (syms_of_frame): remove set-glyph-image.
9207
9208         * general-slots.h: add Qset_glyph_image.
9209
9210         * glyphs-widget.c (layout_update): add domain arg to
9211         set-glyph-image.
9212         (syms_of_glyphs_widget): remove set-glyph-image.
9213
9214 2000-07-23  Ben Wing  <ben@xemacs.org>
9215
9216         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
9217         Vpopup_frame_list.
9218
9219 2000-07-22  Andy Piper  <andy@xemacs.org>
9220
9221         * symsinit.h: add syms_of_win32().
9222
9223         * gui-msw.c (syms_of_gui_mswindows): remove
9224         Fmswindows_shell_execute.
9225         (Fmswindows_shell_execute): moved to win32.c.
9226
9227         * emacs.c (main_1): add syms_of_win32 ().
9228
9229         * win32.c (init_potentially_nonexistent_functions): rewrite in
9230         compiler-friendly terms.
9231         (Fmswindows_shell_execute): move here from gui-msw.c.
9232         (syms_of_win32): new.
9233
9234         * device-msw.c (Fmswindows_printer_list): clean up args to
9235         EnumPrinters.
9236         Don't include tchar under cygwin or mingw.
9237         (msprinter_default_printer): make cygwin-friendly.
9238
9239 2000-07-21  Andy Piper  <andy@xemacs.org>
9240
9241         * glyphs-widget.c (image_instantiator_tree_view): use tab
9242         control's update function.
9243         (layout_property): new function. Retrieve items.
9244
9245         * glyphs-msw.c (mswindows_tree_view_redisplay): new
9246         function. Re-populate the tree view from the pending items.
9247
9248         * glyphs.c (instantiate_image_instantiator): Make sure the domain
9249         is designated the parent if the domain is an image instance. This
9250         is needed so that dirtiness can be cascade up the hierarchy and
9251         thus for layout children to be redisplayed correctly.
9252         (allocate_image_instance): rename glyph -> parent.
9253
9254         * redisplay.h: change redisplay_output_layout signature.
9255
9256         * redisplay-msw.c (mswindows_output_display_block): use domain
9257         arg.
9258
9259         * redisplay-x.c (x_output_display_block): use domain arg.
9260
9261 2000-07-10  Andy Piper  <andy@xemacs.org>
9262
9263         * window.c (Fset_window_configuration): add comment.
9264
9265         * redisplay-output.c (compare_runes):
9266         (redisplay_output_subwindow): redisplay rather than update subwindow.
9267         (redisplay_output_layout): ditto.
9268
9269         * redisplay-msw.c (mswindows_frame_output_end):
9270         (mswindows_frame_output_end): make defer window pos optional.
9271
9272         * lisp.h: add Flast.
9273
9274         * glyphs.h (struct image_instantiator_methods): add dest_mask top
9275         normalize method. Change update method to be for changed
9276         instantiators. Add redisplay method. Change signature of layout
9277         method.
9278         (struct Lisp_Image_Instance): add instantiator.
9279         (IMAGE_INSTANCE_INSTANTIATOR): new.
9280         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
9281         (XIMAGE_INSTANCE_INSTANTIATOR): new.
9282         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
9283
9284         * glyphs.c:
9285         (find_instantiator_differences): new function.
9286         (Fset_instantiator_property): new convenience function.
9287         (check_image_instance_structure): strictly check for vector
9288         instantiators.
9289         (normalize_image_instantiator): make non-static.
9290         (instantiate_image_instantiator): pass on dest_mask and use new
9291         signatures for image_instance_layout and friends.
9292         (mark_image_instance): mark the instantiator. Mark the subwindow
9293         face not the widget face.
9294         (image_instance_equal): add instantiator.
9295         (image_instance_hash): ditto.
9296         (allocate_image_instance): ditto.
9297         (Fset_image_instance_property): removed.
9298         (Fimage_instance_file_name): ditto.
9299         (Fcolorize_image_instance): ditto.
9300         (image_instance_layout): add offsets to be set.
9301         (update_image_instance): new function. update an image instance
9302         from its changed instantiator.
9303         (inherit_normalize): add dest_mask.
9304         (xbm_normalize): ditto.
9305         (xface_normalize): ditto.
9306         (xpm_normalize): ditto.
9307         (text_update): set_property -> update.
9308         (image_instantiate): use the glyph identity as a hash key, not the
9309         instantiator.
9310         (glyph_width): use new image_instance_layout signature.
9311         (glyph_ascent): ditto.
9312         (glyph_descent): ditto.
9313         (glyph_height): ditto.
9314         (glyph_query_geometry): ressurrect.
9315         (glyph_layout): ditto.
9316         (redisplay_subwindow): update -> redisplay.
9317         (syms_of_glyphs): add Fset_instantiator_property.
9318         (image_instantiator_format_create): set_property -> update.
9319
9320         * glyphs-x.c:
9321         (autodetect_normalize): add dest_maks to signature.
9322         (x_redisplay_subwindow): update -> redisplay.
9323         (x_redisplay_widget): ditto.
9324         (x_button_redisplay): ditto.
9325         (x_progress_gauge_redisplay): ditto.
9326         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
9327         stacking order.
9328         (console_type_create_glyphs_x): update -> redisplay.
9329         (image_instantiator_format_create_glyphs_x): ditto.
9330
9331         * glyphs-widget.c:
9332         (check_valid_instantiator): disallow glyphs in the instantiator,
9333         they must now be vectors.
9334         (check_valid_instantiator_list): ditto.
9335         (glyph_instantiator_to_glyph): use internal symbol rather than
9336         intern.
9337         (widget_update): renamed from widget_set_property. Call cascaded
9338         update methods.
9339         (redisplay_widget): renamed from update_widget.
9340         (widget_layout): image_instance_layout now takes position as well
9341         as size.
9342         (widget_normalize): ditto.
9343         (widget_instantiate): ditto.
9344         (tab_control_query_geometry) ditto.:
9345         (tab_control_update): renamed from tab_control_set_property.
9346         (progress_gauge_update): set_property -> update.
9347         (layout_normalize): rewrite so that child instantiators are
9348         normalized also.
9349         (layout_update): new function. Create glyphs from the normalized
9350         children and cope with any other layout keywords. We do not
9351         instantiate children here that will be take care of by
9352         redisplay_output_layout.
9353         (layout_instantiate): call layout_update and not much else.
9354         (layout_post_instantiate): not sure whether this is needed
9355         anymore.
9356         (layout_query_geometry): query glyph geometry rather than
9357         image_instance geometry.
9358         (layout_layout): set offsets from pass in parameters. Use glyph
9359         geometry and layout functions rather than image instance ones.
9360         (native_layout_layout): ditto.
9361         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
9362         (image_instantiator_widget): set_property -> update.
9363         (image_instantiator_buttons): ditto.
9364         (image_instantiator_progress_guage): ditto.
9365         (image_instantiator_tab_control): ditto.
9366         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
9367         (image_instantiator_layout): add update method.
9368
9369         * glyphs-msw.c (bmp_normalize):
9370         (mswindows_resource_normalize): add dest_mask so that it can be
9371         proprogated by layout_normalize.
9372         (begin_defer_window_pos): make optional because it may not be the
9373         right thing to do and it introduces differences with X.
9374         (mswindows_unmap_subwindow): ditto.
9375         (mswindows_map_subwindow): ditto.
9376         (mswindows_redisplay_subwindow): renamed from
9377         mswindows_update_subwindow.
9378         (mswindows_redisplay_widget): ditto.
9379         (mswindows_button_redisplay): renamed from
9380         mswindows_button_update. Update is now what the instantiation
9381         function does for a changed instantiator.
9382         (mswindows_progress_gauge_instantiate): set the progress value
9383         here if appropriate.
9384         (mswindows_tab_control_redisplay): cope with re-ordering of the
9385         members of the tab widget by simply selecting the new top
9386         widget. This makes things appear ok if you click on a tab.
9387         (mswindows_combo_box_instantiate): image_instance_layout now takes
9388         position as well as size.
9389         (mswindows_progress_gauge_redisplay): renamed from
9390         mswindows_progress_gauge_update.
9391         (console_type_create_glyphs_mswindows): fix update -> redisplay.
9392         (image_instantiator_format_create_glyphs_mswindows): ditto.
9393
9394         * glyphs-eimage.c (jpeg_normalize):
9395         (gif_normalize):
9396         (png_normalize):
9397         (tiff_normalize): add dest_mask so that it can be proprogated by
9398         layout_normalize.
9399
9400         * elhash.c:
9401         (print_hash_table):
9402         (hash_table_weakness_validate):
9403         (decode_hash_table_weakness):
9404         (Fhash_table_weakness):
9405         (Fhash_table_type):
9406         (syms_of_elhash): use Ben's naming scheme for hashtable types..
9407
9408         * console.h (struct console_methods): move update_* to
9409         redisplay_*.
9410
9411 2000-07-20  Ben Wing  <ben@xemacs.org>
9412
9413         * *.[ch] (XSETOBJ): remove unused middle argument.
9414         lisp-disunion.h: correct wrap_object() to one argument.
9415
9416 2000-07-15  Ben Wing  <ben@xemacs.org>
9417
9418         * s/cygwin32.h:
9419         * s/cygwin32.h (CYGWIN_CONV_PATH):
9420         Add missing logb prototype for v1.1.
9421         Use post-b20 names and alias to pre-b20 names when pre-b20.
9422
9423         * s/windowsnt.h: [5].
9424
9425 2000-07-15  Ben Wing  <ben@xemacs.org>
9426
9427         * Makefile.in.in (x_objs):
9428         * Makefile.in.in (sheap_objs):
9429         * Makefile.in.in (objs):
9430         added win32.o, cosmetic cleanups.
9431
9432         * alloc.c (Fmake_byte_code):
9433         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
9434         etc. macros which declare their own args now.
9435
9436         * alloc.c (syms_of_alloc):
9437         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
9438
9439         * buffer.c:
9440         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
9441
9442         * buffer.c (Fget_file_buffer):
9443         Fixed GCPRO problem.
9444
9445         * buffer.c (get_truename_buffer):
9446         Fixed comment about GC checking.
9447
9448         * buffer.c (syms_of_buffer):
9449         Undeclared those dedicated frame funs.
9450         [2].
9451
9452         * buffer.h:
9453         Define convenience macros for internal/external conversions.
9454         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
9455         and Qenvironment_variable_encoding for cleaner code.
9456
9457         * bufslots.h:
9458         Remove dedicated-frame; in lisp.
9459
9460         * bytecode.c (funcall_compiled_function):
9461         [1].
9462
9463         * bytecode.c (syms_of_bytecode):
9464         [2].
9465
9466         * console-msw.c:
9467         * console-msw.c (mswindows_show_console): Rewrote.
9468
9469         * console-msw.c (Fmswindows_debugging_output): New.
9470         Sends to OutputDebugString (special MSWin debugger interface).
9471
9472         * console-msw.c (Fmswindows_message_box):
9473         Fixed stupid bugs so it works when called from kill-emacs.
9474
9475         * console-msw.c (syms_of_console_mswindows):
9476         Declare Fmswindows_debugging_output.
9477
9478         * console-msw.h:
9479         New MSWin prototypes.
9480
9481         * console-msw.h (struct mswindows_frame):
9482         New entry last-click-mods for improved button-modifier support.
9483
9484         * console-msw.h (FRAME_MSWINDOWS_POPUP):
9485         New struct entry `popup' with corresponding accessor.
9486
9487         * console-x.c:
9488         * console-x.c (split_up_display_spec):
9489         * console-x.c (get_display_arg_connection):
9490         * console-x.c (x_semi_canonicalize_console_connection):
9491         * console-x.c (x_canonicalize_device_connection):
9492         [[[6]]]: Change char to more specific type.
9493         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
9494
9495         * console-x.c (x_semi_canonicalize_console_connection):
9496         * console-x.c (x_canonicalize_device_connection):
9497         [[[9]]]: Fix up error signalling to use new structured error system.
9498
9499         * console-x.h:
9500         [[[4]]]: Define codesys aliases:
9501         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
9502         Qx_color_name_encoding, Qx_display_name_encoding.
9503
9504         * console.h (struct console_methods):
9505         New method make_dialog_box_internal supersedes older
9506         popup_dialog_box method.
9507
9508         * data.c:
9509         Define many new errors, part of new structured errors.
9510
9511         * data.c (init_errors_once_early):
9512         * data.c (syms_of_data):
9513         [2].
9514
9515         * device-msw.c (mswindows_init_device):
9516         [[[5]]]: Cleanup to support NT 3.51.
9517
9518         * device-msw.c (decode_devmode): Cleanup.
9519
9520         * device-msw.c (mswindows_handle_print_setup_dialog_box):
9521         * device-msw.c (mswindows_handle_print_dialog_box):
9522         * device-msw.c (mswindows_handle_page_setup_dialog_box):
9523         * device-msw.c (syms_of_device_mswindows):
9524         Delete the dialog box primitives recently introduced by Kirill and
9525         instead interface to general dialog box interface.
9526
9527         * device-x.c:
9528         * device-x.c (compute_x_app_name):
9529         * device-x.c (x_init_device):
9530         * device-x.c (Fx_valid_keysym_name_p):
9531         * device-x.c (Fx_set_font_path):
9532         [6].
9533         [7].
9534
9535         * device.h (wrap_device): New.
9536         First of its kind; meant to replace XSETDEVICE.
9537
9538         * dialog-msw.c: Many file-dialog symbols.
9539
9540         * dialog-msw.c (mswindows_register_popup_frame): New.
9541         * dialog-msw.c (mswindows_is_dialog_msg): New.
9542         For supporting kbd traversal in dialog boxes.
9543
9544         * dialog-msw.c (dialog_proc):
9545         Support hitting ESC in dialogs.
9546
9547         * dialog-msw.c (struct):
9548         Common dialog box errors.
9549
9550         * dialog-msw.c (handle_file_dialog_box): New.
9551         Add file dialog code.
9552
9553         * dialog-msw.c (handle_question_dialog_box):
9554         Redo existing code to support new question dialog syntax.
9555
9556         * dialog-msw.c (console_type_create_dialog_mswindows):
9557         We support new dialog console method.
9558
9559         * dialog-msw.c (syms_of_dialog_mswindows):
9560         * dialog-msw.c (vars_of_dialog_mswindows):
9561         New file dialog symbols, vars.
9562
9563         * dialog-x.c:
9564         * dialog-x.c (maybe_run_dbox_text_callback):
9565         * dialog-x.c (dbox_descriptor_to_widget_value):
9566         * dialog-x.c (x_make_dialog_box_internal):
9567         * dialog-x.c (console_type_create_dialog_x):
9568         Mule-ize entire file.
9569         Redo to support question dialog syntax.
9570         [6].
9571
9572         * dialog.c:
9573         * dialog.c (Fmake_dialog_box_internal):
9574         * dialog.c (syms_of_dialog):
9575         Kill old popup-dialog-box, replace with new primitive.
9576         Just call device method or signal error.
9577
9578         * eldap.c (Fldap_open):
9579         * eldap.c (Fldap_search_basic):
9580         * eldap.c (Fldap_add):
9581         * eldap.c (Fldap_modify):
9582         [1].
9583         [7].
9584
9585         * emacs.c:
9586         * emacs.c (make_arg_list_1):
9587         * emacs.c (make_arg_list):
9588         Mule-ize call to dll_init().
9589         [6].
9590         [8].
9591
9592         * emacs.c (make_argc_argv):
9593         * emacs.c (free_argc_argv):
9594         * emacs.c (init_cmdargs):
9595         * emacs.c (main_1):
9596         * emacs.c (Fkill_emacs):
9597         * emacs.c (Fdump_emacs):
9598         Update comments about what can be used in syms_* etc.
9599         Call init_win32() when necessary.
9600         Fix up MS Win dialog box in kill-buffer to actually work right.
9601         [7].
9602
9603         * eval.c:
9604         * eval.c (For):
9605         * eval.c (Fand):
9606         * eval.c (Fprogn):
9607         * eval.c (Fprog1):
9608         * eval.c (Fprog2):
9609         * eval.c (FletX):
9610         * eval.c (Flet):
9611         * eval.c (condition_case_3):
9612         * eval.c (Feval):
9613         * eval.c (function_argcount):
9614         * eval.c (funcall_lambda):
9615         [1].
9616
9617         * eval.c (type_error): New.
9618         * eval.c (maybe_type_error): New.
9619         * eval.c (continuable_type_error): New.
9620         * eval.c (maybe_continuable_type_error): New.
9621         * eval.c (type_error_with_frob): New.
9622         * eval.c (maybe_type_error_with_frob): New.
9623         * eval.c (continuable_type_error_with_frob): New.
9624         * eval.c (maybe_continuable_type_error_with_frob): New.
9625         New functions for use with structured errors.
9626
9627         * event-Xt.c:
9628         * event-Xt.c (x_event_to_emacs_event):
9629         Buttons are now modifiers too.
9630
9631         * event-Xt.c (emacs_Xt_current_event_timestamp):
9632         Implement new event method.
9633         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
9634
9635         * event-msw.c:
9636         * event-msw.c (ntpipe_shove_writer): [5].
9637         * event-msw.c (mswindows_enqueue_mouse_button_event):
9638         * event-msw.c (mswindows_drain_windows_queue):
9639         * event-msw.c (mswindows_wnd_proc): [7].
9640         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
9641         * event-msw.c (mswindows_modifier_state):
9642         Throughout: support new button modifiers.
9643
9644         * event-msw.c (emacs_mswindows_current_event_timestamp):
9645         Implement new event method.
9646         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
9647
9648         * event-stream.c:
9649         * event-stream.c (event_stream_current_event_timestamp): New.
9650         * event-stream.c (maybe_kbd_translate): New functionality.
9651         * event-stream.c (vars_of_event_stream):
9652         Document new kbd-translate-table functionality.
9653
9654         * event-stream.c (Fcurrent_event_timestamp): New.
9655         New primitive for use in fabricated events.
9656         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
9657
9658         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
9659
9660         * events.c:
9661         * events.c (Fmake_event):
9662         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
9663         [1].
9664         [9].
9665
9666         * events.c (format_event_object): fix gcc warnings.
9667
9668         * events.c (Fevent_timestamp): Document new primitives.
9669
9670         * events.c (TIMESTAMP_HALFSPACE): New.
9671
9672         * events.c (Fevent_timestamp_lessp): New.  New primitive for
9673         comparing timestamps correctly (half-space algorithm).
9674
9675         * events.c (Fevent_modifier_bits): Doc fix.
9676
9677         * events.c (Fevent_modifiers): Major doc addition.
9678         * events.c (event_x_y_pixel_internal): Typo fix.
9679         * events.c (syms_of_events): Declare new primitives.
9680
9681         * events.h:
9682         Update long comment for button modifiers, timestamps.
9683
9684         * events.h (struct event_stream):
9685         New current_event_timestamp method.
9686
9687         * extents.c:
9688         * extents.c (extent_in_region_p):
9689         * extents.c (decode_extent):
9690         * extents.c (Fset_extent_parent):
9691         * extents.c (decode_map_extents_flags):
9692         Fix gcc warnings.
9693         [9].
9694
9695         * extents.c (struct extent_at_arg):
9696         * extents.c (decode_extent_at_flag):
9697         * extents.c (extent_at_mapper):
9698         * extents.c (extent_at_bytind):
9699         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
9700         * extents.c (Fextents_at): New primitive. [9].
9701         * extents.c (symbol_to_glyph_layout): [9].
9702         Support new primitive `extents-at'.
9703
9704
9705         * extents.c (get_text_property_bytind):
9706         extent_at_bytind has another arg.
9707         [9].
9708
9709         * extents.c (syms_of_extents): New primitive.
9710
9711         * file-coding.c (Fmake_coding_system): [1].
9712         * file-coding.c (subsidiary_coding_system): fix gcc warning
9713         * file-coding.c (syms_of_file_coding): [2].
9714
9715         * fileio.c (Fexpand_file_name):
9716         * fileio.c (Fsysnetunam):
9717         * fileio.c (Ffile_exists_p):
9718         * fileio.c (Ffile_executable_p):
9719         * fileio.c (Fverify_visited_file_modtime):
9720         Clean up GCPROing.
9721
9722         * fileio.c (syms_of_fileio): [2].
9723
9724         * filelock.c (lock_file_1):
9725         * filelock.c (current_lock_owner):
9726         * filelock.c (lock_if_free):
9727         * filelock.c (lock_file):
9728         * filelock.c (unlock_file):
9729         Clean up GCPROing.
9730
9731         * fns.c (concat): Fix gcc warning.
9732
9733         * fns.c (Fmember):
9734         * fns.c (Fold_member):
9735         * fns.c (Fmemq):
9736         * fns.c (Fold_memq):
9737         * fns.c (memq_no_quit):
9738         * fns.c (Fassoc):
9739         * fns.c (Fold_assoc):
9740         * fns.c (Fassq):
9741         * fns.c (Fold_assq):
9742         * fns.c (assq_no_quit):
9743         * fns.c (Frassoc):
9744         * fns.c (Fold_rassoc):
9745         * fns.c (Frassq):
9746         * fns.c (Fold_rassq):
9747         * fns.c (rassq_no_quit):
9748         * fns.c (Fdelete):
9749         * fns.c (Fold_delete):
9750         * fns.c (Fdelq):
9751         * fns.c (Fold_delq):
9752         * fns.c (delq_no_quit):
9753         * fns.c (Fremassoc):
9754         * fns.c (Fremassq):
9755         * fns.c (remassq_no_quit):
9756         * fns.c (Fremrassoc):
9757         * fns.c (Fremrassq):
9758         * fns.c (remrassq_no_quit):
9759         * fns.c (Freverse):
9760         * fns.c (mapcar1):
9761         [1].
9762
9763         * frame-msw.c (mswindows_init_frame_1):
9764         * frame-msw.c (mswindows_delete_frame):
9765         Register popups with dialog code so keyboard traversing works.
9766
9767         * frame-tty.c (tty_raise_frame_no_select): [1].
9768
9769         * frame-x.c:
9770         * frame-x.c (x_set_frame_text_value):
9771         * frame-x.c (x_set_frame_properties):
9772         * frame-x.c (x_create_widgets):
9773         [7].
9774
9775         * frame.c:
9776         * frame.c (Fmouse_pixel_position): Minor doc fixes.
9777
9778         * frame.h (wrap_frame): New.
9779         Macro like wrap_device.
9780
9781         * general.c:
9782         * general.c (SYMBOL):
9783         * general.c (syms_of_general):
9784         Major reorg.  This is now just a wrapper and symbols themselves
9785         are listed in general-slots.h.
9786
9787         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
9788         * glyphs-msw.c (mswindows_resource_instantiate): [5].
9789
9790         * glyphs-msw.c (mswindows_native_layout_instantiate):
9791         Add DS_CONTROL so keyboard traversal will work.
9792
9793         * glyphs-widget.c:
9794         * glyphs-widget.c (syms_of_glyphs_widget):
9795         Move some symbols to general-slots.h.
9796
9797         * glyphs-x.c:
9798         * glyphs-x.c (xbm_instantiate_1):
9799         * glyphs-x.c (x_xbm_instantiate):
9800         * glyphs-x.c (x_xface_instantiate):
9801         * glyphs-x.c (autodetect_instantiate):
9802         * glyphs-x.c (cursor_font_instantiate):
9803         * glyphs-x.c (x_update_widget):
9804         * glyphs-x.c (x_widget_instantiate):
9805         * glyphs.c (bitmap_to_lisp_data):
9806         * glyphs.c (pixmap_to_lisp_data):
9807         [7].
9808
9809         * glyphs.c (syms_of_glyphs):
9810         [2].
9811
9812         * gui-x.c:
9813         * gui-x.c (print_widget_value):
9814         * gui-x.c (menu_separator_style_and_to_external):
9815         * gui-x.c (add_accel_and_to_external):
9816         * gui-x.c (button_item_to_widget_value):
9817         * gui-x.c (gui_items_to_widget_values_1):
9818         * gui-x.c (gui_items_to_widget_values):
9819         * gui-x.c (syms_of_gui_x):
9820         * gui-x.c (vars_of_gui_x):
9821         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
9822         [9].
9823
9824         * gui-x.h:
9825         Muleize, prototype changes matching gui-x.c.
9826
9827         * gui.c:
9828         * gui.c (separator_string_p):
9829         * gui.c (gui_item_add_keyval_pair):
9830         * gui.c (make_gui_item_from_keywords_internal):
9831         * gui.c (signal_too_long_error):
9832         * gui.c (parse_gui_item_tree_item):
9833         * gui.c (syms_of_gui):
9834         * gui.c (vars_of_gui):
9835         * gui.h:
9836         menu-no-selection-hook moved here (used by MSWin).
9837         Move some symbols to general-slots.h.
9838         [6].
9839         [9].
9840
9841         * insdel.c (get_buffer_pos_char):
9842         * insdel.c (get_buffer_range_char):
9843         Add GC comments.
9844
9845         * keymap.c (keymap_lookup_directly):
9846         * keymap.c (keymap_store):
9847         * keymap.c (ensure_meta_prefix_char_keymapp):
9848         * keymap.c (describe_map):
9849         * keymap.h:
9850         Support new button modifiers.
9851
9852         * lisp-disunion.h (wrap_object):
9853         * lisp-disunion.h (XSETOBJ):
9854         Rename make_obj to wrap_object.
9855
9856         * lisp-union.h:
9857         * lisp-union.h (make_int):
9858         * lisp-union.h (make_char):
9859         Support wrap_object.
9860
9861         * lisp.h:
9862         * lisp.h (LIST_LOOP):
9863         * lisp.h (EXTERNAL_LIST_LOOP):
9864         * lisp.h (LIST_LOOP_2):
9865         * lisp.h (EXTERNAL_LIST_LOOP_1):
9866         * lisp.h (EXTERNAL_LIST_LOOP_2):
9867         * lisp.h (EXTERNAL_LIST_LOOP_3):
9868         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
9869         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
9870         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
9871         * lisp.h (EXTERNAL_ALIST_LOOP_5):
9872         * lisp.h (EXTERNAL_ALIST_LOOP_6):
9873         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
9874         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
9875         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
9876         * lisp.h (struct Lisp_Symbol):
9877         * lisp.h (maybe_continuable_error_with_frob):
9878         Fix up section comments.
9879         Add new types for char to indicate usage.
9880         Delete symbols auto-generated from general-slots.h.
9881         Add prototypes for structured error functions.
9882         Add long comments describing looping macros and change interface
9883         so that lvalues are automatically declared.
9884         Add NO_DECLARE macro in case callers want to declare lvalues
9885         themselves.
9886
9887         * lread.c (read_syntax_error):
9888         * lread.c (continuable_read_syntax_error):
9889         * lread.c (read_structure):
9890         * lread.c (sequence_reader):
9891         * lread.c (read_list_conser):
9892         * lread.c (read_compiled_function):
9893         Rename syntax_error and continuable_syntax_error to avoid clash
9894         with same-named structured error functions.
9895
9896         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
9897         * menubar-msw.c (populate_menu_add_item):
9898         * menubar-msw.c (populate_or_checksum_helper):
9899         [5].
9900         [9].
9901
9902         * menubar-x.c:
9903         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9904         Mule-ize whole file.
9905
9906         * menubar.c (Fnormalize_menu_item_name): Add optimization.
9907
9908         * mule-charset.c (Fmake_charset):
9909         * mule-wnnfns.c (Fwnn_set_param):
9910         [1].
9911
9912         * ntproc.c (create_child):
9913         * ntproc.c (Fwin32_set_current_locale):
9914         Add comments portending doom.
9915
9916         * objects-msw.c:
9917         * objects-msw.c (old_font_enum_callback_2):
9918         * objects-msw.c (font_enum_callback_1):
9919         * objects-msw.c (mswindows_enumerate_fonts):
9920         [5].
9921
9922         * objects-x.c:
9923         * objects-x.c (allocate_nearest_color):
9924         * objects-x.c (x_parse_nearest_color):
9925         * objects-x.c (x_initialize_color_instance):
9926         * objects-x.c (x_print_color_instance):
9927         * objects-x.c (x_finalize_color_instance):
9928         * objects-x.c (x_valid_color_name_p):
9929         * objects-x.c (x_initialize_font_instance):
9930         * objects-x.c (x_print_font_instance):
9931         * objects-x.c (valid_x_font_name_p):
9932         * objects-x.c (truename_via_FONT_prop):
9933         * objects-x.c (truename_via_random_props):
9934         * objects-x.c (truename_via_XListFonts):
9935         * objects-x.c (x_font_truename):
9936         * objects-x.c (x_font_instance_truename):
9937         * objects-x.c (x_font_instance_properties):
9938         * objects-x.c (x_list_fonts):
9939         * objects-x.c (x_find_charset_font):
9940         Mule-ize entire file.
9941         [7].
9942
9943         * objects-x.h:
9944         Mule-verify.
9945
9946         * print.c:
9947         * print.c (std_handle_out_external):
9948         * print.c (debug_print_no_newline):
9949         * print.c (syms_of_print):
9950         Output to all debugger kinds in debug-print.
9951         Fix console-output code under MSWin to actually work.
9952
9953         * process-nt.c (send_signal):
9954         * process-nt.c (nt_create_process):
9955         Use newer Unicode macros.
9956
9957         * process-unix.c (unix_create_process):
9958         * process-unix.c (unix_canonicalize_host_name):
9959         * process-unix.c (unix_open_network_stream):
9960         [7].
9961
9962         * scrollbar-x.c:
9963         Mule-verify.
9964
9965         * search.c (syms_of_search):
9966         [2].
9967
9968         * select-msw.c (mswindows_destroy_selection):
9969         Use LIST_LOOP_2.
9970
9971         * select-x.c (symbol_to_x_atom):
9972         [7].
9973
9974         * select.c (syms_of_select):
9975         [2].
9976
9977         * sound.c (Fplay_sound_file):
9978         [7].
9979
9980         * specifier.c:
9981         * specifier.c (decode_specifier_type):
9982         * specifier.c (Fvalid_specifier_locale_type_p):
9983         * specifier.c (check_valid_locale_or_locale_type):
9984         * specifier.c (decode_locale):
9985         * specifier.c (decode_locale_type):
9986         * specifier.c (decode_locale_list):
9987         * specifier.c (check_valid_domain):
9988         * specifier.c (decode_specifier_tag_set):
9989         * specifier.c (Fcanonicalize_tag_set):
9990         * specifier.c (Fdefine_specifier_tag):
9991         * specifier.c (Fspecifier_tag_predicate):
9992         * specifier.c (check_valid_inst_list):
9993         * specifier.c (check_valid_spec_list):
9994         * specifier.c (decode_how_to_add_specification):
9995         * specifier.c (check_modifiable_specifier):
9996         * specifier.c (specifier_add_spec):
9997         * specifier.c (boolean_validate):
9998         * specifier.c (display_table_validate):
9999         [9].
10000
10001         * specifier.c (syms_of_specifier):
10002         Move some symbols to general-slots.h.
10003         [2].
10004
10005         * symbols.c:
10006         * symbols.c (Fmapatoms):
10007         * symbols.c (Fapropos_internal):
10008         Add GCPROs.
10009
10010         * symbols.c (set_default_buffer_slot_variable):
10011         * symbols.c (set_default_console_slot_variable):
10012         [1].
10013
10014         * symbols.c (defsymbol_massage_name_1):
10015         * symbols.c (defkeyword_massage_name):
10016         * symbols.c (deferror_1):
10017         * symbols.c (deferror):
10018         * symbols.c (deferror_massage_name_and_message):
10019         * symeval.h:
10020         * symeval.h (DEFSYMBOL):
10021         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
10022
10023         * symbols.c (syms_of_symbols):
10024         [2].
10025
10026         * symsinit.h:
10027         * symsinit.h (init_win32): New.
10028         Also new is syms_of_dialog_mswindows.
10029
10030         * syswindows.h:
10031         Add new Unicode macros, missing Cygwin wide-char functions,
10032         convenience conversion macros for Qmswindows_tstr, macros for
10033         encapsulating required MSWin <-> Cygwin filename conversions,
10034         prototype for dynamically-extracted (not in NT 3.51) functions.
10035
10036         * toolbar-x.c:
10037         Mule-verify.
10038
10039         * tooltalk.c (Fadd_tooltalk_message_arg):
10040         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
10041         * tooltalk.c (Fadd_tooltalk_pattern_arg):
10042         [7].
10043
10044         * tooltalk.c (syms_of_tooltalk):
10045         [2].
10046
10047         * unexnt.c:
10048         * unexnt.c (unexec):
10049         Fix up headers, declaration of unexec() to be more standard.
10050
10051 2000-07-20  Martin Buchholz  <martin@xemacs.org>
10052
10053         * offix.h: Revert change to guard macros - they're used in offix.c!
10054
10055 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10056
10057         * lisp.h: Defsubred Fdelete.
10058
10059         * console-msw.h:  (msprinter_default_printer): Added.
10060
10061         * console-msw.c (msprinter_canonicalize_console_connection):
10062         (msprinter_canonicalize_device_connection): Added.
10063
10064         * device-msw.c (msprinter_default_printer):
10065         (Fmswingows_get_default_printer):
10066         (signal_enum_priner_error):
10067         (Fmswingows_printer_list): Added.
10068
10069 2000-07-19  Martin Buchholz <martin@xemacs.org>
10070
10071         * XEmacs 21.2.35 is released.
10072
10073 2000-07-19  Martin Buchholz  <martin@xemacs.org>
10074
10075         * select-x.c (x_handle_selection_request):
10076         Text selected in xemacs and pasted into xterm failed to appear.
10077         Spelling fixes and cosmetic changes.
10078
10079 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10080
10081         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
10082         XEmacs frame (fix for doubling chars in dialog boxes).
10083
10084 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
10085
10086         * select.c (select_convert_in, select_convert_out):
10087         Don't call intern() every time.
10088
10089         * select.c (Qselect_convert_in, Qselect_convert_out): New.
10090         * select.c (vars_of_select): Initialise them.
10091
10092 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
10093
10094         * select.c (selection-coercible-types): New.
10095
10096         * select.c (own-selection-internal):
10097         * select.c (get-selection-internal):
10098         MULE bug fix - these should default to COMPOUND_TEXT and not
10099         STRING for MULE. I think.
10100
10101         * select.c (select_convert_out): Use selection-coercible-types
10102         to find types that we can attempt to perform coercions on.
10103
10104 2000-07-18  Martin Buchholz  <martin@xemacs.org>
10105
10106         * mule-wnnfns.c:
10107         * mule-canna.c:
10108         Add coding: cookie to identify encoding.
10109
10110         * mule-canna.c (CANNA_mode_keys): make static.
10111         Use proper prototypes, even for functions of no arguments.
10112         Remove external prototype for Fding().
10113
10114         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
10115
10116         * select.c (syms_of_select): Add missing DEFSUBR.
10117
10118 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
10119
10120         * select.c (get_selection_internal, own_selection_internal):
10121         Make the type default to STRING, rather than placing a nil type
10122         into Vselection_alist.
10123
10124 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
10125
10126         * gpmevent.c (tty_selection_exists_p):
10127         * gpmevent.c (tty_own_selection):
10128         Updated parameter lists.
10129
10130 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
10131
10132         * select.h (selection-alist): Removed declaration.
10133
10134         * select.h (get_local_selection):
10135         * select.c (get_local_selection):
10136         Made static.
10137
10138         * select.h (convert_selection): Removed declaration.
10139         * select.c (convert_selection): Removed.
10140         This function belongs in Lisp.
10141
10142         * select.h (select_convert_in): Declare.
10143         * select.h (select_convert_out): Declare.
10144         * select.c (select_convert_in): New.
10145         * select.c (select_convert_out): New.
10146         New conversion functions for other files to call.
10147
10148         * select.h (select_notify_buffer_kill): Declare.
10149         * select.c (select_notify_buffer_kill): New.
10150         New functions that get called from kill-buffer.
10151
10152         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
10153         X-specific lisp code.
10154
10155         * select.h: Declare some of the lisp-visible functions for
10156         external use.
10157
10158         * select.c (clean_local_selection_data): Removed. This was
10159         a disgusting function, and previously should have been in
10160         select-x.c in any case. The functionality is now provided
10161         in select-convert-from-integer (select.el).
10162
10163         * select.c (available-selection-types): Fixed stupidity where
10164         INTEGER and ATOM got added twice. Also add STRING when we see an
10165         extent.
10166
10167         * select.c (get-selection-internal): Removed symbol stripping. No
10168         longer causes conversion when data comes from the internal cache.
10169
10170         * select.c (syms_of_select): Added new functions.
10171
10172         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
10173         error checking - previously this called abort!
10174
10175         * select-x.c (x_own_selection): Changed comment.
10176
10177         * select-x.c (x_handle_selection_request): Use select_convert_out.
10178         Don't mess with selection-alist; it's an internal variable of select.c.
10179
10180         * select-x.c (x_get_foreign_selection): Use select_convert_in.
10181
10182         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
10183         rather than messing with selection-alist.
10184
10185         * select-msw.c (mswindows_get_foreign_selection):
10186         Use TO_INTERNAL_FORMAT rather than hacking.
10187
10188 2000-07-14  Martin Buchholz  <martin@xemacs.org>
10189
10190         * process-unix.c (unix_open_multicast_group):
10191         (unix_open_multicast_group): Remove useless casts.
10192
10193 2000-07-13  Martin Buchholz  <martin@xemacs.org>
10194
10195         * sound.c (Fplay_sound): Fix `unused variable' warning.
10196
10197         * emacs.c (main): Use correct type for _environ on SCO5.
10198
10199 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
10200
10201         * console.h (own_selection_method):
10202         * console.h (selection_exists_p_method):
10203         * console.h (available_selection_types_method): New.
10204         * console.h (register_selection_data_type_method): New.
10205         * console.h (selection_data_type_name): New.
10206
10207         * console-msw.h (mswindows_destroy_selection): Declare it.  New
10208         function & alist to track GlobalAlloc()'d handles that need
10209         releasing when the clipboard data gets replaced or emptied.
10210
10211         * event-msw.c (mswindows_wnd_proc): Call it.
10212
10213         * lisp.h, general.c (Qappend): New symbol representing a
10214         `how-to-add' mode.
10215
10216         * select.c (own-selection-internal):
10217         * select.c (selection-exists-p):
10218         * select.c (available-selection-types): New.
10219         * select.c (register-selection-data-type): New.
10220         * select.c (selection-data-type-name): New.  New functions to deal
10221         with device-specific selection data formats.
10222         * select.c (selection-converter-out-alist): Renamed.
10223         * select.c (selection-converter-in-alist): New.
10224         * select.c (selection-appender-alist): New.  Added new alists.
10225         * select.c (syms_of_select, vars_of_select): Added new symbols &
10226         variables.
10227         * select.c (get_local_selection): Split.
10228         * select.c: Removed spurious type checking - selections may now be
10229         of any type, not just strings.
10230         * select.c (own-selection-internal):
10231
10232         * select.h, select.c (convert_selection): New. Created
10233         convert_selection() function based on get_local_selection().
10234         * select.h, select.c (QCF_*): New symbols representing mswindows
10235         clipboard formats.
10236         * select.h, select.c (Qreplace_all, Qreplace_existing): New
10237         symbols representing `how-to-add' modes.
10238
10239         * select-msw.c (x_sym_p): New.
10240         * select-msw.c (symbol_to_ms_cf): New.
10241         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
10242         symbols & clipboard formats. Can also handle string names.
10243         * select-msw.c (mswindows_own_selection):
10244         * select-msw.c (mswindows_selection_exists_p):
10245         Added `data-type' parameter. Use it.
10246         * select-msw.c (mswindows_available_selection_types): New.
10247         * select-msw.c (mswindows_register_selection_data_type): New.
10248         * select-msw.c (mswindows_selection_data_type_name): New.
10249         * select-msw.c (mswindows_own_selection):
10250         * select-msw.c (mswindows_get_foreign_selection):
10251         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
10252         * select-msw.c (console_create_select_mswindows): Added new methods.
10253         * select-msw.c (mswindows_destroy_selection): New.
10254         * select-msw.c (Vhandle_alist): New list.
10255         * select-msw.c (mswindows_own_selection):
10256
10257         * select-x.c (x_own_selection):
10258         * select-x.c (x_selection_exists_p):
10259         * select-x.c: Added some comments about maybe using new
10260         functionality.
10261         * select-x.c (x_own_selection):
10262
10263         * specifier.c: Remove definition of Qappend (now in general.c)
10264         * specifier.c (syms_of_specifier): Remove Qappend.
10265
10266 2000-07-12  Martin Buchholz  <martin@xemacs.org>
10267
10268         * config.h.in: Add socklen_t.
10269
10270         * s/decosf4-0.h: No special compiler flags needed or desired.
10271         In particular, undefine _BSD for DEC OSF 4.0.
10272
10273 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10274
10275         * redisplay-msw.c (msprinter_frame_output_end): Added.
10276         (console_type_create_redisplay_mswindows): Referred the above.
10277
10278         * frame.c (setup_frame_without_minibuffer): Do not create a
10279         default minibuffer frame on a printer device.
10280
10281         * frame-msw.c (apply_dc_geometry): Added.
10282         (msprinter_start_page):
10283         (msprinter_init_frame_3):
10284         (msprinter_eject_page): Use it.
10285
10286         * console-msw.h (struct msprinter_frame): Added pix_left and top,
10287         and removed residual duplex and orientation properties.
10288
10289 2000-07-11  Martin Buchholz  <martin@xemacs.org>
10290
10291         * eval.c (function_argcount): Work around a DEC CC compiler bug.
10292
10293         * unexalpha.c: Remove system prototypes from C sources!
10294
10295 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
10296
10297         * eval.c: Remove references to M-x edit-options in DEFUNs for
10298         `defvar' and `defconst'.
10299
10300 2000-07-09  Martin Buchholz  <martin@xemacs.org>
10301
10302         * config.h.in: Remove SMART_INCLUDE hackery.
10303
10304         PostgreSQL hacking:
10305         * config.h.in: Don't use SMART_INCLUDE.
10306
10307         * postgresql.h: Include libpq-fe.h here.  Fix typo.
10308         * inline.c: Simply #include "postgresql.h"
10309         * postgresql.c:
10310         - Don't use SMART_INCLUDE
10311         - Use simply "const".
10312         - Use standard doc string conventions.
10313         - Use correct type for result of PQstatus.
10314
10315 2000-07-09  Martin Buchholz  <martin@xemacs.org>
10316
10317         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
10318
10319         C++ compilation changes.
10320         * config.h.in (EXTERN_C): Define.
10321         * config.h.in (not): This is also a C++ keyword.
10322         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
10323         * cm.c: Use EXTERN_C.
10324         * redisplay-tty.c: Use EXTERN_C.
10325         * sysdep.c: Use EXTERN_C.  Remove Gould support.
10326
10327 2000-07-09  Martin Buchholz  <martin@xemacs.org>
10328
10329         * general.c: Remove duplicate definition for Qfunction.
10330
10331 2000-07-08  Ben Wing  <ben@xemacs.org>
10332
10333         * device-msw.c (msprinter_init_device):
10334         * device-msw.c (sync_printer_with_devmode):
10335         * device-msw.c (handle_devmode_changes):
10336         * device-msw.c (print_dialog_worker):
10337         * device-msw.c (Fmsprinter_apply_settings):
10338         * device-msw.c (hash_devmode):
10339         * device-msw.c (Fmsprinter_settings_despecialize):
10340         use Qmswindows_tstr, not Qctext.
10341
10342         * vm-limit.c (check_memory_limits):
10343         avoid infinite loop printing warning messages.
10344
10345 2000-07-05  Craig Lanning  <lanning@scra.org>
10346
10347         * Makefile.in.in: Add support for including the Windows resources
10348         when building with the cygwin and mingw targets.
10349
10350         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
10351         not set or not correct.
10352         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
10353         (init_initial_directory): Don't try to use $PWD on the
10354         WIN32_NATIVE target.
10355
10356         * s\cygwin32.h:
10357         [[Add -mwindows to eliminate console window.]] not required --ben
10358         (HAVE_NATIVE_SOUND): removed; now handled by configure.
10359         (MAIL_USE_POP): removed; now handled by configure.
10360
10361         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
10362         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
10363         (HAVE_NATIVE_SOUND): removed; now handled by configure.
10364         (MAIL_USE_POP): removed; now handled by configure.
10365         (ENCAPSULATE_STAT): from Dan Holmsand, added.
10366         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
10367         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
10368         constant string.
10369         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
10370         up from <winsock.h> via systime.h.
10371         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
10372         (getpagesize): from Dan Holmsand, added.
10373         Added #endif which was left dangling by Ben's mega patch; added
10374         comment to help prevent this in the future.
10375
10376         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
10377
10378 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10379
10380         * console-msw.h (struct mswindows_device): Removed unnecessary
10381         cached device geometry values.
10382         Added update_tick and an accessor macro.
10383         (Lisp_Devmode): Added lrecord declaration.
10384         (struct msprinter_device): Contain devmode as a Lisp object.
10385         Added mswindows_get_selected_frame_hwnd();
10386
10387         * console.h (struct console_methods): Indentation nitpicking.
10388
10389         * device-msw.c (mswindows_init_device): Do not initialize geometry
10390         cache. Initialize update tick.
10391         (mswindows_device_system_metrics): Ask the device for its geometry.
10392         (global_free_2_maybe):
10393         (devmode_to_hglobal):
10394         (handle_printer_changes):
10395         (ensure_not_printing):
10396         (print_dialog_worker):
10397         (Fmsprinter_print_setup_dialog):
10398         (Fmsprinter_print_dialog):
10399         (plist_get_margin):
10400         (plist_set_margin):
10401         (Fmsprinter_page_setup_dialog): Added functions.
10402         (sync_printer_with_devmode):
10403         (handle_devmode_changes):
10404         (Fmsprinter_get_settings):
10405         (Fmsprinter_select_settings):
10406         (Fmsprinter_apply_settings):
10407         (allocate_devmode):
10408         (Fmsprinter_settings_copy):
10409         (Fmsprinter_settings_despecialize):
10410         (print_devmode):
10411         (finalize_devmode):
10412         (equal_devmode):
10413         (hash_devmode): Added functions
10414         (syms_of_device_mswindows): Init devmode lrecord class.
10415
10416         * device.h: Added an exfun for find-device.
10417
10418         * event-msw.c (mswindows_wnd_proc): Do not update the cached
10419         geometry; although, recreate the device compatible DC.
10420
10421         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
10422         (msprinter_init_frame_3):
10423         (msprinter_frame_property):
10424         (msprinter_internal_frame_property_p):
10425         (msprinter_frame_properties):
10426         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
10427         print job properties (will move to device settings).
10428
10429         * lisp.h: Added symbols.
10430
10431         * general.c (syms_of_general): Declared them.
10432
10433         * hash.c (string_hash): Added.
10434
10435         * lrecord.h (lrecord_type): Added devmode lrecord type.
10436
10437 2000-07-02  Mike Sperber <mike@xemacs.org>
10438
10439         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
10440         FreeBSD 4.0.
10441
10442 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
10443
10444         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
10445         integer.
10446
10447 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
10448
10449         * data.c (Fstring_to_number): Don't recognize floating point if
10450         base is not 10.
10451
10452 2000-06-22  Martin Buchholz  <martin@xemacs.org>
10453
10454         * glyphs-widget.c (tab_control_query_geometry):
10455         (widget_query_geometry):
10456         (button_query_geometry):
10457         * glyphs.c (text_query_geometry):
10458         Enforce type correctness.
10459
10460 2000-06-18  Martin Buchholz  <martin@xemacs.org>
10461
10462         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
10463         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
10464
10465 2000-06-17  Martin Buchholz  <martin@xemacs.org>
10466
10467         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
10468         conflicts with gcc's fixincluded version of FOO.h.
10469
10470         * glyphs.h (image_instance_geometry): Remove trailing `,'
10471
10472 2000-06-08  Mike Alexander  <mta@arbortext.com>
10473
10474         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
10475         (shove_thread): Don't write the same output twice
10476         (make_ntpipe_output_stream): Increase priority of shove thread
10477         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
10478         chance to run
10479         (ntpipe_shove_closer): Don't delete the pipe until we're done with
10480         it.
10481
10482 2000-06-12  Ben Wing  <ben@xemacs.org>
10483
10484         * s\mingw32.h (sigset):
10485         * s\windowsnt.h (sigset):
10486         rename msw_ to mswindows_ for consistency with general convention.
10487
10488 2000-06-12  Ben Wing  <ben@xemacs.org>
10489
10490         * console-msw.c:
10491         * console-msw.c (mswindows_get_console_hwnd):
10492         * console-msw.c (mswindows_ensure_console_allocated):
10493         * console-msw.c (mswindows_hide_console):
10494         * console-msw.c (mswindows_show_console):
10495         * console-msw.c (mswindows_ensure_console_buffered):
10496         * console-msw.c (mswindows_output_console_string):
10497         * console-msw.c (mswindows_windows9x_p):
10498         * console-msw.h:
10499         * device-msw.c (mswindows_get_workspace_coords):
10500         * device-msw.c (mswindows_device_system_metrics):
10501         * dialog-msw.c (mswindows_popup_dialog_box):
10502         * event-msw.c (mswindows_wnd_proc):
10503         * frame-msw.c (mswindows_size_frame_internal):
10504         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
10505         * menubar-msw.c (displayable_menu_item):
10506         * menubar-msw.c (mswindows_char_is_accelerator):
10507         * nt.c:
10508         * nt.c (mswindows_sigset):
10509         * nt.c (mswindows_sigrelse):
10510         * nt.c (mswindows_sigpause):
10511         * nt.c (mswindows_raise):
10512         * nt.c (timer_proc):
10513         * ntproc.c:
10514         * ntproc.c (find_child_console):
10515         * ntproc.c (sys_kill):
10516         * print.c:
10517         * print.c (std_handle_out_external):
10518         * process-nt.c (find_child_console):
10519         * process-nt.c (send_signal_the_95_way):
10520         * process-nt.c (ensure_console_window_exists):
10521         * process-nt.c (nt_create_process):
10522         * syssignal.h:
10523         rename msw_ to mswindows_ for consistency with general convention.
10524
10525         * emacs.c:
10526         * dumper.c:
10527         include nt.h, not syswindows.h.
10528
10529         * nt.c (mswindows_fstat):
10530         * nt.c (mswindows_stat):
10531         prefix mswindows_ instead of attempting to directly override the
10532         library functions.  fix declarations.
10533
10534         * nt.h:
10535         include syswindows.h.  move some sysdep.h stuff here.
10536
10537         * ntheap.h:
10538         include syswindows.h, not <windows.h>.
10539
10540         * ntplay.c:
10541         clean up headers.
10542
10543         * sysdep.c:
10544         clean up headers.
10545
10546         * sysdep.c (sys_fstat):
10547         * sysdep.c (sys_stat):
10548         call mswindows versions when appropriate.
10549
10550         * sysdep.h:
10551         move mswin decls to nt.h.
10552
10553         * syswindows.h:
10554         add long comment describing appropriate use of the various windows
10555         headers.
10556
10557 2000-06-11  Ben Wing  <ben@xemacs.org>
10558
10559         * device-x.c: Correct doc string for sixth arg of x-get-resource.
10560
10561 2000-06-10  Ben Wing  <ben@xemacs.org>
10562
10563         * Makefile.in.in (release):
10564         Correction to make sure xemacs.exe always dumped when correct.
10565
10566         * alloca.c:
10567         * balloon_help.c:
10568         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
10569
10570         * buffer.c (set_buffer_internal):
10571         [[[[2]]]]: Remove HAVE_FEP code.
10572
10573         * buffer.c (init_initial_directory):
10574         [3].
10575
10576         * bytecode.c:
10577         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
10578         individual files.
10579
10580         * callproc.c:
10581         * callproc.c (call_process_cleanup):
10582         * callproc.c (Fold_call_process_internal):
10583         * callproc.c (child_setup):
10584         * callproc.c (getenv_internal):
10585         * callproc.c (init_callproc):
10586         * callproc.c (vars_of_callproc):
10587         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
10588         __CYGWIN32__ -> CYGWIN.
10589         DOS_NT -> WIN32_NATIVE.
10590         Remove MSDOS support/references, converting to WIN32_NATIVE
10591           where correct.
10592         __MINGW32__ -> MINGW.
10593         Fix windows.h includes.
10594         Remove bogus HAVE_NTGUI.
10595
10596         * config.h.in:
10597         [2].
10598
10599         * console-msw.c:
10600         mswindows_message_outputted added for use in allowing startup
10601         errors on the console to be seen.
10602
10603         * console-msw.c (msw_ensure_console_allocated):
10604         * console-msw.c (msw_output_console_string):
10605         * console-msw.c (DHEADER):
10606         * console-msw.c (DOPAQUE_DATA):
10607         * console-msw.c (DEVENT):
10608         * console-msw.c (DCONS):
10609         * console-msw.c (DCONSCDR):
10610         * console-msw.c (DSTRING):
10611         * console-msw.c (DVECTOR):
10612         * console-msw.c (DSYMBOL):
10613         * console-msw.c (DSYMNAME):
10614         Fix warnings.
10615
10616         * console-stream.c (stream_init_console):
10617         Fix text/binary problems.
10618
10619         * device-msw.c:
10620         * device-msw.c (mswindows_finish_init_device):
10621         * device-msw.c (mswindows_delete_device):
10622         [1].
10623
10624         * device.c (handle_asynch_device_change):
10625         [3].
10626
10627         * dgif_lib.c:
10628         * dgif_lib.c (DGifOpenFileName):
10629         * dgif_lib.c (DGifOpenFileHandle):
10630         * dgif_lib.c (DGifGetLine):
10631         * dgif_lib.c (DGifGetPixel):
10632         Added config.h/lisp.h, fix up includes.
10633         [1].
10634
10635         * dired-msw.c:
10636         [4].
10637
10638         * dired.c:
10639         * dired.c (file_name_completion):
10640         * dired.c (Ffile_attributes):
10641         * dired.c (syms_of_dired):
10642         [1].
10643
10644         * dumper.c:
10645         * dumper.c (pdump_file_unmap):
10646         * dumper.c (pdump_load):
10647         [1].
10648
10649         * editfns.c:
10650         * editfns.c (Ftemp_directory):
10651         * editfns.c (user_login_name):
10652         * editfns.c (Fuser_real_login_name):
10653         * editfns.c (get_home_directory):
10654         [1].
10655
10656         * elhash.c (finish_marking_weak_hash_tables):
10657         [[[[5]]]]: Fix GCC warnings.
10658
10659         * emacs.c:
10660         * emacs.c (mswindows_handle_hardware_exceptions):
10661         * emacs.c (make_arg_list_1):
10662         * emacs.c (main_1):
10663         * emacs.c (Fkill_emacs):
10664         * emacs.c (Fdump_emacs):
10665         [1].
10666         Fix problems with nested crashes, add long comment.
10667
10668         * event-Xt.c (init_event_Xt_late):
10669         [1].
10670
10671         * event-msw.c:
10672         * event-msw.c (mswindows_dde_callback):
10673         * event-msw.c (mswindows_handle_sticky_modifiers):
10674         * event-msw.c (mswindows_wnd_proc):
10675         [1].
10676         [5].
10677
10678         * events.c (character_to_event):
10679         [1].
10680
10681         * fileio.c:
10682         * fileio.c (Ffile_name_directory):
10683         * fileio.c (Ffile_name_nondirectory):
10684         * fileio.c (directory_file_name):
10685         * fileio.c (Fexpand_file_name):
10686         * fileio.c (Fsubstitute_in_file_name):
10687         * fileio.c (Ffile_name_absolute_p):
10688         * fileio.c (check_executable):
10689         * fileio.c (Ffile_readable_p):
10690         * fileio.c (Ffile_accessible_directory_p):
10691         * fileio.c (Ffile_modes):
10692         * fileio.c (Funix_sync):
10693         * fileio.c (vars_of_fileio):
10694         [1]. [4].
10695
10696         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
10697
10698         Expand getdefdir defn.
10699         Fix bogus rename() comment.
10700
10701         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
10702         to use standard XEmacs include files, e.g. sysfile.h, rather
10703         than system-specific includes.
10704
10705         * fns.c:
10706         * fns.c (Fsubseq):
10707         [5]. [6].
10708
10709         * frame.c (vars_of_frame):
10710         [1].
10711
10712         * getloadavg.c:
10713         * getloadavg.c (getloadavg):
10714         [1]. [6].
10715         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
10716         (We don't use it elsewhere in the code; just add a comment.)
10717
10718         * gif_io.c:
10719         [6].
10720         Add config.h.
10721
10722         * glyphs-msw.c:
10723         * glyphs-msw.c (mswindows_resource_instantiate):
10724         [1].
10725
10726         * glyphs-x.c (x_native_layout_instantiate):
10727         [5].
10728
10729         * gui-msw.c (Fmswindows_shell_execute):
10730         [1].
10731
10732         * insdel.c:
10733         [4].
10734
10735         * lisp.h:
10736         [4]. [5].
10737
10738         * lread.c (locate_file_in_directory_mapper):
10739         [1].
10740
10741         * lstream.c:
10742         [4].
10743
10744         * mem-limits.h:
10745         * mem-limits.h (get_lim_data):
10746         [1].
10747
10748         * menubar-msw.c:
10749         [4].
10750
10751         * ndir.h:
10752         [1].
10753
10754         * nt.c:
10755         * nt.c (getwd):
10756         * nt.c (closedir):
10757         * nt.c (rva_to_section):
10758         * nt.c (mswindows_executable_type):
10759         [1]. [6].
10760         Fix closedir() defn.
10761
10762         * nt.h:
10763         [[[[8]]]]: *_OK defs moved to sysfile.h.
10764
10765         * ntproc.c:
10766         [6]. [7].
10767
10768         * objects-x.c:
10769         [4].
10770
10771         * print.c:
10772         * print.c (std_handle_out_external):
10773         [1]. [4].
10774
10775         * process-nt.c:
10776         * process-nt.c (nt_create_process):
10777         [6].
10778         try to fix process quoting somewhat.
10779
10780         * process-unix.c (unix_create_process):
10781         [1].
10782
10783         * process.c:
10784         * process.c (vars_of_process):
10785         Add Vnull_device.
10786
10787         * process.h:
10788         [1].
10789
10790         * realpath.c:
10791         * realpath.c (xrealpath):
10792         [1].
10793
10794         * redisplay-tty.c (init_tty_for_redisplay):
10795         [3].
10796
10797         * redisplay.c:
10798         [4]. [6].
10799
10800         * scrollbar-msw.c:
10801         [4].
10802
10803         * sheap.c:
10804         * sheap.c (more_static_core):
10805         * sheap.c (report_sheap_usage):
10806         [5]. [6].
10807
10808         * signal.c:
10809         * signal.c (alarm_signal):
10810         [1]. [6].
10811
10812         * sound.c:
10813         [6].
10814
10815         * strftime.c:
10816         * strftime.c (zone_name):
10817         [1]. [5].
10818
10819         * symsinit.h (init_sunpro):
10820         [1].
10821
10822         * syscommctrl.h:
10823         commctrl.h not in Cygwin b20.1.
10824
10825         * sysdep.c:
10826         * sysdep.c (endif):
10827         * sysdep.c (sys_subshell):
10828         * sysdep.c (init_baud_rate):
10829         * sysdep.c (emacs_get_tty):
10830         * sysdep.c (emacs_set_tty):
10831         * sysdep.c (tty_init_sys_modes_on_device):
10832         * sysdep.c (init_system_name):
10833         * sysdep.c (sys_open):
10834         * sysdep.c (interruptible_open):
10835         * sysdep.c (sys_fopen):
10836         * sysdep.c (sys_mkdir):
10837         * sysdep.c (sys_rename):
10838         * sysdep.c (get_process_times_1):
10839         [1]. [6].
10840
10841         * sysdep.h:
10842         [1].
10843
10844         * sysdir.h:
10845         * sysdir.h (DIRENTRY_NONEMPTY):
10846         [1]. [6].
10847
10848         * sysdll.c (dll_init):
10849         * sysdll.h:
10850         [1].
10851
10852         * sysfile.h:
10853         [1]. [6]. [8].
10854         added text/binary defs.
10855
10856         * sysfloat.h:
10857         [1].
10858
10859         * sysproc.h:
10860         * sysproc.h (EDESTADDRREQ):
10861         * sysproc.h (poll_fds_for_input):
10862         [1]. [6].
10863
10864         * syspwd.h:
10865         [6].
10866
10867         * syssignal.h:
10868         [1].
10869
10870         * systime.h:
10871         [1]. [6].
10872
10873         * systty.h:
10874         [1].
10875
10876         * syswindows.h:
10877         [1].
10878         Always define WIN32_LEAN_AND_MEAN.
10879
10880         * unexcw.c (unexec):
10881         [5].
10882
10883         * unexec.c:
10884         * unexec.c (copy_text_and_data):
10885         * unexec.c (adjust_lnnoptrs):
10886         [1].
10887
10888         * unexnt.c:
10889         * unexnt.c (_start):
10890         [1].
10891
10892 2000-06-07  Ben Wing  <ben@xemacs.org>
10893
10894         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
10895         was used only as a model.  We've long since extracted any useful
10896         logic or code out of this. (I just did an exhaustive search.)
10897
10898         * s\msdos.h: Removed.
10899
10900         * s\windows95.h: Removed.
10901
10902 2000-06-10  Ben Wing  <ben@xemacs.org>
10903
10904         * s\cygwin32.h:
10905         [1]. [5].
10906         Don't use extern with fun defs.
10907
10908         * s\mingw32.h:
10909         [1]. [7].
10910         Remove nt\inc include.
10911         Remove getdisk, getdefdir. (The former is unused, the latter
10912         expanded in fileio.h.)
10913
10914         * s\windowsnt.h:
10915         * s\windowsnt.h (WIN32_NATIVE):
10916         * s\windowsnt.h (HAVE_STRCASECMP):
10917         [1]. [7].
10918         Add long comment about preprocessor changes.
10919         Remove getdisk, getdefdir. (The former is unused, the latter
10920         expanded in fileio.h.)
10921
10922 2000-06-10  Ben Wing  <ben@xemacs.org>
10923
10924         * m\arm.h:
10925         * m\delta.h:
10926         * m\intel386.h:
10927         * m\sequent.h:
10928         * m\template.h:
10929         * m\windowsnt.h:
10930         [1].
10931         Remove bogus/unused NO_SOCK_SIGIO.
10932
10933 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
10934
10935         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
10936         not an Emchar.
10937
10938 2000-06-04  Mike Sperber <mike@xemacs.org>
10939
10940         * casetab.c (set_case_table): For `set-standard-case-table',
10941         actually deposit the new case tables where the rest of XEmacs can
10942         see them.
10943
10944 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
10945
10946         * data.c (Faset): Don't cast XCHAR() to unsigned char.
10947
10948 2000-06-05  Ben Wing  <ben@xemacs.org>
10949
10950         * callproc.c (child_setup): Don't do close_load_descs() under
10951         MS Windows.  Put in a comment explaining why.
10952
10953 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
10954
10955         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
10956         Toolkit shell" which breaks `kill-compilation' on Windows NT
10957         native, retaining STDERR handling improvements.
10958
10959 2000-06-01  Andreas Jaeger  <aj@suse.de>
10960
10961         * s/s390.h: Support for S390, based on a patch by Martin
10962         Schwidefsky <schwidefsky@de.ibm.com>.
10963
10964 2000-05-30  Andy Piper  <andy@xemacs.org>
10965
10966         * window.c (allocate_window):
10967         (make_dummy_parent):
10968         (Fset_window_configuration): use new hashtable type.
10969
10970         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
10971         (struct image_instantiator_methods):
10972         (struct Lisp_Image_Instance): make instance geometry signed.
10973
10974         * glyphs.c (instantiate_image_instantiator):
10975         (image_instance_query_geometry):
10976         (image_instance_layout):
10977         (image_instance_layout):
10978         (query_string_geometry):
10979         (text_query_geometry):
10980         (image_instantiate):
10981         (image_instantiate):
10982         (cache_subwindow_instance_in_frame_maybe):
10983         (subwindow_query_geometry): make instance geometry signed.
10984
10985         * glyphs-widget.c (widget_query_geometry):
10986         (widget_layout):
10987         (button_query_geometry):
10988         (tree_view_query_geometry):
10989         (tab_control_query_geometry):
10990         (layout_query_geometry):
10991         (layout_layout):
10992         (native_layout_layout): make instance geometry signed.
10993
10994 2000-05-29  Olivier Galibert  <galibert@pobox.com>
10995
10996         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
10997         constant.
10998
10999         * general.c (syms_of_general): Add Qfull_assoc symbol.
11000
11001         * data.c (finish_marking_weak_lists): Mark full-assoc lists
11002         correctly.
11003         (decode_weak_list_type): Decode full-assoc type.
11004         (encode_weak_list_type): Encode full-assoc type.
11005         (Fmake_weak_list): Update doc string.
11006
11007 2000-05-30  Andy Piper  <andy@xemacs.org>
11008
11009         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
11010
11011         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
11012         (decode_hash_table_weakness): ditto.
11013         (Fhash_table_weakness): ditto.
11014         (Fhash_table_type): ditto.
11015         (finish_marking_weak_hash_tables): ditto.
11016         (hash_table_weakness_validate): ditto.
11017         (syms_of_elhash): ditto.
11018
11019 2000-05-28  Martin Buchholz <martin@xemacs.org>
11020
11021         * XEmacs 21.2.34 is released.
11022
11023 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
11024
11025         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
11026         start cache.
11027         (updating_line_start_cache): Gone.
11028         (regenerate_window): Replace resetting of VERTICAL_CLIP by
11029         generic code to force a minimum of 1 line laid out in the
11030         CMOTION_DISP case.
11031
11032 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
11033
11034         * glyphs.c (instantiate_image_instantiator): Check for initialized
11035         height & width no longer special cases IMAGE_NOTHING.
11036         (nothing_instantiate): Set height and width of instance.
11037
11038 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
11039
11040         * unexelf.c (unexec): Search for ".data" section.
11041         Initialize new_data2_offset from old_data_index.
11042         Remove redundant check for ElfW.
11043
11044 2000-05-23  Andy Piper  <andy@xemacs.org>
11045
11046         * glyphs.c (get_image_instantiator_governing_domain): allow more
11047         specific domains as the governing domain rather than expecting an
11048         exact match. This fixes problems with layouts.
11049
11050 2000-05-22  Andy Piper  <andy@xemacs.org>
11051
11052         * redisplay-output.c (compare_runes): check for non-images
11053
11054         * glyphs.c (set_glyph_dirty_p): ditto.
11055         (update_glyph_cachel_data): ditto.
11056
11057         * glyphs-widget.c (layout_post_instantiate): ditto.
11058         (layout_post_instantiate): ditto.
11059
11060         * event-msw.c (mswindows_wnd_proc): warning removal.
11061
11062 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
11063
11064         * s\mingw32.h: Added #undef for CLASH_DETECTION.
11065
11066         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
11067
11068         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
11069
11070         * nt.c (rva_to_section): mingw32 needs rva_to_section.
11071         (mswindows_executable_type): mingw32 now has enough headers for
11072         this to work.
11073
11074 2000-05-20  Andy Piper  <andy@xemacs.org>
11075
11076         * console-msw.c (mswindows_output_last_error): ; -> ,
11077
11078 2000-05-12  Andy Piper  <andy@xemacs.org>
11079
11080         * console-msw.c (FROB): compare ints with ints.
11081
11082 2000-05-11  Andy Piper  <andy@xemacs.org>
11083
11084         * glyphs-x.c (x_finalize_image_instance): make minimal build
11085         happy.
11086
11087 2000-05-20  Ben Wing  <ben@xemacs.org>
11088
11089         * event-Xt.c:
11090         * event-Xt.c (vars_of_event_Xt):
11091         move modifier-keys-are-sticky to event-stream.c.
11092
11093         * event-msw.c:
11094         * event-msw.c (mswindows_enqueue_mouse_button_event):
11095         * event-msw.c (key_needs_default_processing_p):
11096         * event-msw.c (XEMSW_LCONTROL):
11097         * event-msw.c (mswindows_handle_sticky_modifiers):
11098         * event-msw.c (FROB):
11099         * event-msw.c (clear_sticky_modifiers):
11100         * event-msw.c (output_modifier_keyboard_state):
11101         * event-msw.c (output_alt_keyboard_state):
11102         * event-msw.c (mswindows_wnd_proc):
11103         * event-msw.c (mswindows_modifier_state):
11104         * event-msw.c (emacs_mswindows_handle_magic_event):
11105         implement sticky modifiers.
11106
11107         * event-stream.c:
11108         * event-stream.c (vars_of_event_stream):
11109         move modifier-keys-are-sticky here.
11110
11111         * lisp.h:
11112         add CHECK_FUNCTION.
11113
11114         * rangetab.c:
11115         implement map-range-table.
11116
11117
11118 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
11119
11120         * redisplay-tty.c (reset_tty_modes):
11121         (tty_redisplay_shutdown): Adjust argument type to
11122         tty_frame_output_end.
11123
11124 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
11125
11126         * eval.c (Fbacktrace): Don't output a line with only right
11127         parenthesis.
11128
11129 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
11130
11131         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
11132         (Fpq_reset_poll): Ditto.
11133
11134 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
11135
11136         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
11137
11138 2000-05-16  Ben Wing  <ben@xemacs.org>
11139
11140         * buffer.c:
11141         * buffer.c (dfc_convert_to/from_internal_format):
11142         * buffer.c (reinit_vars_of_buffer):
11143         Fix conversion functions to allow reentrancy.
11144
11145         * console-msw.c:
11146         * console-msw.c (mswindows_output_last_error):
11147         New fun, generally useful -- output a human-readable
11148         version of GetLastError() on the console.
11149
11150         * console-msw.h:
11151         * console-msw.h (struct mswindows_frame):
11152         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
11153
11154         * console-stream.c (stream_output_begin):
11155         * console-stream.c (stream_output_end):
11156         * console-stream.c (stream_output_vertical_divider):
11157         * console-stream.c (stream_clear_region):
11158         * console-stream.c (stream_flash):
11159         * console-stream.c (console_type_create_stream):
11160         Delete blank stream methods, not needed.
11161
11162         * console.h (struct console_methods):
11163         Split begin/end methods into window and frame.
11164
11165         * event-msw.c:
11166         * event-msw.c (mswindows_handle_paint):
11167         * event-msw.c (output_alt_keyboard_state):
11168         * event-msw.c (mswindows_wnd_proc):
11169         * event-msw.c (vars_of_event_mswindows):
11170         Comment about problems with ignored-expose.
11171         Define mswindows-debug-events; not really implemented.
11172
11173         * frame-msw.c (mswindows_init_frame_1):
11174         random cleanups.
11175
11176         * glyphs-msw.c:
11177         * glyphs-msw.c (begin_defer_window_pos):
11178         * glyphs-msw.c (mswindows_unmap_subwindow):
11179         * glyphs-msw.c (mswindows_map_subwindow):
11180         * glyphs-msw.c (mswindows_resize_subwindow):
11181         Use DeferWindowPos to reduce flashing when mapping/unmapping.
11182
11183         * glyphs.c (make_image_instance_1):
11184         Fix crash.
11185
11186         * gutter.c (Fredisplay_gutter_area):
11187         Use new begin/end methods.
11188
11189         * lisp.h (Dynarr_new2):
11190         New creation fun.
11191
11192         * redisplay-msw.c:
11193         * redisplay-msw.c (mswindows_frame_output_begin):
11194         * redisplay-msw.c (mswindows_frame_output_end):
11195         * redisplay-msw.c (console_type_create_redisplay_mswindows):
11196         New begin/end methods -- handle DeferWindowPos.
11197
11198         * redisplay-output.c (redisplay_move_cursor):
11199         * redisplay-output.c (redraw_cursor_in_window):
11200         * redisplay-output.c (redisplay_update_line):
11201         * redisplay-output.c (redisplay_output_window):
11202         New begin/end methods.
11203
11204         * redisplay-tty.c:
11205         * redisplay-tty.c (tty_frame_output_begin):
11206         * redisplay-tty.c (tty_frame_output_end):
11207         * redisplay-tty.c (console_type_create_redisplay_tty):
11208         New begin/end methods.
11209
11210         * redisplay-x.c:
11211         * redisplay-x.c (x_window_output_begin):
11212         * redisplay-x.c (x_window_output_end):
11213         * redisplay-x.c (console_type_create_redisplay_x):
11214         New begin/end methods.
11215
11216         * redisplay.c (redisplay_frame):
11217         * redisplay.c (Fredisplay_echo_area):
11218         New begin/end methods.
11219         use MAYBE_DEVMETH for clear_frame; it may not exist.
11220
11221         * window.h (WINDOW_XFRAME):
11222         WINDOW_XFOO macros -- get locale and decode struct pointer.
11223
11224
11225 2000-05-12  Ben Wing  <ben@xemacs.org>
11226
11227         * emacs.c:
11228         * emacs.c (ensure_no_quitting_from_now_on):
11229         * emacs.c (fatal_error_signal):
11230         * emacs.c (mswindows_handle_hardware_exceptions):
11231         * emacs.c (main):
11232         * emacs.c (Fkill_emacs):
11233         * emacs.c (shut_down_emacs):
11234         * emacs.c (assert_failed):
11235         various improvements in fatal error handling.
11236
11237         * eval.c:
11238         move preparing_for_armageddon to emacs.c.
11239
11240         * lisp.h:
11241         declare fatal_error_in_progress.
11242
11243         * print.c:
11244         * print.c (std_handle_out_external):
11245         * print.c (std_handle_out_va):
11246         * print.c (stderr_out):
11247         * print.c (stdout_out):
11248         use console under mswin when no standard output.
11249         don't do code conversion during fatal error.
11250
11251         * scrollbar.c (Fscrollbar_page_up):
11252         * scrollbar.c (Fscrollbar_page_down):
11253         fix missing else.  reindent.
11254
11255 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
11256
11257         Emergency fix.
11258
11259         * glyphs.h (GLYPH_CACHEL_DESCENT):
11260         (GLYPH_CACHEL_DESCENT):
11261         (GLYPH_CACHEL_DESCENT):
11262         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
11263         used in case these are inline functions.
11264         Use more absurd values to error check.
11265
11266         include window.h for error check functions.
11267
11268 2000-05-11  Ben Wing  <ben@xemacs.org>
11269
11270         * cmdloop.c (Freally_early_error_handler):
11271         Display message box under windows; otherwise, message will disappear
11272         before it can be viewed.
11273
11274         * console-msw.c:
11275         * console-msw.c (Fmswindows_message_box):
11276         * console-msw.c (FROB):
11277         * console-msw.c (syms_of_console_mswindows):
11278         Define new fun `mswindows-message-box'.
11279         #### I will merge this into `popup-dialog-box'; just give me
11280         a bit of time.
11281
11282         * general.c:
11283         * general.c (syms_of_general):
11284         Some new symbols used in `mswindows-message-box'.
11285
11286         * glyphs.c:
11287         * glyphs.c (Fset_image_instance_property):
11288         put warning in this fun.
11289
11290         * glyphs.h:
11291         * glyphs.h (GLYPH_CACHEL_WIDTH):
11292         * glyphs.h (GLYPH_CACHEL_ASCENT):
11293         * glyphs.h (GLYPH_CACHEL):
11294         * glyphs.h (GLYPH_CACHEL_GLYPH):
11295         define error-checking versions to try to catch a bug i've seen --
11296         redisplay gets in an infinite loop because the glyph width of the
11297         continuation glyph is 65535.
11298
11299         * lisp.h:
11300         Extern message-box stuff.
11301
11302         * window.c (allocate_window):
11303         * window.c (make_dummy_parent):
11304         * window.c (Fset_window_configuration):
11305         Use EQUAL not EQ for subwindow caches to make them work a bit
11306         better. (Something is still very broken.)
11307
11308
11309 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
11310
11311         * glyphs.c (image_instantiate): Suppress gcc warnings.
11312         (Fmake_image_instance): Fix doc string.
11313         * specifier.c (Fmake_specifier): Ditto.
11314
11315 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
11316
11317         * paths.h.in (PATH_LOCK): Removed.
11318         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
11319         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
11320
11321 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
11322
11323         * fns.c (Ffeaturep): Update e-mail address in doc-string.
11324         Document (featurep '(and xemacs 21.02)).
11325
11326 2000-05-09  Ben Wing  <ben@xemacs.org>
11327
11328         * buffer.c (complex_vars_of_buffer):
11329         update modeline-format doc.
11330
11331         * device.h:
11332         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
11333
11334         * emacs.c:
11335         timeline of all released versions of Emacs, for use in creating
11336         authorship comments and in synching up.
11337
11338         * glyphs-widget.c (image_instantiator_buttons):
11339         * glyphs-widget.c (image_instantiator_edit_fields):
11340         * glyphs-widget.c (image_instantiator_combo_box):
11341         * glyphs-widget.c (image_instantiator_scrollbar):
11342         * glyphs-widget.c (image_instantiator_progress_guage):
11343         * glyphs-widget.c (image_instantiator_tree_view):
11344         * glyphs-widget.c (image_instantiator_tab_control):
11345         * glyphs-widget.c (image_instantiator_labels):
11346         * glyphs-widget.c (image_instantiator_layout):
11347         * glyphs-widget.c (image_instantiator_native_layout):
11348         rename decode_domain method to governing_domain.
11349
11350         * glyphs.c:
11351         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
11352         * glyphs.c (add_entry_to_device_ii_format_list):
11353         make sure we don't put an entry more than once into the list.
11354         * glyphs.c (check_instance_cache_mapper):
11355         *************************************************************
11356         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
11357         HAVE BEEN GETTING.
11358         *************************************************************
11359         * glyphs.c (get_image_instantiator_governing_domain):
11360         clean up, expand on new concept of governing domain.
11361         * glyphs.c (instantiate_image_instantiator):
11362         * glyphs.c (allocate_image_instance):
11363         use governing_domain instead of cache_domain in naming.
11364         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
11365         * glyphs.c (make_image_instance_1):
11366         * glyphs.c (Fmake_image_instance):
11367         allow for any domain (not just device), and process the
11368         governing domain correctly.  very big doc fix.
11369         * glyphs.c (Fimage_instance_domain):
11370         new primitive, to retrieve the governing domain of an image instance.
11371         * glyphs.c (image_instantiate):
11372         use new governing_domain stuff.  this fixes a crash you could get
11373         by instantiating certain widget glyphs in frame locales. (should
11374         signal an error instead of crashing.)
11375         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
11376         * glyphs.c (Fglyphp): clean up doc.
11377         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
11378         * glyphs.c (syms_of_glyphs):
11379         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
11380         * glyphs.c (image_instantiator_format_create): add some comments about
11381         bogus code.
11382         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
11383         for current-display-table. (Apparently Hrjove implemented in 1998 a
11384         design I wrote up in 1996, but didn't update the doc string.)
11385
11386         * glyphs.h: clean up a doc string.
11387         * glyphs.h (governing_domain):
11388         * glyphs.h (struct image_instantiator_methods):
11389         changes for governing_domain stuff.
11390
11391         * gutter.c:
11392         * gutter.c (Fgutter_specifier_p):
11393         * gutter.c (Fgutter_size_specifier_p):
11394         * gutter.c (Fgutter_visible_specifier_p):
11395         * objects.c:
11396         * objects.c (Fcolor_specifier_p):
11397         * objects.c (Ffont_specifier_p):
11398         * objects.c (Fface_boolean_specifier_p):
11399         doc strings moved to make-*-specifier.
11400
11401         * redisplay.c (add_disp_table_entry_runes_1):
11402         * redisplay.c (generate_fstring_runes):
11403         * redisplay.c (screen):
11404         add random comments and doc strings.
11405
11406         * specifier.c:
11407         * specifier.c (Fmake_specifier):
11408         major overhaul of this doc string.
11409
11410         * specifier.c (Fvalid_specifier_domain_p):
11411         comment about the bogosity of image instances being domains.
11412         * specifier.c (decode_domain):
11413         now non-static, used in glyphs.c.
11414         * specifier.c (specifier_instance):
11415         comment about the bogosity of image instances being domains.
11416         * specifier.c (Fgeneric_specifier_p):
11417         move doc string to make-generic-specifier.
11418         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
11419         rebackslashify.
11420
11421         * specifier.h:
11422         * specifier.h (DOMAIN_FRAME):
11423         * specifier.h (DOMAIN_LIVE_P):
11424         * specifier.h (DOMAIN_XDEVICE):
11425         rebackslashify.
11426         add comments about problems with these macros.
11427         prototype for decode_domain.
11428
11429         * toolbar.c:
11430         * toolbar.c (Ftoolbar_specifier_p):
11431         move doc string to `make-toolbar-specifier'.
11432
11433         * window.c (window_unmap_subwindows_cache_mapper):
11434         *************************************************************
11435         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
11436         HAVE BEEN GETTING.
11437         *************************************************************
11438
11439 2000-05-09  Andy Piper  <andy@xemacs.org>
11440
11441         * glyphs.h: declare reset_frame_subwindow_instance_cache.
11442
11443         * window.c (Fset_window_configuration): reset the frame subwindow
11444         cache and re-initialize the window subwindow caches.
11445
11446         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
11447
11448 2000-05-09  Ben Wing  <ben@xemacs.org>
11449
11450         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
11451         DWORD.
11452
11453 2000-04-26  Mike Woolley  <mike@bulsara.com>
11454
11455         * ntheap.c: Changed recreate_heap to limit the amount reserved
11456         for the heap to that which is actually available. Also now
11457         displays a message box (with some dignostics) in the event that
11458         it still can't start.
11459
11460 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
11461
11462         * callproc.c (Fold_call_process_internal): GCPRO path
11463
11464 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
11465
11466         Patch by Bill Perry.
11467
11468         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
11469         back data instead of #ifdef.
11470         (Fscrollbar_page_down): ditto.
11471
11472 2000-05-07  Ben Wing  <ben@xemacs.org>
11473
11474         * buffer.h:
11475         Kludge for defining Qmswindows_tstr.
11476
11477         * nt.c:
11478         * nt.c (open_input_file):
11479         * nt.c (open_output_file):
11480         * nt.c (rva_to_section):
11481         * nt.c (mswindows_executable_type):
11482         Move all memory-mapped-file routines here (some were in unexnt.c,
11483         which is bad because they are used by process-nt.c, and unexnt
11484         won't be around when portable dumping).  Synched the above routines
11485         with FSF 20.6.
11486
11487         * nt.h:
11488         Removed ifdef'd out bogus code.
11489         Fixed some prototypes.
11490
11491         * nt.h (file_data):
11492         * nt.h (OFFSET_TO_RVA):
11493         * nt.h (RVA_TO_OFFSET):
11494         * nt.h (RVA_TO_PTR):
11495         Moved the memory-mapped-file structures, macros and prototypes
11496         here, to parallel nt.c.  ntheap.h should really be removed
11497         entirely, and it's a non-portable-dumper specific file.
11498
11499         * ntheap.h (round_to_next):
11500         Moved the memory-mapped-file structures, macros and prototypes
11501         to nt.h.
11502
11503         * ntproc.c (compare_env):
11504         Moved rva_to_section and mswindows_executable_type to nt.c.
11505         Moved compare_env to process-nt.c.
11506         ntproc.c will die, one day.
11507
11508         * ntproc.c (sys_spawnve):
11509         Account for win32_ -> mswindows_.
11510
11511         * process-nt.c:
11512         * process-nt.c (struct nt_process_data):
11513         * process-nt.c (ensure_console_window_exists):
11514         * process-nt.c (compare_env):
11515         * process-nt.c (nt_create_process):
11516         * process-nt.c (nt_kill_process_by_pid):
11517         * process-nt.c (syms_of_process_nt):
11518         * process-nt.c (vars_of_process_nt):
11519         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
11520         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
11521         changes).  Eliminate our old `nt-quote-process-args' mechanism.
11522         Synch up nt_create_process with FSF 20.6 sys_spawnve.
11523         Move compare_env here from ntproc.c.
11524
11525         * process.c (Fprocess_send_region):
11526         Takes an optional fourth argument, BUFFER, which should fix some
11527         problems with call-process.
11528
11529         * syscommctrl.h:
11530         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
11531
11532         * syswindows.h:
11533         Move ICC_BAR_CLASSES to syscommctrl.h.
11534         Add preliminary macros for MSWindows/Mule.  More to come.
11535
11536         * unexnt.c:
11537         * unexnt.c (unexec):
11538         open_output_file moved to nt.c.
11539
11540
11541 2000-05-05  Andy Piper  <andy@xemacs.org>
11542
11543         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
11544         instance from the frame cache also since GC may catch up too late
11545         to make frame deletion sane.
11546
11547 2000-05-04  Andy Piper  <andy@xemacs.org>
11548
11549         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
11550         (x_finalize_image_instance): ungcpro on deletion.
11551
11552         * glyphs.c (image_instantiator_format_create): give pointers a
11553         query geometry method so that the geometry is at least set.
11554
11555         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
11556         initialize layouts if using widgets.
11557
11558 2000-05-03  Andy Piper  <andy@xemacs.org>
11559
11560         * nt.c: remove bogus reference to sysmmsystem.h
11561
11562         * gui-x.c (popup_selection_callback): fix no selection abort.
11563
11564 2000-05-02  Andy Piper  <andy@xemacs.org>
11565
11566         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
11567         (mswindows_widget_instantiate): ditto.
11568
11569         * glyphs-widget.c (initialize_widget_image_instance): initialize
11570         children correctly.
11571         (widget_instantiate): cope with children and items in the same
11572         instance.
11573
11574         * glyphs.c (mark_image_instance): cope with children as a first
11575         class member.
11576         (image_instance_equal): ditto.
11577         (image_instance_hash): ditto.
11578         (image_instance_changed): ditto.
11579
11580 2000-04-30  Andy Piper  <andy@xemacs.org>
11581
11582         * glyphs.c (subwindow_query_geometry): new function. Return some
11583         defaults.
11584         (subwindow_instantiate): don't assign dimensions if none have been
11585         given.
11586         (image_instantiator_format_create): add subwindow_query_geometry.
11587         (print_image_instance): cope with layouts as widgets.
11588
11589 2000-04-29  Andy Piper  <andy@xemacs.org>
11590
11591         * frame.c (delete_frame_internal): call
11592         free_frame_subwindow_instance_cache so that all subwindows are
11593         finalized before their parent.
11594         (mark_frame): remove subwindow_cachels.
11595         (Fmake_frame): remove subwindow_cachel manipulation.
11596         (allocate_frame_core): subwindow_instance_cache is a weak list.
11597         (delete_frame_internal): set subwindow_instance_cache to nil.
11598
11599         * glyphs-msw.c (mswindows_finalize_image_instance): make double
11600         finalization safe.
11601         (mswindows_finalize_image_instance): use the device
11602         not the domain as the domain may have died already.
11603
11604         * glyphs-x.c (x_finalize_image_instance): ditto.
11605         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
11606         HEIGHT.
11607
11608         * redisplay-output.c (redisplay_unmap_subwindows): update for
11609         subwindow instance cache as a weak list.
11610         (redisplay_unmap_subwindows_maybe): ditto.
11611         (redisplay_unmap_subwindows_except_us): ditto.
11612
11613         * glyphs.c (unmap_subwindow): error checking will check the domain
11614         so don't deal with it here. Don't use cachels anymore.
11615         (map_subwindow): ditto.
11616         (update_subwindow_cachel_data): remove old accessor names.
11617         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
11618         (Fresize_subwindow): don't update cachel.
11619         (mark_subwindow_cachels):
11620         (update_subwindow_cachel_data):
11621         (add_subwindow_cachel):
11622         (get_subwindow_cachel_index):
11623         (update_subwindow_cachel):
11624         (reset_subwindow_cachels):
11625         (mark_subwindow_cachels_as_not_updated): deleted.
11626         (cache_subwindow_instance_in_frame_maybe): new function. Add a
11627         subwindow instance to the frame cache.
11628         (find_matching_subwindow): update for subwindow instance cache as
11629         a weak list.
11630         (update_widget_instances): ditto.
11631         (image_instance_type_to_mask):inlined.
11632         (free_frame_subwindow_instance_cache): new function. finalize all
11633         subwindows that are instantiated.
11634
11635         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
11636         of cachel information.
11637         (IMAGE_INSTANCE_DISPLAY_X):
11638         (IMAGE_INSTANCE_DISPLAY_Y):
11639         (IMAGE_INSTANCE_DISPLAY_WIDTH):
11640         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
11641         (XIMAGE_INSTANCE_DISPLAY_X):
11642         (XIMAGE_INSTANCE_DISPLAY_Y):
11643         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
11644         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
11645         remove subwindow_cachel structure and function references.
11646         (image_instance_type_to_mask): inline from glyphs.c
11647
11648         * redisplay.c (redisplay_frame): remove subwindow_cachel
11649         references.
11650
11651         * frame.h (struct frame): remove subwindow_cachels.
11652         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
11653
11654         * frameslots.h: add subwindow_instance_cache.
11655
11656         * window.c (replace_window): check subwindow cache of replacement.
11657         (window_unmap_subwindows_cache_mapper):
11658         (window_unmap_subwindows): new functions. Unmap all subwindows
11659         cached on this window.
11660         (mark_window_as_deleted): unmap all subwindows.
11661
11662 2000-04-27  Andy Piper  <andy@xemacs.org>
11663
11664         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
11665
11666         * glyphs-widget.c (widget_layout): return something.
11667         (layout_layout): return something. Fail if not initialized.
11668         (layout_query_geometry): ditto.
11669         (image_instantiator_native_layout): new function. Initialized the
11670         native layout type.
11671         (widget_instantiate): don't do layout stuff here.
11672
11673         * glyphs.c (instantiate_image_instantiator): reorded calling or
11674         instantiate and post_instantiate with layout in between.
11675         (image_instance_layout): be more selective about deciding whether
11676         the layout has been done or not.
11677
11678         * glyphs.h (struct image_instantiator_methods): return a value
11679         from layout_method.
11680
11681 2000-04-26  Andy Piper  <andy@xemacs.org>
11682
11683         * glyphs.c (allocate_image_instance): make initial width and
11684         height unspecified. Set initialized to 0.
11685
11686         * syscommctrl.h new file. Encapsulates commctrl.h.
11687
11688         * syswindows.h new file. Encapsulates windows.h.
11689
11690         * ntplay.c: use new syswindows.h and syscommctrl.h header.
11691         * nt.c: ditto.
11692         * console-msw.h: ditto.
11693
11694         * redisplay-tty.c (tty_output_display_block): remove layout references.
11695
11696         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
11697         window handle rather than just the frame.
11698
11699         * glyphs.c (mark_image_instance): remove layout references.
11700         (print_image_instance): ditto.
11701         (image_instance_equal): ditto.
11702         (image_instance_hash): ditto.
11703         (decode_image_instance_type): ditto.
11704         (encode_image_instance_type): ditto.
11705         (image_instantiate): ditto.
11706         (allocate_glyph): ditto.
11707         (Fimage_instance_height): ditto.
11708         (Fimage_instance_width): ditto.
11709         (update_subwindow): ditto.
11710
11711         * redisplay-x.c (x_output_display_block): recode for layouts as
11712         widgets.
11713
11714         * redisplay-output.c (redisplay_output_layout): recode for layouts
11715         as widgets.
11716         (compare_runes): remove layout references.
11717
11718         * redisplay-msw.c (mswindows_output_display_block): recode for
11719         layouts as widgets.
11720
11721         * glyphs-widget.c (image_instantiator_layout): remove
11722         layout_possible_dest_types.
11723         (layout_possible_dest_types): deleted.
11724
11725         * glyphs.h (image_instance_type): remove layout references.
11726         (struct Lisp_Image_Instance): ditto. Add initialized flag.
11727         (IMAGE_INSTANCE_INITIALIZED): new accessor.
11728         (XIMAGE_INSTANCE_INITIALIZED): ditto.
11729
11730 2000-04-25  Andy Piper  <andy@xemacs.org>
11731
11732         * glyphs-widget.c (image_instantiator_buttons):
11733         (image_instantiator_edit_fields):
11734         (image_instantiator_combo_box):
11735         (image_instantiator_scrollbar):
11736         (image_instantiator_progress_guage):
11737         (image_instantiator_tree_view):
11738         (image_instantiator_tab_control):
11739         (image_instantiator_labels):
11740         (image_instantiator_layout): call default post_instantiate method.
11741         (widget_post_instantiate): new function. Simply lays out the
11742         widgets.
11743
11744         * glyphs.h (struct image_instantiator_methods): add
11745         post_instantiate method.
11746
11747         * glyphs.c (instantiate_image_instantiator): add post_instantiate
11748         method calls.
11749
11750 2000-04-23  Andy Piper  <andy@xemacs.org>
11751
11752         * glyphs.h (struct image_instantiator_methods): add
11753         decode_domain_method.
11754         (struct Lisp_Image_Instance): remove subwindow frame - it can be
11755         derived from the domain.
11756         (IMAGE_INSTANCE_FRAME): new accessor.
11757         (XIMAGE_INSTANCE_FRAME): ditto.
11758
11759         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
11760         instead of _SUBWINDOW_FRAME.
11761         (finalize_image_instance): ditto.
11762         (Fimage_instance_foreground): ditto.
11763         (Fimage_instance_background): ditto.
11764         (image_instantiate): ditto.
11765         (update_subwindow_cachel): ditto.
11766         (update_subwindow): ditto.
11767         (unmap_subwindow): ditto.
11768         (map_subwindow): ditto
11769         (subwindow_instantiate): ditto.
11770         * glyphs-msw.c (mswindows_update_widget): ditto.
11771         (mswindows_progress_gauge_instantiate): ditto.
11772         (mswindows_tab_control_update): ditto.
11773         * glyphs-x.c (x_update_widget): ditto.
11774         (x_widget_instantiate): ditto.
11775         (x_tab_control_instantiate): ditto.
11776         (x_tab_control_update): ditto.
11777         * event-msw.c (mswindows_wnd_proc): ditto
11778
11779         * glyphs-widget.c (image_instantiator_layout): use
11780         subwindow_decode_domain.
11781         (image_instantiator_buttons): ditto.
11782         (image_instantiator_edit_fields): ditto.
11783         (image_instantiator_combo_box): ditto.
11784         (image_instantiator_scrollbar): ditto.
11785         (image_instantiator_progress_guage): ditto.
11786         (image_instantiator_tree_view): ditto.
11787         (image_instantiator_tab_control): ditto.
11788         (image_instantiator_labels): ditto.
11789         (image_instantiator_layout): ditto.
11790
11791         * glyphs.c: add instance error checking to many functions.
11792         (instantiate_image_instantiator): decode device from cache_domain.
11793         (image_instantiate): partially rewrite by using
11794         decode_image_instantiator_domain to determine what domain the
11795         instance needs to be cached in.
11796         (decode_image_instantiator_domain): new function. Determine what
11797         domain the image needs to be cached in.
11798         (check_window_subwindow_cache): new error checking function.
11799         (check_instance_cache_mapper): ditto.
11800         (check_image_instance_structure): ditto.
11801         (subwindow_decode_domain): new function. Encodes a window as a
11802         subwindow's cache domain.
11803         (image_instantiator_format_create): use it for text and
11804         subwindows.
11805
11806 2000-04-21  Andy Piper  <andy@xemacs.org>
11807
11808         * glyphs.c (image_instance_device): new function.
11809         (image_instance_frame): new function.
11810         (image_instance_window): new function.
11811         (image_instance_live_p): new function.
11812
11813         * window.c (mark_window_as_deleted): reset the subwindow_instance_
11814         cache to nil.
11815
11816         * glyphs.h (struct Lisp_Image_Instance): device->domain.
11817         (IMAGE_INSTANCE_DOMAIN): new accessor.
11818         (XIMAGE_INSTANCE_DOMAIN): ditto.
11819
11820         * glyphs-x.c (x_finalize_image_instance): device->domain.
11821
11822         * glyphs-msw.c (init_image_instance_geometry): device->domain.
11823         (mswindows_finalize_image_instance): ditto.
11824
11825         * glyphs-eimage.c (jpeg_instantiate): device->domain.
11826         (gif_instantiate): ditto.
11827         (png_instantiate): ditto.
11828         (tiff_instantiate): ditto.
11829
11830         * glyphs.c (instantiate_image_instantiator): use domain rather
11831         than device.
11832         (mark_image_instance): device -> domain.
11833         (print_image_instance): ditto.
11834         (finalize_image_instance): ditto.
11835         (image_instance_equal): ditto.
11836         (allocate_image_instance): ditto.
11837         (Fcolorize_image_instance): ditto.
11838         (query_string_geometry): ditto.
11839         (image_instantiate): ditto
11840         (query_string_font): ditto.
11841         (image_instantiate): ditto.
11842         (update_subwindow): ditto.
11843         (unmap_subwindow): ditto.
11844         (map_subwindow): ditto.
11845         (subwindow_instantiate): ditto.
11846
11847         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
11848         (DOMAIN_FRAME): ditto.
11849         (DOMAIN_WINDOW): ditto.
11850         (DOMAIN_LIVE_P): ditto.
11851         (XDOMAIN_DEVICE): ditto.
11852         (XDOMAIN_FRAME): ditto.
11853         (XDOMAIN_WINDOW): ditto.
11854
11855         * specifier.c (Fvalid_specifier_domain_p): add image instances as
11856         a valid specifier domain.
11857
11858 2000-04-19  Andy Piper  <andy@xemacs.org>
11859
11860         * glyphs-widget.c (syms_of_glyphs_widget): remove
11861         widget-callback-current-channel.
11862         (vars_of_glyphs_widget): ditto.
11863         * glyphs.h: ditto
11864
11865         * gui.c (get_gui_callback): revert to previous behaviour.
11866
11867 2000-04-18  Andy Piper  <andy@xemacs.org>
11868
11869         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
11870         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
11871         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
11872
11873         * glyphs.c (image_instance_equal): add margin_width.
11874         (image_instance_hash): ditto.
11875
11876         * glyphs-widget.c (widget_instantiate): deal with margin-width.
11877         (layout_query_geometry): ditto.
11878         (layout_layout): ditto.
11879         (syms_of_glyphs_widget): add margin-width.
11880         (image_instantiator_layout): allow margin-width.
11881
11882         * glyphs.c (update_widget_instances): make a normal function.
11883         (syms_of_glyphs): remove Qupdate_widget_instances.
11884         * glyphs.h: ditto.
11885
11886         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
11887         so that we don't corrupt ideas about the last event or
11888         command. Remove widget-callback-current-channel fiddling.
11889         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
11890
11891 2000-05-01  Martin Buchholz <martin@xemacs.org>
11892
11893         * XEmacs 21.2.33 is released.
11894
11895 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
11896
11897         * make-src-depend: Allow dots in header file name.
11898
11899 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
11900
11901         * mule-charset.h (struct charset_lookup): Add
11902         next_allocated_1_byte_leading_byte and
11903         next_allocated_2_byte_leading_byte.
11904         * mule-charset.c: Move above two variables so that those values
11905         will be dumped.
11906
11907 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
11908
11909         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
11910         when string length is zero.
11911         (find_charsets_in_emchar_string): Ditto.
11912
11913 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
11914
11915         * lisp.h: extern Qdialog and Qmenubar.
11916
11917         * gui-x.c: added events.h.
11918                 also fixed typo which made the file uncompilable.
11919
11920         * general.c: Added Qmenubar and Qdialog
11921
11922 2000-04-28  Ben Wing  <ben@xemacs.org>
11923
11924         * frame-msw.c (mswindows_init_frame_1):
11925         * frame-msw.c (mswindows_mark_frame):
11926         * event-msw.c (mswindows_enqueue_dispatch_event):
11927         * console-msw.h:
11928         * console-msw.h (struct mswindows_frame):
11929         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
11930         there are now three hash tables for callbacks.
11931         mswindows_enqueue_dispatch_event is no longer static.
11932
11933         * dialog-x.c (maybe_run_dbox_text_callback):
11934         * dialog-x.c (dbox_descriptor_to_widget_value):
11935         switch to new cons3 form for callbacks.
11936
11937         * glyphs-msw.c (mswindows_register_gui_item):
11938         * glyphs-msw.c (mswindows_widget_instantiate):
11939         * glyphs-msw.c (add_tree_item):
11940         * glyphs-msw.c (add_tab_item):
11941         new image instance parameter, so it can be passed to callback-ex.
11942         respect :callback-ex as well as :callback.
11943
11944         * glyphs-widget.c (VALID_GUI_KEYWORDS):
11945         add :callback-ex.
11946
11947         * glyphs.c (print_image_instance):
11948         prettify, e.g. now prints widget type.
11949
11950         * gui-x.h:
11951         certain funs have new image instance parameter.
11952
11953         * gui.c:
11954         * gui.c (get_gui_callback):
11955         * gui.c (gui_item_add_keyval_pair):
11956         * gui.c (gui_item_init):
11957         * gui.c (gui_add_item_keywords_to_plist):
11958         * gui.c (mark_gui_item):
11959         * gui.c (gui_item_hash):
11960         * gui.c (gui_item_equal):
11961         * gui.c (copy_gui_item):
11962         * gui.c (syms_of_gui):
11963         recognize callback-ex in a number of places.
11964         also, fix the annoying "can't get out of yes-no dialog" bug.
11965
11966         * gui.h:
11967         * gui.h (struct Lisp_Gui_Item):
11968         recognize callback-ex in a number of places.
11969
11970         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
11971         new parameter in button_item_to_widget_value.
11972
11973         * glyphs-x.c (x_update_widget):
11974         * glyphs-x.c (x_button_instantiate):
11975         * glyphs-x.c (x_button_update):
11976         * glyphs-x.c (x_progress_gauge_instantiate):
11977         * glyphs-x.c (x_edit_field_instantiate):
11978         * glyphs-x.c (x_combo_box_instantiate):
11979         * glyphs-x.c (x_tab_control_instantiate):
11980         * glyphs-x.c (x_label_instantiate):
11981         new image instance parameter in various places.
11982
11983         * event-Xt.c:
11984         * event-Xt.c (enqueue_Xt_dispatch_event):
11985         this fun gets exported.
11986
11987         * gui-msw.c:
11988         * gui-msw.c (mswindows_handle_gui_wm_command):
11989         handle both :callback and :callback-ex, and generate our own
11990         event because it's one of the callback-ex arguments.
11991
11992         * gui-x.c:
11993         * gui-x.c (popup_selection_callback):
11994         handle both :callback and :callback-ex, and generate our own
11995         event because it's one of the callback-ex arguments.
11996         * gui-x.c (button_item_to_widget_value):
11997         * gui-x.c (gui_items_to_widget_values_1):
11998         * gui-x.c (gui_item_children_to_widget_values):
11999         * gui-x.c (gui_items_to_widget_values):
12000         new image instance parameter in various places.
12001
12002         * fns.c (Freplace_list):
12003         fix small typo in doc string.
12004
12005         * lisp.h:
12006         declare enqueue_Xt_dispatch_event.
12007
12008 2000-04-28  Ben Wing  <ben@xemacs.org>
12009
12010         * buffer.c:
12011         * buffer.c (Frecord_buffer):
12012         * buffer.c (syms_of_buffer):
12013         delete record-buffer-hook.
12014
12015         * fns.c:
12016         * fns.c (Freplace_list):
12017         * fns.c (syms_of_fns):
12018         new primitive replace-list.
12019
12020         * frameslots.h:
12021         slot for old buffer-alist.
12022
12023         * lisp.h:
12024         exfun replace-list.
12025
12026         * redisplay.c:
12027         * redisplay.c (redisplay_frame):
12028         * redisplay.c (syms_of_redisplay):
12029         * redisplay.c (vars_of_redisplay):
12030         new hook buffer-list-changed-hook.
12031         call it.
12032
12033 2000-04-27  Ben Wing  <ben@xemacs.org>
12034
12035         * extents.h: extern in_modeline_generation.
12036
12037         * redisplay.c (generate_formatted_string_db): set
12038         in_modeline_generation.
12039
12040         * extents.c (extent_changed_for_redisplay): don't mark redisplay
12041         flags if in modeline generation.  otherwise frame-modified-tick
12042         is ticked far too often.
12043         Declare in_modeline_generation.
12044
12045 2000-04-26  Ben Wing  <ben@xemacs.org>
12046
12047         * emacs.c (vars_of_emacs): document quick-build "error-checking"
12048         option.
12049         (vars_of_emacs): add quick-build as an error-checking option.
12050         A bit kludgy, but there doesn't seem much point in creating
12051         a real var for this.
12052
12053         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
12054
12055 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12056
12057         * redisplay.h (struct display_line): Add a new variable,
12058         line_continuation.
12059
12060         * redisplay.c (create_text_block): Set dl->line_continuation if
12061         the line continues.
12062         (create_string_text_block): Ditto.
12063         (regenerate_window_incrementally): Use line_continuation instead
12064         of searching continuation glyph.
12065         (add_margin_runes): Call add_glyph_rune.
12066         (add_glyph_rune): Handle margin glyph.
12067
12068 2000-04-20  Martin Buchholz  <martin@xemacs.org>
12069
12070         * filelock.c (fill_in_lock_file_name):
12071         ANSIfy.
12072         Check for IS_ANY_SEP instead of '/'.
12073         (lock_file_1):
12074         Avoid generating gratuitous garbage.  Call user_login_name() directly.
12075         Never check errno without first seeing that system call failed.
12076         (unlock_file): Add GCPRO.
12077         (Flock_buffer): Fix docstring.
12078         (Ffile_locked_p): Fix docstring.  Add GCPRO.
12079
12080 2000-04-19  Martin Buchholz  <martin@xemacs.org>
12081
12082         * sysdep.c (get_pty_max_bytes):
12083         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
12084         strings longer than 252 bytes.
12085
12086         * md5.c: Unconditionally include ANSI header <limits.h>
12087
12088         * glyphs-x.c (convert_EImage_to_XImage):
12089         * lisp-union.h (union Lisp_Object):
12090         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
12091
12092 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
12093
12094         * filelock.c (current_lock_owner): Remove unused variable o, p.
12095
12096 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
12097
12098         * callint.c: Remove multiply defined symbol Qlet
12099         (syms_of_callint): ditto.
12100
12101 2000-04-14  Andy Piper  <andy@xemacs.org>
12102
12103         * general.c (syms_of_general): add last-command, this-command, let
12104         and funcall.
12105
12106         * lisp.h: declare various symbols.
12107
12108         * glyphs.h: declare Qwidget_callback_current_channel;
12109
12110         * glyphs-widget.c (syms_of_glyphs_widget): add
12111         Qgui_callback_current_channel.
12112         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
12113
12114         * gui-msw.c (mswindows_handle_gui_wm_command): bind
12115         widget-callback-current-channel when invoking the interactive
12116         arg. Also bind last-command and next-command when invoking the
12117         widget updates.
12118         * gui-x.c (popup_selection_callback): ditto.
12119
12120         * gui.c (get_gui_callback): massage args so that we are always
12121         calling eval. This allows us to add our own variable bindings
12122         outside.
12123
12124         * glyphs-x.c (x_button_instantiate): use
12125         gui_items_to_widget_values since this is GC safe.
12126         (x_progress_gauge_instantiate): ditto.
12127         (x_edit_field_instantiate): ditto.
12128         (x_label_instantiate): ditto.
12129
12130         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
12131         (emacs_Xt_event_widget_focus_out): new function
12132         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
12133         focus.
12134         (emacs_Xt_event_add_widget_actions): new function. add focus
12135         functions as actions.
12136         (init_event_Xt_late): use it.
12137
12138 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
12139
12140         * event-stream.c (Fdispatch_event): Doc fix.
12141
12142 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
12143
12144         * postgresql.c: Remove all references to PQsetenv*.
12145
12146         * postgresql.h: Remove references to PGsetenvHandler object.
12147         * lrecord.h (lrecord_type): Ditto.
12148
12149 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12150
12151         * glyphs-msw.h (struct mswindows_image_instance_data): Added
12152         real_heigh and real_width members, and accessor macros for these.
12153
12154         * glyphs-msw.c (init_image_instance_geometry): New function.
12155         (init_image_instance_from_dibitmap): Use it.
12156         (mswindows_resource_instantiate): Use it.
12157         (init_image_instance_from_xbm_inline): Use it.
12158         (mswindows_initialize_image_instance_mask): Use real bitmap
12159         geometry.
12160         (mswindows_create_resized_bitmap): Ditto.
12161         (mswindows_create_resized_mask): Ditto.
12162
12163         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
12164         and bitmap to their surface size.
12165
12166 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
12167
12168         * process-unix.c (unix_send_process): Guard against process MIA
12169         after Faccept_process_output.
12170
12171 2000-04-11  Ben Wing  <ben@xemacs.org>
12172
12173         * eval.c (unbind_to_hairy): fix brokenness introduced by
12174         nanosecond speed improvements.
12175
12176 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
12177
12178         * sunplay.c (init_device): To play sounds correctly, the device
12179         apparently needs to be initialized at least once by XEmacs.  Make
12180         it so.
12181
12182 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12183
12184         * redisplay.c (add_margin_runes): Add text image glyph
12185           handling.
12186
12187 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
12188
12189         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
12190         gcc is newer than 2.5.
12191
12192 2000-04-06  Colin Rafferty  <colin@xemacs.org>
12193
12194         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
12195
12196         * fns.c (size_bit_vector):
12197         * alloc.c (size_vector):
12198         (make_vector_internal):
12199         (make_bit_vector_internal):
12200         (sweep_bit_vectors_1):
12201         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
12202
12203 2000-04-06  Andy Piper  <andy@xemacs.org>
12204
12205         * gmalloc.c (malloc): undo previous change.
12206         (malloc): ditto.
12207         (free): ditto.
12208         (realloc): ditto.
12209
12210 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
12211
12212         * line-number.c (buffer_line_number): Revert to former version.
12213
12214 2000-04-06  Andy Piper  <andy@xemacs.org>
12215
12216         * gmalloc.c (malloc): add error checking.
12217         (malloc): ditto.
12218         (free): ditto.
12219         (realloc): ditto.
12220
12221         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
12222         button_item_to_widget_value arg.
12223
12224         * glyphs-x.c (x_button_instantiate): add extra
12225         button_item_to_widget_value arg.
12226         (x_progress_gauge_instantiate): ditto.
12227         (x_edit_field_instantiate): ditto.
12228         (x_label_instantiate): ditto.
12229
12230         * gui-x.c (gui_items_to_widget_values_1): add extra
12231         button_item_to_widget_value arg.
12232         (button_item_to_widget_value): add extra menu_item_p arg.
12233
12234         * gui-x.h: change signature of button_item_to_widget_value.
12235
12236         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
12237         button_item_to_widget_value arg.
12238
12239 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
12240
12241         * buffer.h (struct buffer): auto_save_modified should be long.
12242
12243 2000-04-05  Andy Piper  <andy@xemacs.org>
12244
12245         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
12246         type.
12247         (button_query_geometry): give a little more room so that athena
12248         buttons fit.
12249
12250 2000-04-05  Andy Piper  <andy@xemacs.org>
12251
12252         * faces.c (complex_vars_of_faces): The widget face should inherit
12253         the font of the gui-element face.
12254
12255 2000-04-04  Andy Piper  <andy@xemacs.org>
12256
12257         * glyphs-x.c (x_button_update): new function. unconditionally
12258         update a button's state when the instance is dirty.
12259         (image_instantiator_format_create_glyphs_x): add x_button_update.
12260         (x_widget_instantiate): remove old resize cruft.
12261
12262 2000-04-02  Andy Piper  <andy@xemacs.org>
12263
12264         * frame.c (change_frame_size_1): The introduction of gutters means
12265         that we need to allow 0 as a potential frame dimension.
12266
12267 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12268
12269         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
12270         image glyph if allow_cursor.
12271         (add_hscroll_rune): Don't allow cursor to border glyph.
12272         (create_text_block): Ditto.
12273
12274         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
12275         text not in buffer.
12276         (redisplay_output_layout): Call ensure_face_cachel_complete for
12277         text image glyph.
12278
12279
12280 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12281
12282         * redisplay.c (add_glyph_rune): Adding text image as text runes.
12283
12284         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
12285         not in buffer
12286
12287         * redisplay-tty.c (tty_output_display_block): Delete the routine
12288         for text image glyph
12289         * redisplay-x.c (x_output_display_block): ditto
12290         * redisplay-msw.c (mswindows_output_display_block): ditto
12291
12292 2000-02-02  Mike Alexander  <mta@arbortext.com>
12293
12294         Note: Some of these were committed by accident as part of other
12295         patches.
12296
12297         * regex.c (regex_compile): Avoid compiler warnings.
12298
12299         * ntproc.c (sys_spawnve): Avoid compiler warnings.
12300
12301         * nt.h: Declare term_ntproc correctly.
12302
12303         * nt.c: Remove incorrect declaration of get_home_directory which
12304         is declared correctly in lisp.h.
12305
12306         * keymap.c (get_keyelt): Avoid compiler warnings.
12307         (raw_lookup_key_mapper): Avoid compiler warnings.
12308
12309         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
12310
12311         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
12312
12313         * filemode.c (mode_string): Avoid compiler warnings.
12314
12315         * file-coding.c (Fcoding_system_aliasee): Add return statement to
12316         avoid warning.
12317
12318         * events-mod.h: Undef some things that winuser.h defines differently.
12319
12320         * data.c (Faset): Avoid compiler warnings.
12321
12322         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
12323
12324 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
12325
12326         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
12327         Fall through to simple beep on error.
12328         Replace "extern" by real header file.
12329
12330         * linuxplay.c: Use nativesound.h
12331         (play_sound_data): Return error code. Be less verbose on error.
12332
12333         * sunplay.c: Use nativesound.h
12334         (play_sound_data): Return error code. Be less verbose on error.
12335
12336         * ntplay.c: Use nativesound.h
12337         (play_sound_data): Return fake error code
12338
12339         * sgiplay.c: Use nativesound.h
12340         (play_sound_data): Return error code
12341
12342         * hpplay.c: Use nativesound.h, partially implement
12343         new error code. Break compilation until finished.
12344         (play_sound_data): error code.
12345
12346         * nativesound.h (play_sound_file):
12347           (play_sound_data): Prototype in new header.
12348
12349 2000-03-31  Andy Piper  <andy@xemacs.org>
12350
12351         * glyphs-widget.c: (button_query_geometry): new function. Adjust
12352         for toggle and radio buttons.
12353         (image_instantiator_buttons): use it.
12354
12355 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
12356
12357         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
12358         (x_update_horizontal_scrollbar_callback): Return if no mirror was
12359         found. Scrollbar event probably belonged to some old config.
12360
12361 2000-03-31  Andy Piper  <andy@xemacs.org>
12362
12363         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
12364         than 1.
12365         (initialize_widget_image_instance): default layout to
12366         LAYOUT_HORIZONTAL rather than 0.
12367         (widget_instantiate): reverse the item list at the end rather than
12368         every iteration.
12369         (layout_layout): re-code for the border text at the front of the
12370         item list rather than at the end.
12371         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
12372         provided by the user.
12373         (widget_query_geometry): comment.
12374
12375 2000-03-30  Andy Piper  <andy@xemacs.org>
12376
12377         * glyphs-widget.c (image_instantiator_layout): allow standard
12378         widget keywords in layouts.
12379
12380         * gutter.c (output_gutter): cope with nil gutter contents.
12381
12382         * frame.c (Fset_frame_properties): add gutter docs.
12383
12384 2000-03-29  Andy Piper  <andy@xemacs.org>
12385
12386         * toolbar-msw.c (TBSTYLE_FLAT): add.
12387         (mswindows_output_toolbar): minor fiddling.
12388
12389 2000-03-29  Andy Piper  <andy@xemacs.org>
12390
12391         * gutter.c (output_gutter): force gutter size recalculation if
12392         what we are trying to display won't fit.
12393         (update_gutter_geometry): new function. A per-gutter version of
12394         update_frame_gutter_geometry.
12395         (update_frame_gutter_geometry): use it.
12396         (redraw_exposed_gutter): add extra debugging output.
12397
12398 2000-03-28  Mike Alexander  <mta@arbortext.com>
12399
12400         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
12401         (pdump_file_unmap): Implement it on Windows
12402         (pdump_file_get): Save alocated handles for pdump_file_unmap
12403
12404 2000-03-28  Andy Piper  <andy@xemacs.org>
12405
12406         * gui.c (get_gui_callback): treat Quit specially.
12407
12408 2000-03-27  Andy Piper  <andy@xemacs.org>
12409
12410         * glyphs.c (image_instantiate): be careful to check in the same
12411         way we assigned.
12412
12413 2000-03-27  Didier Verna  <didier@xemacs.org>
12414
12415         * config.h.in: define the proper SMART_INCLUDE macro.
12416         handle renaming of `foo_h_path' to `foo_h_file'.
12417
12418         * database.c: ditto.
12419
12420         * emacs.c: ditto.
12421
12422         * linuxplay.c: ditto.
12423
12424         * terminfo.c: ditto.
12425
12426         * tooltalk.h: ditto.
12427
12428 2000-03-27  Andy Piper  <andy@xemacs.org>
12429
12430         * glyphs-msw.c (mswindows_update_widget): make sure the widget
12431         gets updated whenever the face might have changed.
12432
12433 2000-03-26  Mike Alexander  <mta@arbortext.com>
12434
12435         * dumper.c (pdump_resource_free): Fix the comment.
12436
12437 2000-03-21  Olivier Galibert  <galibert@pobox.com>
12438
12439         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
12440
12441 2000-03-22  Mike Alexander  <mta@arbortext.com>
12442
12443         * dumper.c: Include Windows headers on Windows
12444         (pdump_resource_free): Add a body to the function
12445         (pdump_load): exe_name -> exe_path and add some comments.
12446
12447 2000-03-25  Mike Alexander  <mta@arbortext.com>
12448
12449         * gui.c (copy_gui_item_tree): Return a value in all cases
12450
12451 2000-03-21  Didier Verna  <didier@xemacs.org>
12452
12453         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
12454         lwlib/config.h.in.
12455         (SMART_INCLUDE): new macro.
12456         (POSTGRES_INCLUDE): new macro to include postgresql headers from
12457         the proper location.
12458
12459         * postgresql.c: use it.
12460
12461         * inline.c: ditto.
12462
12463 2000-03-24  Andy Piper  <andy@xemacs.org>
12464
12465         * gutter.c (redraw_exposed_gutters): must be "in display" when we
12466         do this.
12467
12468 2000-03-24  Andy Piper  <andy@xemacs.org>
12469
12470         * redisplay-output.c (compare_runes): use image_instance_changed
12471         to detect changes. Do not depend on glyphs_changed, only depend on
12472         dirtiness.
12473          (redisplay_output_layout): add debug messages.
12474         (compare_runes): ditto.
12475
12476         * glyphs.h: declare new functions.
12477         (struct Lisp_Image_Instance): remove percent and associated
12478         accessors.
12479
12480         * gui.h: declare new copying functions.
12481
12482         * gui.c (copy_gui_item_tree): new function.
12483         (copy_gui_item): new function.
12484         (gui_item_id_hash): revert to standard hash.
12485         (gui_item_hash): ditto.
12486         (gui_item_hash_internal): deleted.
12487         (mark_gui_item): mark value.
12488         (gui_item_add_keyval_pair): add value.
12489         (gui_item_init): ditto.
12490         (gui_add_item_keywords_to_plist): ditto.
12491         (gui_item_equal): ditto.
12492         (syms_of_gui): add Q_value.
12493
12494         * glyphs-x.c (x_progress_gauge_update): use pending items and
12495         value for setting the state.
12496         (x_update_widget): don't set items from pending here.
12497
12498         * glyphs-widget.c (update_widget): update items here.
12499         (progress_gauge_set_property): use items for storing value. Put
12500         new value in pending items.
12501
12502         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
12503         items for new value. Convert percent -> value.
12504         (mswindows_tab_control_update): don't update items here.
12505
12506         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
12507         (update_subwindow): ditto.
12508         (image_instance_changed): new function. Compare hash values and
12509         past and present widget items.
12510         (image_instantiate): We more careful about where we instantiate
12511         things.
12512         (image_instantiate): add error checking.
12513
12514         * gutter.c (syms_of_gutter): use -hook.
12515
12516 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
12517
12518         * console-tty.c (Fset_console_tty_input_coding_system): Use
12519         Qkeyboard.
12520         (Fset_console_tty_output_coding_system): Use Qterminal.
12521         (tty_init_console): Use Qkeyboard and Qterminal.
12522
12523 2000-03-21  Ben Wing  <ben@xemacs.org>
12524
12525         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
12526         From Mike Alexander <mta@arbortext.com>.
12527
12528 2000-03-21  Ben Wing  <ben@xemacs.org>
12529
12530         * event-msw.c (mswindows_need_event): Horrible kludge to fix
12531         process brokenness.  Proper implementation to come.
12532         * callproc.c:
12533         Rename call-process-internal to old-call-process-internal.
12534         New impl. in process.el.
12535
12536 2000-03-21  Martin Buchholz  <martin@xemacs.org>
12537
12538         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
12539
12540 2000-03-20  Andy Piper  <andy@xemacs.org>
12541
12542         * glyphs.c (full_list_hash): make hashes of the same elements in
12543         different orders return different values.
12544
12545 2000-03-20  Martin Buchholz <martin@xemacs.org>
12546
12547         * XEmacs 21.2.32 is released.
12548
12549 2000-03-20  Martin Buchholz  <martin@xemacs.org>
12550
12551         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
12552         (DFC_MALLOC_USE_CONVERTED_DATA):
12553         Add aliasing-safe casts to allow use with char* or unsigned char*
12554         lvalues.
12555
12556         * eldap.c (Fldap_open):
12557         (Fldap_search_basic):
12558         (Fldap_add):
12559         (Fldap_modify):
12560         Make C++-compilable.
12561         Make sure GCPRO'ed variables are initialized.
12562         Use temp variables to avoid repeated calls to Flength.
12563
12564 2000-03-16  Martin Buchholz  <martin@xemacs.org>
12565
12566         * sysfile.h:
12567         Make sure PATH_MAX is always defined.
12568         Include limits.h for PATH_MAX.
12569         Deprecate use of MAXPATHLEN.
12570
12571 2000-03-10  Martin Buchholz  <martin@xemacs.org>
12572
12573         * emacs.c: Add reinit_vars_of_fileio.
12574         * symsinit.h: Add reinit_vars_of_fileio.
12575         * fileio.c (reinit_vars_of_fileio): New.
12576         * fileio.c (Fmake_temp_name):
12577         Initialize temp_name random number from microseconds to make
12578         collisions even less likely.  Initialize always at process startup
12579         time.  (make-temp-name) used to return the same file name twice in
12580         a row when PDUMP.
12581         Random stylistic fiddling.
12582         Comment fixes.
12583
12584 2000-03-20  Andy Piper  <andy@xemacs.org>
12585
12586         * glyphs.c (image_instantiate): allow text glyphs to be
12587         instantiated in the minibuffer window.
12588
12589 2000-03-19  Andy Piper  <andy@xemacs.org>
12590
12591         * glyphs.c (image_instance_hash): be careful about which items we
12592         hash on.
12593
12594         * glyphs-widget.c (tab_control_set_property): record into pending
12595         items rather than the actual items.
12596
12597         * glyphs-x.c (x_update_widget): use pending items to update with.
12598
12599         * glyphs-msw.c (mswindows_tab_control_update): use pending items
12600         to update with.
12601
12602         * glyphs.c (mark_image_instance): mark pending items.
12603
12604         * window.c (Fset_window_configuration): record the buffer.
12605         (Fselect_window): totally revert previous change which breaks many
12606         things.
12607
12608 2000-03-18  Andy Piper  <andy@xemacs.org>
12609
12610         * glyphs-msw.c (mswindows_tab_control_update): force selected
12611         item.
12612
12613         * glyphs.c (image_instantiate): don't allow the minibuffer as a
12614         window domain cache, otherwise we get inconsistencies at
12615         startup. There is something fishy at startup which can lead to the
12616         minibuffer being the selected window when the gutter content is
12617         instantiated.
12618
12619         * gui.c (parse_gui_item_tree_list): add probably unnecessary
12620         gcpros.
12621         (parse_gui_item_tree_children): ditto.
12622         (parse_gui_item_tree_item): ditto.
12623
12624         * glyphs.c (Fupdate_widget_instances): return something.
12625
12626 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
12627
12628         * window.c (Fselect_window): Undo 2000-03-17 change.
12629
12630 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
12631
12632         * postgresql.c (Fpq_setenv): Remove this turkey when linking
12633         against v7.0 libraries.  Insta-coredump city until the postgres
12634         folks fix it.
12635
12636 2000-03-17  Andy Piper  <andy@xemacs.org>
12637
12638         * faces.c (complex_vars_of_faces): don't give the widget face an
12639         inherited background pixmap.
12640
12641         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
12642         selected item.
12643
12644         * event-stream.c (Fdispatch_non_command_events): return something.
12645
12646         * gutter.c (output_gutter): use widget face.
12647         (clear_gutter): ditto.
12648
12649         * NEWS: adjust again.
12650
12651         * window.c (Fselect_window): make sure this runs to completion to
12652         avoid oddities with Fset_window_configuration.
12653         (Fcurrent_window_configuration): in general do not save the
12654         minibuffer as the selected window.
12655
12656         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
12657
12658 2000-03-16  Olivier Galibert  <galibert@pobox.com>
12659
12660         * emacs.c (Frunning_temacs_p): Revert previous patch.
12661         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
12662
12663 2000-03-16  Andy Piper  <andy@xemacs.org>
12664
12665         * glyphs-x.c (x_tab_control_update): if no widget values then
12666         return.
12667
12668         * NEWS: update for new features.
12669
12670         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
12671         synthetic event to the native system.
12672         (reinit_vars_of_event_Xt): set force_event_pending to
12673         emacs_Xt_force_event_pending.
12674
12675         * events.h (struct event_stream): add force_event_pending.
12676
12677         * specifier.c (recompute_one_cached_specifier_in_window): add
12678         comment.
12679
12680         * redisplay.c (redisplay_frame): don't call
12681         update_frame_subwindows. Reset subwindow cachels when
12682         subwindows_changed, removing this was an optimization too far.
12683
12684         * redisplay-output.c (compare_runes): reorganize so that we catch
12685         glyph changes when we want them. Set optimize_output when this
12686         would help layouts.
12687         (redisplay_output_layout): remove frame_really_changed, use
12688         optimize_output instead.
12689
12690         * redisplay-msw.c (mswindows_output_display_block): reset
12691         optimize_output after outputting a glyph.
12692         * redisplay-x.c (x_output_display_block): ditto.
12693         * redisplay-tty.c (tty_output_display_block): ditto.
12694
12695         * gutter.c: (specifier_vars_of_gutter): use new spec changed
12696         functions.
12697         (gutter_specs_changed): do specific gutter positions.
12698         (top_gutter_specs_changed): new function. Only update the
12699         specified gutter specs.
12700         (bottom_gutter_specs_changed): ditto.
12701         (left_gutter_specs_changed): ditto.
12702         (right_gutter_specs_changed): ditto.
12703
12704         * gui.c (gui_item_hash_internal): new function, does a real hash.
12705         (gui_item_id_hash): use it.
12706         (gui_item_hash): hash the eval'ed gui_item.
12707
12708         * gui-x.c (popup_selection_callback): send an eval event to call
12709         Fupdate_widget_instances.
12710
12711         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
12712         to call Fupdate_widget_instances.
12713
12714         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
12715         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
12716
12717         * glyphs.c: (update_frame_subwindows): deleted.
12718         (Fupdate_widget_instances): new function for updating the dirty
12719         state of widgets that might have changed.
12720         (syms_of_glyphs): add Qupdate_widget_instances.
12721         (full_list_hash): hash a list completely.
12722         (image_instance_hash): use it for items and properties.
12723
12724         * frame-msw.c (mswindows_size_frame_internal): remove unused
12725         variable.
12726
12727         * faces.h (struct face_cachel): fix comment.
12728
12729         * event-stream.c (Fdispatch_non_command_events): new
12730         function. Process non-command events, forcing an event cycle
12731         beforehand.
12732         (syms_of_event_stream): declare.
12733         (event_stream_force_event_pending): new function. Force an event
12734         on the native event queue so that an event cycle will occur next
12735         time we check.
12736
12737         * event-msw.c:
12738         (struct ntpipe_shove_stream):
12739         (mswindows_enqueue_dispatch_event):
12740         (mswindows_dequeue_dispatch_event):
12741         (mswindows_cancel_dispatch_event):
12742         (mswindows_pump_outstanding_events):
12743         (mswindows_drain_windows_queue):
12744         (mswindows_handle_paint):
12745         (mswindows_wnd_proc):
12746         (mswindows_key_to_emacs_keysym):
12747         (get_process_input_waitable):
12748         (emacs_mswindows_delete_stream_pair): re-indent file.
12749         (mswindows_need_event): do not process further fds if the windows
12750         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
12751         fixes the 100% cpu problem.
12752         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
12753
12754 2000-03-15  Olivier Galibert  <galibert@pobox.com>
12755
12756         * alloc.h: New.
12757         * dumper.h: New.
12758         * dumper.c: New.
12759
12760         * emacs.c: Moved dump file searching to dumper.c.
12761         (Frunning_temacs_p): Fixed.
12762
12763         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
12764         last_lrecord_type_index_assigned.
12765
12766 2000-02-20  Olivier Galibert  <galibert@pobox.com>
12767
12768         * symsinit.h: Added reinit parameter to init_console_stream
12769         declaration.
12770
12771         * lisp.h: Added file parameter to pdump_load declaration.
12772
12773         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
12774         support.  Added dump file searching.
12775
12776         * config.h.in: Added EMACS_PROGNAME.
12777
12778         * console-stream.c (init_console_stream): Fix reinitialisation
12779         when running from temacs.
12780
12781         * alloc.c (pdump): Add id support.
12782         (pdump_load): Add file parameter and signature/id support.
12783
12784         * Makefile.in.in: Add full pdump support.
12785
12786 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
12787
12788         * postgresql.c: Update documentation to reflect latest code
12789         status.
12790         (print_result): Show tuple counts in printed representation when
12791         appropriate.
12792         (Fpq_put_nbytes): MULE-ize.
12793         (Fpq_get_line_async): Ditto.
12794
12795 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
12796
12797         * postgresql.c (Fpq_lo_import): Fix return value.
12798         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
12799
12800 2000-03-13  Ben Wing  <ben@xemacs.org>
12801
12802         * alloc.c (pdump_load):
12803         Fix compile warning under mswin.
12804
12805 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
12806
12807         * postgresql.c: Mule-ization, bug fixes.
12808         Use PG_CODING to encapsulate coding system name changes.
12809         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
12810         (pg-coding-system): Create.
12811
12812         (Fpq_conn_defaults): Mule-ize.
12813         (Fpq_connectdb): Mule-ize & bug fix.
12814         (Fpq_connect_start): Mule-ize.
12815         (Fpq_set_client_encoding): Mule-ize.
12816         (Fpq_finish): Document `DEAD' connection status.
12817         (Fpq_clear): Ditto.
12818         (Fpq_pgconn): Mule-ize.
12819         (Fpq_exec): Mule-ize & bug fix.
12820         (Fpq_send_query): Ditto.
12821         (Fpq_get_result): Ditto.
12822         (Fpq_res_status): Mule-ize.
12823         (Fpq_result_error_message): Mule-ize.
12824         (Fpq_ntuples): fix comments.
12825         (Fpq_fname): Mule-ize.
12826         (Fpq_fnumber): Mule-ize.
12827         (Fpq_ftype): fix comments.
12828         (Fpq_get_value): Mule-ize.
12829         (Fpq_cmd_status): Ditto.
12830         (Fpq_cmd_tuples): Ditto.
12831         (Fpq_oid_value): Ditto.
12832         (Fpq_notifies): Ditto.
12833         (Fpq_lo_import): Ditto.
12834         (Fpq_lo_export): Ditto.
12835         (Fpq_get_line): Ditto.
12836         (Fpq_put_line): Mule-ize and bug fix.
12837         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
12838
12839 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
12840
12841         * postgresql.c (vars_of_postgresql): Mule-ize.
12842         (Fpq_conn_defaults): Ditto.
12843
12844 2000-03-12  Ben Wing  <ben@xemacs.org>
12845
12846         * alloc.c (Fmake_byte_code):
12847         * alloc.c (debug_string_purity_print):
12848         * alloc.c (pdump_backtrace):
12849         * alloc.c (pdump_get_indirect_count):
12850         * alloc.c (pdump_register_sub):
12851         * alloc.c (pdump_register_object):
12852         * alloc.c (pdump_register_struct):
12853         * alloc.c (pdump_dump_data):
12854         * alloc.c (pdump_reloc_one):
12855         Minor cleanups.
12856
12857         * console-msw.c:
12858         * console-msw.c (GetConsoleHwnd):
12859         * console-msw.c (msw_hide_console):
12860         * console-msw.c (msw_show_console):
12861         * console-msw.c (msw_ensure_console_buffered):
12862         * console-msw.c (msw_output_console_string):
12863         * console-msw.c (console_type_create_mswindows):
12864
12865         a) Added functions to manipulate the console window for use with
12866         shell support.
12867
12868         b) Added support for writing text to the console, which is now
12869         used under Windows when xemacs is not being run non-interactively,
12870         to write text that would otherwise be destined for stdout because
12871         under these circumstances, text written to stdout tends to
12872         disappear and not be seen.
12873
12874         * console-msw.h:
12875         * event-Xt.c:
12876         * event-Xt.c (x_event_to_emacs_event):
12877         * event-Xt.c (describe_event_window):
12878         * events-mod.h (XEMACS_MOD_CONTROL):
12879         * events.c:
12880         * events.c (Fmake_event):
12881         * events.c (character_to_event):
12882         * events.c (event_to_character):
12883         * events.c (format_event_object):
12884         * events.c (Fevent_modifiers):
12885         * events.h:
12886         * events.h (struct key_data):
12887         * events.h (struct button_data):
12888         * events.h (struct misc_user_data):
12889         * frame-x.c (Fcde_start_drag_internal):
12890         * frame-x.c (Foffix_start_drag_internal):
12891         * gpmevent.c (Freceive_gpm_event):
12892         * keymap.c:
12893         * keymap.c (bucky_sym_to_bucky_bit):
12894         * keymap.c (control_meta_superify):
12895         * keymap.c (make_key_description):
12896         * keymap.c (keymap_lookup_directly):
12897         * keymap.c (create_bucky_submap):
12898         * keymap.c (keymap_store):
12899         * keymap.c (define_key_check_and_coerce_keysym):
12900         * keymap.c (define_key_parser):
12901         * keymap.c (define_key_alternate_name):
12902         * keymap.c (Fdefine_key):
12903         * keymap.c (raw_lookup_key_mapper):
12904         * keymap.c (struct map_keymap_unsorted_closure):
12905         * keymap.c (map_keymap_unsorted_mapper):
12906         * keymap.c (map_keymap_sort_predicate):
12907         * keymap.c (map_keymap_sorted):
12908         * keymap.c (accessible_keymaps_mapper_1):
12909         * keymap.c (where_is_recursive_mapper):
12910         * keymap.c (describe_map_mapper):
12911         * keymap.c (describe_map_sort_predicate):
12912         * keymap.c (describe_map):
12913         * keymap.c (complex_vars_of_keymap):
12914         And a number of other files, the key modifier preprocessor
12915         constants that xemacs uses have names that conflict with constants
12916         defined under MS Windows for other purposes, so they were renamed
12917         to begin with the prefix XEMACS_. The variables that hold such
12918         modifiers were changed to consistently be of type int to fix
12919         various compile warnings.
12920
12921         * console.c (complex_vars_of_console):
12922         * device.c:
12923         * device-msw.c:
12924         * device-msw.c (mswindows_finish_init_device):
12925         * device-msw.c (msw_get_workspace_coords):
12926         * device-msw.c (mswindows_device_system_metrics):
12927         and various other files, added support for a new
12928         device property called offset-workspace which returns the position
12929         of the upper left corner of the workspace area and goes along with
12930         the existing size-workspace property.
12931
12932         * dialog-msw.c:
12933         * dialog-msw.c (push_bufbyte_string_as_unicode):
12934         * dialog-msw.c (mswindows_popup_dialog_box):
12935         Added support for XEmacs-style accelerator specifications in
12936         button text.  Note: I didn't add support for this under X Windows,
12937         and somebody needs to do this.
12938
12939         * dialog.c:
12940         * dialog.c (Fpopup_dialog_box):
12941         Documented the support for accelerators that was just mentioned.
12942
12943         editfns.c (get_home_directory): Changed behavior under Windows
12944         when HOME not defined; former behavior was irretrievably broken.
12945
12946         * emacs.c:
12947         * emacs.c (main_1):
12948         * emacs.c (main):
12949         * minibuf.c (clear_echo_area_internal):
12950         * minibuf.c (echo_area_append):
12951         * print.c:
12952         * print.c (std_handle_out_external):
12953         * print.c (std_handle_out_va):
12954         * print.c (fatal):
12955         * print.c (write_string_to_stdio_stream):
12956         * print.c (output_string):
12957         * print.c (debug_print):
12958         * print.c (debug_backtrace):
12959         * print.c (debug_short_backtrace):
12960         Cleaned up the code that prints text to stdout so that this can be
12961         changed to output into a console window instead under MS Windows,
12962         as described above.
12963
12964         * eval.c:
12965         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
12966         * eval.c (internal_catch):
12967         * eval.c (unwind_to_catch):
12968         * eval.c (throw_or_bomb_out):
12969         * eval.c (condition_case_1):
12970         * eval.c (signal_1):
12971         * eval.c (check_error_state_sanity):
12972         * eval.c (call_with_suspended_errors_1):
12973         * eval.c (call_with_suspended_errors):
12974         * eval.c (reinit_vars_of_eval):
12975         Added code to catch throw loops and check for a pesky bug that may
12976         be gone now.
12977
12978         * event-msw.c:
12979         * event-msw.c (key_needs_default_processing_p):
12980         * event-msw.c (mswindows_wnd_proc):
12981         * event-msw.c (mswindows_modifier_state):
12982         * event-msw.c (emacs_mswindows_quit_p):
12983         * event-msw.c (vars_of_event_mswindows):
12984         a) Added support for using the alt key to select menu items as is
12985         standard under MS Windows.  This is controlled using the variable
12986         menu-accelerator-enabled, just like under X Windows.  There is an
12987         option on the options menu to turn this support on.  I really
12988         think that it should be on by default under Windows, but I'm not
12989         going to make this change yet.
12990
12991         b)  Added support for dynamic display size changes under Windows.
12992
12993         * event-stream.c:
12994         * event-stream.c (maybe_echo_keys):
12995         * event-stream.c (Fnext_event):
12996         * event-stream.c (command_builder_find_leaf):
12997         * event-stream.c (lookup_command_event):
12998         * event-stream.c (execute_command_event):
12999         * event-stream.c (pre_command_hook):
13000         * event-stream.c (post_command_hook):
13001         * event-stream.c (syms_of_event_stream):
13002         * event-stream.c (vars_of_event_stream):
13003         * event-stream.c (complex_vars_of_event_stream):
13004         * events.h (struct command_builder):
13005
13006         a) Tried to clean up a little bit the horribly written x-specific
13007         accelerator code that crept into this file.  I moved this code
13008         into menubar-x.c where it belongs. I also needed to move the
13009         command builder structure into the file events.h because it is
13010         accessed directly by this accelerator code.  What I didn't do, but
13011         which should be done at some point, is to properly abstract this
13012         code using device methods instead of the kludgy way that it
13013         currently hooks into the event code.
13014
13015         b) Added the lisp variables this-command-properties and
13016         last-command- properties, which should be used to synchronize two
13017         adjacent commands in preference to playing games with the variable
13018         this-command, which is typically what happens.
13019
13020         c) Added some slightly nasty code to hook into the lisp support
13021         for shifted- motion-key selection.  This is actually necessary for
13022         somewhat complicated reasons, which are described in
13023         simple.el. (NB: I think the proper thing would be to have the code
13024         that calls the pre and post command hooks also call out to generic
13025         lisp functions in simple.el, where all built-in stuff could be
13026         added.  I will think about this more.)
13027
13028         * event-unixoid.c (poll_fds_for_input):
13029         * lread.c (readchar):
13030         * redisplay-tty.c (tty_clear_frame):
13031         * redisplay-x.c (x_get_gc):
13032         * signal.c (interrupt_signal):
13033         And a whole bunch of other files: fixed up places that printed
13034         directly to stderr to instead call the function stderr_out so that
13035         the changes I made under Windows work correctly.
13036
13037         * filemode.c (mode_string):
13038         Warning fixes.
13039
13040         * frame-msw.c:
13041         * frame-msw.c (mswindows_size_frame_internal):
13042         Fixed the computation of frame size and position to keep the frame
13043         within the workspace area, rather than within the physical
13044         dimensions of the screen, so that the frame doesn't overlap window
13045         manager decorations, such as the start menu and toolbar, typically
13046         at the bottom of the screen.
13047
13048         * frame.c (vars_of_frame):
13049         Changed the default frame title format under MS Windows to consist
13050         of buffername-XEmacs, which is standard under MS Windows.  I think
13051         it might be a good idea to change this everywhere because I think
13052         it is superior to the current frame title format, but this is the
13053         kind of change that is likely to cause some people to get annoyed,
13054         so I'm not making it.
13055
13056         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
13057
13058         * gui-msw.c (mswindows_handle_gui_wm_command):
13059         Fixed compile warnings.
13060
13061         * gui-x.c:
13062         * gui-x.c (strdup_and_add_accel):
13063         * gui-x.c (button_item_to_widget_value):
13064         * gui-x.h:
13065         Added code to automatically put an accelerator onto the beginning
13066         of menu items that don't have one as is now the standard, and is
13067         described more later.  Also fixed things so that the menu item
13068         name can be an evaluated expression, again a new standard.
13069
13070         * gui.c:
13071         * gui.c (gui_item_add_keyval_pair):
13072         * gui.c (make_gui_item_from_keywords_internal):
13073         * gui.c (gui_add_item_keywords_to_plist):
13074         * gui.c (gui_item_accelerator):
13075         * gui.c (gui_name_accelerator):
13076         * gui.c (gui_item_included_p):
13077         * gui.c (gui_item_display_flush_left):
13078         * gui.c (gui_item_display_flush_right):
13079         * gui.c (parse_gui_item_tree_item):
13080         * gui.c (parse_gui_item_tree_children):
13081         * gui.c (parse_gui_item_tree_list):
13082         Mule-ized.  Cleanup.  GCPRO addition.
13083
13084         * line-number.c (buffer_line_number):
13085         * lisp.h:
13086         * lisp.h (EMACS_INT_MAX):
13087         Added the manifest constant EMACS_INT_MIN corresponding to the
13088         existing constant EMACS_INT_MAX.  This is partially to fix compile
13089         warnings under Windows, and partly for cleanliness.
13090
13091         * menubar-msw.c:
13092         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
13093         * menubar-msw.c (msw_translate_menu_or_dialog_item):
13094         * menubar-msw.c (displayable_menu_item):
13095         * menubar-msw.c (populate_menu_add_item):
13096         * menubar-msw.c (populate_or_checksum_helper):
13097         * menubar-msw.c (populate_menu):
13098         * menubar-msw.c (update_frame_menubar_maybe):
13099         * menubar-msw.c (prune_menubar):
13100         * menubar-msw.c (msw_char_is_accelerator):
13101         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
13102         * menubar-msw.c (mswindows_handle_wm_command):
13103         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
13104         * menubar-msw.c (mswindows_handle_wm_initmenu):
13105         * menubar-msw.c (mswindows_update_frame_menubars):
13106         * menubar-msw.c (mswindows_free_frame_menubars):
13107         * menubar-msw.c (mswindows_popup_menu):
13108         Fixed a bug in handling accelerators where an extra character
13109         would be displayed in the menu item.  Also generalized the
13110         function displayable_menu_item because it is now used by the
13111         dialog box code as well.  And finally, added code in the functions
13112         that create the menubar to extract a list of accelerators for the
13113         top level menubar, which is used in the event code to determine
13114         whether a particular alt-key combination should be used to invoke
13115         a menu item, or should be passed through to access the standard
13116         XEmacs keymap binding for this key combination.
13117
13118         Much needed GCPROing.
13119
13120         * menubar-x.c:
13121         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
13122         * menubar-x.c (menu_item_descriptor_to_widget_value):
13123         * menubar-x.c (restore_in_menu_callback):
13124         * menubar-x.c (x_popup_menu):
13125         * menubar-x.c (menu_move_up):
13126         * menubar-x.c (menu_move_down):
13127         * menubar-x.c (menu_move_left):
13128         * menubar-x.c (menu_move_right):
13129         * menubar-x.c (menu_select_item):
13130         * menubar-x.c (command_builder_operate_menu_accelerator):
13131         * menubar-x.c (menu_accelerator_junk_on_error):
13132         * menubar-x.c (command_builder_find_menu_accelerator):
13133         * menubar-x.c (Faccelerate_menu):
13134         * menubar.h:
13135         Moved a whole bunch of code here that was previously in
13136         event-stream.c as described above.  There is also code connected
13137         to the new standard of adding an accelerator to the beginning of
13138         menu items that don't have one as described above and below.
13139
13140         * menubar.c:
13141         * menubar.c (menu_parse_submenu_keywords):
13142         * menubar.c (Fmenu_find_real_submenu):
13143         * menubar.c (Fnormalize_menu_item_name):
13144         * menubar.c (syms_of_menubar):
13145         * menubar.c (vars_of_menubar):
13146         * menubar.c (complex_vars_of_menubar):
13147
13148         a) Cleaned up a bunch of documentation and improved it.
13149
13150         b) XEmacs now automatically adds an accelerator onto the beginning
13151         of any menu items that don't have one.  I did this because there
13152         will inevitably be some menu items on the main menubar that don't
13153         have accelerators on them because the package that adds that
13154         particular menu item hasn't yet been fixed up to have accelerators
13155         in them and it looked rather strange to have some items with and
13156         some items without accelerators, especially since even in items
13157         without accelerators, you can, at least under windows, still
13158         access the item through an accelerator corresponding to the first
13159         character in the item's name.  If people don't like this behavior,
13160         I can add a variable to turn it off optionally, but I'm not sure
13161         this is a good idea because we really do need to have accelerators
13162         on all of the menu items, and if a package doesn't like the
13163         accelerators being put on the first character, then it should put
13164         the accelerators where they belong.
13165
13166         c) I made a behavior change, which is that the descriptor that
13167         specifies the text of the menu item, which formerly was just a
13168         string, can now also be an evaluated expression.  This makes this
13169         descriptor parallel with all of the others, which could also be
13170         evaluated expressions.  This also obviates the need for the
13171         keyword :label, which was previously listed in the documentation
13172         as unimplemented, and which was for the same purpose.
13173
13174         d) GCPROing.
13175
13176         * ntproc.c:
13177         * ntproc.c (new_child):
13178         * ntproc.c (sys_spawnve):
13179         * ntproc.c (find_child_console):
13180         * ntproc.c (sys_kill):
13181         Fixed compile warnings.  By the way, this file should really go
13182         away entirely, and this will happen as soon as Kirill makes his
13183         final round of process cleanups, which affect the function
13184         call-process.
13185
13186         * process-nt.c:
13187         * process-nt.c (struct nt_process_data):
13188         * process-nt.c (find_process_from_pid):
13189         * process-nt.c (send_signal_the_nt_way):
13190         * process-nt.c (enable_child_signals):
13191         * process-nt.c (find_child_console):
13192         * process-nt.c (send_signal_the_95_way):
13193         * process-nt.c (nt_finalize_process_data):
13194         * process-nt.c (ensure_console_window_exists):
13195         * process-nt.c (nt_create_process):
13196         * process-nt.c (nt_kill_child_process):
13197         * process-nt.c (nt_kill_process_by_pid):
13198         * process-nt.c (nt_open_network_stream):
13199         * process-nt.c (vars_of_process_nt):
13200         Copied over code from Emacs 20.5 to correctly send signals to sub-
13201         processes under Windows 95.  Also added code to automatically
13202         create and hide console window when a sub-process is created under
13203         Windows 95, which obviates the need for the separate runemacs.exe
13204         executable, and finally implemented some variables that were
13205         implemented in Emacs 20.5, but previously not in XEmacs.  These
13206         include mswindows- start-process-share-console and
13207         mswindows-start-process-inherit-error-mode. (Both of these only
13208         apply to Windows 95.)
13209
13210         * regex.c (regex_compile): Fixed a compile warning.
13211
13212         * select-msw.c:
13213         * select-msw.c (mswindows_own_selection):
13214         * select-msw.c (mswindows_get_foreign_selection):
13215         * select-msw.c (mswindows_disown_selection):
13216         * select-msw.c (console_type_create_select_mswindows):
13217         * select-msw.c (syms_of_select_mswindows):
13218         Cleaned up the file and implemented the device method
13219         selection_exists_p, which had accidentally been left out.  Also
13220         removed four lisp functions that were remnants from before the
13221         time when the selection code was properly device abstracted.
13222         These functions are no longer needed because there are generic
13223         equivalents, and because they were added recently and don't exist
13224         in FSF Emacs, I don't think there's any problem with just deleting
13225         them.
13226
13227         * sysdep.c:
13228         * sysdep.c (sys_subshell):
13229         Fixed a compile warning, although in this case there's probably
13230         something wrong with this code, and it ought to be looked into
13231         more thoroughly by somebody who understands it.
13232
13233         * window.c:
13234         * window.c (Fwindow_text_area_height):
13235         * window.c (Fwindow_width):
13236         * window.c (Fwindow_full_width):
13237         * window.c (Fwindow_pixel_width):
13238         * window.c (debug_print_window):
13239         * window.c (syms_of_window):
13240         Added functions window-text-area-height and window-full-width,
13241         which are functions for returning various width and height
13242         characteristics of a window. (One of these functions is necessary
13243         for making the file dialog box work correctly, and the other one
13244         was added for completeness.)  Also added a table to the
13245         documentation for window-height which describes the entire scheme
13246         for accessing width and height characteristics of a window.
13247
13248 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13249
13250         * nt.c (fstat): Added a comment for another problem with
13251         non-encapsulated [f]stat(), reported by Adrian Aichner
13252         <aichner@ecf.teradyne.com>.
13253
13254 2000-03-11  Andy Piper  <andy@xemacs.org>
13255
13256         * window.c (make_dummy_parent): initialize subwindow instance
13257         cache.
13258         (Fset_window_configuration): zero extent_modiff.
13259
13260 2000-03-10  Andy Piper  <andy@xemacs.org>
13261
13262         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
13263         more changes can be triggered.
13264         (Fredisplay_frame): ditto.
13265         (Fredraw_device): ditto.
13266         (Fredisplay_device): ditto.
13267         (redisplay_frame): make non-static.
13268         (redisplay_frame): call update_frame_gutter_geometry outside of
13269         display proper.
13270
13271         * gutter.h: declare update_frame_gutter_geometry.
13272
13273         * redisplay.h: declare redisplay_frame.
13274
13275         * gutter.c (update_frame_gutter_geometry): move geometry changes
13276         in update_frame_gutters here. Geometry changes can only occur
13277         outside of redisplay.
13278         (update_frame_gutters): remove geometry change code.
13279         (Fredisplay_gutter_area): make sure that we are in display when we
13280         update and that we have flushed any size changes.
13281
13282 2000-03-11  Andy Piper  <andy@xemacs.org>
13283
13284         * alloc.c (pdump_dump_data): remove i & count shadows.
13285
13286 2000-02-27  Mike Alexander  <mta@arbortext.com>
13287
13288         * sysdep.h: Declare pdump_read_file
13289
13290         * sysdep.c (pdump_read_file): New function
13291
13292         * alloc.c (pdump_load): Call pdump_read_file to get the portable
13293         dump data
13294
13295 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
13296
13297         * lrecord.h: add `lrecord_type_pgsetenv'.
13298
13299 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
13300
13301         * symsinit.h: declare (vars|syms)_of* functions.
13302         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
13303
13304 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
13305
13306         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
13307
13308         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
13309         GCCs.
13310
13311         * emacs.c (main_1): Call postgres initialization code.
13312
13313         * postgresql.h: New file.  PostgreSQL RDBMS support.
13314         * postgresql.c: New file.
13315
13316 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
13317
13318         * redisplay-output.c (redisplay_output_display_block): Disable
13319         redundant code.
13320
13321 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
13322
13323         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
13324         (Fcanna_henkan_next): Ditto.
13325         (Fcanna_bunsetu_henkou): Ditto.
13326         (Fcanna_henkan_kakutei): Ditto.
13327         (Fcanna_henkan_end): Ditto.
13328         (Fcanna_henkan_quit): Ditto.
13329         (Fcanna_henkan_next): Set retun value correctly.
13330         (c2mu): Use unsigned char instead of signed char.
13331
13332 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
13333
13334         * emacs.c (main_1): Always call syms_of_gui.
13335         * inline.c: include gui.h
13336
13337 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
13338
13339         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
13340         converted to Lisp_Object.
13341         (Qtop_bottom): New variable.
13342         (syms_of_redisplay): Initialize it.
13343         * redisplay.h (Vvisible_bell): Ditto.
13344         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
13345         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
13346         only flash top and bottom.
13347
13348 2000-03-08  Andy Piper  <andy@xemacs.org>
13349
13350         * buffer.c (Frename_buffer): record new buffer name the right way.
13351
13352 2000-03-08  Andy Piper  <andy@xemacs.org>
13353
13354         * glyphs.c (update_subwindow): increase hash depth so that widget
13355         items get picked up properly.
13356
13357         * redisplay-output.c (compare_runes): increase hash depth so that
13358         widget items get picked up properly.
13359
13360 2000-03-08  Andy Piper  <andy@xemacs.org>
13361
13362         * gutter.c (output_gutter): add some debug.
13363
13364         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
13365         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
13366         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
13367
13368         * redisplay-output.c (compare_runes): use display_hash to
13369         determine if glyphs really are not the same.
13370
13371         * glyphs.c (update_subwindow): check display_hash to see if
13372         anything really needs to be updated. If not then do
13373         nothing. Record the display_hash after updating.
13374         (image_instance_equal): compare the image_instance face also.
13375
13376 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
13377
13378         * redisplay.h: Fix comment style.
13379
13380 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13381
13382         * consle-msw.h (struct mswindows_frame):
13383         Added new member paint_pending to indicate whether a WM_PAINT
13384         magic event has been queued for this frame.
13385
13386         * event-msw.c (mswindows_drain_windows_queue):
13387         Don't queue a WM_PAINT magic event if one is already queued.
13388         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
13389
13390         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
13391
13392 2000-03-07  Didier Verna  <didier@xemacs.org>
13393
13394         * dired.c: #include `regex.h' after `sysfile.h'.
13395
13396 2000-03-06  Martin Buchholz  <martin@xemacs.org>
13397
13398         * sound.c (init_nas_sound): Fix compiler warning.
13399
13400         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
13401         (FREE_STRUCT_P):
13402         (MARK_STRUCT_AS_FREE):
13403         (MARK_STRUCT_AS_NOT_FREE):
13404         Make `gcc -fstrict-aliasing' work properly.
13405
13406 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13407
13408         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
13409         (mswindows_delete_device): Call CoUnnitialize().
13410
13411         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
13412
13413 2000-02-25    <CraigL@DyCon.com>
13414
13415         * process-nt.c: MinGW now has <shellapi.h>, but still needs
13416         <errno.h>.
13417
13418         * sysdep.c: This extern declaration for environ prevents MinGW
13419         from finding the variable in CRTDLL.DLL.
13420
13421         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
13422         windows headers.
13423         (SHGFI_EXETYPE): ..
13424         (WM_MOUSEWHEEL): ..
13425         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
13426         definitions.
13427         (MMRESULT): Removed, now defined in cygwin's windows headers.
13428         (TIMECAPS): ..
13429         (uid_t,gid_t,pid_t,ssize_t): ..
13430         (_timeb): Removed, MinGW defines both _timeb and timeb.
13431         (HAVE_H_ERRNO): Added.
13432         (HAVE_TZNAME): Added, configure is not detecting this.
13433
13434 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
13435
13436         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
13437         * syntax.c (syntax_match): Use it.
13438
13439         * cmds.c: Import auto-fill-chars from FSF Emacs.
13440         (Vauto_fill_chars): New variables.
13441         (internal_self_insert): Check Vauto_fill_chars.
13442         (vars_of_cmds):
13443         Declare auto-fill-chars as a Lisp variable and initialize it.
13444
13445 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13446
13447         * fileio.c (Fmake_symbolic_link):
13448         (Ffile_symlink_p):
13449         Run handlers even if local machine doesn't have symlinks.
13450
13451 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13452
13453         * event-msw.c (mswindows_drain_windows_queue):
13454         Don't generate paint magic events for non-XEmacs frames.
13455
13456 2000-03-05  Andy Piper  <andy@xemacs.org>
13457
13458         * redisplay.c (redisplay_frame): generate_displayable_area and
13459         friends assumes that we are not in GC, we therefore have to make
13460         sure that this doesn't happen.
13461
13462         * gutter.c (calculate_gutter_size): generate_displayable_area
13463         assumes that we are not in GC, we therefore have to make sure that
13464         this doesn't happen.
13465
13466 2000-03-05  Martin Buchholz  <martin@xemacs.org>
13467
13468         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
13469
13470 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
13471
13472         * redisplay.c (regenerate_window): Make sure we set a sane value
13473         for end_pos even if we jump out of the loop.
13474         (regenerate_window): Answer Ben's question :-).
13475         (start_end_of_last_line): Add may_error argument.
13476         (start_of_last_line):
13477         (end_of_last_line): Pass may_error = 0.
13478         (end_of_last_line_may_error): New function.
13479         (pixel_to_glyph_translation): Use it, so we don't crash in
13480         event_to_glyph.
13481
13482 2000-03-04  Andy Piper  <andy@xemacs.org>
13483
13484         * window.h (struct window): add gutter_extent_modiff.
13485
13486         * window.c (allocate_window): zero out gutter_extent_modiff.
13487
13488         * redisplay.h: declare sync_display_line_structs.
13489
13490         * redisplay.c (add_glyph_rune): add a better comment.
13491
13492         * redisplay-output.c (sync_display_line_structs): made non-static.
13493         (compare_runes): remove unneccesary glyph cachel access.
13494
13495         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
13496
13497         * gutter.c (output_gutter): don't output the gutter if extent
13498         changes only involve extents in buffers. use 4 sets of display
13499         lines.
13500         (gutter_extent_signal_changed_region_maybe): new function. Mark
13501         extents in gutters as changed.
13502         (update_frame_gutters): use 4 sets of display lines.
13503         (reset_gutter_display_lines): ditto.
13504         (free_frame_gutters): ditto.
13505         (redraw_exposed_gutter): force output of gutters.
13506
13507         * frame.h (struct frame): add 4 sets of gutter display lines.
13508
13509         * extents.c: (extent_changed_for_redisplay): signal changes to
13510         extents in strings in the gutter as well as extents in buffers.
13511
13512 2000-03-02  Andy Piper  <andy@xemacs.org>
13513
13514         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
13515
13516         * frame.c (Fmake_frame): make sure the gutters get initialized
13517         after the frame is visible.
13518         (set_frame_selected_window): re-arrange compilation macros a
13519         little.
13520         (change_frame_size_1): mark gutters changed.
13521
13522         * device.c (Fset_device_class): mark gutters changed.
13523
13524 2000-03-01  Andy Piper  <andy@xemacs.org>
13525
13526         * window.c (window_top_frame_gutter_height): deleted.
13527         (window_bottom_frame_gutter_height): ditto.
13528         (window_left_frame_gutter_height): ditto.
13529         (window_right_frame_gutter_height): ditto.
13530         (window_top_gutter_height): don't use them.
13531         (window_bottom_gutter_height): ditto.
13532         (window_left_gutter_width): ditto.
13533         (window_right_gutter_width): ditto.
13534         (Fsplit_window): ditto.
13535         (Fwindow_pixel_edges): don't use border dimensions here.
13536
13537         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
13538         (update_scrollbar_instance): ditto.
13539
13540         * redisplay.c (generate_modeline): don't take gutters into account.
13541         (generate_modeline): ditto.
13542         (redisplay_frame): small gutter display optimization.
13543
13544         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
13545
13546         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
13547         gutters into account.
13548
13549         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
13550         for window position and type.
13551
13552         * gutter.c (get_gutter_coords): fix for frame gutters.
13553         (update_frame_gutters): update frame geometry if the gutters have
13554         changed.
13555         (init_frame_gutters): record current gutter geometries.
13556
13557         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
13558         var.
13559         (mswindows_widget_instantiate): ditto.
13560
13561         * frame.h (struct frame): add current_gutter_bounds.
13562
13563         * frame.c (change_frame_size_1): position window and minibuffer
13564         appropriately taking into account the frame gutters.
13565
13566         * frame-x.c: (x_initialize_frame_size): take into account the
13567         frame gutters.
13568
13569 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
13570
13571         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
13572
13573 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
13574
13575         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
13576
13577 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
13578
13579         * file-coding.c (reset_decoding_stream): Clear previous
13580         detection state when autodetect.
13581
13582 2000-02-29  Didier Verna  <didier@xemacs.org>
13583
13584         * extents.c (set_extent_glyph_1): don't require extents to be
13585         attached.
13586
13587 2000-02-27  Andy Piper  <andy@xemacs.org>
13588
13589         * gutter.c (Fset_default_gutter_position): don't default left and
13590         right gutter visibility to t.
13591         (Fset_default_gutter_position): run
13592         default-gutter-position-changed-hook.
13593         (syms_of_gutter): add default-gutter-position-changed-hook.
13594
13595 2000-02-26  Andy Piper  <andy@xemacs.org>
13596
13597         * specifier.c (Fmake_specifier): add gutter references.
13598
13599         * gutter.h (RAW_WINDOW_GUTTER): new macro.
13600
13601         * lisp.h: declare Fvalid_plist_p.
13602
13603         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
13604         as changed.
13605         (default_gutter_visible_p_changed_in_window): invalidate gutter as
13606         well as its visibility so that it gets reconstructed.
13607         (construct_window_gutter_spec): new function. Construct a string
13608         to be displayed in the gutter from a plist of strings. Take care
13609         to only use elements that are declared as visible.
13610         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
13611         WINDOW_GUTTER.
13612         (gutter_validate): allow plists of strings in the specifier.
13613         (gutter_specs_changed): construct the real_gutter from the gutter
13614         specs using construct_window_gutter_spec.
13615         (gutter_visible_validate): gutter-visible is a new specifier type.
13616         (Fgutter_visible_specifier_p): new function for the new specifier.
13617         (syms_of_gutter): declare gutter-visible and
13618         Fgutter_visible_specifier_p.
13619         (specifier_type_create_gutter): intitalize new gutter-visible
13620         specifier.
13621         (reinit_specifier_type_create_gutter): ditto.
13622         (specifier_vars_of_gutter): use new specifier type for gutter
13623         visibility.
13624         (init_frame_gutters): construct real_gutter correctly.
13625         (Fgutter_specifier_p): beef up documentation.
13626         (Fgutter_size_specifier_p): ditto.
13627
13628         * winslots.h: add real_gutter slots.
13629
13630 2000-02-25  Andy Piper  <andy@xemacs.org>
13631
13632         * device-msw.c: Be kind to older cygwin versions. From Raymond
13633         Toy <toy@rtp.ericsson.se>.
13634
13635         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
13636         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
13637
13638 2000-02-25  Martin Buchholz  <martin@xemacs.org>
13639
13640         * elhash.c (MARK_OBJ): Practice macro hygiene.
13641
13642 2000-02-24  Martin Buchholz  <martin@xemacs.org>
13643
13644         * miscplay.c: s/__inline__/inline/g;
13645         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
13646         (get_device_compdc): INLINE ==> static inline
13647         * *.[ch]: Change INLINE to INLINE_HEADER globally.
13648         find -name '*.h' | \
13649         xargs global-replace \
13650         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
13651
13652 2000-02-25  Andy Piper  <andy@xemacs.org>
13653
13654         * window.c (window_top_frame_gutter_height): new function.
13655         (window_top_window_gutter_height): ditto.
13656         (window_top_gutter_height): use them.
13657         (window_bottom_frame_gutter_height): new function.
13658         (window_bottom_window_gutter_height): ditto.
13659         (window_bottom_gutter_height): use them.
13660         (window_left_window_gutter_width): new function.
13661         (window_left_frame_gutter_width): ditto.
13662         (window_left_gutter_width): use them.
13663         (window_right_window_gutter_width): new function.
13664         (window_right_frame_gutter_width): ditto.
13665         (window_right_gutter_width): use them.
13666         (window_pixel_height): new function. calulate window pixel height
13667         with frame gutter involvement.
13668         (Fsplit_window): calculate new sizes taking frame gutters into
13669         account.
13670         (window_char_height_to_pixel_height): don't include frame gutters.
13671         (window_char_height): use window_pixel_height.
13672         (window_pixheight): rename from window_pixel_height.
13673         (change_window_height): use it.
13674         (window_pixel_height_to_char_height): don't include frame gutters.
13675         (window_char_width_to_pixel_width): ditto.
13676
13677 2000-02-25  Andy Piper  <andy@xemacs.org>
13678
13679         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
13680         if it is.
13681
13682 2000-02-24  Martin Buchholz  <martin@xemacs.org>
13683
13684         * alloc.c (staticpro):
13685         (staticpro_nodump):
13686         (dumpstruct):
13687         (dumpopaque):
13688         (pdump_wire):
13689         (pdump_wire_list):
13690         (compact_string_chars):
13691         (pdump_dump_wired):
13692         Convert:  if (foo) abort();  ==>  assert (! foo);
13693
13694         * eldap.c (Fldap_search_basic):
13695         (Fldap_add):
13696         (Fldap_modify):
13697         (Fldap_delete):
13698         Fix compiler warnings, and possible crashes if (random) return
13699         value were to be used.
13700
13701 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13702
13703         * device-msw.c: Workaround ResetDC failure.
13704
13705         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
13706         applying a devmode.
13707
13708         * redisplay-msw.c (get_frame_dc): Added start_page_p.
13709         (mswindows_text_width): Do not start printer page.
13710
13711         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
13712
13713         * glyphs-msw.c: Added image methods to msprinter console and
13714         msprinter-specific image instantiation.
13715
13716 2000-02-20  Mike Alexander  <mta@arbortext.com>
13717
13718         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
13719         to avoid crashes when selection-sets-clipboard is on
13720         (mswindows_own_selection): ditto
13721
13722 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13723
13724         * glyphs-msw.c:
13725         * redisplay-msw.c (get_frame_dc):
13726         (get_frame_compdc):
13727         * console-msw.h:
13728         * device-msw.c (mswindows_init_device):
13729         (mswindows_delete_device):
13730         (msprinter_init_device):
13731         (msprinter_delete_device):
13732         * frame-msw.c (mswindows_init_frame_1):
13733         (mswindows_delete_frame):
13734         (msprinter_init_frame_3):
13735         (msprinter_delete_frame): Move compatible DC to device object from
13736         frame object, for both mswindows and msprinter. Only one at a time
13737         is needed, it is a real waste to have one per frame!
13738
13739 2000-02-23  Andy Piper  <andy@xemacs.org>
13740
13741         * glyphs.c: add dynamic width and height elements.
13742         (image_instance_equal): ditto.
13743
13744         * glyphs-widget.c (widget_query_geometry): calculate width and
13745         height dynamically if required.
13746         (initialize_widget_image_instance): initialize dynamic dimensions.
13747         (widget_instantiate): pick-up dynamic dimensions.
13748
13749         * glyphs.h (struct Lisp_Image_Instance): add width and height for
13750         dynamic determination. Add appropriate macros.
13751
13752         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
13753         dimensions safe.
13754         (WINDOW_GUTTER_SIZE): ditto.
13755         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
13756
13757         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
13758         inline.
13759         (get_frame_dc): ditto.
13760
13761         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
13762         here.
13763
13764 2000-02-23  Martin Buchholz <martin@xemacs.org>
13765
13766         * XEmacs 21.2.31 is released.
13767
13768 2000-02-22  Ben Wing <ben@xemacs.org>
13769
13770         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
13771
13772 2000-02-22  Andy Piper  <andy@xemacs.org>
13773
13774         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
13775
13776 2000-02-21  Mike Sperber <mike@xemacs.org>
13777
13778         * .dbxrc:
13779         * .gdbinit:
13780         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
13781         variables.
13782
13783 2000-02-21  Mike Sperber <mike@xemacs.org>
13784
13785         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
13786
13787 2000-02-21  Martin Buchholz <martin@xemacs.org>
13788
13789         * XEmacs 21.2.30 is released.
13790
13791 2000-02-20  Martin Buchholz  <martin@xemacs.org>
13792
13793         Performance hacking.
13794         * *.c (syms_of_*):
13795         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
13796         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
13797         * emacs.c (main_1):
13798         * lisp.h (DEFUN):
13799         * console.c (DEFVAR_CONSOLE_LOCAL_1):
13800         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
13801         * symeval.h (DEFVAR_SYMVAL_FWD):
13802         * symbols.c (guts_of_unbound_marker):
13803         Make all c_readonly objects also lisp_readonly and marked for life.
13804         * lrecord.h (struct lrecord_implementation):
13805         Document flags better.
13806         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
13807         * lrecord.h (DECLARE_LRECORD):
13808         * lrecord.h (XSETRECORD):
13809         * lrecord.h (RECORDP):
13810         * lrecord.h (RECORD_TYPEP):
13811         * lrecord.h (RECORD_MARKER): New.
13812         * lrecord.h (error_check_*):
13813         * lrecord.h (CONCHECK_NONRECORD):
13814         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
13815         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
13816         * lrecord.h (set_lheader_implementation):
13817         * lrecord.h (enum lrecord_type): New.
13818         * symeval.h (SYMBOL_VALUE_MAGIC_P):
13819         * alloc.c (disksave_object_finalization_1):
13820         * alloc.c (mark_object):
13821         * alloc.c (lrecord_type_index):
13822         * alloc.c (tick_lcrecord_stats):
13823         * alloc.c (Fgarbage_collect):
13824         * alloc.c (init_alloc_once_early):
13825         * alloc.c (pdump_load):
13826         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
13827         * alloc.c (lrecord_type_index): Delete.
13828         Make lisp object type indexes be constant.
13829           Makes (byte-compile) 5% faster.
13830         Put all marker functions into their own array.
13831           Makes (garbage-collect) 5% faster.
13832         Optimize SYMBOL_VALUE_MAGIC_P.
13833           Makes (byte-compile) 2-3% faster.
13834         * config.h.in (gc_checking_assert): New.
13835         * alloc.c: Use gc_checking_assert().
13836         * .dbxrc: Make compatible with new object type implementation.
13837         * .gdbinit: Make compatible with new object type implementation.
13838         * alloc.c: Delete all symbols defined only for debugging, such as
13839         Lisp_Type_Vector and lrecord_charset.
13840
13841 2000-02-21  Andy Piper  <andy@xemacs.org>
13842
13843         * gui-msw.c (Fmswindows_shell_execute): fix file location
13844         problems.
13845
13846         * buffer.c (Fkill_buffer): remove buffer from alist buffer
13847         unshowing so that set_window_buffer doesn't undo
13848         kill_buffer_hook's hard work.
13849
13850         * glyphs-widget.c (tab_control_query_geometry): don't count the
13851         first item when calculating geometry.
13852
13853         * glyphs.c (map_subwindow): remove redundant code.
13854         (update_frame_subwindows): be more circumspect about when to
13855         update subwindows.
13856
13857         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
13858         when items haven't changed. Update faces if faces have changed as
13859         well as just the widget face.
13860         (x_tab_control_update): Update faces if faces have changed as well
13861         as just the widget face.
13862
13863 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13864
13865         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
13866         registration.
13867         (build_syscolor_string): Use mswindows_color_to_string to try to
13868         get a named color.
13869         (mswindows_device_system_metrics): Reverse the foreground and
13870         background colors so that they match the documentation.
13871
13872         * objects-msw.c: (mswindows_X_color_map): tweak some values so
13873         they match the default Windows palette.
13874         (mswindows_color_to_string): New function.
13875
13876 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13877
13878         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
13879
13880 2000-02-18  Olivier Galibert  <galibert@pobox.com>
13881
13882         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
13883         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
13884
13885         * symbols.c (init_symbols_once_early): Removed obsolete
13886         DATA_SEG_BITS related kludge.
13887         (defvar_magic): Ditto.
13888
13889         * malloc.c: Removed obsolete DATA_SEG_BITS
13890         * ralloc.c: Ditto.
13891         * mem-limits.h: Ditto.
13892
13893         * Makefile.in.in: Removed obsolete HAVE_SHM
13894         * emacs.c: Ditto.
13895
13896 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13897
13898         *  device-msw.c (mswindows_delete_device): Free DDE string
13899         handles.
13900
13901 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13902
13903         * keymap.c (get_keyelt):
13904         * unexnt.c (unexec):
13905         * vm-limit.c (memory_warnings):
13906         * ntheap.c (recreate_heap):
13907         * ntheap.h (UNINIT_PTR):
13908         * select-msw.c (Fmswindows_get_clipboard):
13909         (Fmswindows_set_clipboard):
13910         * objects-msw.h (MSWINDOWS_BAD_HFONT):
13911         * objects-msw.c:
13912         * menubar-msw.c (displayable_menu_item):
13913         * glyphs-msw.c:
13914         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
13915         * sysdep.c (sys_subshell):
13916         * process-nt.c (nt_create_process):
13917         * nt.c (normalize_filename):
13918         (dostounix_filename):
13919         (unixtodos_filename):
13920         * ntproc.c (win32_executable_type):
13921         * ntplay.c (play_sound_data_1):
13922         (play_sound_file):
13923         * editfns.c (get_home_directory):
13924         * event-msw.c (struct winsock_stream):
13925         (mswindows_dde_callback):
13926         * device-msw.c (msprinter_init_device):
13927         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
13928
13929         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
13930         mswindows_clear_toolbar were swapped!
13931
13932         * objects-msw.c:(colormap_t):
13933         (fontmap_t):
13934         * emacs.c (struct standard_args): Fixed const jumble.
13935
13936         * glyphs-widget.c (update_widget): Fixed comparison notation.
13937
13938         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
13939
13940         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
13941         __declspec(noreturn) syntax.
13942
13943 2000-02-19  Martin Buchholz  <martin@xemacs.org>
13944
13945         * eldap.c (Fldap_open):
13946         (Fldap_search_basic):
13947         (Fldap_add):
13948         (Fldap_modify):
13949         Use new coding system conversion macros.
13950
13951 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
13952
13953         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
13954
13955 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
13956
13957         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
13958         (Fldap_add, Fldap_modify, Fldap_delete): New functions
13959
13960         * eldap.c (Qadd, Qreplace): New constant symbols
13961         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
13962         interruptions by XEmacs signals
13963         Remove unnecessary calls to slow_down_interrupts and
13964         speed_up_interrupts
13965         (Fldap_search_basic): Renamed from Fldap_search_internal
13966         Added new optional parameter VERBOSE that triggers the
13967         display of progress messages
13968         Remove unnecessary calls to slow_down_interrupts and
13969         speed_up_interrupts
13970         LDAP result code analysis rewritten
13971         (Fldap_add, Fldap_modify, Fldap_delete): New functions
13972         (syms_of_eldap): Define the new symbols and functions
13973
13974
13975 2000-02-17  Martin Buchholz  <martin@xemacs.org>
13976
13977         * realpath.c: Determine PATH_MAX maximally portably.
13978
13979         * insdel.c (bytecount_to_charcount): Optimize.
13980         The function used to be optimized for entirely ASCII sequences.
13981         Now it is optimized for successive characters from the same
13982         charset.  This also wins big for _mostly_ ASCII sequences.
13983
13984         * fileio.c (Ffile_truename): convert return from realpath() using
13985         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
13986         - Rewrite GCPROing slightly.
13987
13988         * sysdep.c (sys_open): Do filename conversion, like all other
13989         sys_* functions.  Fixes bug:
13990         (let ((file-name-coding-system 'iso-8859-2))
13991            (write-region x y latin2-name))
13992         ==> writes filename using internal encoding.
13993
13994 2000-02-18  Martin Buchholz  <martin@xemacs.org>
13995
13996         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
13997         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
13998         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
13999         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
14000         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
14001         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
14002         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
14003         (CONST_IF_NOT_DEBUG): Delete.
14004         * alloc.c (this_one_is_unmarkable): Delete.
14005         (mark_object): Don't check for this_one_is_unmarkable. Use the
14006         c_readonly flag instead.
14007         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
14008
14009 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14010
14011         * event-msw.c (mswindows_drain_windows_queue):
14012         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
14013         away redundant repaint events.
14014
14015 2000-02-17  Andy Piper  <andy@xemacs.org>
14016
14017         * redisplay.h: declare mark_redisplay_structs.
14018
14019         * redisplay.c (redisplay_window):
14020         (redisplay_frame): don't check subwindows_state_changed.
14021         (mark_redisplay): mark gutters here.
14022
14023         * glyphs.c: (instantiate_image_instantiator): always layout if we
14024         haven't done so already.
14025         (allocate_image_instance): don't mark as dirty.
14026         (update_subwindow): bind inhibit_quit.
14027
14028         * gutter.c (mark_gutters): new function.
14029
14030         * glyphs-x.c (x_update_widget): Always resize to get round a
14031         widget bug.
14032
14033         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
14034         breaking absolutely everything.
14035
14036         * gutter.h: declare mark_gutters.
14037
14038 2000-02-16  Martin Buchholz <martin@xemacs.org>
14039
14040         * XEmacs 21.2.29 is released.
14041
14042 2000-02-15  Olivier Galibert  <galibert@pobox.com>
14043
14044         * fns.c (size_bit_vector): Fix computation of the size.
14045
14046 2000-02-15  Martin Buchholz  <martin@xemacs.org>
14047
14048         * *.[ch]: Change CONST to const globally.
14049         find -name '*.[ch]' | \
14050         xargs global-replace \
14051         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
14052         - Remove vestigial references to CONST_IS_LOSING
14053
14054 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14055
14056         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
14057         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
14058         events instead of dispatching them directly.
14059         (mswindows_handle_paint): New function to do repainting.
14060         (mswindows_wnd_proc):
14061         (emacs_mswindows_handle_magic_event): Call above function.
14062
14063 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14064
14065         * objects-msw.c (mswindows_create_font_variant): Return the new
14066         font handle.
14067         (initialize_font_instance): Get font metrics from the underlined
14068         variant of the font to cope with the case where the underlined
14069         font has a bigger descent.
14070
14071 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
14072
14073         * gui.c (gui_item_accelerator): Return the first underlined
14074         character in item name.
14075
14076 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14077
14078         * lisp.h: Added Qprinter.
14079
14080         * general.c (syms_of_general): Initialized it.
14081
14082         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
14083         (get_frame_dc):
14084         (get_frame_compdc): Made inline.
14085
14086         * console.h (struct console_methods): Added eject_page method.
14087
14088         * frame.h: Added FRAME_DISPLAY_P and friends.
14089         Aligned backslahes in many macros in more readable fashion.
14090         Added page_number to struct frame, and an accessor macro
14091         for it.
14092
14093         * defice.h: Added DEVICE_DISPLAY_P and friends.
14094
14095         * device.c (Fdevice_printer_p): Used these.
14096
14097         * frame.c (allocate_frame_core): Initialize page number.
14098         (Fprint_job_page_number):
14099         (Fprint_job_eject_page): Implemented.
14100
14101         * frame-msw.c (msprinter_eject_page): Added method.
14102         (msprinter_start_page): Added.
14103
14104         * window.c (Fwindow_truncated_p): Fixed docstring.
14105         (Fwindow_last_line_visible_height): Implemented.
14106
14107 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14108
14109         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
14110
14111 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14112
14113         * syntax.c (scan_words): Always advance at least one character.
14114
14115 2000-02-13  Andy Piper  <andy@xemacs.org>
14116
14117         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
14118         to make sure the glyph is in the cachels.
14119
14120         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
14121         global image instance flag.
14122         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
14123         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
14124
14125         * glyphs.c (allocate_image_instance): set dirty bits correctly.
14126         (Fset_image_instance_property): mark layout as changed.
14127         (invalidate_glyph_geometry_maybe): mark layout as changed.
14128         (glyph_width): use new NEEDS_LAYOUT macro.
14129         (glyph_ascent): ditto.
14130         (glyph_descent): ditto.
14131         (glyph_height): ditto.
14132         (image_instance_layout): mark layout as clean after laying out.
14133         (update_subwindow): don't mark layout as clean here.
14134
14135         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
14136         should no longer be needed.
14137
14138         * glyphs-x.c (x_update_widget): sanitize asserts.
14139         (x_finalize_image_instance): sanitize assignment to widgets.
14140
14141         * glyphs-widget.c (widget_instantiate): don't need to clear the
14142         layout flag here.
14143
14144 2000-02-13  Martin Buchholz  <martin@xemacs.org>
14145
14146         * sysdep.c (getcwd): Use standard prototype.
14147         * sysdep.h (getcwd): Use standard prototype.
14148
14149         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
14150         (sequence, start, end).
14151         Remove redundant type checking.
14152         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
14153         view of `caller-protects') to avoid a crash where the real fix was
14154         found elsewhere.
14155
14156 2000-02-12  Martin Buchholz  <martin@xemacs.org>
14157
14158         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
14159
14160         * s/sol2.h: Remove feature macro initialization.
14161
14162         * alloc.c (alloc_lcrecord): Add more type checking assertions.
14163         (vector_hash): New.  Code from internal_hash.
14164         * lrecord.h:
14165         Fix up allocation subsystem comments.
14166
14167         * config.h.in: Add __EXTENSIONS__ for Solaris.
14168
14169         * systime.h (EMACS_GETTIMEOFDAY): New.
14170         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
14171         Remove Solaris-specific code.
14172         Use void* for the (ignored) second arg for gettimeofday().
14173
14174         * elhash.c (hash_table_hash): Implement it, finally.
14175         * elhash.c:  Use hashcode_t.
14176
14177         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
14178         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
14179
14180         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
14181         * fns.c (size_bit_vector):
14182         * alloc.c (size_vector):
14183         (make_vector_internal):
14184         (make_bit_vector_internal):
14185         (sweep_bit_vectors_1):
14186         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
14187
14188 2000-02-10  Martin Buchholz  <martin@xemacs.org>
14189
14190         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
14191         Include strings.h to avoid warnings for bzero and strcasecmp.
14192
14193 2000-02-10  Olivier Galibert  <galibert@pobox.com>
14194
14195         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
14196         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
14197
14198         * fns.c (size_bit_vector): New.  Declare bit vectors as a
14199         sequence.
14200
14201 2000-02-10  Olivier Galibert  <galibert@pobox.com>
14202
14203         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
14204         use a value field instead.
14205         (symbol_value_forward_forward): Use value field.
14206         (DEFVAR_SYMVAL_FWD): Use value field.
14207         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
14208         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
14209         (DEFVAR_CONST_INT): Ditto.
14210         (DEFVAR_BOOL): Ditto.
14211         (DEFVAR_CONST_BOOL): Ditto.
14212         (DEFVAR_INT_MAGIC): Ditto.
14213         (DEFVAR_BOOL_MAGIC): Ditto.
14214
14215         * symbols.c (guts_of_unbound_marker): Use value field.
14216         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
14217         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
14218
14219         * lisp.h: Declare dumpopaque and noninteractive1.
14220
14221         * alloc.c (dumpopaque): Added.
14222         (pdump_dump_opaquevec): Added.
14223         (pdump): Call pdump_dump_opaquevec to dump opaque data.
14224         (pdump_load): Reload opaque data.  Sync noninteractive1 with
14225         noninteractive.
14226
14227 2000-02-10  Andy Piper  <andy@xemacs.org>
14228
14229         * glyphs.c (image_instance_layout): if the size changes, mark it
14230         as such.
14231
14232         * redisplay-output.c (redisplay_output_layout): Update the
14233         subwindow here.
14234         (redisplay_output_subwindow): ditto.
14235
14236         * glyphs.c (update_subwindow): make sure we reset flags for
14237         layouts as well as everything else.
14238
14239         * glyphs-widget.c (layout_layout): don't need to set the instances
14240         dimensions here.
14241
14242 2000-02-09  Martin Buchholz  <martin@xemacs.org>
14243
14244         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
14245         not HAVE_DLOPEN, which is a lower-level thing.
14246
14247         * .cvsignore: Ignore gmon.out
14248
14249 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
14250
14251         * .cvsignore: Ignore portable dumper xemacs.dmp file
14252
14253 2000-02-09  Andy Piper  <andy@xemacs.org>
14254
14255         * redisplay-output.c (redisplay_output_layout): be more clever
14256         about when we output based on the changed flags.
14257
14258         * glyphs.h (struct image_instantiator_methods): add update_method.
14259         (struct Lisp_Image_Instance): add changed flags. Declare new
14260         macros for manipulating them.
14261
14262         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
14263         (image_instance_parent_glyph): find an image_instance's parent
14264         glyph or image_instance.
14265         (image_instance_layout): mark the size as changed.
14266         (set_image_instance_dirty_p): new function. mark an image
14267         instance, plus all of its parents, as dirty.
14268         (Fset_image_instance_property): use it.
14269         (Fglyph_animated_timeout_handler): use it.
14270         (update_subwindow): call update_widget and device methods for
14271         update_subwindow. Mark all changed flags as clean.
14272         (Fresize_subwindow): mark size as changed.
14273
14274         * glyphs-x.c (x_finalize_image_instance): try and detect gc
14275         failures.
14276         (x_update_subwindow): only resize subwindows here.
14277         (x_update_widget): new function. Update all changed properties of
14278         a widget.
14279         (x_resize_subwindow): deleted.
14280         (x_widget_set_property): deleted.
14281         (x_progress_gauge_set_property): deleted.
14282         (x_progress_gauge_update): new function. Implement recorded
14283         changes.
14284         (x_tab_control_update): ditto.
14285         (x_tab_control_set_property): deleted.
14286         (console_type_create_glyphs_x): declare new functions.
14287         (image_instantiator_format_create_glyphs_x): ditto.
14288
14289         * glyphs-widget.c (widget_set_property): mark text changed.
14290         (update_widget): new function. Update properties of a widget.
14291         (widget_instantiate): for layouts make sure we set their
14292         children's parent correctly.
14293         (tab_control_set_property): new function. Record changes that will
14294         take place under redisplay's control.
14295         (progress_gauge_set_property): ditto.
14296         (image_instantiator_progress_guage): declare new functions.
14297         (image_instantiator_tab_control): ditto.
14298
14299         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
14300         now.
14301         (mswindows_update_widget): new function. Update all properties on
14302         a widget that have changed.
14303         (mswindows_button_update): new function. Update a button's set
14304         state.
14305         (mswindows_tab_control_update): new function. Update the items in
14306         a tab.
14307         (mswindows_tab_control_set_property): deleted.
14308         (mswindows_progress_gauge_update): new function. Update the
14309         progress gauge's progress.
14310         (mswindows_widget_set_property): deleted. This is all done
14311         asynchronously now.
14312         (mswindows_progress_gauge_set_property): ditto.
14313         (console_type_create_glyphs_mswindows): declare new methods.
14314         (image_instantiator_format_create_glyphs_mswindows): ditto.
14315
14316         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
14317         (msprinter_set_frame_properties): ditto.
14318
14319         * console.h (struct console_methods): Add update_widget_method.
14320
14321 2000-02-09  Andy Piper  <andy@xemacs.org>
14322
14323         * gui-msw.c (Fmswindows_shell_execute): Make
14324         mswindows-shell-execute industrial strength.
14325
14326 2000-02-08  Martin Buchholz  <martin@xemacs.org>
14327
14328         * lrecord.h: Make macro argument `props' match member function `plist'.
14329         * fns.c (Fget):
14330         * fns.c (Fput):
14331         * fns.c (Fremprop):
14332         * fns.c (Fobject_plist):
14333         * alloc.c:
14334         * symbols.c:
14335         Object property list frobbing cleanup.
14336         - Allow any lisp object (compared with `eq'), not just symbols, as
14337           keys in object plists.
14338         - Move symbol plist frobbing into symbols.c, where it belongs.
14339         - Move string plist frobbing into alloc.c, where it belongs.
14340         - Everything's an lrecord now, so no need to test for symbolp, etc.
14341         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
14342
14343         * extents.c: Reorder code to remove declarations.
14344
14345         * frame.h (store_in_alist): Remove useless declaration.
14346
14347 2000-02-07  Martin Buchholz  <martin@xemacs.org>
14348
14349         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
14350         * config.h.in: Add HAVE_XCONVERTCASE.
14351
14352 2000-02-07  Andy Piper  <andy@xemacs.org>
14353
14354         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
14355         it breaks many things.
14356
14357 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
14358
14359         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
14360         actually can start a common comment type.
14361         * src/syntax.h (SYNTAX_END_P): ditto for end.
14362
14363 2000-02-07  Martin Buchholz <martin@xemacs.org>
14364
14365         * XEmacs 21.2.28 is released.
14366
14367 2000-02-06  Martin Buchholz  <martin@xemacs.org>
14368
14369         * event-Xt.c (x_keysym_to_character): New.
14370         (maybe_define_x_key_as_self_inserting_character): New.
14371         (x_has_keysym): New.
14372         Auto-define all keys on the keyboard as self-insert-key.
14373
14374 2000-02-02  Martin Buchholz  <martin@xemacs.org>
14375
14376         * menubar.c (vars_of_menubar): A small code simplification.
14377
14378         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
14379
14380         * ExternalShell.c:
14381         * ExternalClient.c:
14382         * EmacsShell-sub.c:
14383         * EmacsManager.c:
14384         * EmacsFrame.c:
14385         Use consistent style for specifying X resources.
14386
14387         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
14388         This makes (dontusethis-set-symbol-value-handler) actually usable.
14389
14390         * lrecord.h (lrecord_decription_type):
14391         * alloc.c (pdump_register_sub):
14392         (pdump_dump_data):
14393         (pdump_reloc_one):
14394         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
14395         Comply with XEmacs coding style.
14396         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
14397         args, and XD_LISP_OBJECT_ARRAY with 3 args.
14398
14399         * keymap.c (Faccessible_keymaps):
14400         Make (accessible-keymaps map "\C-h") do the Right Thing.
14401         Make (accessible-keymaps map []) do the Right Thing.
14402         Make (accessible-keymaps map "") do the Right Thing.
14403         (check_keymap_definition_loop): New function.
14404         (keymap_store_internal): Keep luser from shooting self in foot,
14405           via (define-key ctl-x-4-map "p" global-map).
14406         Remove fullness slot from struct Lisp_Keymap, since hash tables
14407         are now reliable.
14408         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
14409
14410 2000-01-30  Martin Buchholz  <martin@xemacs.org>
14411
14412         * redisplay.c (init_redisplay): Fix small memory leak.
14413         * elhash.h:
14414         * elhash.c (pdump_reorganize_hash_table):
14415         Rename from reorganize_hash_table. Change prototype.
14416         Reuse the original memory for hentries.  Save 100k.
14417         * alloc.c (PDUMP_READ): new macro.
14418         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
14419         * alloc.c: No need to #ifndef before #undef.
14420
14421         * print.c: Allow debug_print() to print readably by modifying
14422         debug_print_readably.  Use consistent variable names.
14423
14424         * .dbxrc: Try to get things to work even if stopped in a function
14425         without source available by explicitly specifying source files.
14426 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14427
14428         * unexnt.c (_start): Removed bogus code which caused loading heap
14429         from differrent executable file.
14430         Removed bogus assignment to _fmode, which caused inconsistencies.
14431
14432 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14433
14434         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
14435         Have spawnve encapsulation regard DONT_ENCAPSULATE.
14436         Do not preliminary `#define signal sigset'.
14437
14438         * systime.h: Do not prototype environ on windows nt and cygwin,
14439         this conflicts with system header.
14440
14441         * syssignal.h: Use correct define for WINDOWSNT
14442
14443         * sysdep.h: Do not prototype environ on windows nt, this conflicts
14444         with system header.
14445
14446         * sysdep.c (near start of file): Fixed commentary and rearranged
14447         ifdefs in readable order.
14448         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
14449         (start_of_text):
14450         (end_of_text):
14451         (end_of_data): Do not compile in if using PDUMP.
14452
14453         * symsinit.h: Prototyped vars_of_nt().
14454
14455         * ntproc.c (windows9x_p): Added, instead of os_subtype.
14456         (find_child_console): Use it.
14457         (sys_kill): Use it.
14458
14459         * ntheap.h: Do not extern os_subtype.
14460
14461         * ntheap.c (cache_system_info): Do not cache unneeded:
14462         nt_major_version, nt_minor_version and os_subtype.
14463         (recreate_heap): Do not compile in when PDUMPing.
14464
14465         * nt.c (geteuid and friends): Use the new varibale
14466         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
14467         (init_user_info): Removed the above mentioned hackery.
14468         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
14469         stat has been fixed in the C runtime.
14470         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
14471
14472         * file-coding.c (struct file_coding_dump): Do not define
14473         ucs_to_mule_table in the struct if not MULE.
14474         (struct struct lrecord_description fcd_description_1): Do not dump
14475         the above.
14476
14477         * emacs.c (main_1): Call vars_of_nt().
14478         (right before Fdump_emacs_data): Don't need lastfile if using both
14479         portabe dumper and system malloc.
14480
14481         * alloc.c (Fmemory_limit): Conditionalized out.
14482         (pdump): Use OPEN_BINARY for the portable dump file.
14483         (pdump_load): Ditto.
14484
14485 2000-02-02  Mike Alexander  <mta@arbortext.com>
14486
14487         * nt.c (convert_time): Set tm_isdst before calling mktime and
14488         avoid calling it at all if the compiler supports 64 bit integers.
14489         Also initialize utc_base_ft before using it.
14490
14491 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
14492
14493         * frame.c (change_frame_size_1): Take f->internal_border_width
14494         into consideration when calculating the width of the frame.
14495
14496 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14497
14498         * window.c (frame_min_height):
14499         (frame_size_valid_p):
14500         (frame_pixsize_valid_p): Added.
14501         (check_frame_size): Generalized.
14502
14503         * window.h: Prototyped the above.
14504
14505         * lisp.h:
14506         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
14507         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
14508         Deleted Vwin32_* and Vbinary_process_* unused variables.
14509
14510         * device-msw.c (msprinter_init_device): Do not get printer font
14511         list; Added DEVMODE functions.
14512
14513         * frame-msw.c: Added lots of printer code.
14514
14515         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
14516         general.c.
14517
14518         * console-msw.h: Added more msprinter device private slots.
14519
14520 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14521
14522         * event-msw.c (key_needs_default_processing_p): Added.
14523         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
14524
14525 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14526
14527         * glyphs.c (image_instance_layout): Mark image instance as clean
14528         after layout.
14529         (glyph_dirty_p): Removed redundant function.
14530         (invalidate_glyph_geometry_maybe): Added.
14531         (update_glyph_cachel_data): Call it.
14532
14533         * glyphs.h: Prototyped it.
14534
14535         * redisplay.c (add_glyph_rune): Call it.
14536         (redisplay_window): Reset glyphs cachels when frame faces have
14537         changed, thus forcing recomputation of built-in border glyphs.
14538
14539 2000-01-30  Martin Buchholz  <martin@xemacs.org>
14540
14541         * Makefile.in.in: Make portable dumper and purify play well together.
14542         Add imperfect, but better than nothing, support for pdump.
14543         Remove xemacs.dmp when temacs is re-generated.
14544         Don't ignore errors when dumping xemacs.
14545
14546         * symbols.c (maybe_call_magic_handler): Remove one magic number.
14547
14548 2000-01-28  Andy Piper  <andy@xemacs.org>
14549
14550         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
14551         (setup_normal_frame): ditto.
14552         (setup_frame_without_minibuffer): ditto.
14553         (setup_minibuffer_frame): ditto.
14554         (delete_frame_internal): ditto.
14555         (Fmake_frame_invisible): ditto.
14556         (Ficonify_frame): ditto.
14557
14558         * window.h: change Fset_window_buffer signature.
14559
14560         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
14561         (Fset_window_buffer): allow recording of buffer if the window is
14562         the selected window.
14563         (window_loop): Use new Fset_window signature.
14564
14565 2000-01-23  Daniel Pittman  <daniel@danann.net>
14566
14567         * config.h.in: Added template for `HAVE_ATHENA_3D'
14568
14569 2000-01-29  Andy Piper  <andy@xemacs.org>
14570
14571         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
14572
14573         * gutter.c (output_gutter): Don't output if the window isn't live.
14574
14575 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14576
14577         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
14578         of 01/12/00: Moved SetFocus back here where it belongs.
14579
14580 2000-01-23  Andy Piper  <andy@xemacs.org>
14581
14582         * s/cygwin32.h: declare printer things.
14583
14584 2000-01-26  Andy Piper  <andy@xemacs.org>
14585
14586         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
14587         Alexander.
14588
14589 2000-01-24  Andy Piper  <andy@xemacs.org>
14590
14591         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
14592         (mswindows_button_instantiate): Make sure glyph is a pixmap.
14593
14594         * glyphs-widget.c (widget_instantiate): Avoid shadows.
14595
14596         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
14597
14598         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
14599
14600         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
14601         (mswindows_output_display_block): Avoid local shadows.
14602
14603         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
14604         (mswindows_enqueue_mouse_button_event): ditto.
14605         (mswindows_handle_gui_wm_command): remove declaration.
14606
14607         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
14608         warnings.
14609
14610         * console-msw.h: Avoid shadows.
14611         (mswindows_get_toolbar_button_text):
14612         (emacs_mswindows_create_stream_pair):
14613         (emacs_mswindows_delete_stream_pair):
14614         (mswindows_handle_toolbar_wm_command): declare.
14615
14616         * device-msw.c (build_syscolor_string): Avoid shadows.
14617
14618 2000-01-23  Andy Piper  <andy@xemacs.org>
14619
14620         * glyphs-widget.c (widget_instantiate): reverse the items for
14621         layouts so that children are in the expected order.
14622
14623 2000-01-28  Martin Buchholz  <martin@xemacs.org>
14624
14625         * ralloc.c: safe_bcopy ==> memmove
14626         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
14627         * s/msdos.h: Remove BCOPY macros.
14628         * insdel.c (gap_right): Remove BCOPY conditional code.
14629         * insdel.c (gap_left): Remove BCOPY conditional code.
14630         XEmacs demands a working ANSI C compiler - hence memmove.
14631
14632         * regex.c (regex_compile): Remove accidental use of trigraphs.
14633
14634 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14635
14636         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
14637         event timestamp.
14638
14639 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14640
14641         * event-msw.c (mswindows_drain_windows_queue): Added the
14642         parameter.
14643         (mswindows_need_event): Commented the call to
14644         mswindows_drain_windows_queue().
14645         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
14646         only.
14647
14648         * console-msw.h: Moved a few function prototypes here from
14649         event-msw.c.
14650
14651         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
14652         parameter from unsigned short to unsigned long.
14653         (Fmswindows_shell_execute): Added return value.
14654
14655 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
14656
14657         * sysdep.c (init_system_name):
14658           process-unix.c (unix_canonicalized_host_name):
14659         Don't call freeaddrinfo() if getaddrinfo() fails.
14660
14661         * process-unix.c (unix_open_unix_network_stream):
14662         Moved the code to get a port # into address loop.
14663
14664 2000-01-27  Martin Buchholz  <martin@xemacs.org>
14665
14666         * buffer.c (reinit_vars_of_buffer):
14667         The right place to initialize conversion_in_dynarr and
14668         conversion_out_dynarr.
14669
14670         * alloc.c (pdump): Use the real open() till sys_open() is functional.
14671
14672         * process-unix.c (unix_canonicalize_host_name): Muleize.
14673         (unix_open_network_stream): Muleize.
14674
14675         * buffer.h: Fix up prototypes for ralloc.c functions.
14676
14677 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
14678         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
14679         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
14680                 instead of gethostbyname()
14681         * process-unix.c: In unix_canonicalize_host_name() and
14682                 unix_open_network_stream(), add code to use getaddrinfo()
14683                 instead of gethostbyname().
14684
14685 2000-01-27  Daniel Pittman <daniel@danann.net>
14686
14687         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
14688         libs when built with flat Athena.
14689
14690 2000-01-27  Martin Buchholz  <martin@xemacs.org>
14691
14692         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
14693         Use coding standards for function prototypes.
14694
14695 2000-01-25  Martin Buchholz  <martin@xemacs.org>
14696
14697         * dialog-msw.c (push_lisp_string_as_unicode):
14698         * doc.c (unparesseuxify_doc_string):
14699         * dired.c (Fuser_name_completion_1):
14700         * dired.c (Fuser_name_all_completions):
14701         * dired.c (free_user_cache):
14702         * dired.c (user_name_completion):
14703         * console-x.c (get_display_arg_connection):
14704         * minibuf.c (clear_echo_area_internal):
14705         * minibuf.c (echo_area_append):
14706         * eldap.c (Fldap_open):
14707         * eldap.c (Fldap_search_internal):
14708         * frame-x.c (x_set_frame_text_value):
14709         * frame-x.c (x_set_frame_properties):
14710         * frame-x.c (x_create_widgets):
14711         * redisplay-tty.c (term_get_fkeys_1):
14712         * objects-x.c (x_parse_nearest_color):
14713         * objects-x.c (x_valid_color_name_p):
14714         * objects-x.c (x_initialize_font_instance):
14715         * objects-x.c (x_list_fonts):
14716         * objects-x.c (x_find_charset_font):
14717         * tooltalk.c (Fadd_tooltalk_message_arg):
14718         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
14719         * tooltalk.c (Fadd_tooltalk_pattern_arg):
14720         * process-unix.c (unix_create_process):
14721         * ntproc.c (sys_spawnve):
14722         * sound.c (Fplay_sound_file):
14723         * sound.c (Fplay_sound):
14724         * buffer.c (init_initial_directory):
14725         * buffer.c (init_buffer):
14726         * editfns.c (init_editfns):
14727         * editfns.c (Ftemp_directory):
14728         * editfns.c (Fuser_full_name):
14729         * editfns.c (uncache_home_directory):
14730         * editfns.c (get_home_directory):
14731         * editfns.c (Fuser_home_directory):
14732         * editfns.c (Fformat_time_string):
14733         * editfns.c (Fcurrent_time_string):
14734         * gui-x.c (button_item_to_widget_value):
14735         * database.c (Fopen_database):
14736         * event-Xt.c (x_to_emacs_keysym):
14737         * event-Xt.c (x_event_to_emacs_event):
14738         * event-Xt.c (describe_event_window):
14739         * event-msw.c (mswindows_wnd_proc):
14740         * glyphs-eimage.c (jpeg_instantiate):
14741         * glyphs-eimage.c (gif_instantiate):
14742         * glyphs-eimage.c (png_instantiate):
14743         * glyphs-eimage.c (tiff_instantiate):
14744         * glyphs-x.c (xbm_instantiate_1):
14745         * glyphs-x.c (x_xbm_instantiate):
14746         * glyphs-x.c (x_xface_instantiate):
14747         * glyphs-x.c (autodetect_instantiate):
14748         * glyphs-x.c (cursor_font_instantiate):
14749         * glyphs-x.c (x_widget_instantiate):
14750         * glyphs-x.c (x_widget_set_property):
14751         * glyphs-x.c (x_widget_property):
14752         * glyphs-x.c (BUILD_GLYPH_INST):
14753         * print.c (write_string_to_stdio_stream):
14754         * print.c (output_string):
14755         * print.c (Falternate_debugging_output):
14756         * print.c (Fexternal_debugging_output):
14757         * glyphs-msw.c (extract_xpm_color_names):
14758         * glyphs-msw.c (mswindows_xpm_instantiate):
14759         * glyphs-msw.c (bmp_instantiate):
14760         * glyphs-msw.c (resource_name_to_resource):
14761         * glyphs-msw.c (mswindows_resource_instantiate):
14762         * glyphs-msw.c (xbm_instantiate_1):
14763         * glyphs-msw.c (mswindows_xbm_instantiate):
14764         * glyphs-msw.c (mswindows_xface_instantiate):
14765         * glyphs-msw.c (mswindows_widget_instantiate):
14766         * glyphs-msw.c (add_tree_item):
14767         * glyphs-msw.c (add_tab_item):
14768         * glyphs-msw.c (mswindows_combo_box_instantiate):
14769         * glyphs-msw.c (mswindows_widget_property):
14770         * glyphs-msw.c (mswindows_combo_box_property):
14771         * glyphs-msw.c (mswindows_widget_set_property):
14772         * console.c (stuff_buffered_input):
14773         * objects-msw.c (mswindows_initialize_color_instance):
14774         * objects-msw.c (mswindows_valid_color_name_p):
14775         * objects-msw.c (mswindows_list_fonts):
14776         * objects-msw.c (mswindows_font_instance_truename):
14777         * bytecode.c (optimize_compiled_function):
14778         * select-x.c (symbol_to_x_atom):
14779         * select-x.c (x_atom_to_symbol):
14780         * select-x.c (hack_motif_clipboard_selection):
14781         * select-x.c (selection_data_to_lisp_data):
14782         * select-x.c (lisp_data_to_selection_data):
14783         * select-x.c (Fx_get_cutbuffer_internal):
14784         * select-x.c (Fx_store_cutbuffer_internal):
14785         * buffer.h (TO_EXTERNAL_FORMAT): New function.
14786         * buffer.h (TO_INTERNAL_FORMAT): New function.
14787         * emacs.c (make_arg_list_1):
14788         * emacs.c (make_argc_argv):
14789         * emacs.c (main_1):
14790         * emacs.c (Fdump_emacs):
14791         * emacs.c (split_string_by_emchar_1):
14792         * file-coding.h:
14793         * lisp.h:
14794         * lstream.h:
14795         * symsinit.h:
14796         * device-x.c (x_init_device):
14797         * device-x.c (Fx_valid_keysym_name_p):
14798         * device-x.c (Fx_get_font_path):
14799         * device-x.c (Fx_set_font_path):
14800         * glyphs.c (bitmap_to_lisp_data):
14801         * glyphs.c (pixmap_to_lisp_data):
14802         * alloc.c (make_ext_string): Use coding system arguments.  Update
14803         all callers.
14804         * alloc.c (build_string):
14805         * callproc.c (child_setup):
14806         * callproc.c (init_callproc):
14807         * fileio.c (lisp_strerror):
14808         * fileio.c (directory_file_name):
14809         * fileio.c (Fexpand_file_name):
14810         * fileio.c (Ffile_truename):
14811         * fileio.c (Fsysnetunam):
14812         * fileio.c (Fdo_auto_save):
14813         * sysdep.c (sys_readdir):
14814         * tests.c: New file.  Allow adding C tests.
14815         Replace GET_* macros with a more comprehensible and flexible
14816         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
14817         Modify all calls.
14818         Any coding system can be used to do format conversion.
14819         Eliminate enum external_data_format.
14820         Eliminate convert_to_external_format.
14821         Eliminate convert_to_internal_format.
14822         Make sure file-name, keyboard, terminal, and ctext are always
14823         defined as coding systems or aliases.  Make
14824         file-name-coding-system, terminal-coding-system, and
14825         keyboard-coding-system magical variables that are equivalent to
14826         defining the corresponding coding system aliases.
14827
14828         * file-coding.c (Fcoding_system_canonical_name_p): New function.
14829         * file-coding.c (Fcoding_system_alias_p): New function.
14830         * file-coding.c (Fcoding_system_aliasee): New function.
14831         * file-coding.c (append_suffix_to_symbol): New function.
14832         * file-coding.c (dangling_coding_system_alias_p): New function.
14833         * file-coding.c (Ffind_coding_system):
14834         * file-coding.c (Fcopy_coding_system):
14835         * file-coding.c (encode_coding_no_conversion):
14836         * file-coding.c (syms_of_file_coding):
14837         * file-coding.c (vars_of_file_coding):
14838         Rewrite coding system alias code.
14839         Allow nested aliases, like symbolic links.
14840         Allow redefinition of coding system aliases.
14841         Prevent existence of dangling coding system aliases.
14842
14843         * dired.c (Fuser_name_completion_1):
14844         * dired.c (Fuser_name_all_completions):
14845         A crash would happen if user did QUIT in the middle of building
14846         user_name_cache.  Remove redundant code in mainline and unwind_protect.
14847
14848         * lisp.h:
14849         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
14850
14851         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
14852         an unsigned char *.  Update all callers.
14853
14854 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14855
14856         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
14857
14858 2000-01-25  Martin Buchholz  <martin@xemacs.org>
14859
14860         * elhash.c (hentry_description): Use more portable definition.
14861         (resize_hash_table): Initialize new hentries using
14862         xnew_array_and_zero, thereby simplifying the code.
14863
14864         * mule-charset.c (make_charset): Make sure entire object is
14865         initialized, to avoid Purify warnings.
14866
14867         * alloc.c (resize_string): Fix unlikely crash with big strings.
14868
14869 2000-01-24  Martin Buchholz  <martin@xemacs.org>
14870
14871         * realpath.c (xrealpath):
14872         Don't call getwd().
14873
14874 2000-01-25  Martin Buchholz  <martin@xemacs.org>
14875
14876         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
14877
14878 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
14879
14880         * unexelfsgi.c (unexec): Change the way we decide which segment
14881         should be extended.
14882
14883         Assumption that .bss section should be outside the PT_LOADable
14884         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
14885         it's present) is inside the 'data' segment. This would fail the
14886         test which was used to find a segment to grow and cover new
14887         heap. Instead of this assumption, I created another one - on IRIX
14888         the segment to grow should start below .bss and it's address
14889         should extent above the end of .bss. Once this segment is
14890         identified, it's grown to accommodate the new heap and new
14891         zero-length .bss section is added at the end of .data2.
14892
14893 2000-01-25  Martin Buchholz  <martin@xemacs.org>
14894
14895         * eval.c (Feval): Wrong number of arguments should use original
14896         function, not the indirect_function version of it.
14897
14898 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
14899
14900         * glyphs-x.c (x_button_instantiate): Don't add image if
14901         it is not a pixmap.
14902         (x_locate_pixmap_file): Call Fexpand_file_name when file name
14903         is relative.
14904
14905 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
14906
14907         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
14908         declaration.
14909         (DEFVAR_INT_MAGIC): Ditto.
14910         (DEFVAR_BOOL_MAGIC): Ditto.
14911         * glyphs.h: Reindent backslash.
14912
14913 2000-01-24  Martin Buchholz  <martin@xemacs.org>
14914
14915         * glyphs-widget.c (layout_query_geometry):
14916         (layout_layout): Use correct types for gheight, gwidth.
14917
14918 2000-01-24  Martin Buchholz  <martin@xemacs.org>
14919
14920         * EmacsManager.c (QueryGeometry): Purified.
14921
14922 2000-01-23  Martin Buchholz  <martin@xemacs.org>
14923
14924         * alloc.c (make_float): Make sure entire object is initialized, to
14925         avoid Purify warnings.
14926         (pdump_register_sub): Remove useless assignment.
14927         (pdump): Use xmalloc, not malloc.
14928         (pdump_load): Use xmalloc, not malloc.
14929
14930 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14931
14932         * callproc.c:
14933         * dired-msw.c:
14934         * fileio.c:
14935         * process-nt.c:
14936         * redisplay-msw.c:
14937         * sysdep.c: Removed redundant #include <windows.h>
14938
14939 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14940
14941         * frame.c (delete_frame_internal): Do not delete device when its
14942         implementation so declares.
14943         (delete_frame_internal): Set device selected frame to nil when
14944         last frame goes away.
14945
14946         * device-msw.c (msprinter_device_system_metrics): Implemented.
14947         (mswindows_device_system_metrics): Added 'device-dpi property.
14948
14949         * device.c: (Fdevice_printer_p): Added.
14950         Added 'offset-workspace device metric.
14951
14952         * console.h (device_metrics): Declared DM_offset_workspace.
14953
14954 2000-01-23  Martin Buchholz  <martin@xemacs.org>
14955
14956         * fileio.c (Ffile_truename): Remove pointless and confusing
14957         initialization of elen.
14958
14959         * glyphs-widget.c: Compiler warning fixes.
14960
14961 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
14962
14963         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
14964         instead of a Lisp_Object as argument to make it consistent with
14965         the other LIVE_P macros.
14966         (CHECK_LIVE_PROCESS): New macro.
14967
14968         * process.c: Declare Qprocess_live_p.
14969         (Fprocess_live_p): New function.
14970         (create_process): Use PROCESS_LIVE_P.
14971         (read_process_output): Ditto.
14972         (set_process_filter): Ditto.
14973         (Fdelete_process): Ditto.
14974         (kill_buffer_processes): Ditto
14975         (process_send_signal): Use CHECK_LIVE_PROCESS.
14976         (Fprocess_input_coding_system): Check whether process is still
14977         alive (fix PR#1061).
14978         (Fprocess_output_coding_system): Ditto.
14979         (Fprocess_coding_system): Ditto.
14980         (Fset_process_input_coding_system): Ditto.
14981         (Fset_process_output_coding_system): Ditto.
14982
14983 2000-01-23  Andy Piper  <andy@xemacs.org>
14984
14985         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
14986         layout and widget.
14987
14988         * glyphs.c (mark_image_instance): take into account changed
14989         image_instance format.
14990         (image_instance_equal): ditto.
14991         (image_instance_hash): ditto.
14992
14993         * glyphs-widget.c (widget_instantiate): Incorporate layout
14994         instantiation here. Delay layout of the layout until later.
14995         (layout_instantiate): deleted.
14996         (layout_query_geometry): new function. get the geometry of a
14997         layout.
14998         (layout_layout): layout a layout dynamically.
14999         (image_instantiator_widget): New function - splitting up
15000         image_instantiator_format_create_glyphs_widget for netwinder
15001         compilation.
15002         (image_instantiator_buttons):
15003         (image_instantiator_edit_fields):
15004         (image_instantiator_combo_box):
15005         (image_instantiator_scrollbar):
15006         (image_instantiator_progress_guage):
15007         (image_instantiator_tree_view):
15008         (image_instantiator_tab_control):
15009         (image_instantiator_labels):
15010         (image_instantiator_layout): ditto.
15011         (image_instantiator_format_create_glyphs_widget): Call preceding
15012         functions.
15013
15014 2000-01-22  Martin Buchholz  <martin@xemacs.org>
15015
15016         * process.c (Fset_process_coding_system):
15017         * device-x.c (Fx_keysym_hash_table):
15018         Docstring fixes.
15019
15020         * lstream.c (Lstream_write): Return documented value, not 0.
15021
15022         * fileio.c (directory_file_name):
15023         (Fsubstitute_in_file_name):
15024         (Fsubstitute_insert_file_contents_internal):
15025         (Fwrite_region_internal):
15026         * emacs.c:
15027         * sysdep.c:
15028         * getloadavg.c:
15029         * systty.h:
15030         Remove vestigial APOLLO-conditional code.
15031
15032 2000-01-21  Martin Buchholz  <martin@xemacs.org>
15033
15034         * getpagesize.h: Add guard macros.
15035         * libsst.h: Add guard macros.
15036         * libst.h: Add guard macros.
15037         * line-number.h: Add guard macros.
15038         * ndir.h: Add guard macros.
15039         * sysfloat.h: Add guard macros.
15040         * sysfile.h: Add guard macros.
15041         * sysproc.h: Add guard macros.
15042         * syswait.h: Add guard macros.
15043         * xintrinsic.h: Add guard macros.
15044         * xintrinsicp.h: Add guard macros.
15045         * xmmanager.h: Add guard macros.
15046         * xmmanagerp.h: Add guard macros.
15047         * xmprimitive.h: Add guard macros.
15048         * xmu.h: Add guard macros.
15049         * gpmevent.h: Add copyright statement. Add guard macros.
15050         * miscplay.h: Add guard macros.
15051         * *.h: Use consistent C-standards-approved guard macro names.
15052
15053         * opaque.c (make_opaque): Switch parameter order.
15054         * opaque.h (make_opaque): Switch parameter order.
15055         Update all callers.
15056         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
15057
15058         * config.h.in (type_checking_assert): Added.
15059         (bufpos_checking_assert): Added.
15060
15061 2000-01-21  Martin Buchholz  <martin@xemacs.org>
15062
15063         * alloc.c: Harmless pdump changes.
15064         - Use countof().
15065         - spell alignment correctly.
15066         * sysdep.c: Use countof()
15067
15068 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15069
15070         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
15071         initially_selected_for_input() console method, default to 0.
15072         (semi_canonicalize_console_connection): Try to delegate to
15073         canonicalize_console_connection if no such console method.
15074         (canonicalize_console_connection): Vice versa.
15075         (print_console): Do not print nil connection.
15076
15077         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
15078         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
15079         (XDEVIMPF_FRAMELESS_OK): Added.
15080         (CONSOLE_INHERITS_METHOD): Added.
15081
15082         * console-msw.c (mswindows_canonicalize_console_connection):
15083         Added.
15084         (mswindows_canonicalize_device_connection): Added.
15085
15086         * console-msw.h (struct msprinter_device): Added this struct and
15087         accessor macros.
15088         (mswindows_device): Made fontlist a lisp object.
15089
15090         * device.c (semi_canonicalize_device_connection):  Try to delegate
15091         to canonicalize_device_connection if no such console method.
15092         (canonicalize_device_connection): Vice versa.
15093         (print_device): Do not print nil connection.
15094
15095         * device-msw.c (mswindows_init_device): Call InitCommonControls
15096         when have widgets.
15097         (mswindows_delete_device): Removed fontlist deallocation.
15098         (mswindows_mark_device): Added.
15099
15100         * events.c (event_equal): Added abort() at unreached code.
15101         (event_hash): Ditto.
15102
15103         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
15104         fallback tags of Windows devices.
15105
15106         * general.c (syms_of_general): Initialized Qmsprinter.
15107
15108         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
15109         of fallback tags of Windows devices.
15110
15111         * lisp.h: Declared Qmsprinter.
15112
15113         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
15114         of strings.
15115         (mswindows_list_fonts): Ditto.
15116         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
15117         that it can be used by both mswindows and msprinter devices.
15118         (initialize_font_instance): Added.
15119         (mswindows_initialize_font_instance): Use it.
15120         (msprinter_initialize_font_instance): Added.
15121
15122         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
15123         and implementation flags check.
15124         (redisplay_without_hooks): Changed the call to the above.
15125         (Fredraw_device): Ditto.
15126         (Fredisplay_device): Ditto.
15127
15128         * redisplay-msw.c (get_frame_dc): Implemented.
15129         (get_frame_compdc): Implemented.
15130         (many functions): Use the two functions above to get device
15131         contexts, ether for a window or a printer.
15132
15133 2000-01-21  Olivier Galibert  <galibert@pobox.com>
15134
15135         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
15136         initialization here.
15137         (init_symbols_once_early): Call it.
15138         * emacs.c (main_1): Call it.
15139         * symsinit.h: Declare it.
15140
15141 2000-01-19  Olivier Galibert  <galibert@pobox.com>
15142
15143         * alloc.c: Use a lrecord_header * in the backtrace instead of a
15144         Lisp_Object.
15145         (pdump_backtrace): Ditto.
15146         (pdump_register_object): Ditto.  Cleanup use of the pointers.
15147         (pdump_get_entry): Abort if trying to register a null pointer.
15148         (pdump_dump_data): Cleanup types when relocating.
15149         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
15150         (pdump_dump_rtables): Remove bad casts.
15151         (pdump_load): Cleanup relocation w.r.t union type.  Use a
15152         Lisp_Object instead of a EMACS_INT for the hashtable
15153         reorganization.
15154
15155 2000-01-20  Martin Buchholz  <martin@xemacs.org>
15156
15157         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
15158
15159         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
15160
15161         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
15162
15163         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
15164
15165 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15166
15167         * faces.h (FACE_STRIKETHRU_P): Added.
15168
15169         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
15170         of font variants.
15171
15172         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
15173         (mswindows_set_dc_font): New function, aware of font variants,
15174         separated from mswindows_update_dc.
15175
15176         * objects-msw.h (struct mswindows_font_instance_data): Added
15177         definition.
15178
15179         * objects-msw.c (mswindows_finalize_font_instance): Delete all
15180         cached fonts and the data structure.
15181         (mswindows_initialize_font_instance): Added creation of font data
15182         structure.
15183         (mswindows_print_font_instance): Print at least something.
15184         (mswindows_create_font_variant): Implemented.
15185         (mswindows_get_hfont): Implemented.
15186
15187 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
15188
15189         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
15190         prototyping problem with msvc.
15191
15192         * emacs.c (main_1): added syms_of_gui_mswindows() call
15193
15194         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
15195         syms_of_gui_mswindows() function
15196
15197         * symsinit.h: added the prototype for syms_of_gui_mswindows()
15198
15199 2000-01-18  Martin Buchholz <martin@xemacs.org>
15200
15201         * XEmacs 21.2.27 is released.
15202
15203 2000-01-18  Martin Buchholz  <martin@xemacs.org>
15204
15205         * glyphs-eimage.c (struct tiff_error_struct):
15206         (tiff_error_func):
15207         (tiff_warning_func):
15208         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
15209
15210         * unexmips.c:
15211         * unexhp9k3.c:
15212         * unexfreebsd.c:
15213         * unexec.c: Remove vestigial Lucid C code.
15214         * unexalpha.c:
15215         * unexaix.c:
15216         * termcap.c:
15217         * libsst.c: Ansify.
15218         Remove declarations of errno and strerror().
15219
15220         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
15221
15222         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
15223
15224 2000-01-16  Martin Buchholz  <martin@xemacs.org>
15225
15226         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
15227         Optimize.
15228
15229 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15230
15231         * md5.c:
15232         * file-coding.c:
15233         * file-coding.h:
15234         Change enum eol_type to eol_type_t.
15235
15236 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15237
15238         * gui.c (get_gui_callback): Check cons before accessing car.
15239
15240 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15241
15242         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
15243         (XSETSPECIFIER_TYPE): Ditto.
15244
15245 2000-01-17  Didier Verna  <didier@xemacs.org>
15246
15247         * redisplay.c (generate_fstring_runes): compute string size in
15248         characters, not bytes.
15249
15250 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
15251
15252         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
15253
15254 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
15255
15256         * print.c (print_error_message): Call print_prepare().
15257
15258 2000-01-14  Martin Buchholz  <martin@xemacs.org>
15259
15260         * .dbxrc: Renamed from dbxrc.
15261
15262         * events.c (event_to_character):
15263         Use `assert (foo)' instead of `if (!foo) abort()'
15264
15265         * .gdbinit (xtype): Add documentation.
15266         * .gdbinit (check-temacs): New function.
15267         * .gdbinit (check-xemacs): New function.
15268         * dbxrc (check-xemacs): New function.
15269         * dbxrc (check-xemacs): New function.
15270
15271 2000-01-14  Andy Piper  <andy@xemacs.org>
15272
15273         * glyphs-widget.c (widget_query_geometry): Make sure that we
15274         calculate default dimensions correctly.
15275
15276 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15277
15278         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
15279
15280         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
15281         pdump_wire'd variable.
15282
15283         * emacs.c: (main_1): Conditionalized calls to
15284         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
15285
15286 2000-01-13  Martin Buchholz  <martin@xemacs.org>
15287
15288         * window.c (Fset_window_configuration):
15289         * sysdep.c (_start):
15290         * input-method-motif.c (res):
15291         * event-Xt.c (Xt_process_to_emacs_event):
15292         Simple compiler warning fixes.
15293
15294         * bytecode.c (funcall_compiled_function): Use the original
15295         function symbol on the backtrace list in preference to the
15296         compiled_function object in error messages.
15297
15298 2000-01-13  Andy Piper  <andy@xemacs.org>
15299
15300         * glyphs-x.c (update_widget_face): Make sure we update the widget
15301         background as well as foreground.
15302
15303 2000-01-13  Andy Piper  <andy@xemacs.org>
15304
15305         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
15306         fields to subwindow.
15307         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
15308         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
15309         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
15310         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
15311
15312         * glyphs-widget.c (check_valid_tab_orientation): new function.
15313         (initialize_widget_image_instance): zero orientation and
15314         justification.
15315         (widget_instantiate): pick up orientation.
15316         (tab_control_query_geometry): return appropriate values for
15317         vertical tabs.
15318
15319         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
15320         appropriate creation flags for left, right and bottom tabs.
15321
15322         * s/cygwin32.h: add tab definitions.
15323
15324 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15325
15326         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
15327         frame upon hiding a subwindow.
15328         (mswindows_button_instantiate): Changed the push button style to
15329         BS_PUSHBUTTON.
15330         (mswindows_button_instantiate): Removed button BS_NOTIFY
15331         style.
15332         (mswindows_button_instantiate): Removed redundant check for
15333         a disabled gui item.
15334         (mswindows_button_instantiate): Made use of WS_TABSTOP
15335         consistent: "operable" controls (edit, button, tree, scroll) have
15336         this style, "display-only" ones (static, progress gauge) do
15337         not. This style is currently ignored by XEmacs though. Also,
15338         removed the WS_EX_CONTROLPARENT style - it is not for children,
15339         it is for their parents!
15340         (mswindows_edit_field_instantiate): Ditto.
15341         (mswindows_progress_gauge_instantiate): Ditto.
15342         (mswindows_tree_view_instantiate): Ditto.
15343         (mswindows_tab_control_instantiate): Ditto.
15344         (mswindows_scrollbar_instantiate): Ditto.
15345         (mswindows_combo_box_instantiate): Ditto.
15346         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
15347         style to the "clip" window.
15348         (mswindows_button_instantiate): Removed compilation warning by
15349         equally typing terms of the ?: operator.
15350
15351 2000-01-12  Didier Verna  <didier@xemacs.org>
15352
15353         * redisplay.c (generate_fstring_runes): new parameter holding the
15354         last modeline-format extent.
15355         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
15356         extent, fill the glyph block with it.
15357         (generate_fstring_runes): handle these parameters.
15358         (generate_formatted_string_db): ditto.
15359
15360         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
15361         glyphs'extents in the modeline.
15362
15363 1999-01-11  Mike Woolley  <mike@bulsara.com>
15364
15365         * ntheap.c: Reduced the reserved heap space from 1Gb down to
15366         256Mb, as a workaround for the non-starting problem many people
15367         have experienced.
15368
15369 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15370
15371         * console-tty.c (Fset_console_tty_output_coding_system):
15372         Force redrawing tty frame.
15373
15374 2000-01-10  Didier Verna  <didier@xemacs.org>
15375
15376         * redisplay.c (generate_fstring_runes): fix size computation bug.
15377
15378 2000-01-09  William M. Perry <wmperry@aventail.com>
15379
15380         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
15381
15382 2000-01-09  Andy Piper  <andy@xemacs.org>
15383
15384         * glyphs-msw.c: index -> i to avoid shadows.
15385         (xbm_create_bitmap_from_data): make static.
15386         (check_valid_string_or_int): deleted.
15387         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
15388
15389         * glyphs-x.c (x_update_subwindow): remove unused args.
15390
15391         * glyphs.c (glyph_image_instance): return the thing. Don't set the
15392         back pointer - this is done in allocate_image_instance.
15393         (query_string_font): return Qnil to make the compiler happy.
15394         (unmap_subwindow): set to ~0 to make the compiler happy.
15395         (glyph_query_geometry): comment out until used.
15396         (glyph_layout): ditto.
15397
15398 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
15399
15400         * insdel.c (signal_after_change): Remove extraneous unbind_to().